fix in deployment
This commit is contained in:
parent
6eacafe945
commit
d32cd4280a
@ -1,33 +1,25 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: locsrv
|
name: oidc-python-example
|
||||||
namespace: homea
|
|
||||||
labels:
|
labels:
|
||||||
app: locsrv
|
app: oidc-python-example
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: locsrv
|
app: oidc-python-example
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: locsrv
|
app: oidc-python-example
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: locsrv
|
- name: oidc-python-example
|
||||||
image: %IMAGE%
|
image: %IMAGE%
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: locsrv-db-cred
|
name: secrets
|
||||||
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
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
@ -35,11 +27,11 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: locative
|
name: oidc-python-example
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app: locsrv
|
app: oidc-python-example
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
@ -48,23 +40,23 @@ spec:
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: locative
|
name: oidc-python-example
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production-http
|
cert-manager.io/cluster-issuer: letsencrypt-production-http
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- locative.hottis.de
|
- oidc-python-example.hottis.de
|
||||||
secretName: locative-cert
|
secretName: oidc-python-example-cert
|
||||||
rules:
|
rules:
|
||||||
- host: locative.hottis.de
|
- host: oidc-python-example.hottis.de
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: locative
|
name: oidc-python-example
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user