Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
c0bc700c
Commit
c0bc700c
authored
Apr 13, 2018
by
Marek Siarkowicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Prometheus addon] Use StatefulSet
parent
b1357da4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
24 deletions
+18
-24
prometheus-pvc.yaml
cluster/addons/prometheus/prometheus-pvc.yaml
+0
-15
prometheus-statefulset.yaml
cluster/addons/prometheus/prometheus-statefulset.yaml
+18
-9
No files found.
cluster/addons/prometheus/prometheus-pvc.yaml
deleted
100644 → 0
View file @
b1357da4
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
prometheus
namespace
:
kube-system
labels
:
kubernetes.io/cluster-service
:
"
true"
addonmanager.kubernetes.io/mode
:
Reconcile
spec
:
storageClassName
:
standard
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
"
16Gi"
cluster/addons/prometheus/prometheus-
deploymen
t.yaml
→
cluster/addons/prometheus/prometheus-
statefulse
t.yaml
View file @
c0bc700c
apiVersion
:
extensions/v1beta
1
kind
:
Deploymen
t
apiVersion
:
apps/v
1
kind
:
StatefulSe
t
metadata
:
name
:
prometheus
namespace
:
kube-system
...
...
@@ -9,16 +9,18 @@ metadata:
addonmanager.kubernetes.io/mode
:
Reconcile
version
:
v2.2.1
spec
:
serviceName
:
"
prometheus"
replicas
:
1
podManagementPolicy
:
"
Parallel"
updateStrategy
:
type
:
"
RollingUpdate"
selector
:
matchLabels
:
k8s-app
:
prometheus
version
:
v2.2.1
template
:
metadata
:
labels
:
k8s-app
:
prometheus
version
:
v2.2.1
annotations
:
scheduler.alpha.kubernetes.io/critical-pod
:
'
'
spec
:
...
...
@@ -30,7 +32,7 @@ spec:
imagePullPolicy
:
"
IfNotPresent"
command
:
[
"
chown"
,
"
-R"
,
"
65534:65534"
,
"
/data"
]
volumeMounts
:
-
name
:
storage-volume
-
name
:
prometheus-data
mountPath
:
/data
subPath
:
"
"
containers
:
...
...
@@ -87,7 +89,7 @@ spec:
volumeMounts
:
-
name
:
config-volume
mountPath
:
/etc/config
-
name
:
storage-volume
-
name
:
prometheus-data
mountPath
:
/data
subPath
:
"
"
terminationGracePeriodSeconds
:
300
...
...
@@ -95,6 +97,13 @@ spec:
-
name
:
config-volume
configMap
:
name
:
prometheus-config
-
name
:
storage-volume
persistentVolumeClaim
:
claimName
:
prometheus
volumeClaimTemplates
:
-
metadata
:
name
:
prometheus-data
spec
:
storageClassName
:
standard
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
"
16Gi"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment