Created
May 15, 2019 09:54
-
-
Save kameshsampath/33b1215e3f483ee734c6b18c42a2a3de 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: 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