Add service to nginx test deployment

This commit is contained in:
Nico Schottelius 2021-06-05 18:24:30 +02:00
parent bf9f633ff1
commit d14489e9ee
1 changed files with 11 additions and 0 deletions

View File

@ -17,3 +17,14 @@ spec:
image: nginx:1.20.0-alpine
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80