Compare commits
7 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
60740184d2 | ||
|
|
99f17c71ae | ||
| 0498d09aa4 | |||
| fa8962c181 | |||
| c8f9eb09bf | |||
| bd1c56508c | |||
| 7cfeb6cba0 |
@@ -45,6 +45,7 @@ ArgoCD homelab project
|
|||||||
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
| **jellyfin** | [](https://ag.hexor.cy/applications/argocd/jellyfin) |
|
||||||
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
| **k8s-secrets** | [](https://ag.hexor.cy/applications/argocd/k8s-secrets) |
|
||||||
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
| **khm** | [](https://ag.hexor.cy/applications/argocd/khm) |
|
||||||
|
| **mtproxy** | [](https://ag.hexor.cy/applications/argocd/mtproxy) |
|
||||||
| **n8n** | [](https://ag.hexor.cy/applications/argocd/n8n) |
|
| **n8n** | [](https://ag.hexor.cy/applications/argocd/n8n) |
|
||||||
| **ollama** | [](https://ag.hexor.cy/applications/argocd/ollama) |
|
| **ollama** | [](https://ag.hexor.cy/applications/argocd/ollama) |
|
||||||
| **paperless** | [](https://ag.hexor.cy/applications/argocd/paperless) |
|
| **paperless** | [](https://ag.hexor.cy/applications/argocd/paperless) |
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ spec:
|
|||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- key: mtproxy
|
- key: mtproxy
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
hostNetwork: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
containers:
|
containers:
|
||||||
- name: mtproxy
|
- name: mtproxy
|
||||||
image: ultradesu/mtproxy:v0.02
|
image: ultradesu/mtproxy:v0.02
|
||||||
@@ -31,19 +33,39 @@ spec:
|
|||||||
- name: proxy
|
- name: proxy
|
||||||
containerPort: 30443
|
containerPort: 30443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- >-
|
||||||
|
mtproto-proxy
|
||||||
|
-u nobody
|
||||||
|
-p 8888
|
||||||
|
-H $(PORT)
|
||||||
|
-M 1
|
||||||
|
-S $(SECRET)
|
||||||
|
--aes-pwd /etc/mtproxy/proxy-secret
|
||||||
|
/etc/mtproxy/proxy-multi.conf
|
||||||
env:
|
env:
|
||||||
- name: SECRET
|
- name: SECRET
|
||||||
value: "4ef8819478eb9c8928ab741300235a8e"
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: tgproxy-secret
|
||||||
|
key: SECRET
|
||||||
|
- name: PORT
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: tgproxy-secret
|
||||||
|
key: PORT
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
resources:
|
#resources:
|
||||||
requests:
|
# requests:
|
||||||
memory: "128Mi"
|
# memory: "128Mi"
|
||||||
cpu: "100m"
|
# cpu: "100m"
|
||||||
limits:
|
# limits:
|
||||||
memory: "256Mi"
|
# memory: "256Mi"
|
||||||
cpu: "500m"
|
# cpu: "500m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
25
k8s/apps/mtproxy/external-secrets.yaml
Normal file
25
k8s/apps/mtproxy/external-secrets.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: tgproxy-secret
|
||||||
|
spec:
|
||||||
|
target:
|
||||||
|
name: tgproxy-secret
|
||||||
|
deletionPolicy: Delete
|
||||||
|
template:
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
SECRET: |-
|
||||||
|
{{ .secret }}
|
||||||
|
PORT: "30443"
|
||||||
|
data:
|
||||||
|
- secretKey: secret
|
||||||
|
sourceRef:
|
||||||
|
storeRef:
|
||||||
|
name: vaultwarden-login
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
remoteRef:
|
||||||
|
key: 58a37daf-72d8-430d-86bd-6152aa8f888d
|
||||||
|
property: fields[0].value
|
||||||
|
|
||||||
@@ -3,6 +3,7 @@ kind: Kustomization
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ./app.yaml
|
- ./app.yaml
|
||||||
- ./deployment.yaml
|
- ./daemonset.yaml
|
||||||
- ./service.yaml
|
- ./external-secrets.yaml
|
||||||
- ./storage.yaml
|
# - ./storage.yaml
|
||||||
|
# - ./service.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user