GithubHelp home page GithubHelp logo

sap-archive / bosh-kubernetes-cpi-release Goto Github PK

View Code? Open in Web Editor NEW
29.0 12.0 5.0 308 KB

The goal for this project is to provide a fully functional BOSH CPI. It will eventually allow to deploy any BOSH release to any Kubernetes cluster.

License: Apache License 2.0

Shell 6.39% HTML 0.63% Haskell 92.46% Dockerfile 0.52%
haskell bosh bosh-release bosh-cpi kubernetes cloud cloud-foundry

bosh-kubernetes-cpi-release's People

Contributors

amitkgupta avatar loewenstein avatar sebastianwolf-sap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bosh-kubernetes-cpi-release's Issues

Adding kubernetes-cpi to existing Bosh Director

Hi,
currently the whole documentation references the installation of CPI via the creation of new bosh director. As it is possible to have a multi CPI setup in the meanwhile, I wanted to ask what would be the best way to deploy the Kubernetes CPI to an existing director?

Thanks!

create-env.sh fails in Minikube environment

Disk creation failed in Minikube environment. What could be the reason?

./deployment/minikube/scripts/create-env.sh
...
...
Started deploying
  Waiting for the agent on VM '54c7a391-5c97-4a16-60e3-3e7ada55e156'... Finished (00:00:00)
  Stopping jobs on instance 'unknown/0'... Finished (00:00:00)
  Deleting VM '54c7a391-5c97-4a16-60e3-3e7ada55e156'... Finished (00:00:01)
  Creating VM for instance 'bosh/0' from stemcell 'loewenstein/bosh-stemcell-kubernetes-ubuntu-trusty-go_agent:3445.11'... Finished (00:00:02)
  Waiting for the agent on VM 'a8579f87-2140-490b-66b4-22cf2fedb966' to be ready... Finished (00:00:12)
  Creating disk... Failed (00:05:36)
Failed deploying (00:05:52)

Stopping registry... Finished (00:00:00)
Cleaning up rendered CPI jobs... Finished (00:00:00)

Deploying:
  Creating instance 'bosh/0':
    Updating instance disks:
      Updating disks:
        Deploying disk:
          Creating disk with size 10000, cloudProperties property.Map{}, instanceID a8579f87-2140-490b-66b4-22cf2fedb966:
            CPI 'create_disk' method responded with error: CmdError{"type":"Bosh::Clouds::CloudError","message":"Unknown error: 'Timeout \"Waiting for PVC to be bound\"'","ok_to_retry":false}

Exit code 1

unable to deploy example zookeeper bosh release on minikube and gce

I am able to create a BOSH environment but when I am trying to deploy the example zookeeper bosh release in to gce(the same happens with minikube as well) I am getting the below authentication error

-0483-4dd5-8815-3f9052b0a96d
Task 3 | 11:48:57 | Warning: IP address not available for the link provider instance: zookeeper/99cb6f79-bef0-4a97-98bb-bff9848fc389
Task 3 | 11:48:57 | Warning: IP address not available for the link provider instance: zookeeper/f5784778-793e-46c3-bd61-7b8912633ee8
Task 3 | 11:48:57 | Warning: IP address not available for the link provider instance: zookeeper/15cea6d1-54f7-4afc-aabe-4dabac127240
Task 3 | 11:48:57 | Preparing deployment: Preparing deployment (00:00:00)
Task 3 | 11:48:57 | Preparing package compilation: Finding packages to compile (00:00:00)
Task 3 | 11:48:57 | Compiling packages: golang-1.10-linux/48c842421b6f05acf88dc6ec17f7574dade28a86
Task 3 | 11:48:57 | Compiling packages: zookeeper/43ee655b89f8a05cc472ca997e8c8186457241c1
Task 3 | 11:48:57 | Compiling packages: openjdk-8/5e72bbc5151b0248ff5925636fdd7d328f7dea20 (00:00:01)
L Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unknown error: 'FailureResponse {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseContentType = application/json, responseBody = "{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"secrets is forbidden: User \"system:serviceaccount:default:default\" cannot create secrets in the namespace \"default\": Unknown user \"system:serviceaccount:default:default\"","reason":"Forbidden","details":{"kind":"secrets"},"code":403}\n"}'' in 'create_vm' CPI method
Task 3 | 11:48:58 | Compiling packages: golang-1.10-linux/48c842421b6f05acf88dc6ec17f7574dade28a86 (00:00:01)
L Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unknown error: 'FailureResponse {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseContentType = application/json, responseBody = "{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"secrets is forbidden: User \"system:serviceaccount:default:default\" cannot create secrets in the namespace \"default\": Unknown user \"system:serviceaccount:default:default\"","reason":"Forbidden","details":{"kind":"secrets"},"code":403}\n"}'' in 'create_vm' CPI method
Task 3 | 11:48:58 | Compiling packages: zookeeper/43ee655b89f8a05cc472ca997e8c8186457241c1 (00:00:01)
L Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unknown error: 'FailureResponse {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseContentType = application/json, responseBody = "{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"secrets is forbidden: User \"system:serviceaccount:default:default\" cannot create secrets in the namespace \"default\": Unknown user \"system:serviceaccount:default:default\"","reason":"Forbidden","details":{"kind":"secrets"},"code":403}\n"}'' in 'create_vm' CPI method
Task 3 | 11:48:58 | Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unknown error: 'FailureResponse {responseStatus = Status {statusCode = 403, statusMessage = "Forbidden"}, responseContentType = application/json, responseBody = "{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"secrets is forbidden: User \"system:serviceaccount:default:default\" cannot create secrets in the namespace \"default\": Unknown user \"system:serviceaccount:default:default\"","reason":"Forbidden","details":{"kind":"secrets"},"code":403}\n"}'' in 'create_vm' CPI method

Task 3 Started Wed Sep 19 11:48:57 UTC 2018
Task 3 Finished Wed Sep 19 11:48:58 UTC 2018
Task 3 Duration 00:00:01
Task 3 error

Updating deployment:
Expected task '3' to succeed but state is 'error'

Exit code 1

Any clue what could have gone wrong here

We should support running the CPI as a specific service account

With recent versions of Kubernetes we should no longer rely on the default service account having the necessary permissions to run the director / CPI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.