Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 5572428

Browse files
authored
Merge pull request #4 from GoogleCloudPlatform/release-doc
Installation doc
2 parents 5b97abf + f742541 commit 5572428

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,10 @@ deploy-cert-manager:
9393
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.1.0/cert-manager.yaml
9494

9595
follow-manager-logs:
96-
kubectl -n fqdnnetworkpolicies-system logs -l control-plane=controller-manager -c manager -f
96+
kubectl -n fqdnnetworkpolicies-system logs -l control-plane=controller-manager -c manager -f
97+
98+
latest:
99+
test ! -z ${VERSION}
100+
echo ${VERSION} > fqdnnetworkpolicies-latest
101+
gsutil cp fqdnnetworkpolicies-latest gs://fqdnnetworkpolicies-manifests/latest
102+
rm fqdnnetworkpolicies-latest

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,32 @@ node in the cluster, which together with
109109
[NodeLocal DNSCache](https://kubernetes.io/docs/tasks/administer-cluster/nodelocaldns/)
110110
can 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

128154
1. 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

Comments
 (0)