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