You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: INSTALL.kind.md
+59-38
Original file line number
Diff line number
Diff line change
@@ -3,29 +3,25 @@
3
3
4
4
# Install Korifi on kind
5
5
6
-
This document integrates our [install instructions](./INSTALL.md) with specific tips to install Korifi locally using [kind](https://kind.sigs.k8s.io/).
6
+
In order to install korifi on kind effortlessly we have prepared an installation job definition that you simply apply to your kind cluster. It will install korifi with reasonable defautls using a local docker registry (also running on your kind cluster).
7
7
8
-
## Initial setup
9
-
10
-
Export the following environment variables:
11
-
12
-
```sh
13
-
ROOT_NAMESPACE="cf"
14
-
KORIFI_NAMESPACE="korifi-system"
15
-
ADMIN_USERNAME="kubernetes-admin"
16
-
BASE_DOMAIN="apps-127-0-0-1.nip.io"
17
-
```
18
-
19
-
`apps-127-0-0-1.nip.io` will conveniently resolve to `127.0.0.1` using [nip.io](https://nip.io/), which is exactly what we need.
20
-
21
-
### Cluster creation
8
+
## Cluster creation
22
9
23
10
In order to access the Korifi API, we'll need to [expose the cluster ingress locally](https://kind.sigs.k8s.io/docs/user/ingress/). To do it, create your kind cluster using a command like this:
Make sure you pass the following flags to the Metrics Server container (see [_Configuration_](https://github.com/kubernetes-sigs/metrics-server#configuration)):
54
+
-**Optional** After the job is complete you can delete the `korifi-installer` namespace
52
55
53
-
-`--kubelet-insecure-tls`
54
-
-`--kubelet-preferred-address-types=InternalIP`
56
+
```sh
57
+
kubectl delete namespace korifi-installer
58
+
```
55
59
56
-
## Pre-install configuration
60
+
## Test Korifi
57
61
58
-
No changes here, follow the [common instructions](./INSTALL.md#pre-install-configuration).
59
-
For the container registry credentials `Secret`, we recommend you [create an access token](https://hub.docker.com/settings/security?generateToken=true) on DockerHub.
62
+
- Target the api:
60
63
61
-
## Install Korifi
64
+
```sh
65
+
cf api https://localhost --skip-ssl-validation
66
+
```
67
+
68
+
- Authenticate as the cf admin user:
69
+
70
+
```sh
71
+
cf auth kind-korifi
72
+
```
62
73
63
-
No changes here, follow the [common instructions](./INSTALL.md#install-korifi).
64
-
If using DockerHub as recommended above, set the following values:
Copy file name to clipboardexpand all lines: INSTALL.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This document was tested on:
19
19
20
20
-[EKS](https://aws.amazon.com/eks/), using AWS' [Elastic Container Registry (ECR)](https://aws.amazon.com/ecr/) (see [_Install Korifi on EKS_](./INSTALL.EKS.md));
21
21
-[GKE](https://cloud.google.com/kubernetes-engine), using GCP's [Artifact Registry](https://cloud.google.com/artifact-registry);
22
-
-[kind](https://kind.sigs.k8s.io/), using [DockerHub](https://hub.docker.com/) (see [_Install Korifi on kind_](./INSTALL.kind.md)).
22
+
-[kind](https://kind.sigs.k8s.io/): see [_Install Korifi on kind_](./INSTALL.kind.md).
0 commit comments