Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- labels:
- app: confluence
- name: confluence
- namespace: devtools
- spec:
- selector:
- matchLabels:
- app: confluence
- template:
- metadata:
- labels:
- app: confluence
- spec:
- dnsPolicy: None
- dnsConfig:
- nameservers:
- - "10.88.0.2"
- securityContext:
- runAsUser: 2
- runAsGroup: 2
- fsGroup: 2
- containers:
- - name: confluence
- env:
- # - name: JVM_SUPPORT_RECOMMENDED_ARGS
- # value: -javaagent:/opt/jmx_exporter/jmx_prometheus_javaagent-0.3.1.jar=9543:/opt/jmx_exporter/config.yml
- # - name: CATALINA_CONNECTOR_PROXYNAME
- # value: confluence.fashionnetwork.com
- # - name: CATALINA_CONNECTOR_PROXYPORT
- # value: "443"
- # - name: CATALINA_CONNECTOR_SCHEME
- # value: https
- # - name: CATALINA_CONNECTOR_SECURE
- # value: "true"
- - name: X_PROXY_NAME
- value: confluence.fashionnetwork.com
- - name: X_PROXY_PORT
- value: "443"
- - name: X_PROXY_SCHEME
- value: https
- - name: JAVA_OPTS
- # -Xmx1G -Xms1G
- value: >
- -javaagent:/opt/jmx_exporter/jmx_prometheus_javaagent-0.3.1.jar=9543:/opt/jmx_exporter/config.yml
- # It's one GB by default
- # - name: JVM_MINIMUM_MEMORY
- # value: 1024m
- # - name: JVM_MAXIMUM_MEMORY
- # value: 1024m
- image: cptactionhank/atlassian-confluence:6.14.1
- imagePullPolicy: IfNotPresent
- ports:
- - containerPort: 8090
- name: http
- protocol: TCP
- - containerPort: 8091
- name: synchrony
- protocol: TCP
- - containerPort: 9543
- name: metrics
- protocol: TCP
- readinessProbe:
- failureThreshold: 3
- initialDelaySeconds: 30
- periodSeconds: 15
- successThreshold: 1
- tcpSocket:
- port: http
- timeoutSeconds: 3
- livenessProbe:
- failureThreshold: 10
- initialDelaySeconds: 60
- periodSeconds: 15
- successThreshold: 1
- tcpSocket:
- port: http
- timeoutSeconds: 3
- resources:
- limits:
- cpu: 2
- # memory: 4Gi
- requests:
- cpu: 100m
- memory: 1Gi
- volumeMounts:
- - mountPath: /var/atlassian/confluence
- name: data
- - mountPath: /backup
- name: backup
- - name: jmx-config-volume
- mountPath: /opt/jmx_exporter/config.yml
- subPath: config.yml
- - mountPath: opt/jmx_exporter
- name: jmx
- initContainers:
- - command:
- - wget
- - https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.3.1/jmx_prometheus_javaagent-0.3.1.jar
- workingDir: "/jmx"
- image: busybox
- imagePullPolicy: IfNotPresent
- name: download-agent
- volumeMounts:
- - mountPath: /jmx
- name: jmx
- volumes:
- - name: data
- persistentVolumeClaim:
- claimName: confluence
- - name: backup
- persistentVolumeClaim:
- claimName: confluence-backup
- - name: jmx-config-volume
- configMap:
- name: confluence-jmx
- - name: jmx
- emptyDir: {}
Advertisement
Add Comment
Please, Sign In to add comment