kubernetes deployment fix (#220)

- added additional components
This commit is contained in:
Stephan 2024-12-27 15:28:15 +01:00 committed by GitHub
parent f14608f560
commit 930e844c92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -480,11 +480,15 @@ Thanks to @steled, here is what a potential Kubernetes deployment configuration
apiVersion: v1
kind: Namespace
metadata:
labels:
name: apprise
name: apprise
---
apiVersion: v1
kind: ConfigMap
metadata:
labels:
name: apprise
name: apprise-api-override-conf-config
namespace: apprise
data:
@ -495,10 +499,43 @@ data:
apiVersion: v1
kind: Secret
metadata:
labels:
name: apprise
name: apprise-api-htpasswd-secret
namespace: apprise
data:
.htpasswd: <base64_encoded> # add output of: htpasswd -c apprise_api.htpasswd dgops-kubernetes && cat apprise_api.htpasswd | base64
.htpasswd: <base64_encoded> # add output of: htpasswd -c apprise_api.htpasswd <USERNAME> && cat apprise_api.htpasswd | base64
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
name: apprise
name: apprise-data
namespace: apprise
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
labels:
name: apprise
name: apprise
namespace: apprise
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8000
selector:
name: apprise
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment