hello-world
Simple Go code with HTTP response for demonstration purpose.
65
Simple Go code with http response for demonstration purpose.
Notice: The container are running as non-root user.
Used port: 8080
Parameter: TEXT
Mandatory: Yes
Type: string
Description: will added after the text "My favorite thing is today: "
Pull image
docker pull kallaics82/hello-world:v0.1.0
Run image
docker run -it --rm -p 8080:8080 -e TEXT="whatever" kallaics82/hello-world:v0.1.0
Connect to container
curl http://localhost:8080/
Response
My favorite thing is today: whatever
Helm chart to deploy the hello-world image on Kubernetes.
Add Helm repository
helm repo add oci://registry-1.docker.io/kallaics82
helm repo update
Create values file:
cat << EOF > values.yaml
addText: <text will show in the response>
ingress:
enabled: true
className: <ingress class name>
hosts:
- host: hello-world.<ingress domain name>
paths:
- path: /
pathType: ImplementationSpecific
EOF
Install the chart
helm install demo hello-world/ --values values.yaml
Upgrade the Helm chart
helm upgrade demo hello-world/ --values values.yaml
Remove Helm chart
helm uninstall demo
Content type
Helm
Digest
sha256:c720807fe…
Size
3.6 kB
Last updated
about 2 years ago
helm pull oci://registry-1.docker.io/kallaics82/hello-world --version 0.1.0