|
3 | 3 | {% if prereqs.enterprise %} |
4 | 4 | {% assign summary = summary | append:' (with an Enterprise license)' %} |
5 | 5 | {% endif %} |
| 6 | + |
| 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 %} |
| 18 | + |
| 19 | +{% capture cert %} |
| 20 | +{% include k8s/cert-manager.md %} |
| 21 | +{% endcapture %} |
| 22 | + |
6 | 23 | {% capture details_content %} |
7 | 24 |
|
8 | 25 | 1. Add the Kong Helm charts: |
|
16 | 33 |
|
17 | 34 | {% if include.v_maj == 1 %} |
18 | 35 |
|
| 36 | + {% if page.works_on contains "konnect"%} |
| 37 | + |
19 | 38 | ```bash |
20 | 39 | helm upgrade --install kgo kong/gateway-operator -n kong-system \ |
21 | 40 | --create-namespace \ |
22 | 41 | --set env.ENABLE_CONTROLLER_KONNECT=true{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %} |
23 | 42 | --set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %} |
24 | 43 | ``` |
| 44 | + {:data-deployment-topology='konnect'} |
| 45 | +
|
| 46 | + {% endif %} |
| 47 | + |
| 48 | + {% if page.works_on contains "on-prem"%} |
| 49 | +
|
| 50 | + ```bash |
| 51 | + helm upgrade --install kgo kong/gateway-operator -n kong-system \ |
| 52 | + --create-namespace{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %} |
| 53 | + --set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %} |
| 54 | + ``` |
| 55 | + {:data-deployment-topology='on-prem'} |
| 56 | +
|
| 57 | + {% endif %} |
25 | 58 |
|
26 | 59 | {% else %} |
27 | 60 |
|
| 61 | + {% if page.works_on contains "konnect"%} |
| 62 | + |
28 | 63 | ```bash |
29 | 64 | helm upgrade --install kong-operator kong/kong-operator -n kong-system \ |
30 | 65 | --create-namespace \ |
31 | 66 | --set image.tag={{ site.data.operator_latest.release }} \ |
32 | 67 | --set env.ENABLE_CONTROLLER_KONNECT=true{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %} |
33 | 68 | --set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %} |
34 | 69 | ``` |
| 70 | + {:data-deployment-topology='konnect'} |
35 | 71 |
|
| 72 | + {% endif %} |
| 73 | +
|
| 74 | + {% if page.works_on contains "on-prem"%} |
| 75 | +
|
| 76 | + ```bash |
| 77 | + helm upgrade --install kong-operator kong/kong-operator -n kong-system \ |
| 78 | + --create-namespace \ |
| 79 | + --set image.tag={{ site.data.operator_latest.release }}{% if prereqs.operator.controllers %} \{% for controller in prereqs.operator.controllers %} |
| 80 | + --set env.ENABLE_CONTROLLER_{{ controller | upcase }}=true{% unless forloop.last %} \{% endunless %}{% endfor %}{% endif %} |
| 81 | + ``` |
| 82 | + {:data-deployment-topology='on-prem'} |
| 83 | +
|
| 84 | + {% endif %} |
36 | 85 | {% endif %} |
37 | 86 |
|
38 | | -{% include k8s/cert-manager.md %} |
| 87 | +{{cert | indent: 3}} |
39 | 88 |
|
40 | 89 |
|
41 | 90 | {% if prereqs.enterprise %} |
42 | 91 | 1. Apply a `KongLicense`. This assumes that your license is available in `./license.json` |
| 92 | +{{license | indent: 3}} |
| 93 | +
|
| 94 | +{% else %} |
| 95 | +This tutorial doesn't require a license, but you can add one using `KongLicense`. This assumes that your license is available in `./license.json`. |
| 96 | +{{license}} |
43 | 97 |
|
44 | | - ``` |
45 | | - echo " |
46 | | - apiVersion: configuration.konghq.com/v1alpha1 |
47 | | - kind: KongLicense |
48 | | - metadata: |
49 | | - name: kong-license |
50 | | - rawLicenseString: '$(cat ./license.json)' |
51 | | - " | kubectl apply -f - |
52 | | - ``` |
53 | 98 | {% endif %} |
54 | 99 | {% endcapture %} |
55 | 100 |
|
|
0 commit comments