Skip to content

Instantly share code, notes, and snippets.

@lholmquist
Created June 20, 2017 13:20
Show Gist options
  • Save lholmquist/de29a45209d7466c55a2f6fe4bf9f6f8 to your computer and use it in GitHub Desktop.
Save lholmquist/de29a45209d7466c55a2f6fe4bf9f6f8 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
annotations:
fabric8.io/git-commit: 5418a547cd2967ba1400f69a063b70724b3eb8c8
fabric8.io/scm-con-url: scm:git:https://github.com/openshiftio/booster-parent.git/wfswarm-rest-http
prometheus.io/port: "9779"
fabric8.io/scm-url: https://github.com/openshiftio/wfswarm-rest-http
fabric8.io/git-branch: master
prometheus.io/scrape: "true"
fabric8.io/scm-devcon-url: scm:git:git:@github.com:openshiftio/booster-parent.git/wfswarm-rest-http
fabric8.io/scm-tag: booster-parent-4
labels:
expose: "true"
provider: fabric8
project: wfswarm-rest-http
version: 7-SNAPSHOT
group: io.openshift.booster
name: wfswarm-rest-http
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
selector:
project: wfswarm-rest-http
provider: fabric8
group: io.openshift.booster
type: ClusterIP
- apiVersion: v1
kind: Deployment
metadata:
annotations:
fabric8.io/git-commit: 5418a547cd2967ba1400f69a063b70724b3eb8c8
fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=wfswarm-rest-http&var-version=7-SNAPSHOT
fabric8.io/scm-con-url: scm:git:https://github.com/openshiftio/booster-parent.git/wfswarm-rest-http
fabric8.io/scm-url: https://github.com/openshiftio/wfswarm-rest-http
fabric8.io/git-branch: master
fabric8.io/scm-devcon-url: scm:git:git:@github.com:openshiftio/booster-parent.git/wfswarm-rest-http
fabric8.io/scm-tag: booster-parent-4
labels:
provider: fabric8
project: wfswarm-rest-http
version: 7-SNAPSHOT
group: io.openshift.booster
name: wfswarm-rest-http
spec:
replicas: 1
selector:
matchLabels:
project: wfswarm-rest-http
provider: fabric8
version: 7-SNAPSHOT
group: io.openshift.booster
template:
metadata:
annotations:
fabric8.io/git-commit: 5418a547cd2967ba1400f69a063b70724b3eb8c8
fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=wfswarm-rest-http&var-version=7-SNAPSHOT
fabric8.io/scm-con-url: scm:git:https://github.com/openshiftio/booster-parent.git/wfswarm-rest-http
fabric8.io/scm-url: https://github.com/openshiftio/wfswarm-rest-http
fabric8.io/git-branch: master
fabric8.io/scm-devcon-url: scm:git:git:@github.com:openshiftio/booster-parent.git/wfswarm-rest-http
fabric8.io/scm-tag: booster-parent-4
labels:
provider: fabric8
project: wfswarm-rest-http
version: 7-SNAPSHOT
group: io.openshift.booster
spec:
containers:
- env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: AB_JOLOKIA_OFF
value: "true"
- name: JAVA_APP_DIR
value: /deployments
- name: AB_OFF
value: "true"
image: wfswarm-rest-http:latest
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /api/greeting
port: 8080
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 30
name: wildfly-swarm
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 9779
name: prometheus
protocol: TCP
- containerPort: 8778
name: jolokia
protocol: TCP
readinessProbe:
httpGet:
path: /api/greeting
port: 8080
scheme: HTTP
securityContext:
privileged: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment