rohankanojia

Untitled

Aug 28th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.19 KB | None | 0 0
  1. ---
  2. apiVersion: v1
  3. kind: List
  4. items:
  5. - apiVersion: apps.openshift.io/v1
  6.   kind: DeploymentConfig
  7.   metadata:
  8.     annotations:
  9.       fabric8.io/git-commit: 062734ea18dfc2d3d5ebcfc52fe32749472c502b
  10.       fabric8.io/git-branch: master
  11.       fabric8.io/git-url: [email protected]:r0haaaan/quarkus-sample-with-fabric8-maven-plugin-fragments.git
  12.     labels:
  13.       testProject: spring-boot-sample
  14.       app: getting-started
  15.       provider: fabric8
  16.       version: 1.0-SNAPSHOT
  17.       group: org.acme
  18.     name: getting-started
  19.   spec:
  20.     replicas: 1
  21.     revisionHistoryLimit: 2
  22.     selector:
  23.       app: getting-started
  24.       provider: fabric8
  25.       group: org.acme
  26.     strategy:
  27.       rollingParams:
  28.         timeoutSeconds: 3600
  29.       type: Rolling
  30.     template:
  31.       metadata:
  32.         annotations:
  33.           fabric8.io/git-commit: 062734ea18dfc2d3d5ebcfc52fe32749472c502b
  34.           fabric8.io/git-branch: master
  35.           fabric8.io/git-url: [email protected]:r0haaaan/quarkus-sample-with-fabric8-maven-plugin-fragments.git
  36.         labels:
  37.           testProject: spring-boot-sample
  38.           app: getting-started
  39.           provider: fabric8
  40.           version: 1.0-SNAPSHOT
  41.           group: org.acme
  42.       spec:
  43.         containers:
  44.         - args:
  45.          - /bin/sh
  46.           - -c
  47.           - 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done'
  48.          env:
  49.          - name: KUBERNETES_NAMESPACE
  50.            valueFrom:
  51.              fieldRef:
  52.                fieldPath: metadata.namespace
  53.          image: ""
  54.          imagePullPolicy: Always
  55.          name: count
  56.          ports:
  57.          - containerPort: 8080
  58.            name: http
  59.            protocol: TCP
  60.          securityContext:
  61.            privileged: false
  62.          volumeMounts:
  63.          - mountPath: /var/run/secrets/fabric8.io/tls-pem
  64.            name: tls-pem
  65.            readOnly: true
  66.          - mountPath: /var/run/secrets/fabric8.io/tls-jks
  67.            name: tls-jks
  68.            readOnly: true
  69.        - env:
  70.          - name: KUBERNETES_NAMESPACE
  71.            valueFrom:
  72.              fieldRef:
  73.                fieldPath: metadata.namespace
  74.          image: ""
  75.          imagePullPolicy: IfNotPresent
  76.          livenessProbe:
  77.            failureThreshold: 3
  78.            httpGet:
  79.              path: /health
  80.              port: 8080
  81.              scheme: HTTP
  82.            initialDelaySeconds: 180
  83.            successThreshold: 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.            successThreshold: 1
  103.          securityContext:
  104.            privileged: false
  105.          volumeMounts:
  106.          - mountPath: /var/run/secrets/fabric8.io/tls-pem
  107.            name: tls-pem
  108.            readOnly: true
  109.          - mountPath: /var/run/secrets/fabric8.io/tls-jks
  110.            name: tls-jks
  111.            readOnly: true
  112.        initContainers:
  113.        - args:
  114.          - -cert-file
  115.          - server=/tls-pem/tls.crt
  116.          - -key-file
  117.          - server=/tls-pem/tls.key
  118.          - -keystore
  119.          - /tls-jks/keystore.jks
  120.          - -keystore-password
  121.          - changeit
  122.          image: openshift/pemtokeystore:v0.2.0
  123.          imagePullPolicy: IfNotPresent
  124.          name: tls-jks-converter
  125.          volumeMounts:
  126.          - mountPath: /tls-pem
  127.            name: tls-pem
  128.          - mountPath: /tls-jks
  129.            name: tls-jks
  130.        volumes:
  131.        - name: tls-pem
  132.          secret:
  133.            secretName: getting-started-tls
  134.        - emptyDir:
  135.            medium: Memory
  136.          name: tls-jks
  137.    triggers:
  138.    - imageChangeParams:
  139.        automatic: false
  140.        containerNames:
  141.        - count
  142.        from:
  143.          kind: ImageStreamTag
  144.          name: busybox:latest
  145.      type: ImageChange
Add Comment
Please, Sign In to add comment