cluster.fun/manifests/opengraph/opengraph.yaml

71 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2021-05-11 04:32:41 +00:00
apiVersion: v1
kind: Service
metadata:
2021-05-11 04:43:42 +00:00
name: opengraph
namespace: opengraph
2021-05-11 04:32:41 +00:00
spec:
type: ClusterIP
ports:
- port: 80
2021-05-11 04:43:42 +00:00
targetPort: web
2021-05-11 04:32:41 +00:00
name: web
selector:
2021-05-11 04:43:42 +00:00
app: opengraph
2021-05-11 04:32:41 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
2021-05-11 04:43:42 +00:00
name: opengraph
namespace: opengraph
2021-05-11 04:32:41 +00:00
spec:
replicas: 2
selector:
matchLabels:
2021-05-11 04:43:42 +00:00
app: opengraph
2021-05-11 04:32:41 +00:00
template:
metadata:
labels:
2021-05-11 04:43:42 +00:00
app: opengraph
2021-05-11 04:32:41 +00:00
spec:
containers:
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/opengraph-image-gen:latest
2021-05-11 04:32:41 +00:00
imagePullPolicy: Always
ports:
2021-05-11 04:43:42 +00:00
- containerPort: 3000
2021-05-11 04:32:41 +00:00
name: web
resources:
limits:
2021-07-24 10:03:34 +00:00
memory: 200Mi
2021-05-11 04:32:41 +00:00
requests:
2021-07-24 10:03:34 +00:00
memory: 200Mi
2021-05-11 04:32:41 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
2021-05-11 04:43:42 +00:00
name: opengraph
namespace: opengraph
2021-05-11 04:32:41 +00:00
annotations:
cert-manager.io/cluster-issuer: letsencrypt
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.tls: "true"
ingress.kubernetes.io/ssl-redirect: "true"
traefik.ingress.kubernetes.io/router.entrypoints: websecure
2021-05-11 04:32:41 +00:00
spec:
tls:
- hosts:
2021-05-11 04:43:42 +00:00
- opengraph.cluster.fun
secretName: opengraph-ingress
2021-05-11 04:32:41 +00:00
rules:
2021-05-11 04:43:42 +00:00
- host: opengraph.cluster.fun
2021-05-11 04:32:41 +00:00
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
2021-05-11 04:43:42 +00:00
name: opengraph
2021-05-11 04:32:41 +00:00
port:
number: 80