Merge ~mthaddon/charm-k8s-bind/+git/charm-k8s-bind:end-user into charm-k8s-bind:master

Proposed by Tom Haddon
Status: Merged
Approved by: Tom Haddon
Approved revision: 3adff97e50bd5b4317d7a91584ce71ee64a363f2
Merged at revision: 0a8dd267a40755311d723c4cb8458a59db4f0b45
Proposed branch: ~mthaddon/charm-k8s-bind/+git/charm-k8s-bind:end-user
Merge into: charm-k8s-bind:master
Diff against target: 115 lines (+25/-49)
2 files modified
README.md (+19/-46)
metadata.yaml (+6/-3)
Reviewer Review Type Date Requested Status
Laurent Sesquès Approve
Canonical IS Reviewers Pending
Review via email: mp+395302@code.launchpad.net

Commit message

Update README and metadata.yaml to be more end-user focused

Description of the change

Update README and metadata.yaml to be more end-user focused

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Laurent Sesquès (sajoupa) :
review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 0a8dd267a40755311d723c4cb8458a59db4f0b45

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/README.md b/README.md
index 9fc2862..d53b3a5 100644
--- a/README.md
+++ b/README.md
@@ -1,70 +1,37 @@
1# Bind charm1# Bind Operator
22
3A Juju charm deploying Bind, configurable to use a git repository for its configuration files.3A Juju charm deploying Bind, configurable to use a git repository for its configuration files.
44
5## Overview5## Overview
66
7This is a k8s workload charm and can only be deployed to a Juju k8s cloud,7BIND 9 has evolved to be a very flexible, full-featured DNS system. Whatever
8attached to a controller using `juju add-k8s`.8your application is, BIND 9 probably has the required features. As the first,
9oldest, and most commonly deployed solution, there are more network engineers
10who are already familiar with BIND 9 than with any other system.
911
10This charm is not currently ready for production due to issues with providing12## Usage
11an egress to route TCP and UDP traffic to the pods. See:
1213
13https://bugs.launchpad.net/charm-k8s-bind/+bug/188974614For details on using Kubernetes with Juju [see here](https://juju.is/docs/kubernetes), and for
1415details on using Juju with MicroK8s for easy local testing [see here](https://juju.is/docs/microk8s-cloud).
15https://bugs.launchpad.net/juju/+bug/1889703
16
17## Getting Started
18
19Notes for deploying a test setup locally using microk8s, the setup of which is
20documented here: https://juju.is/docs/microk8s-cloud
21
22```
23juju add-model bind-test
24```
25
261. Either deploy with the default image from Dockerhub:
2716
17To deploy this charm in a juju k8s model:
28```18```
29juju deploy cs:~bind-charmers/bind19juju deploy cs:~bind-charmers/bind
30```20```
312. Or optionally build your own image locally and deploy with that21The charm will deploy bind with its stock Ubuntu package configuration, which
3222will forward all queries to root name servers.
33```
34sudo snap install charmcraft
35git clone https://git.launchpad.net/charm-k8s-bind
36cd charm-k8s-bind
37make image-build
38docker push localhost:32000/bind
39juju deploy cs:~bind-charmers/bind --config bind_image_path=localhost:32000/bind:latest bind
40
41juju wait
42juju status
43```
44
45Assuming you're using the image from dockerhub, or an image built locally from
46this repo without changes, the charm will deploy bind with its stock Ubuntu
47package configuration, which will forward all queries to root name servers.
4823
49DNSSEC is also enabled by default.24DNSSEC is also enabled by default.
5025
51Custom config can be deployed by setting the `custom_config_repo` option to26Custom config can be deployed by setting the `custom_config_repo` option to
52point to a Git repository containing a valid set of configuration files with27point to a Git repository containing a valid set of configuration files with
53which to populate the /etc/bind/ directory within the pod(s).28which to populate the `/etc/bind/` directory within the pod(s).
5429
55Since bind won't allow recursion from external clients by default, to allow30Since bind won't allow recursion from external clients by default, to allow
56easy testing, I've set up a repo with a copy of the stock config, modified to31easy testing, you can use [a repo with a copy of the stock config, modified to allow recursion from all RFC1918 networks](https://code.launchpad.net/~barryprice/junk/+git/etc-bind-stock-config-with-all-rfc1918-nets-allowed):
57allow recursion from all RFC1918 networks:
58
59https://code.launchpad.net/~barryprice/junk/+git/etc-bind-stock-config-with-all-rfc1918-nets-allowed
60
61To configure a local microk8s-deployed bind application to use this config,
62simply run:
63
64```32```
65juju config bind custom_config_repo=https://git.launchpad.net/~barryprice/junk/+git/etc-bind-stock-config-with-all-rfc1918-nets-allowed33juju config bind custom_config_repo=https://git.launchpad.net/~barryprice/junk/+git/etc-bind-stock-config-with-all-rfc1918-nets-allowed
66```34```
67
68Once the application is ready, you should be able to query the App's IP address35Once the application is ready, you should be able to query the App's IP address
69(not the Unit addresses) directly from your local machine:36(not the Unit addresses) directly from your local machine:
7037
@@ -84,3 +51,9 @@ $ dig +short example.com @10.152.183.246
8493.184.216.345193.184.216.34
85$52$
86```53```
54
55## Known Issues
56
57This charm is unable to provide an ingress to route TCP and UDP traffic to the
58pods due to [LP#1889703](https://bugs.launchpad.net/juju/+bug/1889703). This is
59also being tracked as [a bug against the charm itself](https://bugs.launchpad.net/charm-k8s-bind/+bug/1889746).
diff --git a/metadata.yaml b/metadata.yaml
index 12075b3..7b1d7b2 100644
--- a/metadata.yaml
+++ b/metadata.yaml
@@ -1,6 +1,9 @@
1name: "bind"1name: bind
2summary: "Bind"2summary: The original, complete open source DNS implementation.
3description: "The original, complete open source DNS implementation"3docs: https://discourse.charmhub.io/t/bind-documentation-overview/3973
4description: |
5 The original, complete open source DNS implementation.
6 https://www.isc.org/bind/
4min-juju-version: 2.8.07min-juju-version: 2.8.0
5maintainers:8maintainers:
6 - https://launchpad.net/~bind-charmers <bind-charmers@lists.launchpad.net>9 - https://launchpad.net/~bind-charmers <bind-charmers@lists.launchpad.net>

Subscribers

People subscribed via source and target branches

to all changes: