Add test nginx deployment and service

This commit is contained in:
Daniel Flanagan 2022-02-08 13:53:07 -06:00
parent e27a2cc019
commit 5e3b856adb
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
spec:
selector:
matchLabels:
run: my-nginx
replicas: 2
template:
metadata:
labels:
run: my-nginx
spec:
containers:
- name: my-nginx
image: nginx
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: my-nginx
labels:
run: my-nginx
spec:
ports:
- port: 80
protocol: TCP
selector:
run: my-nginx