mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* Add more tools to the toolbox container * Add mongodb monitoring agent * Add a bigchaindb/mongodb-monitoring-agent container that includes the monitoring agent. * It makes use of an api key provided by MongoDB Cloud Manager. This is included in the configuration/config-map.yaml file. * Changes to mongodb StatefulSet configuration Changes to bump up mongodb version to v3.4.3. Add configuration settings for mongodb instance name in ConfigMap. Split the mongodb service to a new configuration file. * Modify bigchaindb deployment config * Bugfix to remove keyring field for the first node. * Split the mongodb service to a new configuration file. * Add mongodb backup agent * Add a bigchaindb/mongodb-backup-agent container that includes the backup agent. * It makes use of an api key provided by MongoDB Cloud Manager. This is included in the configuration/config-map.yaml file. * Changes to nginx deployment config * Allow 'all' by default for now. This is included in the configuration/config-map.yaml file. * Dynamically resolve DNS addresses of our backend services; cache DNS resolution for 20s. * Configure DNS based on user provided resolver. This helps in user deciding to provide 8.8.8.8 or a custom DNS for name resolution. For k8s deployments, we use the hardcoded k8s DNS IP of 10.0.0.10. * Changes to nginx-3scale deployment config * Use the common ConfigMap in configuration/config-map.yaml file. * Removing prefix `v` from the docker tag for mongodb-monitoring-agent and mongodb containers * Bumping up version for nginx-3scale container * Add small helper scripts for docker build and push of mongodb monitoring and backup agents * Documentation for setting up the first node with monitoring and backup agents
74 lines
2.0 KiB
YAML
74 lines
2.0 KiB
YAML
########################################################################
|
|
# This YAML file desribes a StatefulSet with a service for running and #
|
|
# exposing a MongoDB instance. #
|
|
# It depends on the configdb and db k8s pvc. #
|
|
########################################################################
|
|
|
|
apiVersion: apps/v1beta1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: mdb-instance-0-ss
|
|
namespace: default
|
|
spec:
|
|
serviceName: mdb-instance-0
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
name: mdb-instance-0-ss
|
|
labels:
|
|
app: mdb-instance-0-ss
|
|
spec:
|
|
terminationGracePeriodSeconds: 10
|
|
containers:
|
|
- name: mongodb
|
|
image: bigchaindb/mongodb:3.4.3
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: MONGODB_FQDN
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: mdb-fqdn
|
|
key: fqdn
|
|
- name: MONGODB_POD_IP
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIP
|
|
args:
|
|
- --replica-set-name=bigchain-rs
|
|
- --fqdn=$(MONGODB_FQDN)
|
|
- --port=27017
|
|
- --ip=$(MONGODB_POD_IP)
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- FOWNER
|
|
ports:
|
|
- containerPort: 27017
|
|
hostPort: 27017
|
|
name: mdb-port
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- name: mdb-db
|
|
mountPath: /data/db
|
|
- name: mdb-configdb
|
|
mountPath: /data/configdb
|
|
resources:
|
|
limits:
|
|
cpu: 200m
|
|
memory: 768Mi
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: mdb-port
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
periodSeconds: 15
|
|
timeoutSeconds: 1
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: mdb-db
|
|
persistentVolumeClaim:
|
|
claimName: mongo-db-claim
|
|
- name: mdb-configdb
|
|
persistentVolumeClaim:
|
|
claimName: mongo-configdb-claim
|