diff --git a/pom.xml b/pom.xml index 70e18b7..6cf4feb 100644 --- a/pom.xml +++ b/pom.xml @@ -225,6 +225,36 @@ + + io.fabric8 + fabric8-maven-plugin + 3.5.38 + + + + + openshift-tasks + + registry.access.redhat.com/jboss-eap-7/eap71-openshift + + rootWar + /opt/eap/standalone/deployments + + + + + + + + + fmp + + resource + build + + + + diff --git a/src/main/fabric8/deployment.yml b/src/main/fabric8/deployment.yml new file mode 100644 index 0000000..5b0a834 --- /dev/null +++ b/src/main/fabric8/deployment.yml @@ -0,0 +1,32 @@ +apiVersion: apps.openshift.io/v1 +kind: DeploymentConfig +metadata: + name: openshift-tasks +spec: + replicas: 1 + template: + spec: + containers: + - name: tasks + livenessProbe: + failureThreshold: 10 + httpGet: + path: /ws/demo/healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 180 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + readinessProbe: + failureThreshold: 10 + httpGet: + path: /ws/demo/healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + triggers: + - type: ConfigChange diff --git a/src/main/fabric8/route.yml b/src/main/fabric8/route.yml new file mode 100644 index 0000000..19ad46c --- /dev/null +++ b/src/main/fabric8/route.yml @@ -0,0 +1,8 @@ +metadata: + name: openshift-tasks +spec: + port: + targetPort: 8080 + to: + kind: Service + name: openshift-tasks diff --git a/src/main/fabric8/service.yml b/src/main/fabric8/service.yml new file mode 100644 index 0000000..c8ed2a7 --- /dev/null +++ b/src/main/fabric8/service.yml @@ -0,0 +1,6 @@ +metadata: + name: openshift-tasks +spec: + ports: + - port: 8080 + targetPort: 8080