Files
helloo-cicdd/k8s/deployment.yaml

30 lines
648 B
YAML

# k8s/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-cicd
namespace: student-marijanela218
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/Marijanela218/hello-cicd:latest
ports:
- containerPort: 8000
env:
- name: APP_VERSION
value: "latest"
resources:
requests: {cpu: 50m, memory: 64Mi}
limits: {cpu: 200m, memory: 128Mi}