Skip to content

Commit

Permalink
add rustdesk
Browse files Browse the repository at this point in the history
  • Loading branch information
eltorio committed Mar 20, 2024
1 parent 1cb9e98 commit 142b2b5
Show file tree
Hide file tree
Showing 38 changed files with 475 additions and 163 deletions.
4 changes: 2 additions & 2 deletions charts/dolidock/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.11.3
version: 0.11.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "18.0.5.0"
appVersion: "19.0.0.0"

dependencies:
- name: flex-smtpd
Expand Down
2 changes: 2 additions & 0 deletions charts/dolidock/templates/deployment-dolidock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ spec:
value: {{ .Values.dolidock.s3Cryptoken | quote}}
- name: DOLI_INIT_FROM_S3
value: {{ .Values.dolidock.doliInitFromS3 | quote }}
- name: S3_DOLIDOCK_FILE
value: {{ .Values.dolidock.s3DolidockFile | quote }}
imagePullPolicy: {{ .Values.dolidock.imagePullPolicy }}
image: {{ .Values.dolidock.image.repository }}:{{ .Values.dolidock.image.tag | default .Chart.AppVersion }}
name: dolidock
Expand Down
1 change: 1 addition & 0 deletions charts/dolidock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dolidock:
s3SecretKey: "random-secret-key"
s3Region: "random-region"
s3Cryptoken: "random-cryptoken"
s3DolidockFile: ""
doliInitFromS3: "false"
imagePullPolicy: IfNotPresent
updateStrategy: RollingUpdate # Recreate | RollingUpdate
Expand Down
40 changes: 20 additions & 20 deletions charts/gitea/values.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
smtpd:
updateStrategy: RollingUpdate # Recreate | RollingUpdate
useCloudflareDDNS: "0"
useLetsEncrypt: "0"
relayHost: ""
ports:
- name: "25"
port: 25
targetPort: 25
replicas: 1
flex-smtpd:
service:
name: smtpd
config:
useCloudflareDDNS: "0"
useLetsEncrypt: "0"
useLetsEncryptStaging: "0"
postfixHostname: fake-gitea.example.com
allowedSenderDomains: example.com
dkimSelector: dkim-selector
dkimPrivateKey: "-----BEGIN RSA PRIVATE KEY-----\nFAKE_PRIVATE_KEY\n-----END RSA PRIVATE KEY-----"
relayHost: "[fake-smtp.example.com]:587"
relayHostUser: "fake-user@example.com"
relayHostPassword: "fake-password"
certificateIssuer: fake-issuer
certificateSecretName: fake-secret-name
cloudflareApiKey: fake-api-key
cloudflareDnsRecords: fake-dns-record.example.com
cloudflareZoneId: "fake-zone-id"
image:
repository: highcanfly/smtp-relay
tag: latest
resources:
limits:
cpu: 500m
memory: "300Mi"
requests:
cpu: 10m
memory: "30Mi"
type: ClusterIP
tag: v4.1.0g


gitea:
Expand Down
2 changes: 1 addition & 1 deletion charts/odoo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ appVersion: "16.0.0.28"

dependencies:
- name: odoo
version: 25.0.0
version: 25.0.1
repository: oci://registry-1.docker.io/bitnamicharts
- name: flex-smtpd
version: 0.1.6
Expand Down
6 changes: 6 additions & 0 deletions charts/sctgdesk-rendezvous/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: SctgDesk-RendezVous
description: A Helm chart for Kubernetes
type: application
version: 1.0.0
appVersion: 1.0.0
9 changes: 9 additions & 0 deletions charts/sctgdesk-rendezvous/templates/configmap-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-api-config
data:
config.yml: |
dbtype: 'sqlite3'
authkey: {{ .Values.api.authkey }}
cryptkey: {{ .Values.api.cryptkey }}
41 changes: 41 additions & 0 deletions charts/sctgdesk-rendezvous/templates/deployment-api-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-api
labels:
app: {{ .Release.Name }}-api
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-api
template:
metadata:
labels:
app: {{ .Release.Name }}-api
spec:
containers:
- name: {{ .Release.Name }}-api-server-container
image: eltorio/sctgdesk-api-server:v1.4.5
command:
- "/bin/sh"
- "-c"
- "ln -svf /app/conf/configmap/config.yml /app/conf/config.yml && [ -f /data/sqlite3.db ] && ln -s /data/sqlite3.db /app/sqlite3.db || true && /app/rustdesk-api-server"
ports:
- containerPort: 21114
volumeMounts:
{{- if .Values.persistence.enabled }}
- name: data
mountPath: /data
{{- end }}
- name: config-volume
mountPath: /app/conf/configmap
volumes:
- name: data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Release.Name }}-pvc
{{- end }}
- name: config-volume
configMap:
name: {{ .Release.Name }}-api-config
21 changes: 21 additions & 0 deletions charts/sctgdesk-rendezvous/templates/gateway-hbb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.gateway.enabled }}
{{- $ports := list 21115 21116 21117 21118 -}}
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: hbbr-hbbs-gateway
namespace: {{ .Release.Namespace }}
spec:
gatewayClassName: haproxy-gatewayclass
listeners:
{{- range $ports }}
- name: port-{{ . }}
protocol: TCP
port: {{ . }}
allowedRoutes:
kinds:
- kind: TCPRoute
namespaces:
from: Same
{{- end }}
{{- end}}
31 changes: 31 additions & 0 deletions charts/sctgdesk-rendezvous/templates/ingress-api-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-api-server-ingress
annotations:
{{- if .Values.ingress.annotations }}
{{- toYaml .Values.ingress.annotations | nindent 4 }}
{{- end }}
{{- if .Values.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.clusterIssuer }}
{{- end }}
spec:
{{- if .Values.ingress.clusterIssuer }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Release.Name }}-tls
{{- end }}
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: {{ .Release.Name }}-api-server-service
port:
number: 21114
{{- end }}
72 changes: 72 additions & 0 deletions charts/sctgdesk-rendezvous/templates/pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-hbb
labels:
app: {{ .Release.Name }}-hbb
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-hbb
template:
metadata:
labels:
app: {{ .Release.Name }}-hbb
spec:
restartPolicy: Always
volumes:
- name: data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Release.Name }}-pvc
{{- else }}
emptyDir: {}
{{- end }}
- name: secret-volume
secret:
secretName: {{ .Release.Name }}-secret
containers:
- name: hbbs
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
# command: [ "{{ .Values.hbbs.command }}" ]
command: [ "/bin/sh", "-c", "ln -svf {{ .Values.volume.mountPath }}/secrets/* {{ .Values.volume.mountPath }}/ && {{ .Values.hbbs.command }}" ]
env:
- name: KEY_PUB
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-secret
key: id_ed25519.pub
- name: KEY_PRIV
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-secret
key: id_ed25519
volumeMounts:
- name: data
mountPath: {{ .Values.volume.mountPath }}
- name: secret-volume
mountPath: "{{ .Values.volume.mountPath }}/secrets"
readOnly: true
- name: hbbr
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: [ "/bin/sh", "-c", "ln -svf {{ .Values.volume.mountPath }}/secrets/* {{ .Values.volume.mountPath }}/ && {{ .Values.hbbr.command }}" ]
env:
- name: KEY_PUB
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-secret
key: id_ed25519.pub
- name: KEY_PRIV
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-secret
key: id_ed25519
volumeMounts:
- name: data
mountPath: {{ .Values.volume.mountPath }}
- name: secret-volume
mountPath: "{{ .Values.volume.mountPath }}/secrets"
readOnly: true
12 changes: 12 additions & 0 deletions charts/sctgdesk-rendezvous/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.persistence.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Release.Name }}-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- end }}
8 changes: 8 additions & 0 deletions charts/sctgdesk-rendezvous/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-secret
type: Opaque
data:
id_ed25519: {{ .Values.secret.id_ed25519 }}
id_ed25519.pub: {{ .Values.secret.id_ed25519_pub }}
12 changes: 12 additions & 0 deletions charts/sctgdesk-rendezvous/templates/service-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-api-server-service
spec:
type: LoadBalancer
selector:
app: {{ .Release.Name }}-api
ports:
- name: port-21114
port: 21114
targetPort: 21114
24 changes: 24 additions & 0 deletions charts/sctgdesk-rendezvous/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-hbbr-hbbs-service
spec:
type: LoadBalancer
selector:
app: {{ .Release.Name }}-hbb
ports:
- name: port-21115
port: 21115
targetPort: 21115
- name: port-21116
port: 21116
targetPort: 21116
- name: port-21117
port: 21117
targetPort: 21117
- name: port-21118
port: 21118
targetPort: 21118
- name: port-21119
port: 21119
targetPort: 21119
24 changes: 24 additions & 0 deletions charts/sctgdesk-rendezvous/templates/tcproutes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if .Values.gateway.enabled }}
{{- $ports := list 21115 21116 21117 21118 -}}
{{- range $ports }}
---
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: TCPRoute
metadata:
name: port-{{ . }}
namespace: {{ $.Release.Namespace }}
annotations:
{{- if $.Values.gateway.proxyV2 }}
haproxy.org/send-proxy-v2: 'true'
{{- end}}
spec:
parentRefs:
- name: haproxy-gateway
sectionName: port-{{ . }}
rules:
- backendRefs:
- kind: Service
name: {{ $.Release.Name }}-hbbr-hbbs-service
port: {{ . }}
{{- end }}
{{- end }}
Loading

0 comments on commit 142b2b5

Please sign in to comment.