MIgrating mopbot & corona-apI
This commit is contained in:
parent
62af92be61
commit
3137576937
|
|
@ -105,3 +105,8 @@ for i in $( echo $namespaces ) ; do
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Add mopbot & corona & corona-api
|
||||||
|
|
||||||
|
```sh
|
||||||
|
kubectl apply -f datalab/mopbot.yaml
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,64 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: corona-api
|
||||||
|
labels:
|
||||||
|
app: corona-api
|
||||||
|
namespace: datalab
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: corona-api
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: corona-api
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: "hub-moritzgraf-de"
|
||||||
|
containers:
|
||||||
|
- image: hub.moritzgraf.de:5000/corona_plumber:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
name: corona-api
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: corona-api
|
||||||
|
namespace: datalab
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 8000
|
||||||
|
targetPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
selector:
|
||||||
|
app: corona-api
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: corona-api
|
||||||
|
namespace: datalab
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
|
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- "corona-api.haumdaucher.de"
|
||||||
|
secretName: corona-api-haumdaucher-de
|
||||||
|
rules:
|
||||||
|
- host: corona-api.haumdaucher.de
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: corona-api
|
||||||
|
servicePort: 8000
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
app: mopbot
|
||||||
|
name: mopbot
|
||||||
|
namespace: datalab
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: mopbot
|
||||||
|
strategy: {}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
app: mopbot
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: "hub-moritzgraf-de"
|
||||||
|
containers:
|
||||||
|
- image: hub.moritzgraf.de:5000/mopbot:latest
|
||||||
|
name: mopbot
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "128Mi"
|
||||||
|
env:
|
||||||
|
- name: API_KEY_OWA
|
||||||
|
value: "cd02db6d0040221dadad762b91d558c3"
|
||||||
|
- name: API_KEY_IMGUR_CLIENT_ID
|
||||||
|
value: "018bc62e4d456b0"
|
||||||
|
- name: API_KEY_IMGUR_CLIENT_SECRET
|
||||||
|
value: "820af807817a66dd9b28e85d717fb382a4dc8e53"
|
||||||
|
- name: TELEGRAM_TOKEN
|
||||||
|
value: "353004365:AAFF1hSa6IiUAmLBAKiSg6Wi1g9lVQ2L6rw"
|
||||||
|
- name: API_KEY_TANKER
|
||||||
|
value: "0376b4b4-5829-15a3-c391-15d8b20d3d4e"
|
||||||
|
|
||||||
Loading…
Reference in New Issue