app1 running with nginx
This commit is contained in:
@ -17,5 +17,16 @@ spec:
|
||||
containers:
|
||||
- name: app1
|
||||
image: nginx:1.14.2
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: app1
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: app1
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
nodePort: 30080
|
||||
|
Reference in New Issue
Block a user