Last active
November 6, 2019 03:44
-
-
Save jc1518/e6ec84f01e4fbe2e5517a02ed38b24ca to your computer and use it in GitHub Desktop.
Jira statefulset config file on k8s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: jira | |
spec: | |
serviceName: jira | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: jira | |
template: | |
metadata: | |
labels: | |
app: jira | |
spec: | |
containers: | |
- name: jira | |
image: atlassian/jira-software:8.5 | |
readinessProbe: | |
httpGet: | |
path: /status | |
port: 8080 | |
initialDelaySeconds: 120 | |
periodSeconds: 10 | |
livenessProbe: | |
httpGet: | |
path: / | |
port: 8080 | |
initialDelaySeconds: 600 | |
periodSeconds: 10 | |
envFrom: | |
- configMapRef: | |
name: jira-config | |
ports: | |
- containerPort: 8080 | |
name: web | |
volumeMounts: | |
- name: local-home | |
mountPath: /var/atlassian/application-data/jira | |
- name: jira-share-pv | |
mountPath: /var/atlassian/application-data/jira/shared-home | |
volumes: | |
- name: jira-share-pv | |
persistentVolumeClaim: | |
claimName: jira-share-pvc | |
volumeClaimTemplates: | |
- metadata: | |
name: local-home | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
resources: | |
requests: | |
storage: 5Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment