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,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mywebapp
spec:
replicas: 1
template:
spec: # Pod spec
containers:
- name: mycontainer
image: "devopsjourney1/mywebapp:latest"
ports:
- containerPort: 80
envFrom:
- configMapRef:
name: mykustom-map
resources:
requests:
memory: "16Mi"
cpu: "50m" # 500milliCPUs (1/2 CPU)
limits:
memory: "128Mi"
cpu: "100m"

View File

@@ -0,0 +1,15 @@
resources:
- deployment.yaml
- service.yaml
commonLabels:
app: kustomwebapp
commonAnnotations:
app: mykustom-annontations
namePrefix:
kustom-
nameSuffix:
-v1

View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: mywebapp
spec:
ports:
- port: 80
protocol: TCP
name: flask
type: NodePort