updated stuff

This commit is contained in:
ITO Mac
2026-04-07 11:19:32 +02:00
parent 72d691182d
commit 569b441f72
5 changed files with 26 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
kubeconfig-Blazp04.yaml

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: moj-servis-config
namespace: student-blazp04
data:
SERVICE_NAME: "distribuirani-service"
LOG_LEVEL: "info"
WELCOME_MSG: "Pozdrav iz FPMOZ k3s clustera!"

View File

@@ -18,6 +18,20 @@ spec:
image: git.fpmoz.sum.ba/blazp04/distribuirani:1.0 image: git.fpmoz.sum.ba/blazp04/distribuirani:1.0
ports: ports:
- containerPort: 8000 - containerPort: 8000
envFrom:
- configMapRef:
name: distribuirani-config
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: distribuirani-secret
key: DB_PASSWORD
- name: API_KEY
valueFrom:
secretKeyRef:
name: distribuirani-secret
key: API_KEY
resources: resources:
requests: requests:
memory: "64Mi" memory: "64Mi"

View File

@@ -4,7 +4,7 @@ metadata:
name: distribuirani-ingress name: distribuirani-ingress
namespace: student-blazp04 namespace: student-blazp04
annotations: annotations:
kubernetes.io/ingress.class: nginx traefik.ingress.kubernetes.io/router.entrypoints: web
spec: spec:
rules: rules:
- host: blazp04.argocd.fpmoz.sum.ba - host: blazp04.argocd.fpmoz.sum.ba

View File

@@ -10,4 +10,4 @@ spec:
- port: 80 - port: 80
targetPort: 8000 targetPort: 8000
protocol: TCP protocol: TCP
type: NodePort type: ClusterIP