cluster.fun/manifests/opengraph/opengraph.yaml

69 lines
1.3 KiB
YAML
Raw 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"
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