Last active
March 18, 2020 20:00
-
-
Save akhenakh/8c06186b7d524f6a60d40764b307a5d5 to your computer and use it in GitHub Desktop.
This file contains 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: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: ${NAME} | |
labels: | |
app: "${NAME}" | |
commit: "${VERSION}" | |
appgroup: "${PROJECT}" | |
deploydate: "${DATE}" | |
spec: | |
selector: | |
matchLabels: | |
app: ${NAME} | |
appgroup: "${PROJECT}" | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: "${NAME}" | |
commit: "${VERSION}" | |
appgroup: "${PROJECT}" | |
deploydate: "${DATE}" | |
annotations: | |
prometheus.io/scrape: 'true' | |
prometheus.io/port: '8888' | |
spec: | |
containers: | |
- name: ${NAME} | |
image: ${NAME}:${VERSION} | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: HTTPPORT | |
value: "8888" | |
- name: GRPCPORT | |
value: "9200" | |
- name: LOGLEVEL | |
value: "debug" | |
- name: DEV | |
value: "true" | |
- name: NATSBROKERS | |
value: "nats-nats-cluster:4222" | |
- name : JAEGERAGENTURI | |
value: "jaeger-agent:6831" | |
ports: | |
- containerPort: 8888 | |
name: http | |
- containerPort: 9200 | |
name: grpc |
This file contains 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: v1 | |
kind: Service | |
metadata: | |
name: ${NAME} | |
labels: | |
appgroup: "${PROJECT}" | |
name: "${NAME}" | |
type: "grpc" | |
spec: | |
type: "NodePort" | |
ports: | |
- port: 9200 | |
name: "grpc" | |
targetPort: grpc | |
protocol: TCP | |
selector: | |
app: "${NAME}" | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ${NAME}-http | |
labels: | |
appgroup: "${PROJECT}" | |
name: "${NAME}" | |
type: "http" | |
spec: | |
type: "NodePort" | |
ports: | |
- port: 8888 | |
name: "http" | |
targetPort: http | |
protocol: TCP | |
selector: | |
app: "${NAME}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice. thx