Git Product home page Git Product logo

Comments (8)

ttinkr avatar ttinkr commented on June 17, 2024

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.

carpenike avatar carpenike commented on June 17, 2024

@ttinkr I havenโ€™t done that before. In my case I deleted the entire pod.

from helm-charts.

aescanero avatar aescanero commented on June 17, 2024

What have been the steps you have taken?

from helm-charts.

vlitvin avatar vlitvin commented on June 17, 2024

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 in powerdns-powerdnsadmin container
  • get logs from powerdns-powerdnsadmin container

from helm-charts.

aescanero avatar aescanero commented on June 17, 2024

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.

vlitvin avatar vlitvin commented on June 17, 2024

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.

aescanero avatar aescanero commented on June 17, 2024

k3s use by default host storage. I'm using NFS storage without problems.

Closing this bug.

from helm-charts.

vlitvin avatar vlitvin commented on June 17, 2024

Yes, but how exactly storage affects booting up?

from helm-charts.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.