Skip to content

Commit

Permalink
wip: partial fixes from vetting
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jul 1, 2024
1 parent b913f9c commit 638ea04
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ The result should look like:
httproute.gateway.networking.k8s.io/bintang created
```

Finally, create a authentication plugin and attach it to the Service:
Create a authentication plugin:

```bash
echo '
Expand All @@ -123,6 +123,7 @@ The result should look like:
```text
kongplugin.configuration.konghq.com/httpbin-basic-auth created
```
and attach it to the Service:

```bash
kubectl annotate service httpbin -n kualalumpur konghq.com/plugins=httpbin-basic-auth
Expand Down Expand Up @@ -159,7 +160,7 @@ metadata:
stringData:
username: rustem
password: rustem-password
' | kubectl apply -n kyzlorda -f -
' | kubectl apply -n qyzylorda -f -
```

The results should look like:
Expand All @@ -170,9 +171,9 @@ secret/rustem-basic-auth created

Create a consumers named `aygerim` and `rustem` that use these credentials:

{% include /md/kic/consumer.md release=page.release name='aygerim' credName='aygerim-basic-auth' namespace='kyzlorda' %}
{% include /md/kic/consumer.md release=page.release name='aygerim' credName='aygerim-basic-auth' namespace='qyzylorda' %}

{% include /md/kic/consumer.md release=page.release name='rustem' credName='rustem-key-auth' namespace='kyzlorda' %}
{% include /md/kic/consumer.md release=page.release name='rustem' credName='rustem-key-auth' namespace='qyzylorda' %}

## Grant cross-namespace permissions

Expand Down Expand Up @@ -203,7 +204,7 @@ spec:
to:
- group: "configuration.konghq.com"
kind: KongPlugin
' | kubectl apply -n kyzlorda -f -
' | kubectl apply -n qyzylorda -f -
```

The results should look like:
Expand Down Expand Up @@ -308,10 +309,6 @@ service/httpbin annotated

## Test the configuration

> TODO $$PROXY_IP is maybe not available through the standalone getting started
> guide, should check. May be stuck inserting the big setup preamble include
> here.
Send a request using the `aygerim` consumer:

```bash
Expand Down

0 comments on commit 638ea04

Please sign in to comment.