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:
Bouke van der Bijl 2019-11-28 12:41:48 +00:00
parent d523b4a96e
commit 5b918e2d95
7 changed files with 14 additions and 0 deletions

View file

@ -44,8 +44,10 @@ spec:
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
protocol: TCP
- name: https - name: https
containerPort: 443 containerPort: 443
protocol: TCP
livenessProbe: livenessProbe:
failureThreshold: 3 failureThreshold: 3
httpGet: httpGet:

View file

@ -8,7 +8,9 @@ spec:
ports: ports:
- name: http - name: http
port: 80 port: 80
protocol: TCP
targetPort: http targetPort: http
- name: https - name: https
port: 443 port: 443
protocol: TCP
targetPort: https targetPort: https

View file

@ -246,8 +246,10 @@ spec:
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
protocol: TCP
- name: https - name: https
containerPort: 443 containerPort: 443
protocol: TCP
livenessProbe: livenessProbe:
failureThreshold: 3 failureThreshold: 3
httpGet: httpGet:

View file

@ -21,9 +21,11 @@ spec:
ports: ports:
- name: http - name: http
port: 80 port: 80
protocol: TCP
targetPort: http targetPort: http
- name: https - name: https
port: 443 port: 443
protocol: TCP
targetPort: https targetPort: https
--- ---

View file

@ -25,9 +25,11 @@ spec:
ports: ports:
- name: http - name: http
port: 80 port: 80
protocol: TCP
targetPort: http targetPort: http
- name: https - name: https
port: 443 port: 443
protocol: TCP
targetPort: http targetPort: http
--- ---

View file

@ -19,9 +19,11 @@ spec:
ports: ports:
- name: http - name: http
port: 80 port: 80
protocol: TCP
targetPort: http targetPort: http
- name: https - name: https
port: 443 port: 443
protocol: TCP
targetPort: https targetPort: https
--- ---

View file

@ -15,9 +15,11 @@ spec:
ports: ports:
- name: http - name: http
port: 80 port: 80
protocol: TCP
targetPort: http targetPort: http
- name: https - name: https
port: 443 port: 443
protocol: TCP
targetPort: https targetPort: https
--- ---