2021-04-01 14:26:40 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: feed-fetcher
|
|
|
|
namespace: feed-fetcher
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: web
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: feed-fetcher
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: feed-fetcher
|
|
|
|
namespace: feed-fetcher
|
|
|
|
spec:
|
2022-01-15 10:49:21 +00:00
|
|
|
replicas: 1
|
2021-04-01 14:26:40 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: feed-fetcher
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: feed-fetcher
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
2022-05-15 12:18:31 +00:00
|
|
|
image: rg.fr-par.scw.cloud/averagemarcus/feed-fetcher:latest
|
2021-04-01 14:26:40 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
name: web
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: feed-fetcher
|
|
|
|
namespace: feed-fetcher
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2022-05-31 12:55:15 +00:00
|
|
|
kubernetes.io/ingress.class: traefik
|
|
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
2022-10-24 06:20:16 +00:00
|
|
|
ingress.kubernetes.io/ssl-redirect: "true"
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
2021-04-01 14:26:40 +00:00
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- feed-fetcher.cluster.fun
|
|
|
|
secretName: feed-fetcher-ingress
|
|
|
|
rules:
|
|
|
|
- host: feed-fetcher.cluster.fun
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: ImplementationSpecific
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: feed-fetcher
|
|
|
|
port:
|
|
|
|
number: 80
|
|
|
|
|