Skip to content

Instantly share code, notes, and snippets.

Avatar

烂泥行天下 ilanni2460

View GitHub Profile
@ilanni2460
ilanni2460 / mongo-statefulset.yaml
Created Jan 16, 2019 — forked from thilinapiy/mongo-statefulset.yaml
MongoDB statefulset for kubernetes with authentication and replication
View mongo-statefulset.yaml
## Generate a key
# openssl rand -base64 741 > mongodb-keyfile
## Create k8s secrets
# kubectl create secret generic mongo-key --from-file=mongodb-keyfile
---
apiVersion: v1
kind: Service
metadata:
name: mongo
labels: