Skip to content

Instantly share code, notes, and snippets.

@jc1518
Last active November 6, 2019 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jc1518/e6ec84f01e4fbe2e5517a02ed38b24ca to your computer and use it in GitHub Desktop.
Save jc1518/e6ec84f01e4fbe2e5517a02ed38b24ca to your computer and use it in GitHub Desktop.
Jira statefulset config file on k8s
---
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