This commit is contained in:
2020-08-23 17:13:28 +10:00
parent 82005e03e4
commit dc93c7946c
4 changed files with 59 additions and 4 deletions
+9
View File
@@ -79,3 +79,12 @@ k apply -f prometheus-service-account.yaml -n default
# create service monitor for telegraf
k apply -f telegraf-service-monitor.yaml -n default
# ddns
k apply -f ddns.yaml -n home-apps
# cluster issuers
k apply -f lets.yaml
+45
View File
@@ -26,6 +26,13 @@ spec:
value: A
- name: GODADDY_NAME
value: home
resources:
requests:
cpu: 20m
memory: 64Mi
limits:
cpu: 40m
memory: 128Mi
---
apiVersion: apps/v1
@@ -56,3 +63,41 @@ spec:
value: A
- name: GODADDY_NAME
value: "*.home"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ddns-badges
spec:
selector:
matchLabels:
app: ddns-badges
replicas: 1
template:
metadata:
labels:
app: ddns-badges
spec:
containers:
- name: ddns-badges
image: peteward44/godaddy-ddns
env:
- name: GODADDY_KEY
value: 9ZpTeFUt9G3_MxGrYikGF6n77nAjB9tQow
- name: GODADDY_SECRET
value: MxHfis9ADQgwqtdRTJ5KPb
- name: GODADDY_DOMAIN
value: toozhao.com
- name: GODADDY_TYPE
value: A
- name: GODADDY_NAME
value: badges
resources:
requests:
cpu: 20m
memory: 64Mi
limits:
cpu: 40m
memory: 128Mi
+4 -3
View File
@@ -353,9 +353,10 @@ spec:
livenessProbe:
exec:
command:
- "curl http://localhost:8001 && curl google.com"
initialDelaySeconds: 300
periodSeconds: 300
- curl
- http://localhost:8001
initialDelaySeconds: 60
periodSeconds: 60
---
apiVersion: v1
+1 -1
View File
@@ -16,7 +16,7 @@ ingress:
enabled: true
path: /
hosts:
- id.home.toozhao.com
- id.homeid.home.toozhao.com
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod