Comments (8)
Same here.
@carpenike Can you tell me how to delete a single container out of the pod? Did you issue a kill 1
inside the container or is there a kubectl delete POD CONTAINER
I am not aware of? Thanks!
from helm-charts.
@ttinkr I havenโt done that before. In my case I deleted the entire pod.
from helm-charts.
What have been the steps you have taken?
from helm-charts.
Same here.
In my case after restarting pod when powerdns-powerdnsadmin
starts it deletes tables in database.
...
===> DB management
---> Running DB Migration
* Tip: There are .env files present. Do "pip install python-dotenv" to use them.
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.autogenerate.compare] Detected removed table 'supermasters'
INFO [alembic.autogenerate.compare] Detected removed index 'name_index' on 'domains'
INFO [alembic.autogenerate.compare] Detected removed table 'domains'
INFO [alembic.autogenerate.compare] Detected removed index 'comments_name_type_idx' on 'comments'
INFO [alembic.autogenerate.compare] Detected removed index 'comments_order_idx' on 'comments'
INFO [alembic.autogenerate.compare] Detected removed table 'comments'
INFO [alembic.autogenerate.compare] Detected removed index 'domainidindex' on 'cryptokeys'
INFO [alembic.autogenerate.compare] Detected removed table 'cryptokeys'
INFO [alembic.autogenerate.compare] Detected removed index 'nametype_index' on 'records'
INFO [alembic.autogenerate.compare] Detected removed table 'records'
INFO [alembic.autogenerate.compare] Detected removed index 'namealgoindex' on 'tsigkeys'
INFO [alembic.autogenerate.compare] Detected removed table 'tsigkeys'
INFO [alembic.autogenerate.compare] Detected removed index 'domainmetadata_idx' on 'domainmetadata'
INFO [alembic.autogenerate.compare] Detected removed table 'domainmetadata'
...
Steps to reproduce:
- Install helm chart
- delete powerdns pod, or exec
kill 1
inpowerdns-powerdnsadmin
container - get logs from
powerdns-powerdnsadmin
container
from helm-charts.
Testing:
$ helm repo add aecharts https://raw.githubusercontent.com/aescanero/helm-charts/master/
$ helm repo update
$ helm install powerdns-release --set domain=disasterproject.com aecharts/powerdns
$ kubectl -n external-dns get pv
pvc-55ad55ca-4d00-48f5-aa71-65a8abec49bd 1Gi RWO Delete Bound default/pvc-powerdns-release-mariadb gp2 3m48s
$ kubectl exec -it powerdns-release-56cbd58bbd-fct92 -c powerdns-powerdnsadmin -- kill 1
But you can't kill the container with this, you need to close all the gunicorns threads, now testing with "delete pod":
$ kubectl delete pod powerdns-release-56cbd58bbd-fct92
pod "powerdns-release-56cbd58bbd-fct92" deleted
$ kubectl logs powerdns-release-56cbd58bbd-9w7hb -c powerdns-powerdnsadmin
===> Waiting for 127.0.0.1 MySQL service
127.0.0.1 (127.0.0.1:3306) open
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
===> Update PDNS API connection info
Connection ok
Connection ok
[2020-07-26 18:56:09 +0000] [14] [INFO] Starting gunicorn 20.0.4
[2020-07-26 18:56:09 +0000] [14] [INFO] Listening at: http://0.0.0.0:9191 (14)
[2020-07-26 18:56:09 +0000] [14] [INFO] Using worker: sync
[2020-07-26 18:56:09 +0000] [16] [INFO] Booting worker with pid: 16
[2020-07-26 18:56:09 +0000] [17] [INFO] Booting worker with pid: 17
[2020-07-26 18:56:09 +0000] [18] [INFO] Booting worker with pid: 18
[2020-07-26 18:56:09 +0000] [19] [INFO] Booting worker with pid: 19
I can't reproduce it, but I'll check the entrypoint script.
from helm-charts.
Seems somehow may be related to k8s version or storage provider.
Got different results for two k8s instances:
- k3s(v1.18.2+k3s1) with out-of-the-box storage
Do not survive pod deletion. - kubespray(release-2.13) - kubernetes v1.17.8 - with ceph pv
Works fine.
from helm-charts.
k3s use by default host storage. I'm using NFS storage without problems.
Closing this bug.
from helm-charts.
Yes, but how exactly storage affects booting up?
from helm-charts.
Related Issues (14)
- Access denied HOT 10
- powerdns-release pod hangs with invalid option innodb-read-committed HOT 2
- unable to use custom image repositories
- innodb-read-committed error HOT 2
- The database is full of such warning! HOT 2
- doesn't know powerdns-release-service-db HOT 2
- Questions about values configurations
- License?
- Fatal error: Trying to set unknown parameter 'default-soa-mail'
- what did i miss? HOT 2
- helm chart fails to run HOT 3
- failure on non IP V6 enabled host worker HOT 2
- unable to run on ARM64 based k3s HOT 2
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 helm-charts.