deploy: add protocol to all Container/ServicePorts
kubectl apply --server-side currently doesn't work with Port specs that are missing protocol: https://github.com/kubernetes-sigs/structured-merge-diff/issues/130 so we should always specify it.
This commit is contained in:
parent
d523b4a96e
commit
5b918e2d95
7 changed files with 14 additions and 0 deletions
|
@ -44,8 +44,10 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
- name: https
|
||||
containerPort: 443
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
|
|
|
@ -8,7 +8,9 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: https
|
||||
|
|
|
@ -246,8 +246,10 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
- name: https
|
||||
containerPort: 443
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
|
|
|
@ -21,9 +21,11 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: https
|
||||
|
||||
---
|
||||
|
|
|
@ -25,9 +25,11 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
|
||||
---
|
||||
|
|
|
@ -19,9 +19,11 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: https
|
||||
|
||||
---
|
||||
|
|
|
@ -15,9 +15,11 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: https
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in a new issue