Skip to content

Commit 930e844

Browse files
authored
kubernetes deployment fix (#220)
- added additional components
1 parent f14608f commit 930e844

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,15 @@ Thanks to @steled, here is what a potential Kubernetes deployment configuration
480480
apiVersion: v1
481481
kind: Namespace
482482
metadata:
483+
labels:
484+
name: apprise
483485
name: apprise
484486
---
485487
apiVersion: v1
486488
kind: ConfigMap
487489
metadata:
490+
labels:
491+
name: apprise
488492
name: apprise-api-override-conf-config
489493
namespace: apprise
490494
data:
@@ -495,10 +499,43 @@ data:
495499
apiVersion: v1
496500
kind: Secret
497501
metadata:
502+
labels:
503+
name: apprise
498504
name: apprise-api-htpasswd-secret
499505
namespace: apprise
500506
data:
501-
.htpasswd: <base64_encoded> # add output of: htpasswd -c apprise_api.htpasswd dgops-kubernetes && cat apprise_api.htpasswd | base64
507+
.htpasswd: <base64_encoded> # add output of: htpasswd -c apprise_api.htpasswd <USERNAME> && cat apprise_api.htpasswd | base64
508+
---
509+
apiVersion: v1
510+
kind: PersistentVolumeClaim
511+
metadata:
512+
labels:
513+
name: apprise
514+
name: apprise-data
515+
namespace: apprise
516+
spec:
517+
accessModes:
518+
- ReadWriteOnce
519+
resources:
520+
requests:
521+
storage: 1Gi
522+
---
523+
apiVersion: v1
524+
kind: Service
525+
metadata:
526+
labels:
527+
name: apprise
528+
name: apprise
529+
namespace: apprise
530+
spec:
531+
ports:
532+
- name: http
533+
port: 80
534+
protocol: TCP
535+
targetPort: 8000
536+
selector:
537+
name: apprise
538+
type: ClusterIP
502539
---
503540
apiVersion: apps/v1
504541
kind: Deployment

0 commit comments

Comments
 (0)