Update k8s/deployment.yml with complete config
Some checks failed
Test CI / test (push) Successful in 5s
Deploy to K3s / deploy (push) Failing after 7s

This commit is contained in:
2026-02-10 08:26:32 +00:00
parent 5d89b2f87c
commit a7f1b75e9c

View File

@@ -1,11 +1,11 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
name: nginx-test
labels:
app: nginx
spec:
replicas: 3
replicas: 2
selector:
matchLabels:
app: nginx
@@ -16,6 +16,19 @@ spec:
spec:
containers:
- name: nginx
image: nginx:latest
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