adamant-kite-43734
03/20/2024, 6:31 PMcreamy-pencil-82913
03/20/2024, 6:34 PMcreamy-pencil-82913
03/20/2024, 6:35 PMabundant-hair-58573
03/20/2024, 6:45 PMabundant-hair-58573
03/20/2024, 6:50 PMkubectl get nodes --show-labels, I do not see the same AWS labels that I see in our non air-gapped deployment, but I'm not sure if those get added after the cloud controller is working since this part just worked in the non air-gapped environmentabundant-hair-58573
03/20/2024, 6:56 PMvaluesContent section here
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
  name: aws-cloud-controller-manager
  namespace: kube-system
spec:
  chart: aws-cloud-controller-manager
  repo: <https://kubernetes.github.io/cloud-provider-aws>
  targetNamespace: kube-system
  bootstrap: true
  valuesContent: |-
    hostNetworking: true
    nodeSelector:
      node-role.kubernetes.io/control-plane: "true"
    args:
      - --configure-cloud-routes=false
      - --v=5
      - --cloud-provider=awscreamy-pencil-82913
03/20/2024, 7:06 PMabundant-hair-58573
03/20/2024, 7:38 PMcreamy-pencil-82913
03/20/2024, 7:46 PMabundant-hair-58573
03/20/2024, 7:47 PMcreamy-pencil-82913
03/20/2024, 7:49 PMabundant-hair-58573
03/20/2024, 7:50 PMabundant-hair-58573
03/20/2024, 7:51 PMcreamy-pencil-82913
03/20/2024, 7:51 PMargs to point it at the ca file as wellabundant-hair-58573
03/20/2024, 7:52 PM--client-ca-file.  I assume it's safe to mount it to /etc/ssl/certs/ca-bundle.crt, just don't want to overwrite anythingabundant-hair-58573
03/20/2024, 9:52 PMapiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChart
metadata:
  name: aws-cloud-controller-manager
  namespace: kube-system
spec:
  chart: aws-cloud-controller-manager
  repo: <https://kubernetes.github.io/cloud-provider-aws>
  repoCAConfigMap:
    name: helm-repo-ca
  targetNamespace: kube-system
  bootstrap: true
  valuesContent: |-
    hostNetworking: true
    nodeSelector:
      <http://node-role.kubernetes.io/control-plane|node-role.kubernetes.io/control-plane>: "true"
    extraVolumes:
      - name: ca-vol
        configMap:
          name: helm-repo-ca
      - name: dir0
        hostPath:
          path: /etc/ssl/certs/ca-bundle.crt
    extraVolumeMounts:
      - name: ca-vol
        mountPath: /ca.crt
        subPath: ca.crt
      - name: dir0
        mount:path: /etc/ssl/certs/ca-bundle.crt
    args:
      - --configure-cloud-routes=false
      - --v=5
      - --cloud-provider=aws
      - --client-ca-file="/ca.crt"
I know the configmap is there because 1) it shows up under kubectl describe configmap helm-repo-ca and 2) helm is using it.  Just to try something different I added the hostPath mount for the ca certs on my local filesystem and changed the --client-ca-file="/etc/ssl/certs/ca-bundle.crt and I still got a no such file or directory error.  The pod dies pretty quickly so I don't know how to actually look in the pod and confirm what's actually mounted.
Describing the aws-cloud-controller-manager pod shows
Mounts:
  /ca.crt from ca-vol (rw,path="ca.crt")
  /etc/ssl/certs/ca-bundle.crt from dir0 (rw)creamy-pencil-82913
03/20/2024, 10:02 PMabundant-hair-58573
03/20/2024, 10:03 PM/etc/ssl/certs/ca.crt .  I was just trying to make it as simple as possible while troubleshootingcreamy-pencil-82913
03/20/2024, 10:03 PMca.crt key in it?abundant-hair-58573
03/20/2024, 10:04 PMcreamy-pencil-82913
03/20/2024, 10:05 PMabundant-hair-58573
03/20/2024, 10:06 PMapiVersion: v1
kind: ConfigMap
metadata:
  namespace: kube-system
  name: helm-repo-ca
data:
  ca.crt: |-
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
It has multiple certs in there but I'm transcribing manually across networks lol.  I know that works because helm is using it, without that helm was throwing the CA error tooabundant-hair-58573
03/20/2024, 10:10 PMMounts:
  /ca.crt from ca-vol (rw,path="ca.crt")
  /etc/ssl/certs/ca-bundle.crt from dir0 (rw)
Volumes:
  ca-vol:
    Type: ConfigMap
    Name: helm-repo-ca
    Optional: false
  dir0:
    Type: HostPath (bare host directory volume)
    Path: /etc/ssl/certs/ca-bundle.crt
    HostPathType:
  Priority Class Name:
Then some events down here, just delete and create of podsabundant-hair-58573
03/20/2024, 10:11 PMkubectl get ds -A shows 1 desired, 1 current, 0 ready, 1 up-to-date, 0 availablecreamy-pencil-82913
03/20/2024, 10:25 PMabundant-hair-58573
03/20/2024, 10:27 PMcreamy-pencil-82913
03/20/2024, 11:00 PMkubectl get ds -o yaml -n <namespace> <daemonset name>abundant-hair-58573
03/20/2024, 11:02 PM--client-ca-file="/ca.crt".  Took the quotes off and it workedabundant-hair-58573
03/20/2024, 11:03 PMcreamy-pencil-82913
03/20/2024, 11:06 PM