2022-01-22 12:23:08 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: docker-config
|
|
|
|
namespace: starling
|
|
|
|
annotations:
|
|
|
|
kube-1password: i6ngbk5zf4k52xgwdwnfup5bby
|
|
|
|
kube-1password/vault: Kubernetes
|
|
|
|
kube-1password/secret-text-key: .dockerconfigjson
|
|
|
|
type: kubernetes.io/dockerconfigjson
|
|
|
|
data:
|
|
|
|
.dockerconfigjson: e30=
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: starling
|
|
|
|
namespace: starling
|
|
|
|
annotations:
|
2022-02-05 06:41:05 +00:00
|
|
|
kube-1password: ufxpki65ffgprn2upksirweeie
|
2022-01-22 12:23:08 +00:00
|
|
|
kube-1password/vault: Kubernetes
|
2022-02-05 06:41:05 +00:00
|
|
|
kube-1password/secret-text-parse: "true"
|
2022-01-22 12:23:08 +00:00
|
|
|
type: Opaque
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: starling
|
|
|
|
namespace: starling
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: web
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: starling
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: starling
|
|
|
|
namespace: starling
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: starling
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: starling
|
|
|
|
spec:
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: docker-config
|
|
|
|
containers:
|
|
|
|
- name: web
|
2022-05-15 09:14:49 +00:00
|
|
|
image: rg.fr-par.scw.cloud/averagemarcus-private/starling:latest
|
2022-01-22 12:23:08 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
env:
|
|
|
|
- name: PORT
|
|
|
|
value: "3000"
|
|
|
|
- name: SHARED_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: starling
|
2022-02-05 06:41:05 +00:00
|
|
|
key: SHARED_SECRET
|
|
|
|
- name: ACCESS_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: starling
|
|
|
|
key: ACCESS_TOKEN
|
2022-01-22 12:23:08 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
name: web
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: starling
|
|
|
|
namespace: starling
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
|
|
spec:
|
|
|
|
ingressClassName: nginx
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- starling.marcusnoble.co.uk
|
|
|
|
secretName: starling-ingress
|
|
|
|
rules:
|
|
|
|
- host: starling.marcusnoble.co.uk
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: ImplementationSpecific
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: starling
|
|
|
|
port:
|
|
|
|
number: 80
|