https://github.com/ddobrin/generator-knative-kpack-simple
Generator that creates a small set of Knative and Kpack manifest files for applications and its dependent services
https://github.com/ddobrin/generator-knative-kpack-simple
Last synced: 5 months ago
JSON representation
Generator that creates a small set of Knative and Kpack manifest files for applications and its dependent services
- Host: GitHub
- URL: https://github.com/ddobrin/generator-knative-kpack-simple
- Owner: ddobrin
- License: apache-2.0
- Created: 2021-03-20T22:13:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-26T15:00:29.000Z (over 5 years ago)
- Last Synced: 2024-10-06T02:05:37.064Z (almost 2 years ago)
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generator-knative-kpack-simple
Generator that creates a small set of Knative and Kpack manifest files for applications and its dependent services.
1. Building with Kpack/Tanzu Build Service
2. Deploying to Knative
**Note:** - For all the generated manifests, please adjust the image name to the container registry in use
* For local K8s - manifests work as-is
* For GCR, for example - image: gcr.io//
## Building with Kpack / Tanzu Build Service
To build images in a declarative manner, provision the Kpack/TBS manifest for the type of image you wish to build: JVM/Native, by creating a Kpack/TBS image, based on the template generated in the `kubernetes` folder:
* JVM - /kubernetes/jvm/image.yaml
* Native - /kubernetes/native/image-native.yaml
To build the service, please execute:
```shell
$ kubectl apply -f /kubernetes/jvm/image.yaml
$ kubectl apply -f /kubernetes/jvm/image-native.yaml
```
To delete the build image for the service, please execute:
```shell
$ kubectl delete -f /kubernetes/jvm/image.yaml
$ kubectl delete -f /kubernetes/jvm/image-native.yaml
```
## Deploying to Knative
To deploy the service to Knative, select the image you wish to deploy, generated in the `kubernetes` folder:
* JVM - /kubernetes/jvm/service.yaml
* Native - /kubernetes/native/service-native.yaml
To deploy the service, please execute:
```shell
$ kubectl apply -f /kubernetes/jvm/service.yaml
$ kubectl apply -f /kubernetes/jvm/service-native.yaml
```
To delete the service, please execute:
```shell
$ kubectl delete -f /kubernetes/jvm/service.yaml
$ kubectl delete -f /kubernetes/jvm/service-native.yaml
```