updated stuff
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
kubeconfig-Blazp04.yaml
|
||||||
9
k8s/distribuirani/configmap.yaml
Normal file
9
k8s/distribuirani/configmap.yaml
Normal 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!"
|
||||||
@@ -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"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ spec:
|
|||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8000
|
targetPort: 8000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
|
|||||||
Reference in New Issue
Block a user