nginx/manifest.yaml

42 lines
671 B
YAML
Raw Normal View History

2023-06-25 16:02:08 +00:00
kind: Service
apiVersion: v1
metadata:
name: nginx
labels:
app: nginx
2023-06-25 18:59:20 +00:00
annotations:
metallb.universe.tf/loadBalancerIPs: 172.27.15.205
2023-06-25 16:02:08 +00:00
spec:
selector:
app: nginx
ports:
- port: 80
protocol: TCP
targetPort: 80
2023-06-25 18:59:20 +00:00
# type: ClusterIP
type: LoadBalancer
2023-06-25 16:02:08 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
imagePullPolicy: Always
ports:
- containerPort: 80
protocol: TCP