You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.3 KiB
YAML

1 year ago
apiVersion: v1
kind: Namespace
metadata:
name: plantwiki
labels:
name: plantwiki
---
1 year ago
apiVersion: apps/v1
kind: Deployment
metadata:
name: plantwiki
1 year ago
namespace: plantwiki
1 year ago
spec:
replicas: 2
1 year ago
selector:
matchLabels:
app: plantwiki
template:
metadata:
labels:
app: plantwiki
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: plantwiki
1 year ago
containers:
- image: git.trivernis.net/trivernis/plantwiki:latest
name: plantwiki
ports:
- name: port-plantwiki
containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: plantwiki-srv
1 year ago
namespace: plantwiki
1 year ago
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: plantwiki
type: ClusterIP
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: plantwiki-route
1 year ago
namespace: plantwiki
1 year ago
spec:
entryPoints:
- web
routes:
- match: Host(`plantwiki.trivernis.dev`)
kind: Rule
services:
- name: plantwiki-srv
port: 80
- match: Host(`plantwiki.trivernis.net`)
kind: Rule
services:
- name: plantwiki-srv
port: 80