testing workflows
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m17s

This commit is contained in:
MTimka
2026-05-13 13:49:09 -07:00
parent 0f9b7a24e6
commit b5da74f12b
11 changed files with 186 additions and 77 deletions

View File

@@ -1,51 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: python-app
labels:
app: python-app
spec:
containers:
- name: python-app
image: repositry.talutasku.ee/v2/my-python-app:latest
ports:
- containerPort: 8000
resources:
limits:
memory: "128Mi"
cpu: "500m"
requests:
memory: "64Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: python-app
spec:
selector:
app: python-app
ports:
- protocol: TCP
port: 80
targetPort: 8000
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: python-app
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: python-app.talutasku.ee
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: python-app
port:
number: 80

26
k8s/app-deployment.yaml Normal file
View File

@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-app
spec:
replicas: 2
selector:
matchLabels:
app: python-app
template:
metadata:
labels:
app: python-app
spec:
containers:
- name: python-app
image: repositry.talutasku.ee/v2/my-python-app:latest
ports:
- containerPort: 8000
resources:
limits:
memory: "128Mi"
cpu: "500m"
requests:
memory: "64Mi"
cpu: "100m"

6
k8s/configmap.yaml Normal file
View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: python-app-config
data:
IMAGE_TAG: "latest"

View File

@@ -1 +0,0 @@
latest

18
k8s/ingress.yaml Normal file
View File

@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: python-app
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: python-app.talutasku.ee
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: python-app
port:
number: 80

27
k8s/operator.yaml Normal file
View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: configmap-operator
spec:
replicas: 1
selector:
matchLabels:
app: configmap-operator
template:
metadata:
labels:
app: configmap-operator
spec:
containers:
- name: operator
image: repositry.talutasku.ee/v2/configmap-operator:latest
env:
- name: NAMESPACE
value: "default"
resources:
limits:
memory: "64Mi"
cpu: "100m"
requests:
memory: "32Mi"
cpu: "50m"

12
k8s/service.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: python-app
spec:
selector:
app: python-app
ports:
- protocol: TCP
port: 80
targetPort: 8000
type: ClusterIP