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
ports:
- 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:
requests:
memory: "64Mi"

View File

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

View File

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