fix in deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-01-30 10:57:20 +01:00
parent 6eacafe945
commit d32cd4280a
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -1,33 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: locsrv
namespace: homea
name: oidc-python-example
labels:
app: locsrv
app: oidc-python-example
spec:
replicas: 1
selector:
matchLabels:
app: locsrv
app: oidc-python-example
template:
metadata:
labels:
app: locsrv
app: oidc-python-example
spec:
containers:
- name: locsrv
- name: oidc-python-example
image: %IMAGE%
envFrom:
- secretRef:
name: locsrv-db-cred
env:
- name: MQTT_BROKER
value: mqtt://emqx01-anonymous-cluster-internal.broker.svc.cluster.local:1883
- name: MQTT_TOPIC
value: locative/event
- name: GIN_MODE
value: release
name: secrets
ports:
- containerPort: 8080
protocol: TCP
@ -35,11 +27,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: locative
name: oidc-python-example
spec:
type: ClusterIP
selector:
app: locsrv
app: oidc-python-example
ports:
- name: http
targetPort: 8080
@ -48,23 +40,23 @@ spec:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: locative
name: oidc-python-example
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production-http
spec:
tls:
- hosts:
- locative.hottis.de
secretName: locative-cert
- oidc-python-example.hottis.de
secretName: oidc-python-example-cert
rules:
- host: locative.hottis.de
- host: oidc-python-example.hottis.de
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: locative
name: oidc-python-example
port:
number: 80