cluster.fun/manifests/paradoxfox/storefront.yaml
Marcus Noble c236e72c30
Scale down paradoxfox
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-09-22 06:06:47 +01:00

110 lines
2.5 KiB
YAML

apiVersion: v1
kind: Secret
metadata:
name: paradoxfox-storefront
namespace: paradoxfox
labels:
app.kubernetes.io/name: paradoxfox
app.kubernetes.io/component: storefront
annotations:
kube-1password: p2lo4qsjg47vpncmmd6qyxatqy
kube-1password/vault: Kubernetes
kube-1password/secret-text-parse: "true"
type: Opaque
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: paradoxfox-storefront
namespace: paradoxfox
labels:
app.kubernetes.io/name: paradoxfox
app.kubernetes.io/component: storefront
spec:
replicas: 0
selector:
matchLabels:
app.kubernetes.io/name: paradoxfox
app.kubernetes.io/component: storefront
template:
metadata:
labels:
app.kubernetes.io/name: paradoxfox
app.kubernetes.io/component: storefront
spec:
imagePullSecrets:
- name: docker-config
containers:
- name: paradoxfox-storefront
image: rg.fr-par.scw.cloud/averagemarcus-private/paradoxfox-storefront:latest
imagePullPolicy: Always
ports:
- containerPort: 9000
name: web
env:
- name: NODE_ENV
value: "production"
- name: PORT
value: "9000"
- name: NEXT_PUBLIC_MEDUSA_BACKEND_URL
value: "https://api.paradoxfox.shop"
envFrom:
- secretRef:
name: paradoxfox-storefront
---
apiVersion: v1
kind: Service
metadata:
name: paradoxfox-storefront
namespace: paradoxfox
labels:
app.kubernetes.io/name: paradoxfox
app.kubernetes.io/component: storefront
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
app.kubernetes.io/name: paradoxfox
app.kubernetes.io/component: storefront
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: paradoxfox-storefront
namespace: paradoxfox
labels:
app.kubernetes.io/name: paradoxfox
app.kubernetes.io/component: storefront
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/temporal-redirect: https://www.etsy.com/shop/paradoxfoxuk
spec:
ingressClassName: nginx
tls:
- hosts:
- paradoxfox.shop
secretName: paradoxfox-storefront-ingress
rules:
- host: paradoxfox.shop
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: paradoxfox-storefront
port:
number: 80
---