ungleich-k8s/generic/nginx-test-deployment.yaml
Nico Schottelius 324dee6850 +hostnetwork test
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2022-09-18 17:55:35 +02:00

30 lines
465 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
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