GithubHelp home page GithubHelp logo

the-kube-way / nsd Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 8.0 45 KB

Running NSD on Kubernetes

License: GNU General Public License v3.0

Dockerfile 25.36% Shell 74.64%
dns dns-server dnssec docker kubernetes nsd

nsd's People

Contributors

fl42 avatar masebb avatar philippkuntschik avatar rohmilchkaese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nsd's Issues

Unable to change the running user

No matter how I set the environment variable UID and GID, the container starts as 991 and then fails because it's unable to chown the mounted volumes. Is there anything you would recommend I test on my side to verify if this is a user error or not?

Steps to recreate:

  1. Create docker-compose.yml
version: '3.7'

services:
  nsd:
    container_name: nsd
    restart: always
    image: ghcr.io/the-kube-way/nsd:test
    read_only: true
    tmpfs:
      - /tmp
      - /var/db/nsd
    volumes:
      - /opt/nsd/conf:/etc/nsd:ro
      - /opt/nsd/zones:/zones
      - /opt/nsd/keys:/keys:ro
    ports:
      - "8554:53"
      - "8554:53/udp"
  1. Set environment variables
export UID=${UID}
export GID=${GID}
  1. Start the container
docker-compose up

The error I am getting:

user@localhost:/opt/nsd$ docker logs -f nsd
+ UID=991
+ GID=991
+ chown -R 991:991 /var/db/nsd /tmp
chown: /var/db/nsd: Operation not permitted
chown: /var/db/nsd: Operation not permitted
chown: /tmp: Operation not permitted
chown: /tmp: Operation not permitted

System information:

OS: Ubuntu 20.04.3 LTS
Docker version 20.10.11, build dea9396
docker-compose version 1.29.2, build 5becea4c

Please let me know if you are able to recreate this.

configure multiple zones in nsd.conf

Hey @fl42,

Thanks for the work! I finally got it to work in my kubernetes cluster, although there have to be some changes made for kubernetes version 1.25 that I could provide a pull request for in the future.

My question is about configuring zones, and if it is possible to define multiple zones in the nsd-conf. I found some examples online, but they just use a format that seems to be invalid for yaml syntax (having duplicate keys). Do you know how I could provide multiple zones?

My use case is having a zone dev and a zone prod on the same nsd-server

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.