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
Co-authored-by: Akira Wong <wakira@vmware.com>
Co-authored-by: Dave Walter <walterda@vmware.com>
Co-authored-by: Matt Royal <mroyal@vmware.com>
Co-authored-by: Akira Wong <wakira@vmware.com>
Co-authored-by: Dave Walter <walterda@vmware.com>
Co-authored-by: Matt Royal <mroyal@vmware.com>
This repository contains an experimental implementation of the [V3 Cloud Foundry API](http://v3-apidocs.cloudfoundry.org) that is backed entirely by Kubernetes [custom resources](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/).
@@ -17,13 +17,13 @@ Before installing, ensure that you have the following:
@@ -85,7 +85,7 @@ To be able to create workload routes via the CF API in the absence of the domain
85
85
### Configuring Default Domain
86
86
87
87
At the time of installation, platform operators can configure a default domain so that app developers can push an application without specifying domain information.
88
-
Operator can do so by setting the `defaultDomainName` at `api/config/base/apiconfig/cf_k8s_api_config.yaml`. The value should match `spec.name` on the `CFDomain` resource.
88
+
Operator can do so by setting the `defaultDomainName` at `api/config/base/apiconfig/korifi_api_config.yaml`. The value should match `spec.name` on the `CFDomain` resource.
89
89
90
90
Note: Platform operators are responsible for creating the required `CFDomain` resource. See `controllers/config/samples/cfdomain.yaml` for an example.
Cloud Native Buildpacks and other app frameworks (such as [Spring Cloud Bindings](https://github.com/spring-cloud/spring-cloud-bindings)) are adopting the [K8s ServiceBinding spec](https://github.com/servicebinding/spec#workload-projection) model of volume mounted secrets.
170
-
We currently are providing apps access to these via the `VCAP_SERVICES` environment variable ([see this issue](https://github.com/cloudfoundry/cf-k8s-controllers/issues/462)) for backwards compatibility reasons.
170
+
We currently are providing apps access to these via the `VCAP_SERVICES` environment variable ([see this issue](https://github.com/cloudfoundry/korifi/issues/462)) for backwards compatibility reasons.
171
171
We would also want to support the newer developments in the ServiceBinding ecosystem as well.
172
172
173
173
We are not implementing this ourselves but allowing controller that adopts the [ServiceBinding Spec](https://github.com/servicebinding/spec) that volume mounts secrets to workload containers to be used.
Create your root namespace. The default name is `cf`, but you can override this in the configuration files for cf-k8s-controller and cf-k8s-api (see below).
184
+
Create your root namespace. The default name is `cf`, but you can override this in the configuration files for korifi-controllers and korifi-api (see below).
185
185
186
186
Example: `kubectl create namespace cf`
187
187
188
-
## Configure cf-k8s-controllers
189
-
Configuration file for cf-k8s-controllers is at `controllers/config/base/controllersconfig/cf_k8s_controllers_config.yaml`
188
+
## Configure korifi-controllers
189
+
Configuration file for korifi-controllers is at `controllers/config/base/controllersconfig/korifi_controllers_config.yaml`
190
190
191
191
### Configure kpack
192
192
Edit the configuration file
193
193
- (required) set the `kpackImageTag` to be the registry location you want for storing the images.
194
194
- (optional) set the `clusterBuilderName`, if you want to use a different cluster builder with kpack.
195
195
196
-
## Configure cf-k8s-api
197
-
Configuration file for cf-k8s-api is at `api/config/base/apiconfig/cf_k8s_api_config.yaml`
196
+
## Configure korifi-api
197
+
Configuration file for korifi-api is at `api/config/base/apiconfig/korifi_api_config.yaml`
198
198
199
-
Edit the file `api/config/base/apiconfig/cf_k8s_api_config.yaml` and set the `packageRegistryBase` field to be the registry location to which you want your source package image uploaded.
199
+
Edit the file `api/config/base/apiconfig/korifi_api_config.yaml` and set the `packageRegistryBase` field to be the registry location to which you want your source package image uploaded.
200
200
Edit the file `api/config/base/api_url_patch.yaml` to specify the desired URL for the deployed API.
201
201
202
-
## Install cf-k8s-controllers and cf-k8s-api
203
-
From the `cf-k8s-controllers` directory use the Makefile to deploy the controllers and API shim:
202
+
## Install korifi-controllers and korifi-api
203
+
From the `korifi` directory use the Makefile to deploy the controllers and API shim:
204
204
```
205
205
make deploy
206
206
```
@@ -209,9 +209,9 @@ make deploy
209
209
210
210
### Create a role binding for your cluster admin user
211
211
To grant your kubernetes user admin-level access to the Cloud Foundry API,
212
-
they need the `cf-k8s-controllers-admin` role binding in your root namespace (i.e `cf`).
212
+
they need the `korifi-controllers-admin` role binding in your root namespace (i.e `cf`).
Set the $IMG_CONTROLLERS and $IMG_API environment variables to locations where you have push/pull access. For example:
353
353
```sh
354
-
export IMG_CONTROLLERS=foo/cf-k8s-controllers:bar #Replace this with your image ref
355
-
export IMG_API=foo/cf-k8s-api:bar #Replace this with your image ref
354
+
export IMG_CONTROLLERS=foo/korifi-controllers:bar #Replace this with your image ref
355
+
export IMG_API=foo/korifi-api:bar #Replace this with your image ref
356
356
make generate-controllers docker-build docker-push deploy
357
357
```
358
358
*This will generate the CRD bases, build and push images with the repository and tags specified by the environment variables, install CRDs and deploy the controller manager and API Shim.*
@@ -379,15 +379,15 @@ make run-controllers
379
379
make run-api
380
380
```
381
381
382
-
To specify a custom configuration file, set the `APICONFIG` environment variable to its path when running the web server. Refer to the [default config](api/config/base/apiconfig/cf_k8s_api_config.yaml) for the config file structure and options.
382
+
To specify a custom configuration file, set the `APICONFIG` environment variable to its path when running the web server. Refer to the [default config](api/config/base/apiconfig/korifi_api_config.yaml) for the config file structure and options.
383
383
384
384
### Set image respository and tag for controller manager
385
385
```sh
386
-
export IMG_CONTROLLERS=foo/cf-k8s-controllers:bar #Replace this with your image ref
386
+
export IMG_CONTROLLERS=foo/korifi-controllers:bar #Replace this with your image ref
387
387
```
388
388
### Set image respository and tag for API
389
389
```sh
390
-
export IMG_API=foo/cf-k8s-api:bar #Replace this with your image ref
390
+
export IMG_API=foo/korifi-api:bar #Replace this with your image ref
0 commit comments