48 lines
1.5 KiB
Markdown
48 lines
1.5 KiB
Markdown
# Hello kube application
|
|
## Description
|
|
This application display a web page with:
|
|
* message
|
|
* namespace
|
|
* pod
|
|
* node
|
|
* image details
|
|
|
|
## clone repositopry
|
|
```bash
|
|
git clone https://gitweb.dyndns.org/helm/hello-kube.git
|
|
```
|
|
|
|
## Helm variables
|
|
|
|
| Variable name | Value sample | Description |
|
|
|:---|:---|:---|
|
|
| message | `hello world` | Message display on web page |
|
|
| ingress.hostUrl | `hello-kube.gmolab.net`| Site URL. Must be define in DNS or hosts file |
|
|
| deployment.replicaCount | `2` | Number of deployment's replica |
|
|
| deployment.container.image.repository | `docker.io/gmouchet/hello-kube:1.0` | Docker image repository |
|
|
| deployment.container.image.repository.pullPolicy | `IfNotPresent` | [Image Pull Policy](https://kubernetes.io/docs/concepts/containers/images/) |
|
|
| deployment.container.port | `8080` | Docker image port. Do not change without rebuild docker image |
|
|
|
|
## Deploy
|
|
```bash
|
|
KENV=gmo|vdg|vm-vdglab
|
|
helm upgrade hello-kube . \
|
|
--install \
|
|
--atomic \
|
|
--cleanup-on-fail \
|
|
--values=values-$KENV-env.yaml \
|
|
--namespace hello-kube \
|
|
--create-namespace
|
|
```
|
|
## Test
|
|
Go to http://hello-kube.gmolab.net (<ingress.hostUrl>)
|
|
|
|
## Building images
|
|
|
|
If you'd like to build the `hello-kube` container image yourself and reference from your own registry or DockerHub repository, then you can get more details on how to do this in the [Build and push container images](README_BUILD.md) documentation.
|
|
|
|
## Changelog
|
|
### v1.0.0 (2025-04-12)
|
|
#### Added
|
|
- definition for vm-vdglab
|
|
- initial version |