You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
💡 The Idea
Adding kubernetes deployment to the documentation.
🔨 Breaking Feature
🏁 The solution
Based on your docker installation I created a deployment for Kubernetes.
As I want to share my doing I'm posting my deployment here so you can add it to the official documentation or just keep it here if somebody else is looking for this.
apiVersion: v1kind: Namespacemetadata:
name: apprise
---
apiVersion: v1kind: ConfigMapmetadata:
name: apprise-api-override-conf-confignamespace: apprisedata:
location-override.conf: | auth_basic "Apprise API Restricted Area"; auth_basic_user_file /etc/nginx/.htpasswd;
---
apiVersion: v1kind: Secretmetadata:
name: apprise-api-htpasswd-secretnamespace: apprisedata:
.htpasswd: <base64_encoded> # add output of: htpasswd -c apprise_api.htpasswd dgops-kubernetes && cat apprise_api.htpasswd | base64
---
apiVersion: apps/v1kind: Deploymentmetadata:
labels:
name: apprisename: apprisenamespace: apprisespec:
replicas: 1selector:
matchLabels:
name: apprisestrategy:
type: Recreatetemplate:
metadata:
labels:
name: apprisespec:
containers:
- env:
- name: APPRISE_STATEFUL_MODEvalue: simple
- name: PGIDvalue: "1000"
- name: PUIDvalue: "1000"image: caronc/apprise:1.1name: appriseports:
- containerPort: 8000protocol: TCPresources:
limits:
cpu: "500m"memory: "512Mi"requests:
cpu: "250m"memory: "128Mi"volumeMounts:
- mountPath: /configname: apprise-data
- mountPath: /pluginname: apprise-data
- mountPath: /attachname: apprise-data# the following mountPath can be removed if not wanted/used
- mountPath: /etc/nginx/.htpasswdname: apprise-api-htpasswd-secret-volumereadOnly: truesubPath: .htpasswd# the following mountPath can be removed if not wanted/used
- mountPath: /etc/nginx/location-override.confname: apprise-api-override-conf-config-volumereadOnly: truesubPath: location-override.confrestartPolicy: Alwaysvolumes:
- name: apprise-datapersistentVolumeClaim:
claimName: apprise-data# the following volume can be removed if not wanted/used
- name: apprise-api-htpasswd-secret-volumesecret:
secretName: apprise-api-htpasswd-secret# the following volume can be removed if not wanted/used
- name: apprise-api-override-conf-config-volumeconfigMap:
name: apprise-api-override-conf-config
The text was updated successfully, but these errors were encountered:
💡 The Idea
Adding kubernetes deployment to the documentation.
🔨 Breaking Feature
🏁 The solution
Based on your docker installation I created a deployment for Kubernetes.
As I want to share my doing I'm posting my deployment here so you can add it to the official documentation or just keep it here if somebody else is looking for this.
The text was updated successfully, but these errors were encountered: