However, the -P option seems to not (no longer?) exist.
~ kubectl -ndns logs -f dnscrypt-init-5p4sf
/entrypoint.sh: illegal option -- P
Commands
========
* init -N <provider_name> -E <external ip>:<port>[,<external ip>:<port>...]
initialize the container for a server accessible at ip <external ip> on port
<port>, for a provider named <provider_name>. This is required only once.
If TLS connections to the same port have to be redirected to a HTTPS server
(e.g. for DoH), add -T <https server ip>:<port>
To enable Anonymized DNS relaying, add -A.
* start (default command): start the resolver and the dnscrypt server proxy.
Ports 443/udp and 443/tcp have to be publicly exposed.
* provider-info: prints the provider name and provider public key.
* shell: run a shell.
This container has a single volume that you might want to securely keep a
backup of: /opt/encrypted-dns/etc/keys
https://github.com/DNSCrypt/dnscrypt-server-docker/blob/c464e45bd4263ba2f1316e4f035ab98060031133/kube/dnscrypt-init-job.yml has the following;
command: ["/entrypoint.sh", "init", "-A", "-P", "0.0.0.0:9100", "-N", "example.com", "-E", "192.0.2.53:443"]
However, the
-P
option seems to not (no longer?) exist.