initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./thelounge
|
||||
# - ./znc
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: thelounge
|
||||
namespace: irc
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: external
|
||||
namespace: istio-system
|
||||
hostnames:
|
||||
- ${THELOUNGE_HOSTNAME}
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: thelounge
|
||||
port: 9000
|
||||
@@ -0,0 +1,14 @@
|
||||
## Service
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: thelounge
|
||||
labels:
|
||||
app.kubernetes.io/name: thelounge
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9000
|
||||
selector:
|
||||
app.kubernetes.io/name: thelounge
|
||||
@@ -0,0 +1,40 @@
|
||||
## StatefulSet
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: thelounge
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: thelounge
|
||||
serviceName: "thelounge"
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: thelounge
|
||||
spec:
|
||||
containers:
|
||||
- name: thelounge
|
||||
image: ghcr.io/thelounge/thelounge:latest
|
||||
ports:
|
||||
- containerPort: 9000
|
||||
name: http-9000
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: "/var/opt/thelounge"
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: config
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 4Gi
|
||||
@@ -0,0 +1,16 @@
|
||||
## Service
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: znc
|
||||
labels:
|
||||
app.kubernetes.io/name: znc
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/hostname: ${ZNC_HOSTNAME}
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
ports:
|
||||
- port: 6501
|
||||
selector:
|
||||
app.kubernetes.io/name: znc
|
||||
@@ -0,0 +1,40 @@
|
||||
## StatefulSet
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: znc
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: znc
|
||||
serviceName: "znc"
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: znc
|
||||
spec:
|
||||
containers:
|
||||
- name: znc
|
||||
image: lscr.io/linuxserver/znc:latest
|
||||
ports:
|
||||
- containerPort: 6501
|
||||
name: irc-6501
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: "/app/config"
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: config
|
||||
spec:
|
||||
accessModes: [ "ReadWriteOnce" ]
|
||||
resources:
|
||||
requests:
|
||||
storage: 4Gi
|
||||
Reference in New Issue
Block a user