This shows you the differences between two versions of the page.
| k8s:mongodb_chart [2020-02-22] – created dcai | k8s:mongodb_chart [2020-04-19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| + | kubectl create secret generic keyfilesecret --from-file=key.txt</ | ||
| + | create mongodb login details: | ||
| + | < | ||
| + | apiVersion: v1 | ||
| + | kind: Secret | ||
| + | metadata: | ||
| + | name: mongo-secret | ||
| + | data: | ||
| + | user: base64 encoded user | ||
| + | password: base64 encoded pass | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | helm install --name mongodb -f mongodb-values.yaml stable/ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | replicas: 3 | ||
| + | port: 27017 | ||
| + | replicaSetName: | ||
| + | podDisruptionBudget: | ||
| + | auth: | ||
| + | enabled: true | ||
| + | existingKeySecret: | ||
| + | existingAdminSecret: | ||
| + | imagePullSecrets: | ||
| + | installImage: | ||
| + | repository: unguiculus/ | ||
| + | tag: 0.7 | ||
| + | pullPolicy: Always | ||
| + | copyConfigImage: | ||
| + | repository: busybox | ||
| + | tag: 1.29.3 | ||
| + | pullPolicy: Always | ||
| + | image: | ||
| + | repository: mongo | ||
| + | tag: 4.1.9 | ||
| + | pullPolicy: Always | ||
| + | extraVars: {} | ||
| + | metrics: | ||
| + | enabled: false | ||
| + | image: | ||
| + | repository: ssalaues/ | ||
| + | tag: 0.6.1 | ||
| + | pullPolicy: IfNotPresent | ||
| + | port: 9216 | ||
| + | path: /metrics | ||
| + | socketTimeout: | ||
| + | syncTimeout: | ||
| + | prometheusServiceDiscovery: | ||
| + | resources: {} | ||
| + | podAnnotations: | ||
| + | securityContext: | ||
| + | enabled: true | ||
| + | runAsUser: 999 | ||
| + | fsGroup: 999 | ||
| + | runAsNonRoot: | ||
| + | init: | ||
| + | resources: {} | ||
| + | timeout: 900 | ||
| + | resources: {} | ||
| + | nodeSelector: | ||
| + | affinity: {} | ||
| + | tolerations: | ||
| + | extraLabels: | ||
| + | persistentVolume: | ||
| + | enabled: true | ||
| + | # | ||
| + | accessModes: | ||
| + | - ReadWriteOnce | ||
| + | size: 1Gi | ||
| + | annotations: | ||
| + | serviceAnnotations: | ||
| + | terminationGracePeriodSeconds: | ||
| + | tls: | ||
| + | enabled: false | ||
| + | configmap: {} | ||
| + | readinessProbe: | ||
| + | initialDelaySeconds: | ||
| + | timeoutSeconds: | ||
| + | failureThreshold: | ||
| + | periodSeconds: | ||
| + | successThreshold: | ||
| + | livenessProbe: | ||
| + | initialDelaySeconds: | ||
| + | timeoutSeconds: | ||
| + | failureThreshold: | ||
| + | periodSeconds: | ||
| + | successThreshold: | ||
| + | |||
| + | </ | ||