2021-07-07 10:20:41 +00:00
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: tank
|
|
|
|
namespace: tank
|
|
|
|
annotations:
|
|
|
|
kube-1password: g6xle67quzowvvekf6zukjbbm4
|
|
|
|
kube-1password/vault: Kubernetes
|
|
|
|
kube-1password/secret-text-parse: "true"
|
|
|
|
type: Opaque
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: tank
|
|
|
|
namespace: tank
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: web
|
|
|
|
selector:
|
|
|
|
app: tank
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: tank
|
|
|
|
namespace: tank
|
|
|
|
labels:
|
|
|
|
app: tank
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: tank
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: tank
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
2021-12-24 09:58:30 +00:00
|
|
|
image: docker.cluster.fun/averagemarcus/tank:latest
|
2021-07-07 10:20:41 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: tank
|
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
name: web
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 10Mi
|
|
|
|
requests:
|
|
|
|
memory: 10Mi
|
|
|
|
---
|
2022-02-28 08:09:54 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: tank
|
|
|
|
namespace: tank
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
|
|
|
spec:
|
|
|
|
ingressClassName: nginx
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- tank-sms.marcusnoble.co.uk
|
|
|
|
secretName: tank-ingress
|
|
|
|
rules:
|
|
|
|
- host: tank-sms.marcusnoble.co.uk
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: ImplementationSpecific
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: tank
|
|
|
|
port:
|
|
|
|
number: 80
|