Skip to content

Commit

Permalink
Merge pull request #236 from kubeservice-stack/fix-socket-path
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-wangxu authored Sep 15, 2023
2 parents 408781d + 1bb3a77 commit 255e6d8
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/user-guide/apiserver-network-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ the controller and node plugins to communicate with worker nodes. However, in
some cases workers might be running at the edge, behind a NAT or other network
constraints. There are platforms like OpenYurt and SuperEdge that offer proxy
tunnels and various other edge solutions. With these, you might be interested in
the [`--use-node-hostname`](/docs/commandline/open-local_csi.md) argument, which
the [`--use-node-hostname`](../../docs/commandline/open-local_csi.md) argument, which
will use the node host-name DNS, instead of its IP, for the gRPC connection.

Konnectivity relies on an [`EgressSelectorConfiguration`](https://kubernetes.io/docs/reference/config-api/apiserver-config.v1alpha1/#apiserver-k8s-io-v1alpha1-EgressSelectorConfiguration)
Expand Down
10 changes: 5 additions & 5 deletions helm/templates/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.local.image }}:{{ .Values.images.local.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
resources:
limits:
cpu: 200m
Expand All @@ -81,7 +81,7 @@ spec:
mountPropagation: "Bidirectional"
- name: driver-registrar
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.registrar.image }}:{{ .Values.images.registrar.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
args:
- "--v=5"
- "--csi-address=/csi/csi.sock"
Expand Down Expand Up @@ -113,7 +113,7 @@ spec:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.local.image }}:{{ .Values.images.local.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
args:
- csi
- "--endpoint=$(CSI_ENDPOINT)"
Expand All @@ -134,7 +134,7 @@ spec:
apiVersion: v1
fieldPath: spec.nodeName
- name: CSI_ENDPOINT
value: unix://var/lib/kubelet/plugins/{{ .Values.driver }}/csi.sock
value: unix:/{{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}/csi.sock
- name: TZ
value: Asia/Shanghai
- name: ISSUE_ORPHANED_POD
Expand Down Expand Up @@ -174,7 +174,7 @@ spec:
name: directvolume
{{- end }}
- name: pods-mount-dir
mountPath: /var/lib/kubelet
mountPath: {{ .Values.agent.kubelet_dir }}
mountPropagation: "Bidirectional"
- mountPath: /dev
mountPropagation: "HostToContainer"
Expand Down
28 changes: 14 additions & 14 deletions helm/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ spec:
- --timeout=10m
env:
- name: ADDRESS
value: /var/lib/kubelet/plugins/{{ .Values.driver }}/csi.sock
value: {{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}/csi.sock
- name: TZ
value: Asia/Shanghai
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.provisioner.image }}:{{ .Values.images.provisioner.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
resources:
limits:
cpu: 500m
Expand All @@ -39,18 +39,18 @@ spec:
cpu: 50m
memory: 128Mi
volumeMounts:
- mountPath: /var/lib/kubelet/plugins/{{ .Values.driver }}
- mountPath: {{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}
name: socket-dir
- name: csi-resizer
args:
- --csi-address=$(ADDRESS)
env:
- name: ADDRESS
value: /var/lib/kubelet/plugins/{{ .Values.driver }}/csi.sock
value: {{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}/csi.sock
- name: TZ
value: Asia/Shanghai
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.resizer.image }}:{{ .Values.images.resizer.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
resources:
limits:
cpu: 500m
Expand All @@ -59,19 +59,19 @@ spec:
cpu: 50m
memory: 128Mi
volumeMounts:
- mountPath: /var/lib/kubelet/plugins/{{ .Values.driver }}
- mountPath: {{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}
name: socket-dir
- name: csi-snapshotter
args:
- --csi-address=$(ADDRESS)
- --snapshot-name-prefix=snap
env:
- name: ADDRESS
value: /var/lib/kubelet/plugins/{{ .Values.driver }}/csi.sock
value: {{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}/csi.sock
- name: TZ
value: Asia/Shanghai
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.snapshotter.image }}:{{ .Values.images.snapshotter.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
resources:
limits:
cpu: 500m
Expand All @@ -80,7 +80,7 @@ spec:
cpu: 50m
memory: 128Mi
volumeMounts:
- mountPath: /var/lib/kubelet/plugins/{{ .Values.driver }}
- mountPath: {{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}
name: socket-dir
{{- if eq .Values.agent.driverMode "node" }}
- name: csi-plugin
Expand All @@ -100,7 +100,7 @@ spec:
apiVersion: v1
fieldPath: spec.nodeName
- name: CSI_ENDPOINT
value: unix://var/lib/kubelet/plugins/{{ .Values.driver }}/csi.sock
value: unix:/{{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}/csi.sock
- name: TZ
value: Asia/Shanghai
- name: ISSUE_ORPHANED_POD
Expand All @@ -114,7 +114,7 @@ spec:
value: "{{ .Values.global.YodaSchedulerSvcIP }}"
{{- end }}
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.local.image }}:{{ .Values.images.local.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
resources:
limits:
cpu: 500m
Expand All @@ -123,7 +123,7 @@ spec:
cpu: 50m
memory: 128Mi
volumeMounts:
- mountPath: /var/lib/kubelet/plugins/{{ .Values.driver }}
- mountPath: {{ .Values.agent.kubelet_dir }}/plugins/{{ .Values.driver }}
name: socket-dir
{{- end }}
- name: controller
Expand All @@ -132,7 +132,7 @@ spec:
- --initconfig={{ .Values.name }}
- --feature-gates=UpdateNLS={{ .Values.controller.update_nls }}
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.local.image }}:{{ .Values.images.local.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
resources:
limits:
cpu: 200m
Expand All @@ -148,7 +148,7 @@ spec:
env:
- name: TZ
value: Asia/Shanghai
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
resources:
limits:
cpu: 500m
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/extender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- --port={{ .Values.extender.port }}
- --scheduler-strategy={{ .Values.extender.strategy }}
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.local.image }}:{{ .Values.images.local.tag }}
imagePullPolicy: Always
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
name: {{ .Values.name }}-scheduler-extender
resources:
limits:
Expand Down
1 change: 1 addition & 0 deletions helm/templates/init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
containers:
- name: init
image: {{ .Values.global.RegistryURL }}/{{ .Values.images.local.image }}:{{ .Values.images.local.tag }}
imagePullPolicy: {{ .Values.global.ImagePullPolicy }}
command:
- sh
- "-c"
Expand Down
1 change: 1 addition & 0 deletions helm/values-acka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ global:
YodaSchedulerSvcIP: 10.96.0.4
RegistryURL: ack-agility-registry.cn-shanghai.cr.aliyuncs.com
NumOfMasters: 3
ImagePullPolicy: Always
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ monitor:
namespace: monitoring
global:
RegistryURL: ack-agility-registry.cn-shanghai.cr.aliyuncs.com
ImagePullPolicy: Always

0 comments on commit 255e6d8

Please sign in to comment.