Skip to content

Instantly share code, notes, and snippets.

@kameshsampath
Created May 15, 2019 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kameshsampath/33b1215e3f483ee734c6b18c42a2a3de to your computer and use it in GitHub Desktop.
Save kameshsampath/33b1215e3f483ee734c6b18c42a2a3de to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: customer
version: v1
name: customer
spec:
replicas: 1
selector:
matchLabels:
app: customer
version: v1
template:
metadata:
labels:
app: customer
version: v1
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/scheme: "http"
sidecar.istio.io/inject: "true"
spec:
containers:
- env:
- name: JAVA_OPTIONS
value: -Xms128m -Xmx256m -Djava.net.preferIPv4Stack=true -Djava.security.egd=file:///dev/./urandom
image: quay.io/rhdevelopers/istio-tutorial-customer:v1
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- curl
- localhost:8080/health
initialDelaySeconds: 60
periodSeconds: 5
timeoutSeconds: 1
name: customer
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8778
name: jolokia
protocol: TCP
- containerPort: 9779
name: prometheus
protocol: TCP
readinessProbe:
exec:
command:
- curl
- localhost:8080/health
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 1
securityContext:
privileged: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment