Code Monkey home page Code Monkey logo

Comments (4)

andatche avatar andatche commented on August 14, 2024

Hi Mathieu,

Brightbox CCM releases are now versioned in-step with k8s releases and it's strongly recommended to run the CCM version which matches your cluster version. For a full list of releases please see https://github.com/brightbox/brightbox-cloud-controller-manager/tags

Thanks for raising this, I'll update the example deployment manifests to include a note about versions.

Regards,
Ben

from brightbox-cloud-controller-manager.

tormath1 avatar tormath1 commented on August 14, 2024

Hi Ben,

Thanks for the answer, indeed that works better. I renamed the image to use the Brightbox CR too: cr.brightbox.com/acc-juq13/public/brightbox-cloud-controller-manager:1.30.2

I am still having some issue with the deployment now but I'll get back later after some investigation.

from brightbox-cloud-controller-manager.

tormath1 avatar tormath1 commented on August 14, 2024

With this configuration I can get Brightbox CCM deployed and working (just tried the load balancer creation) on a cluster:

diff --git a/cloud-controller.yml b/home/tormath1/github.com/flatcar/flatcar-terraform/brightbox/cloud-controller.yml
index da472b0..882f15c 100644
--- a/cloud-controller.yml
+++ b/home/tormath1/github.com/flatcar/flatcar-terraform/brightbox/cloud-controller.yml
@@ -18,34 +18,6 @@ subjects:
   name: cloud-controller-manager
   namespace: kube-system
 ---
-apiVersion: v1
-kind: ConfigMap
-metadata:
-  labels:
-    app: cloud-controller-manager
-  name: cloud-controller-manager
-  namespace: kube-system
-data:
-  cloud-controller.conf: |-
-    apiVersion: v1
-    kind: Config
-    clusters:
-    - cluster:
-        certificate-authority: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
-        server: https://[::1]:6443
-      name: default
-    contexts:
-    - context:
-        cluster: default
-        namespace: default
-        user: default
-      name: default
-    current-context: default
-    users:
-    - name: default
-      user:
-        tokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
----
 apiVersion: apps/v1
 kind: DaemonSet
 metadata:
@@ -65,7 +37,7 @@ spec:
       dnsPolicy: Default
       serviceAccountName: cloud-controller-manager
       nodeSelector:
-        node-role.kubernetes.io/master: ""
+        node-role.kubernetes.io/control-plane: ""
       tolerations:
         # this taint is set by all kubelets running '--cloud-provider=external'
         # so we should tolerate it to schedule the brightbox ccm
@@ -77,22 +49,26 @@ spec:
         # cloud controller manages should be able to run on masters
         - key: "node-role.kubernetes.io/master"
           effect: NoSchedule
+        - key: "node-role.kubernetes.io/control-plane"
+          effect: NoSchedule
       containers:
       - name: cloud-controller-manager
         # for in-tree providers we use k8s.gcr.io/cloud-controller-manager
         # this can be replaced with any other image for out-of-tree providers
-        image: brightbox/brightbox-cloud-controller-manager:0.0.5
+        image: cr.brightbox.com/acc-juq13/public/brightbox-cloud-controller-manager:1.30.2
         command:
           - "/bin/brightbox-cloud-controller-manager"
           - "--cloud-provider=brightbox"
-          - "--bind-address=::1"
-          - "--port=0"
+          - "--bind-address=127.0.0.1"
           - "--secure-port=10253"
           - "--configure-cloud-routes=false"
-          - "--kubeconfig=/etc/kubernetes/cloud-controller.conf"
           - "--cluster-name=brightbox-k8s"
           - "--leader-elect=true"
           - --use-service-account-credentials=false
+        volumeMounts:
+            - mountPath: /etc/kubernetes/pki
+              name: k8s-certs
+              readOnly: true
         resources:
           requests:
             cpu: 100m
@@ -113,14 +89,9 @@ spec:
               secretKeyRef:
                 name: brightbox-cloud-controller
                 key: apiurl
-        volumeMounts:
-        - mountPath: /etc/kubernetes/cloud-controller.conf
-          name: cloud-controller-conf
-          readOnly: true
-          subPath: cloud-controller.conf
       hostNetwork: true
       volumes:
-      - configMap:
-          defaultMode: 420
-          name: cloud-controller-manager
-        name: cloud-controller-conf
+      - hostPath:
+          path: /etc/kubernetes/pki
+          type: DirectoryOrCreate
+        name: k8s-certs

from brightbox-cloud-controller-manager.

andatche avatar andatche commented on August 14, 2024

Thanks Mathieu,

I've opened PR #93 to update the example deployment manifests to bring them in line with our latest Terraform manifests for deploying a complete cluster.

from brightbox-cloud-controller-manager.

Related Issues (1)

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.