Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Created April 17, 2020 00:47
Show Gist options
  • Save onefoursix/b06b663b7d393f444a187eaf93539b1b to your computer and use it in GitHub Desktop.
Save onefoursix/b06b663b7d393f444a187eaf93539b1b to your computer and use it in GitHub Desktop.
SDC Deployment YAML with NFS-based stage-libs and resources
apiVersion: apps/v1
kind: Deployment
metadata:
name: datacollector-deployment
namespace: ns1
spec:
replicas: 1
selector:
matchLabels:
app: datacollector-deployment
template:
metadata:
labels:
app: datacollector-deployment
spec:
containers:
- name: datacollector
image: streamsets/datacollector:3.14.0
imagePullPolicy: Always
ports:
- containerPort: 18630
env:
- name: HOST
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: PORT0
value: "18630"
volumeMounts:
- name: streamsets-libs
mountPath: /opt/streamsets-datacollector-3.14.0/streamsets-libs
- name: sdc-extras
mountPath: /opt/streamsets-datacollector-3.14.0/streamsets-libs-extras
volumes:
- name: streamsets-libs
nfs:
server: 10.0.0.4
path: /share/streamsets-libs
readOnly: true
- name: sdc-extras
nfs:
server: 10.0.0.4
path: /share/sdc-extras
readOnly: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment