Hello Kubernetes

Provides a demo app to deploy to a Kubernetes cluster. It displays a message, the name of the pod and details of the node it's deployed to.
Alternatives To Hello Kubernetes
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Minio40,9022012615 hours ago376March 27, 202340agpl-3.0Go
High Performance Object Storage for AI
Argo Cd14,1525413 hours ago334July 31, 20232,988apache-2.0Go
Declarative continuous deployment for Kubernetes.
Prometheus Operator8,29632016 hours ago311August 03, 2023267apache-2.0Go
Prometheus Operator creates/configures/manages Prometheus clusters atop Kubernetes
Ko6,33443a day ago164June 20, 202367apache-2.0Go
Build and deploy Go applications
Examples5,719
a month ago3February 21, 202110apache-2.0Shell
Kubernetes application example tutorials
Bentoml5,6701021 hours ago110August 01, 2023178apache-2.0Python
Build Production-Grade AI Applications
Fate5,20015 days ago30April 18, 2022786apache-2.0Python
An Industrial Grade Federated Learning Framework
Gaia5,099
a month ago13January 13, 202255apache-2.0Go
Build powerful pipelines in any programming language.
Waypoint4,776615 days ago93August 09, 2023362otherGo
A tool to build, deploy, and release any application on any platform.
Kubeapps4,67614 days ago222April 07, 2022100otherGo
A web-based UI for deploying and managing applications in Kubernetes clusters
Alternatives To Hello Kubernetes
Select To Compare


Alternative Project Comparisons
Readme

Hello Kubernetes!

Docker Image Version (latest semver) Docker Image Size (latest semver) Docker Pulls

This container image can be deployed on a Kubernetes cluster. It runs a web app, that displays the following:

  • a default Hello world! message
  • namespace, pod, and node details
  • container image details

Hello world! from the hello-kubernetes image

Quick start

You can deploy hello-kubernetes to your Kubernetes cluster using Helm 3. The Helm chart installation and configuration options can be found in the Deploy using Helm guide.

When running through the following examples, ensure that you are in the chart directory in the repo, since you are referencing a local helm chart.

cd deploy/helm

Example 1: Default

Deploy the hello-kubernetes app into the hello-kubernetes namespace with the default "Hello world!" message. The app is exposed via a public Load Balancer on port 80 by default - note that a LoadBalancer service typically only works in cloud provider based Kubernetes offerings.

helm install --create-namespace --namespace hello-kubernetes hello-world ./hello-kubernetes

# get the LoadBalancer ip address.
kubectl get svc hello-kubernetes-hello-world -n hello-kubernetes -o 'jsonpath={ .status.loadBalancer.ingress[0].ip }'

Example 2: Custom message

Deploy the hello-kubernetes app into the hello-kubernetes namespace with an "I just deployed this on Kubernetes!" message. The app is exposed via a public Load Balancer on port 80 by default - note that a LoadBalancer service typically only works in cloud provider based Kubernetes offerings.

helm install --create-namespace --namespace hello-kubernetes custom-message ./hello-kubernetes \
  --set message="I just deployed this on Kubernetes!"

# get the LoadBalancer ip address.
kubectl get svc hello-kubernetes-custom-message -n hello-kubernetes -o 'jsonpath={ .status.loadBalancer.ingress[0].ip }'

Example 3: Ingress

Deploy the hello-kubernetes app into the hello-kubernetes namespace. This example assumes that an ingress has been deployed and configured in the cluster, and that the ingress has a path of /app/hello-kubernetes/ mapped to the hello-kubernetes service.

The hello-kubernetes app can be reached on the ip address of the ingress via the /app/hello-kubernetes/ path.

helm install --create-namespace --namespace hello-kubernetes ingress ./hello-kubernetes \
  --set ingress.configured=true \
  --set ingress.pathPrefix="/app/hello-kubernetes/" \
  --set service.type="ClusterIP"

Documentation

Deploying

If you'd like to explore the various Helm chart configuration options, then read the Deploy with Helm documentation. You can also discover more about the ingress configuration options in the Deploy with ingress documentation

Building your own images

If you'd like to build the hello-kubernetes 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 documentation.

Development environment

If you have VS Code and the VS Code Remote Containers extension installed, the .devcontainer folder will be used to provide a container based development environment. You can read more about how to use this in the Development environments documentation.

Popular Kubernetes Projects
Popular Deployment Projects
Popular Virtualization Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Deploy
Dockerfile
Kubernetes
Port
Kubernetes Cluster