2020-05-09 06:00:57 +00:00
|
|
|
apiVersion: v1
|
2020-06-07 15:00:37 +00:00
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: twitter-profile-pic
|
|
|
|
namespace: twitter-profile-pic
|
|
|
|
annotations:
|
|
|
|
kube-1password: d2rt56v47q2wij47qgj27umrky
|
|
|
|
kube-1password/vault: Kubernetes
|
|
|
|
kube-1password/secret-text-key: .env
|
|
|
|
type: Opaque
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
2020-05-09 06:00:57 +00:00
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: twitter-profile-pic
|
|
|
|
namespace: twitter-profile-pic
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: 9090
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: twitter-profile-pic
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: twitter-profile-pic
|
|
|
|
namespace: twitter-profile-pic
|
|
|
|
spec:
|
2020-06-07 15:00:37 +00:00
|
|
|
replicas: 1
|
2020-05-09 06:00:57 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: twitter-profile-pic
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: twitter-profile-pic
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
2022-05-15 12:18:31 +00:00
|
|
|
image: rg.fr-par.scw.cloud/averagemarcus/twitter-profile-pic:latest
|
2020-05-09 06:00:57 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 9090
|
|
|
|
name: web
|
2020-06-05 21:17:50 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2022-05-27 20:06:54 +00:00
|
|
|
memory: 100Mi
|
2020-06-05 21:17:50 +00:00
|
|
|
requests:
|
2022-05-27 20:06:54 +00:00
|
|
|
memory: 100Mi
|
2020-06-07 15:00:37 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: dotenv
|
|
|
|
mountPath: /app/.env
|
|
|
|
subPath: .env
|
|
|
|
volumes:
|
|
|
|
- name: dotenv
|
|
|
|
secret:
|
|
|
|
secretName: twitter-profile-pic
|
2020-05-09 06:00:57 +00:00
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-05-09 06:00:57 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: twitter-profile-pic
|
|
|
|
namespace: twitter-profile-pic
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2020-05-09 06:00:57 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2020-05-09 06:00:57 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- twitter-profile-pic.marcusnoble.co.uk
|
|
|
|
secretName: twitter-profile-pic-ingress
|
|
|
|
rules:
|
|
|
|
- host: twitter-profile-pic.marcusnoble.co.uk
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-09 06:00:57 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: twitter-profile-pic
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-05-09 06:00:57 +00:00
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-05-09 06:00:57 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: twitter-profile-pic-jsox
|
|
|
|
namespace: twitter-profile-pic
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2020-05-09 06:00:57 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2020-05-09 06:00:57 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- twitter-profile-pic.jsoxford.com
|
|
|
|
secretName: twitter-profile-pic-jsox-ingress
|
|
|
|
rules:
|
|
|
|
- host: twitter-profile-pic.jsoxford.com
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-05-09 06:00:57 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: twitter-profile-pic
|
|
|
|
port:
|
|
|
|
number: 80
|
2021-04-01 14:26:32 +00:00
|
|
|
|
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2021-04-01 14:26:32 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: twitter-profile-pic-cluster-fun
|
|
|
|
namespace: twitter-profile-pic
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2021-10-16 08:46:06 +00:00
|
|
|
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
2021-04-01 14:26:32 +00:00
|
|
|
spec:
|
2021-10-16 08:46:06 +00:00
|
|
|
ingressClassName: nginx
|
2021-04-01 14:26:32 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- twitter-profile-pic.cluster.fun
|
|
|
|
secretName: twitter-profile-pic-cluster-fun-ingress
|
|
|
|
rules:
|
|
|
|
- host: twitter-profile-pic.cluster.fun
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2021-04-01 14:26:32 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: twitter-profile-pic
|
|
|
|
port:
|
|
|
|
number: 80
|