rohankanojia

Untitled

Mar 20th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.45 KB | None | 0 0
  1. spec:
  2.   replicas: 1
  3.   strategy:
  4.     type: Recreate
  5.     resources:
  6.       limits:
  7.         cpu: "500m"
  8.         memory: "512Mi"
  9.   template:
  10.     metadata:
  11.         project: demo
  12.         provider: fabric8
  13.     spec:
  14.       initContainers:
  15.         - args:
  16.            - '-source-keystore'
  17.             - /applicationtrust/existing.jks
  18.             - '-source-keystore-password'
  19.             - changeit
  20.             - '-keystore'
  21.             - /modifiedtrust/new.jks
  22.             - '-ca-file'
  23.             - /var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
  24.           image: 'openshift/pemtokeystore:v0.2.0'
  25.           imagePullPolicy: IfNotPresent
  26.           name: openshift-trust-importer
  27.           resources: {}
  28.           terminationMessagePath: /dev/termination-log
  29.           terminationMessagePolicy: File
  30.           volumeMounts:
  31.             - mountPath: /applicationtrust
  32.               name: application-truststore
  33.             - mountPath: /modifiedtrust
  34.               name: modified-truststore
  35.       containers:
  36.       - args:
  37.         - /usr/local/s2i/run
  38. #         - "${appargs}"
  39.         name: demo
  40.         volumeMounts:
  41.           - name: sample
  42.             mountPath: /sample
  43.           - name: jolokia
  44.             mountPath: /opt/jolokia/etc
  45.           - mountPath: /modifiedtrust
  46.             name: modified-truststore
  47.         ports:
  48.          -
  49.             name: https
  50.             containerPort: 8443
  51.             protocol: TCP
  52.           -
  53.             name: managementhttp
  54.             containerPort: 8081
  55.             protocol: TCP
  56.           -
  57.             name: prometheus
  58.             containerPort: 9779
  59.             protocol: TCP
  60.           -
  61.             name: jolokia
  62.             containerPort: 8778
  63.             protocol: TCP
  64.         env:
  65.           - name: TMPDIR
  66.             value: "/sample"
  67.           - name: JAEGER_SERVICE_NAME
  68.             value: "demoapp"
  69.           - name: JAEGER_SAMPLER_TYPE
  70.             value: "const"
  71.           - name: JAEGER_SAMPLER_PARAM
  72.             value: "1.0"
  73.           - name: JAVA_OPTIONS
  74.             value: "-Djava.io.tmpdir=/sample -Djavax.net.ssl.trustStore=/modifiedtrust/new.jks -Djava.net.ssl.trustStorePassword=changeit -agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n" #-Djavax.net.debug=all,trustmanager
  75.           - name: JAEGER_ENDPOINT
  76.             valueFrom:
  77.               secretKeyRef:
  78.                 key: JAEGER_ENDPOINT_INTERNAL
  79.                 name: tracing-secret
  80.           - name: JAEGER_USER
  81.             valueFrom:
  82.               secretKeyRef:
  83.                 key: JAEGER_USER
  84.                 name: tracing-secret
  85.           - name: JAEGER_PASSWORD
  86.             valueFrom:
  87.               secretKeyRef:
  88.                 key: JAEGER_PASSWORD
  89.                 name: tracing-secret
  90.           - name: SPLUNK_TOKEN
  91.             valueFrom:
  92.               configMapKeyRef:
  93.                 name: splunk
  94.                 key: token
  95.         resources:
  96.             requests:
  97.               cpu: "0.1"
  98.               memory: 200Mi
  99.             limits:
  100.               cpu: "0.5"
  101.               memory: 550Mi
  102.         livenessProbe:
  103.           httpGet:
  104.             path: /health
  105.             port: 8081
  106.             scheme: HTTPS
  107.           initialDelaySeconds: 1
  108.           timeoutSeconds: 30
  109.           periodSeconds: 60
  110.           successThreshold: 1
  111.           failureThreshold: 150
  112.         readinessProbe:
  113.           httpGet:
  114.             path: /health
  115.             port: 8081
  116.             scheme: HTTPS
  117.           initialDelaySeconds: 1
  118.           timeoutSeconds: 30
  119.           periodSeconds: 1
  120.           successThreshold: 1
  121.           failureThreshold: 500
  122.       - image: xxxx/xxxx:x.x.x
  123.         volumeMounts:
  124.           - name: sample
  125.             mountPath: /sample
  126.           - mountPath: /xxxxx/xxxxx
  127.             name: xxxx
  128.             subPath: xxxxx
  129.           - mountPath: xxxxx
  130.             name: xxxx
  131.             subPath: xxxxx
  132.         imagePullPolicy: Always
  133.         name: xxxxx
  134.         ports:
  135.           - containerPort: 48000
  136.             protocol: TCP
  137.           - containerPort: 48001
  138.             protocol: TCP
  139.           - containerPort: 48002
  140.             protocol: TCP
  141.         env:
  142.           - name: HUB_IP
  143.             valueFrom:
  144.                secretKeyRef:
  145.                  key: HUB-IP
  146.                  name: xxxx-secret
  147.           - name: HUB_DOMAIN
  148.             valueFrom:
  149.               secretKeyRef:
  150.                  key: HUB-DOMAIN
  151.                  name: xxxxx-secret
  152.           - name: HUB_USER
  153.             valueFrom:
  154.               secretKeyRef:
  155.                 key: HUB-USER
  156.                 name: xxxx-secret
  157.           - name: HUB_PASSWORD
  158.             valueFrom:
  159.               secretKeyRef:
  160.                 key: HUB-PASSWORD
  161.                 name: xxxx-secret
  162.         resources:
  163.             requests:
  164.               cpu: "0.1"
  165.               memory: 50Mi
  166.             limits:
  167.               cpu: "0.2"
  168.               memory: 150Mi
  169.         readinessProbe:
  170.           failureThreshold: 500
  171.           initialDelaySeconds: 1
  172.           periodSeconds: 10
  173.           successThreshold: 1
  174.           tcpSocket:
  175.             port: 48000
  176.           timeoutSeconds: 1
  177.         livenessProbe:
  178.           failureThreshold: 500
  179.           initialDelaySeconds: 1
  180.           periodSeconds: 10
  181.           successThreshold: 1
  182.           tcpSocket:
  183.             port: 48000
  184.           timeoutSeconds: 1
  185.         terminationMessagePath: /dev/termination-log
  186.         terminationMessagePolicy: File
Add Comment
Please, Sign In to add comment