Add service to nginx test deployment
This commit is contained in:
parent
bf9f633ff1
commit
d14489e9ee
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue