Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot : $ oc get dc
- oc dNAME REVISION DESIRED CURRENT TRIGGERED BY
- fabric8-maven-sample-spring-boot 0 1 0 config
- e~/work/repos/fabric8-maven-plugin/samples/spring-boot : $ oc delete dc fabric8-maven-sample-spring-boot
- deploymentconfig.apps.openshift.io "fabric8-maven-sample-spring-boot" deleted
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot : $ cd target/classes/META-INF/
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF : $ ls
- fabric8
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF : $ cd fabric8/
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8 : $ ls
- kubernetes kubernetes.yml openshift openshift.yml
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8 : $ cd openshift/
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ ls
- fabric8-maven-sample-spring-boot-deploymentconfig.yml fabric8-maven-sample-spring-boot-route.yml fabric8-maven-sample-spring-boot-service.yml
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc create -f fabric8-maven-sample-spring-boot-deploymentconfig.yml
- deploymentconfig.apps.openshift.io/fabric8-maven-sample-spring-boot created
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc get dc
- oc NAME REVISION DESIRED CURRENT TRIGGERED BY
- fabric8-maven-sample-spring-boot 0 1 0 config
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc get dc fabric8-maven-sample-spring-boot -o yaml
- apiVersion: apps.openshift.io/v1
- kind: DeploymentConfig
- metadata:
- annotations:
- fabric8.io/git-branch: master
- fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
- fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
- fabric8.io/scm-tag: HEAD
- fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
- creationTimestamp: 2019-04-03T12:26:13Z
- generation: 1
- labels:
- app: fabric8-maven-sample-spring-boot
- group: io.fabric8
- provider: fabric8
- testProject: spring-boot-sample
- version: 4.0-SNAPSHOT
- name: fabric8-maven-sample-spring-boot
- namespace: rohankanojia
- resourceVersion: "3933613819"
- selfLink: /apis/apps.openshift.io/v1/namespaces/rohankanojia/deploymentconfigs/fabric8-maven-sample-spring-boot
- uid: aba00863-560b-11e9-87e7-12d641ec7610
- spec:
- replicas: 1
- revisionHistoryLimit: 2
- selector:
- app: fabric8-maven-sample-spring-boot
- group: io.fabric8
- provider: fabric8
- strategy:
- activeDeadlineSeconds: 21600
- resources: {}
- rollingParams:
- intervalSeconds: 1
- maxSurge: 25%
- maxUnavailable: 25%
- timeoutSeconds: 3600
- updatePeriodSeconds: 1
- type: Rolling
- template:
- metadata:
- annotations:
- fabric8.io/git-branch: master
- fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
- fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
- fabric8.io/scm-tag: HEAD
- fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
- creationTimestamp: null
- labels:
- app: fabric8-maven-sample-spring-boot
- group: io.fabric8
- provider: fabric8
- testProject: spring-boot-sample
- version: 4.0-SNAPSHOT
- spec:
- containers:
- - env:
- - name: KUBERNETES_NAMESPACE
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: metadata.namespace
- image: fabric8-maven-sample-spring-boot:latest
- imagePullPolicy: IfNotPresent
- livenessProbe:
- failureThreshold: 3
- httpGet:
- path: /health
- port: 8080
- scheme: HTTP
- initialDelaySeconds: 180
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- name: spring-boot
- ports:
- - containerPort: 8080
- name: http
- protocol: TCP
- - containerPort: 9779
- name: prometheus
- protocol: TCP
- - containerPort: 8778
- name: jolokia
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /health
- port: 8080
- scheme: HTTP
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources: {}
- securityContext:
- privileged: false
- terminationMessagePath: /dev/termination-log
- terminationMessagePolicy: File
- dnsPolicy: ClusterFirst
- restartPolicy: Always
- schedulerName: default-scheduler
- securityContext: {}
- terminationGracePeriodSeconds: 30
- test: false
- triggers:
- - type: ConfigChange
- - imageChangeParams:
- containerNames:
- - spring-boot
- from:
- kind: ImageStreamTag
- name: fabric8-maven-sample-spring-boot:latest
- namespace: rohankanojia
- type: ImageChange
- status:
- availableReplicas: 0
- conditions:
- - lastTransitionTime: 2019-04-03T12:26:13Z
- lastUpdateTime: 2019-04-03T12:26:13Z
- message: Deployment config does not have minimum availability.
- status: "False"
- type: Available
- latestVersion: 0
- observedGeneration: 1
- replicas: 0
- unavailableReplicas: 0
- updatedReplicas: 0
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ oc version
- oc v3.11.0+0cbc58b
- kubernetes v1.11.0+d4cacc0
- features: Basic-Auth GSSAPI Kerberos SPNEGO
- Server https://api.starter-us-east-1.openshift.com:443
- openshift v3.11.82
- kubernetes v1.11.0+d4cacc0
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $ cat fabric8-maven-sample-spring-boot-deploymentconfig.yml
- ---
- apiVersion: apps.openshift.io/v1
- kind: DeploymentConfig
- metadata:
- annotations:
- fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
- fabric8.io/git-branch: master
- fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
- fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
- fabric8.io/scm-tag: HEAD
- labels:
- testProject: spring-boot-sample
- app: fabric8-maven-sample-spring-boot
- provider: fabric8
- version: 4.0-SNAPSHOT
- group: io.fabric8
- name: fabric8-maven-sample-spring-boot
- spec:
- replicas: 1
- revisionHistoryLimit: 2
- selector:
- app: fabric8-maven-sample-spring-boot
- provider: fabric8
- group: io.fabric8
- strategy:
- rollingParams:
- timeoutSeconds: 3600
- type: Rolling
- template:
- metadata:
- annotations:
- fabric8.io/git-commit: ed52b43df350979988fc0d40a35fcc0d26d3c1bd
- fabric8.io/git-branch: master
- fabric8.io/scm-tag: HEAD
- fabric8.io/git-url: git@github.com:rohanKanojia/fabric8-maven-plugin.git
- fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/fabric8-maven-sample-spring-boot
- labels:
- testProject: spring-boot-sample
- app: fabric8-maven-sample-spring-boot
- provider: fabric8
- version: 4.0-SNAPSHOT
- group: io.fabric8
- spec:
- containers:
- - env:
- - name: KUBERNETES_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- image: fabric8-maven-sample-spring-boot:latest
- imagePullPolicy: IfNotPresent
- livenessProbe:
- failureThreshold: 3
- httpGet:
- path: /health
- port: 8080
- scheme: HTTP
- initialDelaySeconds: 180
- successThreshold: 1
- name: spring-boot
- ports:
- - containerPort: 8080
- name: http
- protocol: TCP
- - containerPort: 9779
- name: prometheus
- protocol: TCP
- - containerPort: 8778
- name: jolokia
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /health
- port: 8080
- scheme: HTTP
- initialDelaySeconds: 10
- successThreshold: 1
- securityContext:
- privileged: false
- triggers:
- - type: ConfigChange
- - imageChangeParams:
- automatic: false
- containerNames:
- - spring-boot
- from:
- kind: ImageStreamTag
- name: fabric8-maven-sample-spring-boot:latest
- type: ImageChange
- ~/work/repos/fabric8-maven-plugin/samples/spring-boot/target/classes/META-INF/fabric8/openshift : $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement