From e00db9e633eff66728e64766c24b685dfa41a63e Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 4 Jul 2020 19:42:10 +0100 Subject: [PATCH] Added Paradoxfox.space --- manifests/paradoxfox.yaml | 110 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 manifests/paradoxfox.yaml diff --git a/manifests/paradoxfox.yaml b/manifests/paradoxfox.yaml new file mode 100644 index 0000000..0d522e0 --- /dev/null +++ b/manifests/paradoxfox.yaml @@ -0,0 +1,110 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: paradoxfox +--- +apiVersion: v1 +kind: Secret +metadata: + name: docker-config + namespace: paradoxfox + annotations: + kube-1password: i6ngbk5zf4k52xgwdwnfup5bby + kube-1password/vault: Kubernetes + kube-1password/secret-text-key: .dockerconfigjson +type: kubernetes.io/dockerconfigjson +data: + .dockerconfigjson: e30= +--- +apiVersion: v1 +kind: Service +metadata: + name: paradoxfox + namespace: paradoxfox +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 80 + name: web + selector: + app: paradoxfox +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: paradoxfox + namespace: paradoxfox +spec: + replicas: 1 + selector: + matchLabels: + app: paradoxfox + template: + metadata: + labels: + app: paradoxfox + spec: + imagePullSecrets: + - name: docker-config + containers: + - name: web + image: docker.cluster.fun/private/paradoxfox:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + name: web + resources: + limits: + memory: 200Mi + requests: + memory: 200Mi +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: paradoxfox + namespace: paradoxfox + annotations: + cert-manager.io/cluster-issuer: letsencrypt + traefik.ingress.kubernetes.io/frontend-entry-points: http,https + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/redirect-permanent: "true" +spec: + tls: + - hosts: + - paradoxfox.space + secretName: paradoxfox-ingress + rules: + - host: paradoxfox.space + http: + paths: + - path: / + backend: + serviceName: paradoxfox + servicePort: 80 + +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: paradoxfox-www + namespace: paradoxfox + annotations: + cert-manager.io/cluster-issuer: letsencrypt + traefik.ingress.kubernetes.io/frontend-entry-points: http,https + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/redirect-permanent: "true" +spec: + tls: + - hosts: + - www.paradoxfox.space + secretName: paradoxfox-www-ingress + rules: + - host: www.paradoxfox.space + http: + paths: + - path: / + backend: + serviceName: paradoxfox + servicePort: 80