Skip to content

Instantly share code, notes, and snippets.

/dockerservice.yaml
Created Jun 7, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.