From d32cd4280a3440bde7e922dff871b7fabe86a5c0 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 30 Jan 2024 10:57:20 +0100 Subject: [PATCH] fix in deployment --- deployment/deploy-yml.tmpl | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/deployment/deploy-yml.tmpl b/deployment/deploy-yml.tmpl index 0a0e81e..ada1c1f 100644 --- a/deployment/deploy-yml.tmpl +++ b/deployment/deploy-yml.tmpl @@ -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