init: hello-cicd project setup

This commit is contained in:
Ivan Filipovic
2026-04-14 10:35:36 +02:00
parent 3104c4b95a
commit 6f3f7efbd9
6 changed files with 77 additions and 0 deletions

30
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,30 @@
# 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: "latest"
resources:
requests: {cpu: 50m, memory: 64Mi}
limits: {cpu: 200m, memory: 128Mi}

13
k8s/service.yaml Normal file
View File

@@ -0,0 +1,13 @@
# k8s/service.yaml
apiVersion: v1
kind: Service
metadata:
name: hello-cicd-svc
namespace: student-VAŠ_KORISNIK
spec:
selector:
app: hello-cicd
ports:
- port: 80
targetPort: 8000
type: NodePort