Files
test/k8s/deployment.yml
Anton Sinitsyn a7f1b75e9c
Some checks failed
Test CI / test (push) Successful in 5s
Deploy to K3s / deploy (push) Failing after 7s
Update k8s/deployment.yml with complete config
2026-02-10 08:26:32 +00:00

35 lines
516 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-test
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP