Browse Source

Add k8s

main
Victor Roest 7 months ago
parent
commit
9e151ad35c
Signed by: 0x76 GPG Key ID: A3923C699D1A3BDA
  1. 3
      README.md
  2. 52
      k8s/deployment.yaml

3
README.md

@ -0,0 +1,3 @@
# Xirion.net Internal homepage
Running at <https://internal.xirion.net/>

52
k8s/deployment.yaml

@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: xirion-internal
labels:
app: xirion-internal
keel.sh/policy: force
spec:
replicas: 1
selector:
matchLabels:
app: xirion-internal
template:
metadata:
labels:
app: xirion-internal
spec:
containers:
- name: xirion-internal
image: harbor.xirion.net/library/internal.xirion.net
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: xirion-internal
spec:
selector:
app: xirion-internal
ports:
- protocol: TCP
port: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: xirion-internal-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: "internal.xirion.net"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: xirion-internal
port:
number: 8080
Loading…
Cancel
Save