diff --git a/k8s/apps/pasarguard/deployment.yaml b/k8s/apps/pasarguard/deployment.yaml index 18542c5..c78060c 100644 --- a/k8s/apps/pasarguard/deployment.yaml +++ b/k8s/apps/pasarguard/deployment.yaml @@ -21,6 +21,17 @@ spec: spec: nodeSelector: kubernetes.io/hostname: master.tail2fe2d.ts.net + initContainers: + - name: download-template + image: busybox:latest + command: + - sh + - -c + - | + wget -O /templates/subscription/index.html https://github.com/PasarGuard/subscription-template/releases/latest/download/index.html + volumeMounts: + - name: subscription-template + mountPath: /templates/subscription containers: - name: pasarguard-web image: 'pasarguard/panel:v1.4.1' @@ -45,10 +56,14 @@ spec: - name: tls mountPath: /app/tls readOnly: true + - name: subscription-template + mountPath: /code/app/templates/subscription volumes: - name: tls secret: secretName: pasarguard-tls + - name: subscription-template + emptyDir: {} --- apiVersion: v1 kind: Service