Guest User

Untitled

a guest
Feb 11th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.23 KB | None | 0 0
  1. ---
  2. kind: ImageStream
  3. apiVersion: v1
  4. metadata:
  5.   name: sample-phpinfo
  6.   annotations:
  7.     description: very simple app that display phpinfo() method
  8.  
  9. ---
  10. kind: BuildConfig
  11. apiversion: v1
  12. metadata:
  13.   name: sample-phpinfo
  14. spec:
  15.   triggers:
  16.     - type: GitHub
  17.       github:
  18.         secret: secret101
  19.   source:
  20.     type: Git
  21.     git:
  22.       uri: "https://github.com/fvillain/sample-phpinfo.git"
  23.   strategy:
  24.     type: Docker
  25.   output:
  26.     to:
  27.       kind: "ImageStreamTag"
  28.       name: "sample-phpinfo:latest"
  29.  
  30. ---
  31. kind: DeploymentConfig
  32. apiVersion: v1
  33. metadata:
  34.   name: sample-phpinfo
  35. spec:
  36.   template:
  37.     metadata:
  38.       labels:
  39.         name: "sample-phpinfo"
  40.     spec:
  41.       containers:
  42.         - name: sample-phpinfo
  43.           image: sample-phpinfo
  44.           ports:
  45.             - containerPort: 9000
  46.               protocol: "TCP"
  47.           livenessProbe:
  48.             tcpSocket:
  49.               port: 9000
  50.             initialDelaySeconds: 30
  51.             timeoutSeconds: 1
  52.           readinessProbe:
  53.             tcpSocket:
  54.               port: 9000
  55.             initialDelaySeconds: 30
  56.             timeoutSeconds: 1
  57.   replicas: 5
  58.   selector:
  59.     name: sample-phpinfo
  60.   triggers: []
  61.   strategy:
  62.     type: "Rolling
Add Comment
Please, Sign In to add comment