fix in deployment
This commit is contained in:
parent
6eacafe945
commit
d32cd4280a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user