Skip to content

Instantly share code, notes, and snippets.

@nickform-ost
Last active September 18, 2020 16:16
Show Gist options
  • Save nickform-ost/e7464fa0615c0e871510835e89579346 to your computer and use it in GitHub Desktop.
Save nickform-ost/e7464fa0615c0e871510835e89579346 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment