Skip to content

Commit 1e931ac

Browse files
committed
fixes
1 parent ccf091e commit 1e931ac

File tree

3 files changed

+55
-29
lines changed

3 files changed

+55
-29
lines changed

app/_how-tos/operator-get-started-gateway-api-1-install.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/downloa
5050

5151
{% include prereqs/products/operator.md raw=true v_maj=2 %}
5252

53-
{% tip %}
5453
{% include k8s/cert-manager.md raw=true %}
55-
{% endtip %}
5654

5755
## Validate
5856

app/_includes/prereqs/products/operator.md

Lines changed: 49 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,69 @@
33
{% if prereqs.enterprise %}
44
{% assign summary = summary | append:' (with an Enterprise license)' %}
55
{% endif %}
6-
{% capture details_content %}
76

8-
Install {{ site.operator_product_name }} using Helm:
7+
{% capture license %}
8+
```
9+
echo "
10+
apiVersion: configuration.konghq.com/v1alpha1
11+
kind: KongLicense
12+
metadata:
13+
name: kong-license
14+
rawLicenseString: '$(cat ./license.json)'
15+
" | kubectl apply -f -
16+
```
17+
{% endcapture %}
918

10-
{% if include.v_maj == 1 %}
19+
{% capture cert %}
20+
{% include k8s/cert-manager.md %}
21+
{% endcapture %}
22+
23+
{% capture details_content %}
24+
25+
1. Add the Kong Helm charts:
1126

1227
```bash
1328
helm repo add kong https://charts.konghq.com
1429
helm repo update
30+
```
31+
32+
1. Install {{ site.operator_product_name }} using Helm:
33+
34+
{% if include.v_maj == 1 %}
35+
36+
```bash
37+
helm upgrade --install kgo kong/gateway-operator -n kong-system \
38+
--create-namespace \
39+
--set env.ENABLE_CONTROLLER_KONNECT=true{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %}
40+
--set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %}
41+
```
42+
{:data-deployment-topology='konnect'}
43+
44+
```bash
1545
helm upgrade --install kgo kong/gateway-operator -n kong-system \
1646
--create-namespace{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %}
1747
--set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %}
1848
```
49+
{:data-deployment-topology='on-prem'}
1950
2051
{% else %}
21-
{: data-deployment-topology="konnect" }
52+
2253
```bash
23-
helm upgrade --install kong-operator ./charts/kong-operator -n kong-system \
54+
helm upgrade --install kong-operator kong/kong-operator -n kong-system \
2455
--create-namespace \
25-
--set image.tag=2.1.0{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %}
26-
--set env.ENABLE_CONTROLLER_KONNECT=true
56+
--set image.tag={{ site.data.operator_latest.release }} \
57+
--set env.ENABLE_CONTROLLER_KONNECT=true{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %}
58+
--set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %}
2759
```
60+
{:data-deployment-topology='konnect'}
2861
29-
{: data-deployment-topology="on-prem" }
3062
```bash
31-
helm upgrade --install kong-operator ./charts/kong-operator -n kong-system \
63+
helm upgrade --install kong-operator kong/kong-operator -n kong-system \
3264
--create-namespace \
33-
--set image.tag=2.1.0
65+
--set image.tag={{ site.data.operator_latest.release }}{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %}
66+
--set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %}
3467
```
68+
{:data-deployment-topology='on-prem'}
3569
3670
{% endif %}
3771
@@ -40,18 +74,12 @@ Install {{ site.operator_product_name }} using Helm:
4074
{% include k8s/ca-cert.md %}
4175
4276
{% if prereqs.enterprise %}
43-
4477
1. Apply a `KongLicense`. This assumes that your license is available in `./license.json`
78+
{{license | indent: 3}}
4579
46-
```bash
47-
echo "
48-
apiVersion: configuration.konghq.com/v1alpha1
49-
kind: KongLicense
50-
metadata:
51-
name: kong-license
52-
rawLicenseString: '$(cat ./license.json)'
53-
" | kubectl apply -f -
54-
```
80+
{% else %}
81+
This tutorial doesn't require a license, but you can add one using `KongLicense`. This assumes that your license is available in `./license.json`.
82+
{{license}}
5583
5684
{% endif %}
5785
{% endcapture %}
@@ -60,4 +88,4 @@ Install {{ site.operator_product_name }} using Helm:
6088
{{ details_content }}
6189
{% else %}
6290
{% include how-tos/prereq_cleanup_item.html summary=summary details_content=details_content icon_url='/assets/icons/kubernetes.svg' %}
63-
{% endif %}
91+
{% endif %}

app/_landing_pages/operator.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rows:
1919
- blocks:
2020
- type: text
2121
config: |
22-
{{ site.operator_product_name }} is the Kubernetes-native way to interact with Kong. Driven by Gateway API or Kong-specific Custom Resource Definitions (CRDs, {{ site.operator_product_name }} allows you to deploy and configure Kong's products
22+
{{ site.operator_product_name }} is the Kubernetes-native way to interact with Kong. Driven by Gateway API or Kong-specific Custom Resource Definitions (CRDs), {{ site.operator_product_name }} allows you to deploy and configure Kong's products
2323
in a declarative way.
2424
2525
- header:
@@ -41,12 +41,12 @@ rows:
4141
- type: card
4242
config:
4343
icon: /assets/logos/konglogo-gradient-secondary.svg
44-
title: "Manage {{ site.base_gateway }} in Kubernetes through the Konnect CRDs"
44+
title: "Manage {{ site.base_gateway }} in Kubernetes through the {{site.konnect_short_name}} CRDs"
4545
description: |
4646
Deploy and configure {{ site.base_gateway }} in Kubernetes using Kong-specific Custom Resource Definitions (CRDs)
4747
provided by {{ site.operator_product_name }}.
4848
cta:
49-
text: Deploy {{ site.base_gateway }} in Kubernetes using Konnect CRDs
49+
text: Deploy {{ site.base_gateway }} in Kubernetes using {{site.konnect_short_name}} CRDs
5050
url: /operator/get-started/konnect-crds/install/
5151

5252
- header:
@@ -97,7 +97,7 @@ rows:
9797
- type: structured_text
9898
config:
9999
header:
100-
text: Konnect configuration CRDs
100+
text: "{{site.konnect_short_name}} configuration CRDs"
101101
blocks:
102102
- type: text
103103
text: |
@@ -114,7 +114,7 @@ rows:
114114
name: echo
115115
namespace: default
116116
spec:
117-
# reference the Konnect/Gateway control plane defined in Konnect
117+
# reference the {{site.konnect_short_name}}/Gateway control plane defined in {{site.konnect_short_name}}
118118
controlPlaneRef:
119119
type: konnectNamespacedRef
120120
konnectNamespacedRef:
@@ -156,7 +156,7 @@ rows:
156156
blocks:
157157
- type: text
158158
text: |
159-
We built Konnect CRDs after listening to _you_. Users told us that their teams are used to working in Kubernetes. They have policy
159+
We built {{site.konnect_short_name}} CRDs after listening to _you_. Users told us that their teams are used to working in Kubernetes. They have policy
160160
enforcement engines running in their clusters, and well defined review processes for CRD changes.
161161
162162
Now we need your help. We're expanding CRD support to new products, and need you to tell us which APIs you want us to build first.

0 commit comments

Comments
 (0)