Kubernetes Deployment
For Docker orchestration frameworks such as Kubernetes, the Sundeck Private Broker can be deployed as a containerized application. This allows for easy scaling, management, and monitoring of the broker service.
The following is a sample Kubernetes manifest for deploying the Sundeck Private Broker as a Kubernetes Deployment. This manifest can be used as a starting point for deploying the Private Broker in your own Kubernetes environment.
Note the required Configuration Variables which must be set in the Kubernetes manifest, or retrieved from a secrets vault.
Sample Kubernetes Manifest
kind: Deployment
apiVersion: apps/v1
metadata:
name: sundeck-pb
namespace: sample-namespace
spec:
replicas: 0
selector:
matchLabels:
app: sundeck-pb
template:
metadata:
creationTimestamp: null
labels:
app: sundeck-pb
spec:
containers:
- name: container
image: '<sundeck-image>:latest'
ports:
- containerPort: 8080
protocol: TCP
env:
- name: SUNDECK_BROKER_TOKEN
value: '....redacted....'
- name: SUNDECK_BROKER_PORT
value: '8080'
- name: SUNDECK_BROKER_REST_API_PATH
value: 'https://api.sundeck.io/us-west-2/v1'
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1