Skip to content

Commit

Permalink
deploy: enable ECS vpc openAPI endpoint by default
Browse files Browse the repository at this point in the history
  • Loading branch information
huww98 committed Nov 6, 2024
1 parent ba8b25c commit e5321e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/chart/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ spec:
- --nodeid=$(KUBE_NODE_NAME)
{{- end }}
env:
{{- if .Values.deploy.ecs }}
- name: ALIBABA_CLOUD_NETWORK_TYPE
value: vpc
{{- end }}
- name: "DEFAULT_REGISTRY"
value: {{ .Values.images.registry | quote }}
{{- if .Values.deploy.ack }}
Expand Down
4 changes: 4 additions & 0 deletions deploy/chart/templates/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
{{- if $nodePool.deploy.ecs }}
- name: ALIBABA_CLOUD_NETWORK_TYPE
value: vpc
{{- end }}
{{- if $nodePool.deploy.regionID }}
- name: REGION_ID
value: {{ $nodePool.deploy.regionID | quote }}
Expand Down

0 comments on commit e5321e8

Please sign in to comment.