diff --git a/apply.sh b/apply.sh index 4d7386b..63cc318 100755 --- a/apply.sh +++ b/apply.sh @@ -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 diff --git a/ddns.yaml b/ddns.yaml index 159a925..cb21107 100644 --- a/ddns.yaml +++ b/ddns.yaml @@ -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 diff --git a/media.yaml b/media.yaml index 601fb35..0b626c8 100644 --- a/media.yaml +++ b/media.yaml @@ -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 diff --git a/oauth2-proxy-config.yaml b/oauth2-proxy-config.yaml index 5bc32fd..2af6463 100644 --- a/oauth2-proxy-config.yaml +++ b/oauth2-proxy-config.yaml @@ -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