An open API service indexing awesome lists of open source software.

https://github.com/peterj/hello-kube

An example application for learning basics of Kubernetes
https://github.com/peterj/hello-kube

Last synced: about 1 year ago
JSON representation

An example application for learning basics of Kubernetes

Awesome Lists containing this project

README

          

# hello-kube

An example application used for learning basics of Kubernetes (deployments, config maps and secrets).

## Getting Started

1. Fork this repo under your username
1. Go through the [exercises](./exercises.md)

## Prerequisites

- Docker
- Docker Hub account (or other Docker registry)
- Kubernetes
- NodeJS, if you want to run the app locally

## Development

To start the application using `nodemon` run:

```
npm start dev
```

### Build the image

From the root folder, run:

```
docker build -t hello-kube .
```

### Run the application

To run the application on a host machine:

```
npm install && npm start
```

To run the application using Docker, after you've built the image:

```
docker run -it -p 3000:3000 hello-kube
```