Advertisement
rohankanojia

Untitled

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