Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save onefoursix/51542ad04bc6d01bb3c907c14b66f225 to your computer and use it in GitHub Desktop.
Save onefoursix/51542ad04bc6d01bb3c907c14b66f225 to your computer and use it in GitHub Desktop.
SDC Deployment Manifest with a Service that exposes an SDC Microservice
apiVersion: 1
kind: List
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: sdc-microservice
labels:
app : sdc-microservice
spec:
replicas: 1
selector:
matchLabels:
app: sdc-microservice
template:
metadata:
labels:
app: sdc-microservice
spec:
containers:
- name : sdc-microservice
image: <your-sdc-image>
ports:
- containerPort: 18630
env:
- name: SDC_JAVA_OPTS
value: "-Xmx2g -Xms2g"
- apiVersion: v1
kind: Service
metadata:
name: sdc-microservice
labels:
app: sdc-microservice
spec:
type: LoadBalancer
ports:
- name: sdc-microservice
port: 18800
targetPort: 18700
protocol: TCP
selector:
app: sdc-microservice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment