cluster.fun/manifests/link/link.yaml

88 lines
1.7 KiB
YAML
Raw Normal View History

2022-01-19 19:44:47 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
name: urls-map
namespace: link
labels:
app: link
data:
urls.yaml: |
2022-01-19 20:49:24 +00:00
mn: https://marcusnoble.co.uk
2022-01-20 06:42:59 +00:00
whites: https://twitter.com/whites11/status/1484053621448785920
2022-02-07 09:48:49 +00:00
devopsnotts22: https://noti.st/averagemarcus/E8Ldoh/managing-kubernetes-without-losing-your-cool
2022-02-12 08:04:26 +00:00
klustered: https://gist.githubusercontent.com/AverageMarcus/e58301ecf3455caa1638c3ffe70ed138/raw/klustered.sh
2022-01-19 19:44:47 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: link
namespace: link
labels:
app: link
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
app: link
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: link
namespace: link
labels:
app: link
spec:
replicas: 1
selector:
matchLabels:
app: link
template:
metadata:
labels:
app: link
spec:
containers:
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/link:latest
2022-01-19 19:44:47 +00:00
imagePullPolicy: Always
ports:
- containerPort: 5050
name: web
volumeMounts:
- name: config
2022-01-19 20:45:08 +00:00
mountPath: /config
2022-01-19 19:44:47 +00:00
volumes:
- name: config
2022-01-19 19:53:35 +00:00
configMap:
2022-01-19 19:44:47 +00:00
name: urls-map
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: link
namespace: link
annotations:
cert-manager.io/cluster-issuer: letsencrypt
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.tls: "true"
2022-01-19 19:44:47 +00:00
spec:
tls:
- hosts:
- go-get.link
secretName: link-ingress
rules:
- host: go-get.link
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: link
port:
number: 80