63 lines
1.2 KiB
Cheetah
Raw Normal View History

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