Created
January 30, 2020 14:01
-
-
Save artsok/7a04cb785551a6dfee21740a362787eb to your computer and use it in GitHub Desktop.
openshift-wildfly-app
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: v1 | |
kind: Template | |
labels: | |
template: rest-coverage | |
metadata: | |
annotations: | |
description: Application template for application. | |
iconClass: icon-jboss | |
tags: ufs,coverage,rest | |
version: 0.0.1 | |
creationTimestamp: null | |
name: UFS RESR API Coverage Applicataion | |
objects: | |
- apiVersion: v1 | |
kind: DeploymentConfig | |
metadata: | |
labels: | |
app: ${APPNAME} | |
name: ${APPNAME} | |
namespace: ${NAMESPACE} | |
spec: | |
replicas: 1 | |
selector: | |
app: ${APPNAME} | |
deploymentconfig: ${APPNAME} | |
strategy: | |
activeDeadlineSeconds: 21600 | |
resources: {} | |
rollingParams: | |
intervalSeconds: 1 | |
maxSurge: 25% | |
maxUnavailable: 25% | |
timeoutSeconds: 600 | |
updatePeriodSeconds: 1 | |
type: Rolling | |
template: | |
metadata: | |
annotations: | |
openshift.io/generated-by: OpenShiftWebConsole | |
creationTimestamp: null | |
labels: | |
app: ${APPNAME} | |
deploymentconfig: ${APPNAME} | |
spec: | |
containers: | |
- image: docker-registry.default.svc:5000/${NAMESPACE}/${APPNAME}:0.6 | |
imagePullPolicy: Always | |
name: ${APPNAME} | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
resources: | |
limits: | |
cpu: 1000m | |
memory: 1500Mi | |
requests: | |
cpu: 500m | |
memory: 1000Mi | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler | |
securityContext: {} | |
terminationGracePeriodSeconds: 30 | |
test: false | |
triggers: | |
- type: ConfigChange | |
- imageChangeParams: | |
automatic: true | |
containerNames: | |
- ${APPNAME} | |
from: | |
kind: ImageStreamTag | |
name: '${APPNAME}:0.6' | |
namespace: ${NAMESPACE} | |
type: ImageChange | |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: null | |
name: ${APPNAME} | |
spec: | |
ports: | |
- name: 8080-tcp | |
port: 8080 | |
protocol: TCP | |
targetPort: 8080 | |
- name: 9990-tcp | |
port: 9990 | |
protocol: TCP | |
targetPort: 9990 | |
selector: | |
deploymentconfig: ${APPNAME} | |
sessionAffinity: None | |
type: ClusterIP | |
status: | |
loadBalancer: {} | |
- apiVersion: v1 | |
kind: Route | |
metadata: | |
annotations: | |
openshift.io/host.generated: "true" | |
creationTimestamp: null | |
name: ${APPNAME} | |
spec: | |
host: test-coverage.${OPENSHIFT_SUFFIXE} | |
port: | |
targetPort: 8080-tcp | |
to: | |
kind: Service | |
name: ${APPNAME} | |
weight: 100 | |
wildcardPolicy: None | |
parameters: | |
- name: NAMESPACE | |
description: Name of OC Project | |
value: ufs-selenoid-cluster | |
required: true | |
- name: APPNAME | |
description: Name of App | |
value: wildfly | |
required: true | |
- name: OPENSHIFT_SUFFIXE | |
description: Base of web access for openshift | |
value: apps.test-ose.sigma.sbrf.ru | |
required: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment