Skip to content

Commit 82279e0

Browse files
committed
update at 2024-08-09 14:20:28
1 parent 15d0631 commit 82279e0

File tree

2 files changed

+13
-70
lines changed

2 files changed

+13
-70
lines changed

charts/tke-extend-network-controller/templates/deployment.yaml

+13-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
name: {{ include "tke-extend-network-controller.fullname" . }}
77
namespace: {{ .Release.Namespace | quote }}
88
spec:
9-
replicas: 1
9+
replicas: {{ .Values.replicaCount }}
1010
selector:
1111
matchLabels:
1212
{{- include "tke-extend-network-controller.selectorLabels" . | nindent 6 }}
@@ -59,4 +59,15 @@ spec:
5959
secret:
6060
defaultMode: 420
6161
secretName: {{ include "tke-extend-network-controller.fullname" . }}-webhook-server-cert
62-
62+
{{- with .Values.nodeSelector }}
63+
nodeSelector:
64+
{{- toYaml . | nindent 8 }}
65+
{{- end }}
66+
{{- with .Values.affinity }}
67+
affinity:
68+
{{- toYaml . | nindent 8 }}
69+
{{- end }}
70+
{{- with .Values.tolerations }}
71+
tolerations:
72+
{{- toYaml . | nindent 8 }}
73+
{{- end }}

charts/tke-extend-network-controller/values.yaml

-68
Original file line numberDiff line numberDiff line change
@@ -22,54 +22,6 @@ imagePullSecrets: []
2222
nameOverride: ""
2323
fullnameOverride: ""
2424

25-
serviceAccount:
26-
# Specifies whether a service account should be created
27-
create: true
28-
# Automatically mount a ServiceAccount's API credentials?
29-
automount: true
30-
# Annotations to add to the service account
31-
annotations: {}
32-
# The name of the service account to use.
33-
# If not set and create is true, a name is generated using the fullname template
34-
name: ""
35-
36-
podAnnotations: {}
37-
podLabels: {}
38-
39-
podSecurityContext:
40-
{}
41-
# fsGroup: 2000
42-
43-
securityContext:
44-
{}
45-
# capabilities:
46-
# drop:
47-
# - ALL
48-
# readOnlyRootFilesystem: true
49-
# runAsNonRoot: true
50-
# runAsUser: 1000
51-
52-
service:
53-
type: ClusterIP
54-
port: 80
55-
56-
ingress:
57-
enabled: false
58-
className: ""
59-
annotations:
60-
{}
61-
# kubernetes.io/ingress.class: nginx
62-
# kubernetes.io/tls-acme: "true"
63-
hosts:
64-
- host: chart-example.local
65-
paths:
66-
- path: /
67-
pathType: ImplementationSpecific
68-
tls: []
69-
# - secretName: chart-example-tls
70-
# hosts:
71-
# - chart-example.local
72-
7325
resources:
7426
{}
7527
# We usually recommend not to specify default resources and to leave this as a conscious
@@ -97,26 +49,6 @@ readinessProbe:
9749
initialDelaySeconds: 5
9850
periodSeconds: 10
9951

100-
autoscaling:
101-
enabled: false
102-
minReplicas: 1
103-
maxReplicas: 100
104-
targetCPUUtilizationPercentage: 80
105-
# targetMemoryUtilizationPercentage: 80
106-
107-
# Additional volumes on the output Deployment definition.
108-
volumes: []
109-
# - name: foo
110-
# secret:
111-
# secretName: mysecret
112-
# optional: false
113-
114-
# Additional volumeMounts on the output Deployment definition.
115-
volumeMounts: []
116-
# - name: foo
117-
# mountPath: "/etc/foo"
118-
# readOnly: true
119-
12052
nodeSelector: {}
12153

12254
tolerations: []

0 commit comments

Comments
 (0)