initial commit

This commit is contained in:
2025-09-29 20:09:03 +02:00
commit 594aa43c74
20 changed files with 309 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
servicename=$(k get service -l "app={{ .Values.appName }}" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace <namespace> port-forward service/{{ .Values.appName }} 8888:80

View File

@@ -0,0 +1,8 @@
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ .Values.configmap.name }}
data:
BG_COLOR: '#12181b'
FONT_COLOR: '#FFFFFF'
CUSTOM_HEADER: {{ .Values.configmap.data.CUSTOM_HEADER }}

View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.appName }}
labels:
app: {{ .Values.appName }}
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: {{ .Values.appName }}
tier: frontend
template:
metadata:
labels:
app: {{ .Values.appName }}
tier: frontend
spec: # Pod spec
containers:
- name: mycontainer
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: {{ .Values.configmap.name }}
resources:
requests:
memory: "16Mi"
cpu: "50m" # 500milliCPUs (1/2 CPU)
limits:
memory: "128Mi"
cpu: "100m"

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.appName }}
labels:
app: {{ .Values.appName }}
spec:
ports:
- port: 80
protocol: TCP
name: flask
selector:
app: {{ .Values.appName }}
tier: frontend
type: NodePort