diff --git a/peertube/deploy.sh b/peertube/deploy.sh index 65bf098..994a7c1 100644 --- a/peertube/deploy.sh +++ b/peertube/deploy.sh @@ -1 +1 @@ -helm upgrade -i --create-namespace -n peertube-werts peertube-werts ananace-charts/peertube -f values.yaml +kustomize build --enable-helm | kubectl apply -f - diff --git a/peertube/diff.sh b/peertube/diff.sh index a95a614..0436bae 100644 --- a/peertube/diff.sh +++ b/peertube/diff.sh @@ -1 +1 @@ -helm diff upgrade -n peertube-werts peertube-werts ananace-charts/peertube -f values.yaml +kustomize build --enable-helm | kubectl diff -f - diff --git a/peertube/kustomization.yaml b/peertube/kustomization.yaml new file mode 100644 index 0000000..99071f6 --- /dev/null +++ b/peertube/kustomization.yaml @@ -0,0 +1,132 @@ +kind: Kustomization +apiVersion: kustomize.config.k8s.io/v1beta1 +helmCharts: + - name: peertube + repo: https://ananace.gitlab.io/charts + namespace: peertube-werts + version: 1.1.1 + releaseName: peertube-werts + includeCRDs: true + valuesInline: + affinity: {} + autoscaling: + enabled: false + maxReplicas: 3 + minReplicas: 1 + targetCPUUtilizationPercentage: 80 + config: + admin: + email: peertube@strudelline.net + mail: + existingSecret: peertube-smtp + existingSecretKey: smtp-password + fromAddress: peertube@strudelline.net + hostname: smtp.mailgun.org + port: 465 + transport: smtp + username: peertube@strudelline.net + objectStorage: + accessKey: 3MvLDZE2XiK5XlbE + enabled: false + endpoint: https://minio.strudelline.net + maxUploadPart: 128MB + region: syno-cascade-1 + secretKey: xmA9bJGlcFArtwHStJnqQTyZQjiyR1jv + streaming: + base_url: https://minio.strudelline.net/peertube-streaming + bucket_name: peertube-streaming + videos: + base_url: https://minio.strudelline.net/peertube-videos + bucket_name: peertube-videos + persistence: + enabled: true + size: 1000Gi + storageClass: nfs + secret: 1165b3438b487d6dc52fc9d63ff78ef46a7e568a8daebdafd6f416d899aefbc6 + serverName: tube.werts.us + externalPostgresql: + database: peertube-db + existingSecret: peertube-db-pguser-peertube-db + existingSecretKey: password + host: peertube-db-primary.peertube-werts.svc + port: 5432 + username: peertube-db + externalRedis: + host: null + extraConfig: + instance: + description: WerTube + trust_proxy: + - 10.0.0.0/8 + - 172.16.0.0/12 + - 192.168.0.0/24 + - fc00::/7 + extraEnv: + - name: http_proxy + value: http://172.16.17.180:4080 + - name: https_proxy + value: http://172.16.17.180:4080 + - name: HTTP_PROXY + value: http://172.16.17.180:4080 + - name: HTTPS_PROXY + value: http://172.16.17.180:4080 + extraPodSpec: {} + extraSecret: {} + image: + pullPolicy: IfNotPresent + repository: chocobozzz/peertube + ingress: + className: haproxy + enabled: true + paths: + - path: / + pathType: Prefix + livenessProbe: + httpGet: + path: /api/v1/ping + port: http + nodeSelector: + kubernetes.io/hostname: chimecho + podAnnotations: {} + podSecurityContext: + fsGroup: 999 + postgresql: + auth: + database: peertube + username: peertube + enabled: false + persistence: + enabled: true + readinessProbe: + httpGet: + path: /api/v1/ping + port: http + redis: + architecture: standalone + auth: + enabled: true + password: peertube-98fuhaewulfh + enabled: true + master: + kind: Deployment + persistence: + enabled: true + storageClass: longhorn + updateStrategy: + type: Recreate + resources: {} + securityContext: + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 999 + service: + port: 80 + rtmpPort: 1935 + type: ClusterIP + serviceAccount: + annotations: {} + create: true + tolerations: [] +resources: + - db.yaml + - ns.yaml