Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: rdfox-stateful-set
spec:
selector:
matchLabels:
app: rdfox-app
serviceName: "rdfox-set"
replicas: 3
template:
metadata:
labels:
app: rdfox-app
spec:
containers:
- name: rdfox
image: oxfordsemantic/rdfox:3.1.1
args: ['-license-file', '/license/RDFox.lic', 'daemon']
ports:
- name: rdfox-endpoint
containerPort: 12110
protocol: TCP
volumeMounts:
- name: license
mountPath: "/license"
readOnly: true
- name: server-directory
mountPath: "/home/rdfox/.RDFox"
initContainers:
- name: init-server-directory
image: oxfordsemantic/rdfox-init:3.1.1
env:
- name: RDFOX_ROLE
valueFrom:
secretKeyRef:
name: first-role-credentials
key: rolename
- name: RDFOX_PASSWORD
valueFrom:
secretKeyRef:
name: first-role-credentials
key: password
- name: RDFOX_LICENSE_CONTENT
valueFrom:
secretKeyRef:
name: rdfox-license
key: RDFox.lic
volumeMounts:
- name: shell-root-directory
mountPath: "/data"
readOnly: true
- name: server-directory
mountPath: "/home/rdfox/.RDFox"
volumes:
- name: license
secret:
secretName: rdfox-license
items:
- key: RDFox.lic
path: RDFox.lic
- name: shell-root-directory
persistentVolumeClaim:
claimName: family-init-vol-claim
volumeClaimTemplates:
- metadata:
name: server-directory
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "gp2"
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment