cluster.fun/manifests/starling/starling.yaml

107 lines
2.2 KiB
YAML
Raw Normal View History

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:
2022-05-27 20:06:54 +00:00
replicas: 1
2022-01-22 12:23:08 +00:00
selector:
matchLabels:
app: starling
template:
metadata:
labels:
app: starling
spec:
imagePullSecrets:
- name: docker-config
containers:
- name: web
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
2022-05-27 20:06:54 +00:00
resources:
limits:
memory: 50Mi
requests:
memory: 50Mi
2022-01-22 12:23:08 +00:00
---
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