diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-11-25 11:53:13 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-12-13 15:59:11 -0500 |
| commit | 6fe326b68012b0eae5c951ab21d55b0ccfda84f9 (patch) | |
| tree | 5cb8e259e11ba99296fcbc8e46d979e6ba101597 /recipes-demo/images | |
| parent | fc5fdd79e082e69f3e0c145412516314fbf00f0b (diff) | |
| download | meta-virtualization-6fe326b68012b0eae5c951ab21d55b0ccfda84f9.tar.gz | |
demo: add flask and k3s deployment files
To enable demonstrations of application container builds, and deployment
to k*s clusters, we introduce a simple recipes-demo/ structure with a
sample flask application and deployment yaml.
i.e. ensure that "helloworld-flask-deploy" is installed on your image,
and then:
% kubectl apply -f /etc/flask-app.yaml
% kubectl label pods zeddii-pod new-label=yoctorule
% kubectl expose pod zeddii-pod --port=9000 --target-port=9000 --type=LoadBalancer --name=my-service
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-demo/images')
| -rw-r--r-- | recipes-demo/images/app-container.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-demo/images/app-container.bb b/recipes-demo/images/app-container.bb new file mode 100644 index 00000000..c8798cf0 --- /dev/null +++ b/recipes-demo/images/app-container.bb | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | SUMMARY = "Basic Application container image" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 4 | |||
| 5 | include container-base.bb | ||
| 6 | |||
| 7 | OCI_IMAGE_ENTRYPOINT = "/usr/bin/flask-app" | ||
| 8 | CONTAINER_SHELL = "busybox" | ||
| 9 | |||
| 10 | IMAGE_INSTALL:append = "helloworld-flask" | ||
