From 05e04afeffc3b3b22cc8c90adfd1a2ff38c89be4 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 1 Sep 2020 15:30:27 +0100 Subject: [PATCH] Added Go playground --- manifests/goplayground.yaml | 66 +++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 manifests/goplayground.yaml diff --git a/manifests/goplayground.yaml b/manifests/goplayground.yaml new file mode 100644 index 0000000..3b80170 --- /dev/null +++ b/manifests/goplayground.yaml @@ -0,0 +1,66 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: goplayground +--- +apiVersion: v1 +kind: Service +metadata: + name: goplayground + namespace: goplayground +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: web + name: web + selector: + app: goplayground +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: goplayground + namespace: goplayground +spec: + replicas: 2 + selector: + matchLabels: + app: goplayground + template: + metadata: + labels: + app: goplayground + spec: + containers: + - name: web + image: x1unix/go-playground:1.6.2 + imagePullPolicy: IfNotPresent + ports: + - containerPort: 8000 + name: web +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: goplayground + namespace: goplayground + 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: + - go.cluster.fun + secretName: goplayground-ingress + rules: + - host: go.cluster.fun + http: + paths: + - path: / + backend: + serviceName: goplayground + servicePort: 80 +