2020-10-03 12:20:33 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: docker-config
|
|
|
|
namespace: anniversary
|
|
|
|
annotations:
|
|
|
|
kube-1password: i6ngbk5zf4k52xgwdwnfup5bby
|
|
|
|
kube-1password/vault: Kubernetes
|
|
|
|
kube-1password/secret-text-key: .dockerconfigjson
|
|
|
|
type: kubernetes.io/dockerconfigjson
|
|
|
|
data:
|
|
|
|
.dockerconfigjson: e30=
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: anniversary
|
|
|
|
namespace: anniversary
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: web
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: anniversary
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: anniversary
|
|
|
|
namespace: anniversary
|
|
|
|
spec:
|
2022-01-15 10:49:21 +00:00
|
|
|
replicas: 0
|
2020-10-03 12:20:33 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: anniversary
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: anniversary
|
|
|
|
spec:
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: docker-config
|
|
|
|
containers:
|
|
|
|
- name: web
|
2022-05-15 09:14:49 +00:00
|
|
|
image: rg.fr-par.scw.cloud/averagemarcus-private/11-year-anniversary:latest
|
2020-10-03 12:20:33 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: web
|
|
|
|
resources:
|
|
|
|
limits:
|
2021-05-21 10:56:07 +00:00
|
|
|
memory: 5Mi
|
2020-10-03 12:20:33 +00:00
|
|
|
requests:
|
2021-05-21 10:56:07 +00:00
|
|
|
memory: 5Mi
|
2020-10-03 12:20:33 +00:00
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-10-03 12:20:33 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: anniversary
|
|
|
|
namespace: anniversary
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2020-10-03 12:20:33 +00:00
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- 11-year-anniversary.marcusnoble.co.uk
|
|
|
|
secretName: anniversary-ingress
|
|
|
|
rules:
|
|
|
|
- host: 11-year-anniversary.marcusnoble.co.uk
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-10-03 12:20:33 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: anniversary
|
|
|
|
port:
|
|
|
|
number: 80
|