Created
February 24, 2017 13:18
-
-
Save slaskawi/8b4e42ed22a7e4c27d03249996dba7ee to your computer and use it in GitHub Desktop.
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: v1 | |
kind: DeploymentConfig | |
metadata: | |
name: transactions-repository-new | |
spec: | |
replicas: 3 | |
strategy: | |
type: Rolling | |
rollingParams: | |
updatePeriodSeconds: 10 | |
intervalSeconds: 20 | |
timeoutSeconds: 600 | |
maxUnavailable: 1 | |
maxSurge: 1 | |
template: | |
spec: | |
containers: | |
- args: | |
- -Djboss.default.jgroups.stack=kubernetes | |
image: jboss/infinispan-server:latest | |
imagePullPolicy: Always | |
name: infinispan-server | |
ports: | |
- containerPort: 8181 | |
protocol: TCP | |
- containerPort: 8888 | |
protocol: TCP | |
- containerPort: 9990 | |
protocol: TCP | |
- containerPort: 11211 | |
protocol: TCP | |
- containerPort: 11222 | |
protocol: TCP | |
- containerPort: 57600 | |
protocol: TCP | |
- containerPort: 7600 | |
protocol: TCP | |
- containerPort: 8080 | |
protocol: TCP | |
env: | |
- name: OPENSHIFT_KUBE_PING_NAMESPACE | |
valueFrom: {fieldRef: {apiVersion: v1, fieldPath: metadata.namespace}} | |
terminationMessagePath: /dev/termination-log | |
terminationGracePeriodSeconds: 90 | |
livenessProbe: | |
exec: | |
command: | |
- /usr/local/bin/is_running.sh | |
initialDelaySeconds: 10 | |
timeoutSeconds: 80 | |
periodSeconds: 60 | |
successThreshold: 1 | |
failureThreshold: 5 | |
readinessProbe: | |
exec: | |
command: | |
- /usr/local/bin/is_healthy.sh | |
initialDelaySeconds: 10 | |
timeoutSeconds: 40 | |
periodSeconds: 30 | |
successThreshold: 2 | |
failureThreshold: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment