Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
745c1f0
commit bb55e0d
Showing
9 changed files
with
1,193 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
apiVersion: v2 | ||
name: ergochat | ||
version: 1.0.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ergochat | ||
labels: | ||
app: ergochat | ||
data: | ||
"auth.sh": |- | ||
#!/bin/sh | ||
read input | ||
wget --header='CONTENT-TYPE:application/json' --post-data "$input" -O - -q $1 && printf '\n' # This assume no endline ohne the API response | ||
#For testing: | ||
#printf '{"success": true, "accountName": "Brutus5000", "error": null}\n' | ||
"ircd.yaml": |- | ||
{{ tpl ( .Files.Get "config/ircd.yaml") . | indent 4}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ergochat | ||
labels: | ||
app: ergochat | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: ergochat | ||
template: | ||
metadata: | ||
labels: | ||
app: ergochat | ||
spec: | ||
containers: | ||
- image: ghcr.io/ergochat/ergo:v2.13.0 | ||
imagePullPolicy: Always | ||
name: ergochat | ||
ports: | ||
- name: irc-plain | ||
containerPort: 6667 | ||
- name: irc-tls | ||
containerPort: 6697 | ||
- name: websocket | ||
containerPort: 8097 | ||
volumeMounts: | ||
# Also contains the tls certificates for simplicity. | ||
- name: ergochat-data | ||
mountPath: /data | ||
- name: config | ||
mountPath: /ircd | ||
restartPolicy: Always | ||
volumes: | ||
- name: ergochat-data | ||
persistentVolumeClaim: | ||
claimName: ergochat-pvc | ||
- name: config | ||
configMap: | ||
name: ergochat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: IngressRoute | ||
metadata: | ||
name: ergochat-webirc | ||
spec: | ||
entryPoints: | ||
- websecure | ||
routes: | ||
- match: Host(`chat.{{.Values.baseDomain}}`) | ||
kind: Rule | ||
services: | ||
- name: ergochat | ||
port: 8097 | ||
|
||
--- | ||
|
||
apiVersion: traefik.io/v1alpha1 | ||
kind: IngressRouteTCP | ||
metadata: | ||
name: ergochat-irc-plain | ||
spec: | ||
entryPoints: | ||
- irc-plain | ||
routes: | ||
- match: HostSNI(`*`) | ||
services: | ||
- name: ergochat | ||
port: 6667 | ||
--- | ||
|
||
apiVersion: traefik.io/v1alpha1 | ||
kind: IngressRouteTCP | ||
metadata: | ||
name: ergochat-irc-tls | ||
spec: | ||
entryPoints: | ||
- irc-plain | ||
routes: | ||
- match: HostSNI(`*`) | ||
services: | ||
- name: ergochat | ||
port: 6697 | ||
tls: | ||
passthrough: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ergochat | ||
labels: | ||
app: ergochat | ||
spec: | ||
selector: | ||
app: ergochat | ||
ports: | ||
- name: irc-plain | ||
port: 6667 | ||
targetPort: 6667 | ||
- name: irc-tls | ||
port: 6697 | ||
targetPort: 6697 | ||
- name: websocket | ||
port: 8097 | ||
targetPort: 8097 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters