Skip to content

Instantly share code, notes, and snippets.

Created June 7, 2016 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d76d9c04c7417bc8bcf455b91db70424 to your computer and use it in GitHub Desktop.
Save anonymous/d76d9c04c7417bc8bcf455b91db70424 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Template
metadata:
labels:
template: ieml-env-development
name: ieml-env-development
objects:
- apiVersion: v1
kind: ImageStream
metadata:
annotations:
labels:
template: ieml-env-development
micro_service_name: dictionary
name: dictionary
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
template: ieml-env-development
micro_service_name: dictionary
name: dictionary
spec:
output:
to:
kind: ImageStreamTag
name: dictionary:latest
resources: {}
source:
git:
ref: develop
uri: https://github.com/ckemmler/ieml-openshift.git
contextDir: src/main/docker/dictionary
sourceSecret:
name: githubbasicsecret
type: Git
strategy:
type: Docker
triggers:
- type: ConfigChange
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
template: ieml-env-development
micro_service_name: dictionary
name: dictionary
spec:
replicas: 1
selector:
deploymentconfig: dictionary
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: dictionary
deploymentconfig: dictionary
spec:
containers:
- env:
image: dictionary
imagePullPolicy: Always
name: dictionary
ports:
- containerPort: 8080
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
triggers:
- imageChangeParams:
automatic: true
containerNames:
- dictionary
from:
kind: ImageStreamTag
name: dictionary:latest
type: ImageChange
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
template: ieml-env-development
micro_service_name: dictionary
name: dictionary
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
deploymentconfig: dictionary
sessionAffinity: None
type: ClusterIP
- apiVersion: v1
kind: Route
metadata:
labels:
template: ieml-env-development
micro_service_name: dictionary
name: dictionary
spec:
port:
targetPort: 8080
to:
kind: Service
name: dictionary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment