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 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: nginx-deployment name: nginx-test
labels: labels:
app: nginx app: nginx
spec: spec:
replicas: 3 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: nginx app: nginx
@@ -16,6 +16,19 @@ spec:
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: nginx:latest image: nginx:alpine
ports: ports:
- containerPort: 80 - containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP