From 58b64b73389c51dfe1ac40dfb26fab6b512442ce Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 25 May 2020 19:19:55 +0100 Subject: [PATCH] Added personal dashboard --- manifests/dashboard.yaml | 80 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 manifests/dashboard.yaml diff --git a/manifests/dashboard.yaml b/manifests/dashboard.yaml new file mode 100644 index 0000000..5e5ff78 --- /dev/null +++ b/manifests/dashboard.yaml @@ -0,0 +1,80 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: dashboard +--- +apiVersion: v1 +kind: Secret +metadata: + name: docker-config + namespace: dashboard + 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: dashboard + namespace: dashboard +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: web + name: web + selector: + app: dashboard +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: dashboard + namespace: dashboard +spec: + replicas: 1 + selector: + matchLabels: + app: dashboard + template: + metadata: + labels: + app: dashboard + spec: + imagePullSecrets: + - name: docker-config + containers: + - name: web + image: docker.cluster.fun/private/dashboard:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + name: web +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: dashboard + namespace: dashboard + 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: + - dash.cluster.fun + secretName: dashboard-ingress + rules: + - host: dash.cluster.fun + http: + paths: + - path: / + backend: + serviceName: dashboard + servicePort: 80