Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.