Last active
June 26, 2020 03:51
-
-
Save onefoursix/51542ad04bc6d01bb3c907c14b66f225 to your computer and use it in GitHub Desktop.
SDC Deployment Manifest with a Service that exposes an SDC Microservice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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