Skip to content

Instantly share code, notes, and snippets.

@akram
Last active May 10, 2017 10:16
Show Gist options
  • Save akram/b7e0cb8944fe5c3f76c45206f585ea64 to your computer and use it in GitHub Desktop.
Save akram/b7e0cb8944fe5c3f76c45206f585ea64 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: trip-agency
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
generation: 1
labels:
app: flight-service
name: flight-service
spec:
replicas: 1
selector:
deploymentconfig: flight-service
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
creationTimestamp: null
labels:
app: flight-service
deploymentconfig: flight-service
spec:
containers:
- image: 172.30.173.149:5000/special-trip-agency2/flight-service@sha256:175f87e3eb5b88d2f8b410e61f166e740853a643358e5350ad62aff58afdbaf9
imagePullPolicy: Always
name: flight-service
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
- containerPort: 8778
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- flight-service
from:
kind: ImageStreamTag
name: flight-service:latest
namespace: special-trip-agency2
type: ImageChange
- type: ConfigChange
status: {}
- apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
generation: 1
labels:
app: hotel-service
name: hotel-service
spec:
replicas: 1
selector:
deploymentconfig: hotel-service
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
creationTimestamp: null
labels:
app: hotel-service
deploymentconfig: hotel-service
spec:
containers:
- image: 172.30.173.149:5000/special-trip-agency2/hotel-service@sha256:2a74b8fb9dd0d5f6cd256c4e155018b0d122d6d5e5269030a5a3f92ee34f7daf
imagePullPolicy: Always
name: hotel-service
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
- containerPort: 8778
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- hotel-service
from:
kind: ImageStreamTag
name: hotel-service:latest
namespace: special-trip-agency2
type: ImageChange
- type: ConfigChange
status: {}
- apiVersion: v1
kind: DeploymentConfig
metadata:
creationTimestamp: null
generation: 1
labels:
app: processserver63-postgresql-persistent-s2i
application: kie-app
template: processserver63-postgresql-persistent-s2i
xpaas: 1.3.3
name: kie-app
spec:
replicas: 1
selector:
deploymentConfig: kie-app
strategy:
recreateParams:
timeoutSeconds: 600
resources: {}
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
application: kie-app
deploymentConfig: kie-app
name: kie-app
spec:
containers:
- env:
- name: KIE_CONTAINER_DEPLOYMENT
value: processserver-library=org.openshift.quickstarts:processserver-library:1.3.0.Final
- name: KIE_SERVER_PROTOCOL
value: https
- name: KIE_SERVER_PORT
value: "8443"
- name: KIE_SERVER_USER
value: kieserver
- name: KIE_SERVER_PASSWORD
value: tfldDk7!
- name: KIE_SERVER_DOMAIN
value: other
- name: KIE_SERVER_PERSISTENCE_DIALECT
value: org.hibernate.dialect.PostgreSQL82Dialect
- name: DB_SERVICE_PREFIX_MAPPING
value: kie-app-postgresql=DB,kie-app-postgresql=QUARTZ
- name: TX_DATABASE_PREFIX_MAPPING
value: kie-app-postgresql=DB
- name: DB_JNDI
value: java:jboss/datasources/ExampleDS
- name: DB_USERNAME
value: userUlQ
- name: DB_PASSWORD
value: soCKkKQE
- name: DB_DATABASE
value: root
- name: DB_MIN_POOL_SIZE
- name: DB_MAX_POOL_SIZE
- name: DB_TX_ISOLATION
- name: QUARTZ_JNDI
value: java:jboss/datasources/ExampleDSNotManaged
- name: QUARTZ_USERNAME
value: userUlQ
- name: QUARTZ_PASSWORD
value: soCKkKQE
- name: QUARTZ_DATABASE
value: root
- name: QUARTZ_MIN_POOL_SIZE
- name: QUARTZ_MAX_POOL_SIZE
- name: QUARTZ_TX_ISOLATION
- name: QUARTZ_JTA
value: "false"
- name: QUARTZ_NONXA
value: "true"
- name: HTTPS_KEYSTORE_DIR
value: /etc/processserver-secret-volume
- name: HTTPS_KEYSTORE
value: keystore.jks
- name: HTTPS_NAME
value: jboss
- name: HTTPS_PASSWORD
value: mykeystorepass
- name: HORNETQ_CLUSTER_PASSWORD
value: qr0GUfMh
- name: HORNETQ_QUEUES
- name: HORNETQ_TOPICS
image: kie-app
imagePullPolicy: Always
livenessProbe:
exec:
command:
- /bin/bash
- -c
- /opt/eap/bin/livenessProbe.sh
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: kie-app
ports:
- containerPort: 8778
name: jolokia
protocol: TCP
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8443
name: https
protocol: TCP
readinessProbe:
exec:
command:
- /bin/bash
- -c
- /opt/eap/bin/readinessProbe.sh
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /etc/processserver-secret-volume
name: processserver-keystore-volume
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
serviceAccount: processserver-service-account
serviceAccountName: processserver-service-account
terminationGracePeriodSeconds: 60
volumes:
- name: processserver-keystore-volume
secret:
defaultMode: 420
secretName: processserver-app-secret
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- kie-app
from:
kind: ImageStreamTag
name: kie-app:latest
namespace: special-trip-agency2
type: ImageChange
- type: ConfigChange
status: {}
- apiVersion: v1
kind: DeploymentConfig
metadata:
creationTimestamp: null
generation: 1
labels:
app: processserver63-postgresql-persistent-s2i
application: kie-app
template: processserver63-postgresql-persistent-s2i
xpaas: 1.3.3
name: kie-app-postgresql
spec:
replicas: 1
selector:
deploymentConfig: kie-app-postgresql
strategy:
recreateParams:
timeoutSeconds: 600
resources: {}
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
application: kie-app
deploymentConfig: kie-app-postgresql
name: kie-app-postgresql
spec:
containers:
- env:
- name: POSTGRESQL_USER
value: userUlQ
- name: POSTGRESQL_PASSWORD
value: soCKkKQE
- name: POSTGRESQL_DATABASE
value: root
- name: POSTGRESQL_MAX_CONNECTIONS
- name: POSTGRESQL_SHARED_BUFFERS
image: registry.access.redhat.com/rhscl/postgresql-95-rhel7@sha256:54cfbbaac6c89aec0baf62d49e854c7ae43816138b6ff7a3de5016f90b29f4f5
imagePullPolicy: Always
name: kie-app-postgresql
ports:
- containerPort: 5432
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /var/lib/pgsql/data
name: kie-app-postgresql-pvol
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 60
volumes:
- name: kie-app-postgresql-pvol
persistentVolumeClaim:
claimName: kie-app-postgresql-claim
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- kie-app-postgresql
from:
kind: ImageStreamTag
name: postgresql:latest
namespace: openshift
type: ImageChange
- type: ConfigChange
status: {}
- apiVersion: v1
kind: ImageStream
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
generation: 1
labels:
app: flight-service
name: flight-service
spec:
tags:
- annotations: null
from:
kind: DockerImage
name: 172.30.173.149:5000/special-trip-agency2/flight-service:latest
generation: null
importPolicy: {}
name: latest
status:
dockerImageRepository: ""
- apiVersion: v1
kind: ImageStream
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
generation: 1
labels:
app: hotel-service
name: hotel-service
spec:
tags:
- annotations: null
from:
kind: DockerImage
name: 172.30.173.149:5000/special-trip-agency2/hotel-service:latest
generation: null
importPolicy: {}
name: latest
status:
dockerImageRepository: ""
- apiVersion: v1
kind: ImageStream
metadata:
creationTimestamp: null
generation: 1
labels:
app: processserver63-postgresql-persistent-s2i
application: kie-app
template: processserver63-postgresql-persistent-s2i
xpaas: 1.3.3
name: kie-app
spec: {}
status:
dockerImageRepository: ""
- apiVersion: v1
kind: Service
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: flight-service
name: flight-service
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
- name: 8443-tcp
port: 8443
protocol: TCP
targetPort: 8443
- name: 8778-tcp
port: 8778
protocol: TCP
targetPort: 8778
selector:
deploymentconfig: flight-service
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: hotel-service
name: hotel-service
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
- name: 8443-tcp
port: 8443
protocol: TCP
targetPort: 8443
- name: 8778-tcp
port: 8778
protocol: TCP
targetPort: 8778
selector:
deploymentconfig: hotel-service
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
description: The web server's http port.
creationTimestamp: null
labels:
app: processserver63-postgresql-persistent-s2i
application: kie-app
template: processserver63-postgresql-persistent-s2i
xpaas: 1.3.3
name: kie-app
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
deploymentConfig: kie-app
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
description: The database server's port.
creationTimestamp: null
labels:
app: processserver63-postgresql-persistent-s2i
application: kie-app
template: processserver63-postgresql-persistent-s2i
xpaas: 1.3.3
name: kie-app-postgresql
spec:
ports:
- port: 5432
protocol: TCP
targetPort: 5432
selector:
deploymentConfig: kie-app-postgresql
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: Service
metadata:
annotations:
description: The web server's https port.
creationTimestamp: null
labels:
app: processserver63-postgresql-persistent-s2i
application: kie-app
template: processserver63-postgresql-persistent-s2i
xpaas: 1.3.3
name: secure-kie-app
spec:
ports:
- port: 8443
protocol: TCP
targetPort: 8443
selector:
deploymentConfig: kie-app
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: BuildConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: flight-service
name: flight-service
spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: flight-service:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: acme-demo-flight-service
git:
ref: master
uri: https://github.com/akram/bpms-travel-agency-demo-repo.git
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: jboss-eap64-openshift:1.4
namespace: openshift
type: Source
triggers:
- generic:
secret: ff90e87494840ed0
type: Generic
- github:
secret: b1caf3592016d929
type: GitHub
- imageChange: {}
type: ImageChange
- type: ConfigChange
status:
lastVersion: 0
- apiVersion: v1
kind: BuildConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: hotel-service
name: hotel-service
spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: hotel-service:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: acme-demo-hotel-service
git:
ref: openshift
uri: https://github.com/akram/bpms-travel-agency-demo-repo.git
type: Git
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: jboss-eap64-openshift:1.4
namespace: openshift
type: Source
triggers:
- generic:
secret: 86eaec39475923e1
type: Generic
- github:
secret: e76101a96a248cc1
type: GitHub
- imageChange: {}
type: ImageChange
- type: ConfigChange
status:
lastVersion: 0
- apiVersion: v1
kind: BuildConfig
metadata:
creationTimestamp: null
labels:
app: processserver63-postgresql-persistent-s2i
application: kie-app
template: processserver63-postgresql-persistent-s2i
xpaas: 1.3.3
name: kie-app
spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: kie-app:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: specialtripsagencyproject
git:
ref: openshift
uri: https://github.com/akram/bpms-travel-agency-demo-repo.git
type: Git
strategy:
sourceStrategy:
env:
- name: KIE_CONTAINER_DEPLOYMENT
value: processserver-library=org.openshift.quickstarts:processserver-library:1.3.0.Final
forcePull: true
from:
kind: ImageStreamTag
name: jboss-processserver63-openshift:1.3
namespace: openshift
type: Source
triggers:
- github:
secret: eh8QTlVo
type: GitHub
- generic:
secret: rns4NMEr
type: Generic
- imageChange: {}
type: ImageChange
- type: ConfigChange
status:
lastVersion: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment