Skip to content

Commit

Permalink
docs: Update after removal of policy-controller from bundle
Browse files Browse the repository at this point in the history
* Add deploy-policy-controller and undeploy-policy-controller,
  deploys/undeploys the policy-controller into/from the kuadrant-system
namespace.
* Update dns and tls guides with extra step to install
  policy-controller.
  • Loading branch information
mikenairn committed Nov 24, 2023
1 parent 4734566 commit 925672d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ deploy-dependencies: kustomize dependencies-manifests ## Deploy dependencies to
$(KUSTOMIZE) build config/dependencies | kubectl apply -f -
kubectl -n "$(KUADRANT_NAMESPACE)" wait --timeout=300s --for=condition=Available deployments --all

deploy-policy-controller: kustomize ## Deploy policy-controller to the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/policy-controller | kubectl apply -f -
kubectl -n "$(KUADRANT_NAMESPACE)" wait --timeout=300s --for=condition=Available deployments policy-controller

undeploy-policy-controller: ## Undeploy policy-controller from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/policy-controller | kubectl delete -f -

.PHONY: install-metallb
install-metallb: $(KUSTOMIZE) ## Installs the metallb load balancer allowing use of an LoadBalancer type with a gateway
$(KUSTOMIZE) build config/metallb | kubectl apply -f -
Expand Down
5 changes: 5 additions & 0 deletions doc/user-guides/gateway-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Setup the environment:
make local-setup
```

Deploy policy controller and install DNSPolicy CRD:
```shell
make deploy-policy-controller
```

Install metallb:
```shell
make install-metallb
Expand Down
7 changes: 6 additions & 1 deletion doc/user-guides/gateway-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ Setup the environment:
make local-setup
```

Deploy policy controller and install TLSPolicy CRD:
```shell
make deploy-policy-controller
```

Install metallb:
```shell
make install-metallb
Expand Down Expand Up @@ -64,7 +69,7 @@ kubectl create namespace my-gateways

### Create an ingress gateway

Create a gateway using your ROOT_DOMAIN as part of a listener hostname:
Create a gateway:
```sh
kubectl -n my-gateways apply -f - <<EOF
apiVersion: gateway.networking.k8s.io/v1
Expand Down

0 comments on commit 925672d

Please sign in to comment.