Advertisement
rohankanojia

Untitled

Apr 3rd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 9.02 KB | None | 0 0
  1. ~/work/repos/fabric8-maven-plugin/samples/spring-boot : $ oc get dc
  2. oc dNAME                               REVISION   DESIRED   CURRENT   TRIGGERED BY
  3. fabric8-maven-sample-spring-boot   0          1         0         config
  4. e~/work/repos/fabric8-maven-plugin/samples/spring-boot : $ oc delete dc fabric8-maven-sample-spring-boot
  5. deploymentconfig.apps.openshift.io "fabric8-maven-sample-spring-boot" deleted
  6. ~/work/repos/fabric8-maven-plugin/samples/spring-boot : $ cd target/classes/META-INF/
  7. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF : $ ls
  8. fabric8
  9. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF : $ cd fabric8/
  10. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8 : $ ls
  11. kubernetes  kubernetes.yml  openshift  openshift.yml
  12. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8 : $ cd openshift/
  13. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ ls
  14. fabric8-maven-sample-spring-boot-deploymentconfig.yml  fabric8-maven-sample-spring-boot-route.yml  fabric8-maven-sample-spring-boot-service.yml
  15. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc create -f fabric8-maven-sample-spring-boot-deploymentconfig.yml
  16. deploymentconfig.apps.openshift.io/fabric8-maven-sample-spring-boot created
  17. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc get dc
  18. oc NAME                               REVISION   DESIRED   CURRENT   TRIGGERED BY
  19. fabric8-maven-sample-spring-boot   0          1         0         config
  20. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc get dc fabric8-maven-sample-spring-boot -o yaml
  21. apiVersion: apps.openshift.io/v1
  22. kind: DeploymentConfig
  23. metadata:
  24.   annotations:
  25.     fabric8.io/git-branch: master
  26.     fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
  27.     fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
  28.     fabric8.io/scm-tag: HEAD
  29.     fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
  30.   creationTimestamp: 2019-04-03T12:26:13Z
  31.   generation: 1
  32.   labels:
  33.     app: fabric8-maven-sample-spring-boot
  34.     group: io.fabric8
  35.     provider: fabric8
  36.     testProject: spring-boot-sample
  37.     version: 4.0-SNAPSHOT
  38.   name: fabric8-maven-sample-spring-boot
  39.   namespace: rohankanojia
  40.   resourceVersion: "3933613819"
  41.   selfLink: /apis/apps.openshift.io/v1/namespaces/rohankanojia/deploymentconfigs/fabric8-maven-sample-spring-boot
  42.   uid: aba00863-560b-11e9-87e7-12d641ec7610
  43. spec:
  44.   replicas: 1
  45.   revisionHistoryLimit: 2
  46.   selector:
  47.     app: fabric8-maven-sample-spring-boot
  48.     group: io.fabric8
  49.     provider: fabric8
  50.   strategy:
  51.     activeDeadlineSeconds: 21600
  52.     resources: {}
  53.     rollingParams:
  54.       intervalSeconds: 1
  55.       maxSurge: 25%
  56.       maxUnavailable: 25%
  57.       timeoutSeconds: 3600
  58.       updatePeriodSeconds: 1
  59.     type: Rolling
  60.   template:
  61.     metadata:
  62.       annotations:
  63.         fabric8.io/git-branch: master
  64.         fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
  65.         fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
  66.         fabric8.io/scm-tag: HEAD
  67.         fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
  68.       creationTimestamp: null
  69.       labels:
  70.         app: fabric8-maven-sample-spring-boot
  71.         group: io.fabric8
  72.         provider: fabric8
  73.         testProject: spring-boot-sample
  74.         version: 4.0-SNAPSHOT
  75.     spec:
  76.       containers:
  77.       - env:
  78.         - name: KUBERNETES_NAMESPACE
  79.           valueFrom:
  80.             fieldRef:
  81.               apiVersion: v1
  82.               fieldPath: metadata.namespace
  83.         image: fabric8-maven-sample-spring-boot:latest
  84.         imagePullPolicy: IfNotPresent
  85.         livenessProbe:
  86.           failureThreshold: 3
  87.           httpGet:
  88.             path: /health
  89.             port: 8080
  90.             scheme: HTTP
  91.           initialDelaySeconds: 180
  92.           periodSeconds: 10
  93.           successThreshold: 1
  94.           timeoutSeconds: 1
  95.         name: spring-boot
  96.         ports:
  97.         - containerPort: 8080
  98.           name: http
  99.           protocol: TCP
  100.         - containerPort: 9779
  101.           name: prometheus
  102.           protocol: TCP
  103.         - containerPort: 8778
  104.           name: jolokia
  105.           protocol: TCP
  106.         readinessProbe:
  107.           failureThreshold: 3
  108.           httpGet:
  109.             path: /health
  110.             port: 8080
  111.             scheme: HTTP
  112.           initialDelaySeconds: 10
  113.           periodSeconds: 10
  114.           successThreshold: 1
  115.           timeoutSeconds: 1
  116.         resources: {}
  117.         securityContext:
  118.           privileged: false
  119.         terminationMessagePath: /dev/termination-log
  120.         terminationMessagePolicy: File
  121.       dnsPolicy: ClusterFirst
  122.       restartPolicy: Always
  123.       schedulerName: default-scheduler
  124.       securityContext: {}
  125.       terminationGracePeriodSeconds: 30
  126.   test: false
  127.   triggers:
  128.   - type: ConfigChange
  129.   - imageChangeParams:
  130.       containerNames:
  131.      - spring-boot
  132.       from:
  133.         kind: ImageStreamTag
  134.         name: fabric8-maven-sample-spring-boot:latest
  135.         namespace: rohankanojia
  136.     type: ImageChange
  137. status:
  138.   availableReplicas: 0
  139.   conditions:
  140.   - lastTransitionTime: 2019-04-03T12:26:13Z
  141.     lastUpdateTime: 2019-04-03T12:26:13Z
  142.     message: Deployment config does not have minimum availability.
  143.     status: "False"
  144.     type: Available
  145.   latestVersion: 0
  146.   observedGeneration: 1
  147.   replicas: 0
  148.   unavailableReplicas: 0
  149.   updatedReplicas: 0
  150. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc version
  151. oc v3.11.0+0cbc58b
  152. kubernetes v1.11.0+d4cacc0
  153. features: Basic-Auth GSSAPI Kerberos SPNEGO
  154.  
  155. Server https://api.starter-us-east-1.openshift.com:443
  156. openshift v3.11.82
  157. kubernetes v1.11.0+d4cacc0
  158. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ cat fabric8-maven-sample-spring-boot-deploymentconfig.yml
  159. ---
  160. apiVersion: apps.openshift.io/v1
  161. kind: DeploymentConfig
  162. metadata:
  163.   annotations:
  164.     fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
  165.     fabric8.io/git-branch: master
  166.     fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
  167.     fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
  168.     fabric8.io/scm-tag: HEAD
  169.   labels:
  170.     testProject: spring-boot-sample
  171.     app: fabric8-maven-sample-spring-boot
  172.     provider: fabric8
  173.     version: 4.0-SNAPSHOT
  174.     group: io.fabric8
  175.   name: fabric8-maven-sample-spring-boot
  176. spec:
  177.   replicas: 1
  178.   revisionHistoryLimit: 2
  179.   selector:
  180.     app: fabric8-maven-sample-spring-boot
  181.     provider: fabric8
  182.     group: io.fabric8
  183.   strategy:
  184.     rollingParams:
  185.       timeoutSeconds: 3600
  186.     type: Rolling
  187.   template:
  188.     metadata:
  189.       annotations:
  190.         fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
  191.         fabric8.io/git-branch: master
  192.         fabric8.io/scm-tag: HEAD
  193.         fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
  194.         fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
  195.       labels:
  196.         testProject: spring-boot-sample
  197.         app: fabric8-maven-sample-spring-boot
  198.         provider: fabric8
  199.         version: 4.0-SNAPSHOT
  200.         group: io.fabric8
  201.     spec:
  202.       containers:
  203.       - env:
  204.         - name: KUBERNETES_NAMESPACE
  205.           valueFrom:
  206.             fieldRef:
  207.               fieldPath: metadata.namespace
  208.         image: fabric8-maven-sample-spring-boot:latest
  209.         imagePullPolicy: IfNotPresent
  210.         livenessProbe:
  211.           failureThreshold: 3
  212.           httpGet:
  213.             path: /health
  214.             port: 8080
  215.             scheme: HTTP
  216.           initialDelaySeconds: 180
  217.           successThreshold: 1
  218.         name: spring-boot
  219.         ports:
  220.         - containerPort: 8080
  221.           name: http
  222.           protocol: TCP
  223.         - containerPort: 9779
  224.           name: prometheus
  225.           protocol: TCP
  226.         - containerPort: 8778
  227.           name: jolokia
  228.           protocol: TCP
  229.         readinessProbe:
  230.           failureThreshold: 3
  231.           httpGet:
  232.             path: /health
  233.             port: 8080
  234.             scheme: HTTP
  235.           initialDelaySeconds: 10
  236.           successThreshold: 1
  237.         securityContext:
  238.           privileged: false
  239.   triggers:
  240.   - type: ConfigChange
  241.   - imageChangeParams:
  242.       automatic: false
  243.       containerNames:
  244.      - spring-boot
  245.       from:
  246.         kind: ImageStreamTag
  247.         name: fabric8-maven-sample-spring-boot:latest
  248.     type: ImageChange
  249. ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement