Use named container ports
This commit is contained in:
parent
8cafe2b3ca
commit
f0bf60c78a
|
@ -31,8 +31,10 @@ spec:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- name: ssh
|
||||||
- containerPort: 2222
|
containerPort: 2222
|
||||||
|
- name: http
|
||||||
|
containerPort: 3000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: credentials
|
- name: credentials
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
|
@ -6,6 +6,7 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 3000
|
port: 3000
|
||||||
|
targetPort: http
|
||||||
selector:
|
selector:
|
||||||
app: siranga
|
app: siranga
|
||||||
---
|
---
|
||||||
|
@ -20,6 +21,6 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- name: ssh
|
- name: ssh
|
||||||
port: 22
|
port: 22
|
||||||
targetPort: 2222
|
targetPort: ssh
|
||||||
selector:
|
selector:
|
||||||
app: siranga
|
app: siranga
|
||||||
|
|
Loading…
Reference in New Issue
Block a user