Comments (3)
@JorgeGar Can you assign me to fix it? Facing the same issue.
@ProjectsOfMLee Assigned. Please tag me on the PR too so I can take a closer look.
from incubator-devlake-helm-chart.
I am unable to run the MySQL database on the k8s cluster as the
mysql
user wherein I set thesecurityContext
torunAsUser
with ID999
, as available in themysql:8
image. Running as root is not an option either, due to security concerns.This is the log:
2023-10-24 19:36:31+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.27-1debian10 started. 2023-10-24 19:36:31+00:00 [Note] [Entrypoint]: Initializing database files mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (OS errno 13 - Permission denied) 2023-10-24T19:36:31.447303Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.27) initializing of server in progress as process 22 2023-10-24T19:36:31.448251Z 0 [ERROR] [MY-010460] [Server] --initialize specified but the data directory exists and is not writable. Aborting. 2023-10-24T19:36:31.448255Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it. 2023-10-24T19:36:31.448284Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-10-24T19:36:31.448376Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown completeIn order to circumvent this, I need to have an
initContainer
where I can override the file permissions on/var/lib/mysql
tochmod
it recursively with999:999
permissions.This is a request to add the ability to instantiate a new
initContainer
for the MySQL DB StatefulSet.
Hi @cicdguy am I correct assuming that user 999 is mysql
user? If so, it seems that’s an issue to report on MySQL’s image.
In any case, adding the ability to create an initContainer
could be nice. I encourage you to open a pull request adding it to the helm chart.
from incubator-devlake-helm-chart.
@JorgeGar Can you assign me to fix it? Facing the same issue.
from incubator-devlake-helm-chart.
Related Issues (20)
- Helm install on AWS EKS fails due multiple containers being unable to mount /etc/localtime HOT 8
- No values passed from helm chart for pgsql HOT 5
- [Bug][Helm chart] Path based routing doesn't work for common host HOT 4
- [Helm] Deployment in version "v1" cannot be handled as a Deployment: unable to parse quantity's suffix HOT 4
- [Helm][EKS][Grafana] Inconsistent ingress -> service port for Grafana HOT 3
- Is it possible to add HPA? HOT 2
- Please provide comprehensive release notes
- Helm Chart GHPages broken HOT 3
- [Question][Installation] Why the URL to access the Grafana dashboard don't work? HOT 5
- grafana persistence
- Error when calling chart in v0.20.0-beta3 with ui.basicAuth.enable set to False HOT 1
- Config UI container has neither liveness nor healthiness probe HOT 1
- [Feature Request]: Request for Addition of "ImagePullSecrets" in Helm Chart Templates for Private Repo Support HOT 4
- Both deployments select the same pods HOT 2
- Running with readOnlyRootFilesystem HOT 2
- Replica Count Not Configurable in Helm Chart HOT 1
- Issue via Traefik in Kubernetes
- Encryption Secret error HOT 6
- field is immutable when upgrading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-devlake-helm-chart.