From 59a545b5eb16f127b46a8e38e7cf78f2ae918aea Mon Sep 17 00:00:00 2001 From: James Gunn Date: Thu, 14 Nov 2024 17:41:58 +0000 Subject: [PATCH] Add k8s resources --- .gitignore | 1 + k8s.yml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 k8s.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..56bd904 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +secret.yml \ No newline at end of file diff --git a/k8s.yml b/k8s.yml new file mode 100644 index 0000000..03f4a69 --- /dev/null +++ b/k8s.yml @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: backstage + namespace: tra-development +spec: + replicas: 1 + selector: + matchLabels: + app: backstage + template: + metadata: + labels: + app: backstage + spec: + containers: + - name: backstage + image: ghcr.io/dfe-digital/tra-backstage-poc:000645ee10c4eb804653038950ceee842c64b28e + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 7007 + envFrom: + - secretRef: + name: backstage-secrets +--- +# kubernetes/backstage-service.yaml +apiVersion: v1 +kind: Service +metadata: + name: backstage + namespace: tra-development +spec: + selector: + app: backstage + ports: + - name: http + port: 80 + targetPort: http \ No newline at end of file