Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set the masternode api address #148

Closed
mvandewouw opened this issue Jul 6, 2020 · 4 comments
Closed

Ability to set the masternode api address #148

mvandewouw opened this issue Jul 6, 2020 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@mvandewouw
Copy link

AKS cluster deployed with UDR for egress traffic via AzureFW.

Somehow we cannot set the KUBERNETES_SERVICE_HOST to the FQDN of our AKS cluster.
We are getting timeouts when the pod tries to mount the volume because it tries to connect to the masternode-api on the Service CIDR.

We would like to be able to configure the fqdn of the k8s masternode api.

Which access mode did you use to access the Azure Key Vault instance:
Service Principal

Environment:

  • Secrets Store CSI Driver version: (use the image tag): 0.0.7
  • Azure Key Vault provider version: (use the image tag): 0.0.6
  • Kubernetes version: (use kubectl version and kubectl get nodes -o wide): v1.16.9
  • Cluster type: (e.g. AKS, aks-engine, etc): AKS
@mvandewouw mvandewouw added the enhancement New feature or request label Jul 6, 2020
@aramase
Copy link
Member

aramase commented Jul 13, 2020

@mvandewouw As documented in this specific issue, AKS sets the KUBERNETES_SERVICE_HOST to fqdn for pods deployed in kube-system namespace. The options for driver would be to -

  1. deploy in kube-system namespace
  2. Set the KUBERNETES_SERVICE_HOST to be fqdn in all the pods. This is not an option using helm chart, but you should be able to manually set those once the pods are deployed.
        env:
          - name: KUBERNETES_SERVICE_HOST
            value: <your-fqdn-prefix>.hcp.<region>.azmk8s.io

@mvandewouw
Copy link
Author

Hi thanks for your suggestions
To be honest, i dont know if 1. is supported by Microsoft
And it would be ideal if we can set this environment variable during deploytime so deployment is done correctly first time.

We also do this with helm traefik deployment (setting the KUBERNETES_SERVICE_HOST)

@aramase
Copy link
Member

aramase commented Jul 15, 2020

Thank you for the reference @mvandewouw. Opened kubernetes-sigs/secrets-store-csi-driver#246 to track this.

@aramase aramase added this to the next milestone Jul 16, 2020
@aramase
Copy link
Member

aramase commented Aug 7, 2020

Closing this with kubernetes-sigs/secrets-store-csi-driver#279. This will be included in the next release of driver.

@aramase aramase closed this as completed Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants