Created
May 19, 2016 13:38
-
-
Save surajssd/24064763b9d5a4d1a1a90739fef7aaf1 to your computer and use it in GitHub Desktop.
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: | |
compose: example-voting-app | |
metadata: | |
creationTimestamp: null | |
name: mytemplate | |
objects: | |
- apiVersion: v1 | |
kind: ImageStream | |
metadata: | |
creationTimestamp: null | |
name: result-app | |
spec: | |
tags: | |
- annotations: | |
openshift.io/imported-from: mhart/alpine-node:5.11.0 | |
from: | |
kind: DockerImage | |
name: mhart/alpine-node:5.11.0 | |
generation: null | |
importPolicy: {} | |
name: from | |
status: | |
dockerImageRepository: "" | |
- apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
creationTimestamp: null | |
name: result-app | |
spec: | |
output: | |
to: | |
kind: ImageStreamTag | |
name: result-app:latest | |
postCommit: {} | |
resources: {} | |
source: | |
contextDir: example-voting-app/result-app | |
git: | |
ref: master | |
uri: https://github.com/docker/docker-birthday-3 | |
secrets: null | |
type: Git | |
strategy: | |
dockerStrategy: | |
from: | |
kind: ImageStreamTag | |
name: result-app:from | |
type: Docker | |
triggers: | |
- github: | |
secret: PebKZdHxUDKIF2THh6pu | |
type: GitHub | |
- generic: | |
secret: p0EVMznb25BsxVE6GQjZ | |
type: Generic | |
- type: ConfigChange | |
- imageChange: {} | |
type: ImageChange | |
status: | |
lastVersion: 0 | |
- apiVersion: v1 | |
kind: ImageStream | |
metadata: | |
creationTimestamp: null | |
name: voting-app | |
spec: | |
tags: | |
- annotations: | |
openshift.io/imported-from: python:2.7-alpine | |
from: | |
kind: DockerImage | |
name: python:2.7-alpine | |
generation: null | |
importPolicy: {} | |
name: from | |
status: | |
dockerImageRepository: "" | |
- apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
creationTimestamp: null | |
name: voting-app | |
spec: | |
output: | |
to: | |
kind: ImageStreamTag | |
name: voting-app:latest | |
postCommit: {} | |
resources: {} | |
source: | |
contextDir: example-voting-app/voting-app | |
git: | |
ref: master | |
uri: https://github.com/docker/docker-birthday-3 | |
secrets: null | |
type: Git | |
strategy: | |
dockerStrategy: | |
from: | |
kind: ImageStreamTag | |
name: voting-app:from | |
type: Docker | |
triggers: | |
- github: | |
secret: EaMe0eldVM3MIVtCVfoa | |
type: GitHub | |
- generic: | |
secret: M1DaNkZJ7tXksj8uxO-- | |
type: Generic | |
- type: ConfigChange | |
- imageChange: {} | |
type: ImageChange | |
status: | |
lastVersion: 0 | |
- apiVersion: v1 | |
kind: ImageStream | |
metadata: | |
creationTimestamp: null | |
name: db | |
spec: | |
tags: | |
- annotations: | |
openshift.io/imported-from: postgres:9.4 | |
from: | |
kind: DockerImage | |
name: postgres:9.4 | |
generation: null | |
importPolicy: {} | |
name: "9.4" | |
status: | |
dockerImageRepository: "" | |
- apiVersion: v1 | |
kind: DeploymentConfig | |
metadata: | |
creationTimestamp: null | |
name: db | |
spec: | |
replicas: 1 | |
selector: | |
deploymentconfig: db | |
strategy: | |
resources: {} | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
deploymentconfig: db | |
spec: | |
containers: | |
- image: postgres:9.4 | |
name: db | |
resources: {} | |
volumeMounts: | |
- mountPath: /var/lib/postgresql/data | |
name: dir-1 | |
volumes: | |
- emptyDir: {} | |
name: dir-1 | |
test: false | |
triggers: | |
- type: ConfigChange | |
- imageChangeParams: | |
automatic: true | |
containerNames: | |
- db | |
from: | |
kind: ImageStreamTag | |
name: db:9.4 | |
type: ImageChange | |
status: {} | |
- apiVersion: v1 | |
kind: ImageStream | |
metadata: | |
creationTimestamp: null | |
name: redis | |
spec: | |
tags: | |
- annotations: | |
openshift.io/imported-from: redis:alpine | |
from: | |
kind: DockerImage | |
name: redis:alpine | |
generation: null | |
importPolicy: {} | |
name: alpine | |
status: | |
dockerImageRepository: "" | |
- apiVersion: v1 | |
kind: DeploymentConfig | |
metadata: | |
creationTimestamp: null | |
name: redis | |
spec: | |
replicas: 1 | |
selector: | |
deploymentconfig: redis | |
strategy: | |
resources: {} | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
deploymentconfig: redis | |
spec: | |
containers: | |
- image: redis:alpine | |
name: redis | |
ports: | |
- containerPort: 6379 | |
resources: {} | |
test: false | |
triggers: | |
- type: ConfigChange | |
- imageChangeParams: | |
automatic: true | |
containerNames: | |
- redis | |
from: | |
kind: ImageStreamTag | |
name: redis:alpine | |
type: ImageChange | |
status: {} | |
- apiVersion: v1 | |
kind: DeploymentConfig | |
metadata: | |
creationTimestamp: null | |
name: result-app | |
spec: | |
replicas: 1 | |
selector: | |
deploymentconfig: result-app | |
strategy: | |
resources: {} | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
deploymentconfig: result-app | |
spec: | |
containers: | |
- image: result-app | |
name: result-app | |
ports: | |
- containerPort: 80 | |
resources: {} | |
volumeMounts: | |
- mountPath: /app | |
name: dir-1 | |
volumes: | |
- emptyDir: {} | |
name: dir-1 | |
test: false | |
triggers: | |
- type: ConfigChange | |
- imageChangeParams: | |
automatic: true | |
containerNames: | |
- result-app | |
from: | |
kind: ImageStreamTag | |
name: result-app:latest | |
type: ImageChange | |
status: {} | |
- apiVersion: v1 | |
kind: DeploymentConfig | |
metadata: | |
creationTimestamp: null | |
name: voting-app | |
spec: | |
replicas: 1 | |
selector: | |
deploymentconfig: voting-app | |
strategy: | |
resources: {} | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
deploymentconfig: voting-app | |
spec: | |
containers: | |
- image: voting-app | |
name: voting-app | |
ports: | |
- containerPort: 80 | |
resources: {} | |
volumeMounts: | |
- mountPath: /app | |
name: dir-1 | |
volumes: | |
- emptyDir: {} | |
name: dir-1 | |
test: false | |
triggers: | |
- type: ConfigChange | |
- imageChangeParams: | |
automatic: true | |
containerNames: | |
- voting-app | |
from: | |
kind: ImageStreamTag | |
name: voting-app:latest | |
type: ImageChange | |
status: {} | |
- apiVersion: v1 | |
kind: ImageStream | |
metadata: | |
creationTimestamp: null | |
name: worker | |
spec: | |
tags: | |
- annotations: | |
openshift.io/imported-from: manomarks/worker | |
from: | |
kind: DockerImage | |
name: manomarks/worker | |
generation: null | |
importPolicy: {} | |
name: latest | |
status: | |
dockerImageRepository: "" | |
- apiVersion: v1 | |
kind: DeploymentConfig | |
metadata: | |
creationTimestamp: null | |
name: worker | |
spec: | |
replicas: 1 | |
selector: | |
deploymentconfig: worker | |
strategy: | |
resources: {} | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
deploymentconfig: worker | |
spec: | |
containers: | |
- image: manomarks/worker | |
name: worker | |
resources: {} | |
test: false | |
triggers: | |
- type: ConfigChange | |
- imageChangeParams: | |
automatic: true | |
containerNames: | |
- worker | |
from: | |
kind: ImageStreamTag | |
name: worker:latest | |
type: ImageChange | |
status: {} | |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: null | |
name: redis | |
spec: | |
ports: | |
- name: 6379-tcp | |
port: 6379 | |
targetPort: 6379 | |
selector: | |
deploymentconfig: redis | |
status: | |
loadBalancer: {} | |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: null | |
name: result-app | |
spec: | |
ports: | |
- name: 80-tcp | |
port: 80 | |
targetPort: 80 | |
selector: | |
deploymentconfig: result-app | |
status: | |
loadBalancer: {} | |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: null | |
name: voting-app | |
spec: | |
ports: | |
- name: 80-tcp | |
port: 80 | |
targetPort: 80 | |
selector: | |
deploymentconfig: voting-app | |
status: | |
loadBalancer: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment