Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Created July 18, 2023 22:24
Show Gist options
  • Save onefoursix/a736c90f75a9f3aed0736b5ed7dcb2d8 to your computer and use it in GitHub Desktop.
Save onefoursix/a736c90f75a9f3aed0736b5ed7dcb2d8 to your computer and use it in GitHub Desktop.
SDC Deployment with a keystore loaded from a Secret
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: streamsets-deployment-576a6314-076a-4eba-9916-1482c89cae72
name: streamsets-deployment-576a6314-076a-4eba-9916-1482c89cae72
namespace: ns100
spec:
replicas: 1
selector:
matchLabels:
app: streamsets-deployment-576a6314-076a-4eba-9916-1482c89cae72
template:
metadata:
labels:
app: streamsets-deployment-576a6314-076a-4eba-9916-1482c89cae72
spec:
containers:
- env:
- name: STREAMSETS_DEPLOYMENT_ID
value: 576a6314-076a-4eba-9916-1482c89cae72:8030c2e9-1a39-11ec-a5fe-97c8d4369386
- name: STREAMSETS_DEPLOYMENT_TOKEN
valueFrom:
secretKeyRef:
key: token
name: streamsets-deployment-secret-576a6314-076a-4eba-9916-1482c89cae72
optional: false
- name: STREAMSETS_DEPLOYMENT_SCH_URL
value: https://na01.hub.streamsets.com
image: streamsets/datacollector:5.6.0
name: streamsets-engine-576a6314-076a-4eba-9916-1482c89cae72
resources:
requests:
memory: 2Gi
cpu: "1"
volumeMounts:
- mountPath: /etc/sdc/onefoursix.p12
name: sdc-keystore
subPath: onefoursix.p12
dnsPolicy: Default
volumes:
- name: sdc-keystore
secret:
secretName: sdc-keystore
---
apiVersion: v1
kind: Service
metadata:
labels:
app: streamsets-deployment-576a6314-076a-4eba-9916-1482c89cae72
name: sdc1
namespace: ns100
spec:
type: NodePort
ports:
- name: https
nodePort: 31910
port: 18630
targetPort: 18630
protocol: TCP
selector:
app: streamsets-deployment-576a6314-076a-4eba-9916-1482c89cae72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment