Skip to content

Instantly share code, notes, and snippets.

@jonathan-kosgei jonathan-kosgei/README.md
Last active Aug 24, 2017

Embed
What would you like to do?

Getting Started

kubectl apply -f storageclass.yml
kubectl apply -f neo4j-service.yml
kubectl apply -f neo4j-statefulset.yml
apiVersion: v1
kind: Service
metadata:
name: neo4j
spec:
type: LoadBalancer
loadBalancerSourceRanges:
- 0.0.0.0/0
ports:
- name: browser
port: 7474
protocol: TCP
- name: bolt
port: 7687
protocol: TCP
- name: https
port: 7473
protocol: TCP
selector:
app: neo4j
apiVersion: "apps/v1beta1"
kind: StatefulSet
metadata:
name: neo4j
spec:
serviceName: neo4j
replicas: 1
template:
metadata:
labels:
app: neo4j
spec:
containers:
- name: neo4j
image: luminateqr/neo4j-with-apoc:latest
command: ["/bin/bash","-c"]
args: ["echo 'dbms.connector.bolt.tls_level=REQUIRED' >> conf/neo4j.conf && /docker-entrypoint.sh neo4j"]
imagePullPolicy: Always
ports:
- name: browser
containerPort: 7474
- name: bolt
containerPort: 7687
- name: https
containerPort: 7473
volumeMounts:
- name: neo4j-data
mountPath: /data
volumeClaimTemplates:
- metadata:
name: neo4j-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 50Gi
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: slow
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-standard
zone: us-east1-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.