forked from 9652040795/aws-policies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjira-kubernetes
83 lines (75 loc) · 1.72 KB
/
jira-kubernetes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jeera
spec:
replicas: 1
template:
metadata:
labels:
app: jeera
spec:
containers:
- name: jeera
image: cptactionhank/atlassian-jira
securityContext:
runAsUser: 0
env:
- name: X_PROXY_NAME
value: "jeera.cloudgeeks.ca.com"
- name: X_PROXY_PORT
value: "443"
- name: X_PROXY_SCHEME
value: "https"
- name: X_PROXY_SECURE
value: "true"
ports:
- name: http-port
containerPort: 8080
volumeMounts:
- name: jeera-home
mountPath: "/var/atlassian/jira"
volumes:
- name: jeera-home
persistentVolumeClaim:
claimName: jeera-storage
kubectl apply -f jeera.yaml
###############################################################
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: jeera
provisioner: kubernetes.io/aws-ebs
allowVolumeExpansion: true
parameters:
type: gp2
zones: us-west-2a, us-west-2b, us-west-2c
kubectl apply -f storage.yml
##############################################################
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jeera-storage
labels:
app: jeera
spec:
storageClassName: jeera
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
kubectl apply -f volume.yaml
###############################################################
apiVersion: v1
kind: Service
metadata:
name: jeera
spec:
type: NodePort
ports:
- port: 80
targetPort: 8080
selector:
app: jeera
kubectl apply -f jeera-service.yaml