-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompiled.yaml
114 lines (114 loc) · 2.2 KB
/
compiled.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: splunk-pv-volume
namespace: splunk
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 100Mi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/splunk-hsbc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: splunk-claim
namespace: splunk
spec:
accessModes:
- ReadWriteOnce
storageClassName: manual
resources:
requests:
storage: 100Mi
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: splunk
name: splunk
namespace: splunk
spec:
replicas: 1
selector:
matchLabels:
app: splunk
io.kompose.service: splunk
strategy:
type: Recreate
template:
metadata:
labels:
app: splunk
io.kompose.service: splunk
spec:
containers:
- name: splunk
image: splunk/splunk
env:
- name: SPLUNK_START_ARGS
value: "--accept-license"
- name: SPLUNK_PASSWORD
value: "Password@1"
# - name: SPLUNK_USER
# value: root
ports:
- containerPort: 8000
name: ui
- containerPort: 8065
name: app-server
- containerPort: 8088
name: hec
- containerPort: 8089
name: management
- containerPort: 9997
name: receiving
volumeMounts:
- mountPath: /opt/splunk/etc/apps
name: splunk
resources: {}
restartPolicy: Always
volumes:
- name: splunk
persistentVolumeClaim:
claimName: splunk-claim
status: {}
---
apiVersion: v1
kind: Service
metadata:
#creationTimestamp: null
labels:
app: splunk
io.kompose.service: splunk
name: splunk
namespace: splunk
spec:
type: NodePort
ports:
- name: "ui"
nodePort: 30008
port: 8000
targetPort: 8000
- name: "hec"
nodePort: 30088
port: 8088
targetPort: 8088
- name: "receiving"
nodePort: 30097
port: 9997
targetPort: 9997
selector:
app: splunk
io.kompose.service: splunk
status:
loadBalancer: {}
---