@@ -109,6 +109,32 @@ node in the cluster, which together with
109109[ NodeLocal DNSCache] ( https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/ )
110110can improve stability for dynamic hosts.
111111
112+ ## Installation
113+
114+ Follow these instructions to install the FQDNNetworkPolicies controller in your GKE cluster.
115+
116+ 1 . Install [ cert-manager] ( https://cert-manager.io/docs/installation/kubernetes/ ) .
117+
118+ ```
119+ kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.1.0/cert-manager.yaml
120+ ```
121+
122+ 1 . Install the FQDNNetworkPolicy controller.
123+
124+ ```
125+ export VERSION=$(curl https://storage.googleapis.com/fqdnnetworkpolicies-manifests/latest)
126+ kubectl apply -f https://storage.googleapis.com/fqdnnetworkpolicies-manifests/${VERSION}.yaml
127+ ```
128+
129+ ## Uninstall
130+
131+ To uninstall the FQDNNetworkPolicies controller from your GKE cluster, simply delete the resources.
132+ Replace ` YOUR_VERSION ` by the version you are using.
133+
134+ ```
135+ export VERSION=YOUR_VERSION
136+ kubectl delete -f https://storage.googleapis.com/fqdnnetworkpolicies-manifests/${VERSION}.yaml
137+ ```
112138
113139## Development
114140
@@ -123,7 +149,7 @@ You need the following tools installed on your development workstation.
123149* kustomize
124150* kubebuilder (2.3.1, you may need to export the [ KUBEBUILDER_ASSET variable] ( https://book.kubebuilder.io/quick-start.html ) )
125151
126- ### Getting up and running
152+ ### Building and running locally
127153
1281541 . Create your Kind cluster.
129155
@@ -153,4 +179,14 @@ You need the following tools installed on your development workstation.
153179 kubectl apply -f config/samples/networking_v1alpha1_fqdnnetworkpolicy_valid.yaml
154180 ```
155181
156- 1. Explore the Makefile for other available commands, and read the [kubebuilder book](https://book.kubebuilder.io/introduction.html).
182+ 1. Explore the Makefile for other available commands, and read the [kubebuilder book](https://book.kubebuilder.io/introduction.html).
183+
184+ ### Creating a release
185+
186+ 1. Tag the commit you want to mark as a release. We follow semantic versioning.
187+ 1. Push the tag to GitHub.
188+ 1. Create a release in GitHub.
189+ 1. If you want that release to be the new default one, run:
190+ ```
191+ VERSION=$YOUR_TAG make latest
192+ ```
0 commit comments