@@ -23,7 +23,6 @@ metadata:
2323 name : ingress-apisix
2424
2525---
26-
2726apiVersion : rbac.authorization.k8s.io/v1
2827kind : ClusterRole
2928metadata :
@@ -136,7 +135,7 @@ rules:
136135 - ingresses/status
137136 - networkpolicies
138137 verbs :
139- - ' * '
138+ - " * "
140139 - apiGroups :
141140 - metrics.k8s.io
142141 resources :
@@ -163,13 +162,13 @@ rules:
163162 - apisixglobalrules
164163 - apisixglobalrules/status
165164 verbs :
166- - ' * '
165+ - " * "
167166 - apiGroups :
168167 - coordination.k8s.io
169168 resources :
170169 - leases
171170 verbs :
172- - ' * '
171+ - " * "
173172 - apiGroups :
174173 - discovery.k8s.io
175174 resources :
@@ -202,15 +201,13 @@ rules:
202201 - list
203202
204203---
205-
206204apiVersion : v1
207205kind : ServiceAccount
208206metadata :
209207 name : apisix-view-serviceaccount
210208 namespace : ingress-apisix
211209
212210---
213-
214211apiVersion : rbac.authorization.k8s.io/v1
215212kind : ClusterRoleBinding
216213metadata :
@@ -224,9 +221,7 @@ subjects:
224221 name : apisix-view-serviceaccount
225222 namespace : ingress-apisix
226223
227-
228224---
229-
230225apiVersion : v1
231226kind : ConfigMap
232227metadata :
@@ -352,7 +347,6 @@ data:
352347 enable_export_server: false
353348
354349 ---
355-
356350apiVersion : apps/v1
357351kind : Deployment
358352metadata :
@@ -374,32 +368,48 @@ spec:
374368 name : apisix-gw-config.yaml
375369 defaultMode : 420
376370 containers :
377- - name : ingress-apisix
378- image : apache/apisix-ingress-controller:dev
371+ - livenessProbe :
372+ tcpSocket :
373+ port : 8080
374+ initialDelaySeconds : 15
375+ timeoutSeconds : 2
376+ periodSeconds : 2
377+ successThreshold : 1
378+ failureThreshold : 3
379+ readinessProbe :
380+ tcpSocket :
381+ port : 8080
382+ initialDelaySeconds : 10
383+ timeoutSeconds : 2
384+ periodSeconds : 10
385+ successThreshold : 1
386+ failureThreshold : 3
387+ name : ingress-apisix
388+ image : apache/apisix-ingress-controller:1.7.0
379389 command :
380390 - /ingress-apisix/apisix-ingress-controller
381391 - ingress
382- - ' --log-output'
392+ - " --log-output"
383393 - stdout
384- - ' --apisix-resource-sync-interval'
394+ - " --apisix-resource-sync-interval"
385395 - 1h
386- - ' --apisix-resource-sync-comparison=true'
387- - ' --http-listen'
388- - ' :8080'
389- - ' --https-listen'
390- - ' :8443'
391- - ' --default-apisix-cluster-name'
396+ - " --apisix-resource-sync-comparison=true"
397+ - " --http-listen"
398+ - " :8080"
399+ - " --https-listen"
400+ - " :8443"
401+ - " --default-apisix-cluster-name"
392402 - default
393- - ' --default-apisix-cluster-base-url'
403+ - " --default-apisix-cluster-base-url"
394404 - http://127.0.0.1:9180/apisix/admin
395- - ' --default-apisix-cluster-admin-key'
405+ - " --default-apisix-cluster-admin-key"
396406 - edd1c9f034335f136f87ad84b625c8f1
397- - ' --api-version'
407+ - " --api-version"
398408 - apisix.apache.org/v2
399- - ' --ingress-status-address'
400- - ' '
401- - ' --disable-status-updates=false'
402- - ' --etcd-server-enabled=true'
409+ - " --ingress-status-address"
410+ - " "
411+ - " --disable-status-updates=false"
412+ - " --etcd-server-enabled=true"
403413 ports :
404414 - name : http
405415 containerPort : 8080
@@ -422,26 +432,26 @@ spec:
422432 apiVersion : v1
423433 fieldPath : metadata.name
424434 resources : {}
425- livenessProbe :
426- tcpSocket :
427- port : 8080
428- initialDelaySeconds : 5
429- timeoutSeconds : 2
435+ terminationMessagePath : /dev/termination-log
436+ terminationMessagePolicy : File
437+ imagePullPolicy : IfNotPresent
438+ - livenessProbe :
439+ failureThreshold : 3
440+ initialDelaySeconds : 20
430441 periodSeconds : 2
431442 successThreshold : 1
432- failureThreshold : 3
433- readinessProbe :
434443 tcpSocket :
435- port : 8080
436- initialDelaySeconds : 5
444+ port : 9080
437445 timeoutSeconds : 2
438- periodSeconds : 10
439- successThreshold : 1
446+ readinessProbe :
440447 failureThreshold : 3
441- terminationMessagePath : /dev/termination-log
442- terminationMessagePolicy : File
443- imagePullPolicy : IfNotPresent
444- - name : apisix
448+ initialDelaySeconds : 15
449+ periodSeconds : 2
450+ successThreshold : 1
451+ tcpSocket :
452+ port : 9080
453+ timeoutSeconds : 1
454+ name : apisix
445455 image : apache/apisix:3.2.2-centos
446456 ports :
447457 - name : http
@@ -473,9 +483,7 @@ spec:
473483 revisionHistoryLimit : 10
474484 progressDeadlineSeconds : 600
475485
476-
477486---
478-
479487apiVersion : v1
480488kind : Service
481489metadata :
0 commit comments