Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
fix: mount kubelet config to /var/lib/kubelet for non-rbac deployme…
Browse files Browse the repository at this point in the history
…nt (#1098)

* fix: mount kubelet config to `/var/lib/kubelet` for non-rbac deployment

* fix: update nonazurejson non-rbac deployment settings
  • Loading branch information
bcho authored Jun 25, 2021
1 parent 8985b37 commit a12bc7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions manifest_staging/deploy/infra/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ spec:
- name: mic
image: "mcr.microsoft.com/oss/azure/aad-pod-identity/mic:v1.8.0"
args:
- "--kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig"
- "--kubeconfig=/var/lib/kubelet/kubeconfig"
- "--cloudconfig=/etc/kubernetes/azure.json"
- "--logtostderr"
securityContext:
Expand All @@ -515,8 +515,8 @@ spec:
cpu: 100m
memory: 256Mi
volumeMounts:
- name: kubeconfig
mountPath: /etc/kubernetes/kubeconfig
- name: kubelet-config
mountPath: /var/lib/kubelet
readOnly: true
- name: certificates
mountPath: /etc/kubernetes/certs
Expand All @@ -531,7 +531,7 @@ spec:
initialDelaySeconds: 10
periodSeconds: 5
volumes:
- name: kubeconfig
- name: kubelet-config
hostPath:
path: /var/lib/kubelet
- name: certificates
Expand Down
8 changes: 4 additions & 4 deletions manifest_staging/deploy/infra/noazurejson/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ spec:
- name: mic
image: "mcr.microsoft.com/oss/azure/aad-pod-identity/mic:v1.8.0"
args:
- "--kubeconfig=/etc/kubernetes/kubeconfig/kubeconfig"
- "--kubeconfig=/var/lib/kubelet/kubeconfig"
- "--logtostderr"
securityContext:
runAsUser: 0
Expand Down Expand Up @@ -561,8 +561,8 @@ spec:
cpu: 100m
memory: 256Mi
volumeMounts:
- name: kubeconfig
mountPath: /etc/kubernetes/kubeconfig
- name: kubelet-config
mountPath: /var/lib/kubelet
readOnly: true
- name: certificates
mountPath: /etc/kubernetes/certs
Expand All @@ -574,7 +574,7 @@ spec:
initialDelaySeconds: 10
periodSeconds: 5
volumes:
- name: kubeconfig
- name: kubelet-config
hostPath:
path: /var/lib/kubelet
- name: certificates
Expand Down

0 comments on commit a12bc7a

Please sign in to comment.