kubectl apply -f storageclass.yml
kubectl apply -f neo4j-service.yml
kubectl apply -f neo4j-statefulset.yml
Last active
August 24, 2017 09:16
-
-
Save jonathan-kosgei/51ddcf4133514871ef9a95bf42219b14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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