Files
hello-cicd/k8s/deployment.yaml
Ivan Filipovic 9d98f5b466
All checks were successful
CI/CD Pipeline / build (push) Successful in 1m38s
CI/CD Pipeline / deploy (push) Successful in 1m36s
feat: verzija v2.0
2026-04-20 23:11:02 +02:00

31 lines
639 B
YAML

# k8s/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-cicd
namespace: student-ivanivso7
spec:
replicas: 1
selector:
matchLabels:
app: hello-cicd
template:
metadata:
labels:
app: hello-cicd
spec:
imagePullSecrets:
- name: gitea-creds
containers:
- name: hello-cicd
image: git.fpmoz.sum.ba/ivanivso7/hello-cicd:latest
ports:
- containerPort: 8000
env:
- name: APP_VERSION
value: "v2.0"
resources:
requests: {cpu: 50m, memory: 64Mi}
limits: {cpu: 200m, memory: 128Mi}