containerized

This commit is contained in:
2024-01-30 11:54:51 +01:00
parent e72dbad617
commit 8fa433f543
18 changed files with 932 additions and 0 deletions

View File

@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: oidc-python-example
labels:
app: oidc-python-example
spec:
replicas: 1
selector:
matchLabels:
app: oidc-python-example
template:
metadata:
labels:
app: oidc-python-example
spec:
containers:
- name: oidc-python-example
image: %IMAGE%
envFrom:
- secretRef:
name: secrets
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: oidc-python-example
spec:
type: ClusterIP
selector:
app: oidc-python-example
ports:
- name: http
targetPort: 8080
port: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: oidc-python-example
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production-http
spec:
tls:
- hosts:
- oidc-python-example.hottis.de
secretName: oidc-python-example-cert
rules:
- host: oidc-python-example.hottis.de
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: oidc-python-example
port:
number: 80