Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
---
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
You can’t perform that action at this time.