This commit is contained in:
douzeb 2022-12-16 03:29:49 +01:00
parent bf353c357f
commit 2435c84770
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,8 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: k8s-poc-nginx-deployment name: k8s-poc-nginx-deployment
labels:
app: k8s-poc-nginx
spec: spec:
selector: selector:
matchLabels: matchLabels:

View file

@ -5,7 +5,7 @@ metadata:
spec: spec:
type: LoadBalancer type: LoadBalancer
selector: selector:
app: nginx app: k8s-poc-nginx
ports: ports:
- port: 80 - port: 80
targetPort: 80 targetPort: 80