diff --git a/charts/proxmox-cloud-controller-manager/Chart.yaml b/charts/proxmox-cloud-controller-manager/Chart.yaml index f225374..3668bfc 100644 --- a/charts/proxmox-cloud-controller-manager/Chart.yaml +++ b/charts/proxmox-cloud-controller-manager/Chart.yaml @@ -16,7 +16,7 @@ maintainers: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.11 +version: 0.2.12 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/charts/proxmox-cloud-controller-manager/ci/values.yaml b/charts/proxmox-cloud-controller-manager/ci/values.yaml index 2d59a03..a44f105 100644 --- a/charts/proxmox-cloud-controller-manager/ci/values.yaml +++ b/charts/proxmox-cloud-controller-manager/ci/values.yaml @@ -7,12 +7,16 @@ affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - - matchExpressions: - - key: node-role.kubernetes.io/control-plane - operator: Exists + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: Exists logVerbosityLevel: 4 +extraEnvs: + - name: KUBERNETES_SERVICE_HOST + value: 127.0.0.1 + enabledControllers: - cloud-node - cloud-node-lifecycle diff --git a/charts/proxmox-cloud-controller-manager/templates/deployment.yaml b/charts/proxmox-cloud-controller-manager/templates/deployment.yaml index d7defe7..bd6d3a5 100644 --- a/charts/proxmox-cloud-controller-manager/templates/deployment.yaml +++ b/charts/proxmox-cloud-controller-manager/templates/deployment.yaml @@ -71,6 +71,10 @@ spec: {{- with .Values.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.extraEnvs }} + env: + {{- toYaml . | nindent 12 }} + {{- end }} ports: - name: metrics containerPort: 10258 diff --git a/charts/proxmox-cloud-controller-manager/values.yaml b/charts/proxmox-cloud-controller-manager/values.yaml index af03799..ad01c2f 100644 --- a/charts/proxmox-cloud-controller-manager/values.yaml +++ b/charts/proxmox-cloud-controller-manager/values.yaml @@ -16,8 +16,15 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +# -- Any extra environments for talos-cloud-controller-manager +extraEnvs: + [] + # - name: KUBERNETES_SERVICE_HOST + # value: 127.0.0.1 + # -- Any extra arguments for talos-cloud-controller-manager -extraArgs: [] +extraArgs: + [] # - --cluster-name=kubernetes # -- List of controllers should be enabled. @@ -42,7 +49,7 @@ existingConfigSecretKey: config.yaml config: features: # specify provider: proxmox if you are using capmox (cluster api provider for proxmox) - provider: 'default' + provider: "default" clusters: [] # - url: https://cluster-api-1.exmple.com:8006/api2/json # insecure: false @@ -66,7 +73,8 @@ priorityClassName: system-cluster-critical # -- Add additional init containers to the CCM pods. # ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ -initContainers: [] +initContainers: + [] # - name: loadbalancer # restartPolicy: Always # image: ghcr.io/sergelogvinov/haproxy:2.8.3-alpine3.18 @@ -89,7 +97,8 @@ initContainers: [] # -- hostAliases Deployment pod host aliases # ref: https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/ -hostAliases: [] +hostAliases: + [] # - ip: 127.0.0.1 # hostnames: # - proxmox.domain.com @@ -113,7 +122,7 @@ securityContext: allowPrivilegeEscalation: false capabilities: drop: - - ALL + - ALL seccompProfile: type: RuntimeDefault @@ -145,7 +154,8 @@ updateStrategy: # -- Node labels for data pods assignment. # ref: https://kubernetes.io/docs/user-guide/node-selection/ -nodeSelector: {} +nodeSelector: + {} # node-role.kubernetes.io/control-plane: "" # -- Tolerations for data pods assignment.