Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iot-usecase-k8-demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
devops-usecase
iot-usecase-k8-demo
Commits
928ba5a0
Commit
928ba5a0
authored
2 years ago
by
dehury
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml, manifest/grafana.yml
parent
fff0cc47
No related branches found
No related tags found
No related merge requests found
Pipeline
#12710
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+13
-0
13 additions, 0 deletions
.gitlab-ci.yml
manifest/grafana.yml
+112
-0
112 additions, 0 deletions
manifest/grafana.yml
with
125 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
13
−
0
View file @
928ba5a0
deploy
:
image
:
name
:
bitnami/kubectl:latest
entrypoint
:
[
"
"
]
script
:
-
pwd
-
kubectl config use-context devops-usecase/iot-usecase-k8-demo:newagent
-
kubectl config view
-
kubectl get nodes
-
kubectl get ns
-
kubectl apply -f manifest/grafana.yml
This diff is collapsed.
Click to expand it.
manifest/grafana.yml
0 → 100644
+
112
−
0
View file @
928ba5a0
---
apiVersion
:
v1
kind
:
PersistentVolume
metadata
:
name
:
grafana-pv
spec
:
capacity
:
storage
:
3Gi
volumeMode
:
Filesystem
accessModes
:
-
ReadWriteOnce
persistentVolumeReclaimPolicy
:
Recycle
storageClassName
:
local-storage
local
:
path
:
/home/centos/data/grafana
nodeAffinity
:
required
:
nodeSelectorTerms
:
-
matchExpressions
:
-
key
:
kubernetes.io/hostname
operator
:
In
values
:
-
node1
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
grafana-pvc
labels
:
app
:
grafana
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
1Gi
storageClassName
:
local-storage
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
labels
:
app
:
grafana
name
:
grafana
spec
:
replicas
:
3
selector
:
matchLabels
:
app
:
grafana
template
:
metadata
:
labels
:
app
:
grafana
spec
:
securityContext
:
fsGroup
:
472
supplementalGroups
:
-
0
containers
:
-
name
:
grafana
image
:
grafana/grafana:8.4.4
imagePullPolicy
:
IfNotPresent
ports
:
-
containerPort
:
3000
name
:
http-grafana
protocol
:
TCP
readinessProbe
:
failureThreshold
:
3
httpGet
:
path
:
/robots.txt
port
:
3000
scheme
:
HTTP
initialDelaySeconds
:
10
periodSeconds
:
30
successThreshold
:
1
timeoutSeconds
:
2
livenessProbe
:
failureThreshold
:
3
initialDelaySeconds
:
30
periodSeconds
:
10
successThreshold
:
1
tcpSocket
:
port
:
3000
timeoutSeconds
:
1
resources
:
requests
:
cpu
:
250m
memory
:
750Mi
volumeMounts
:
-
mountPath
:
/var/lib/grafana
name
:
grafana-pv
volumes
:
-
name
:
grafana-pv
persistentVolumeClaim
:
claimName
:
grafana-pvc
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
grafana
spec
:
ports
:
-
port
:
3000
protocol
:
TCP
targetPort
:
http-grafana
selector
:
app
:
grafana
sessionAffinity
:
None
type
:
LoadBalancer
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment