app1 running with nginx

This commit is contained in:
2025-02-26 09:22:16 -05:00
parent dd0f534811
commit cc358ecf93
2 changed files with 20 additions and 10 deletions

View File

@ -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