Welcome to the Linux Foundation Forum!
K8s Crashback loop
chris
Posts: 2
Hi
I am currently going through the Kubernetes Chapter and I am running into an issue with the deployment. The prometheus container keeps going into a crashbackloop.
Normal Pulled 10m (x5 over 11m) kubelet, vagrant Container image "prom/prometheus:v2.1.0" already present on machine Normal Created 10m (x5 over 11m) kubelet, vagrant Created container prometheus Warning BackOff 83s (x49 over 11m) kubelet, vagrant Back-off restarting failed container
It comes and then all the services shutdown
level=info ts=2019-04-25T12:59:17.96088709Z caller=web.go:383 component=web msg="Start listening for connections" address=:9090 level=info ts=2019-04-25T12:59:17.960921987Z caller=main.go:499 msg="Starting TSDB ..." level=info ts=2019-04-25T12:59:17.961378121Z caller=main.go:386 msg="Stopping scrape discovery manager..." level=info ts=2019-04-25T12:59:17.961462142Z caller=main.go:400 msg="Stopping notify discovery manager..." level=info ts=2019-04-25T12:59:17.961534296Z caller=main.go:424 msg="Stopping scrape manager..." level=info ts=2019-04-25T12:59:17.961598612Z caller=manager.go:460 component="rule manager" msg="Stopping rule manager..." level=info ts=2019-04-25T12:59:17.961702813Z caller=manager.go:466 component="rule manager" msg="Rule manager stopped" level=info ts=2019-04-25T12:59:17.961739804Z caller=notifier.go:493 component=notifier msg="Stopping notification manager..." level=info ts=2019-04-25T12:59:17.961767336Z caller=main.go:382 msg="Scrape discovery manager stopped" level=info ts=2019-04-25T12:59:17.961870772Z caller=main.go:396 msg="Notify discovery manager stopped" level=info ts=2019-04-25T12:59:17.961972292Z caller=manager.go:59 component="scrape manager" msg="Starting scrape manager..." level=info ts=2019-04-25T12:59:17.962012646Z caller=main.go:418 msg="Scrape manager stopped" level=info ts=2019-04-25T12:59:17.962037506Z caller=main.go:570 msg="Notifier manager stopped" level=error ts=2019-04-25T12:59:17.96406764Z caller=main.go:579 err="Opening storage failed mkdir data/: permission denied" level=info ts=2019-04-25T12:59:17.964102554Z caller=main.go:581 msg="See you next time!"
Anyone else bump into this issue?
Running K8s 1.14.1, with containerd as my runtime.
0
Comments
-
In case anyone else runs into this issue, I managed to sort it out by applying the following SecurityContext
securityContext: runAsUser: 0
Found the answer here, https://github.com/prometheus/prometheus/issues/2939#issuecomment-315046699
0
Categories
- All Categories
- 178 LFX Mentorship
- 178 LFX Mentorship: Linux Kernel
- 775 Linux Foundation IT Professional Programs
- 384 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 103 Cloud Native Developer IT Professional Program
- 7.7K Training Courses & Learning Paths
- 13 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 35 Cloud & Containers Training
- 4 Cybersecurity Training
- 3 DevOps & Site-Reliability Training
- 2 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 5 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 798 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 773 Linux Distributions
- 81 Debian
- 68 Fedora
- 24 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 32 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 472 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 103 Linux Security
- 79 Network Management
- 102 System Management
- 46 Web Management
- 166 Mobile Computing
- 32 Android
- 119 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 407 Off Topic
- 128 Introductions
- 35 Study Material
- 1.1K Programming and Development
- 311 Kernel Development
- 723 Software Development
- 1K Software
- 418 Applications
- 183 Command Line
- 5 Compiling/Installing
- 71 Games
- 320 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)