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