mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Run bdb v0.9.1 as a pod in k8s
This commit is contained in:
parent
6702ad192b
commit
64f4afb7ad
89
k8s/node-ss.yaml
Normal file
89
k8s/node-ss.yaml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
#####################################################
|
||||||
|
# This config file uses bdb v0.9.1 with bundled rdb #
|
||||||
|
#####################################################
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: bdb-service
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
name: bdb-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: bdb
|
||||||
|
ports:
|
||||||
|
- port: 9984
|
||||||
|
targetPort: 9984
|
||||||
|
name: bdb-http-api
|
||||||
|
- port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
name: bdb-rethinkdb-api
|
||||||
|
type: LoadBalancer
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1beta1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: bdb
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
serviceName: bdb
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: bdb
|
||||||
|
labels:
|
||||||
|
app: bdb
|
||||||
|
annotations:
|
||||||
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
|
{
|
||||||
|
"name": "bdb091-configure",
|
||||||
|
"image": "bigchaindb/bigchaindb:0.9.1",
|
||||||
|
"command": ["bigchaindb", "-y", "configure", "rethinkdb"],
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"name": "bigchaindb-data",
|
||||||
|
"mountPath": "/data"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]'
|
||||||
|
spec:
|
||||||
|
terminationGracePeriodSeconds: 10
|
||||||
|
containers:
|
||||||
|
- name: bdb091-server
|
||||||
|
image: bigchaindb/bigchaindb:0.9.1
|
||||||
|
args:
|
||||||
|
- -c
|
||||||
|
- /data/.bigchaindb
|
||||||
|
- start
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 9984
|
||||||
|
hostPort: 9984
|
||||||
|
name: bdb-port
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
- name: bigchaindb-data
|
||||||
|
mountPath: /data
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 768Mi
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 9984
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
timeoutSeconds: 10
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 9984
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
timeoutSeconds: 10
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: bigchaindb-data
|
||||||
|
hostPath:
|
||||||
|
path: /disk/bigchaindb-data
|
Loading…
x
Reference in New Issue
Block a user