https://github.com/mmroshani/archlinux-k8s-cluster
A Kubernetes Cluster Based on Arch Linux Image
https://github.com/mmroshani/archlinux-k8s-cluster
archlinux docker docker-compose dockerfile k8s k8s-cluster
Last synced: 5 months ago
JSON representation
A Kubernetes Cluster Based on Arch Linux Image
- Host: GitHub
- URL: https://github.com/mmroshani/archlinux-k8s-cluster
- Owner: mmRoshani
- License: gpl-3.0
- Created: 2024-08-23T05:43:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T06:57:15.000Z (almost 2 years ago)
- Last Synced: 2025-02-11T17:54:59.456Z (over 1 year ago)
- Topics: archlinux, docker, docker-compose, dockerfile, k8s, k8s-cluster
- Language: Makefile
- Homepage: https://mmroshani.github.io/post/devops/kubernetes/archlinux_k8s_cluster/
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Kubernetes cluster based on arch linux image
- Part of [Kubernetes Installation](https://mmroshani.github.io/post/devops/kubernetes/kubernetes_installation/)
- One can also visit the [online documentation](https://mmroshani.github.io/post/devops/kubernetes/archlinux_k8s_cluster/)
## A Kubernetes Cluster Based on Arch Linux Image
### 🚩 Notes
- containers username is: `nasa`
- containers password is: `nsa`
- take a look at each **containers exported ports**.
### Requirments:
- docker
- docker-compose
- make utilities (just for simplicity)
### Commands
The is a make file provided for simplicity,
- Docker build
```sh
$ make d-build # use `d-build-nc` for --no-cache building
```
- Docker starting/stopping
```sh
$ make d-up # compose up containers saliency
$ make d-down # compose down containers
```
- Docker Shell Connection
```sh
$ make c-node-1 # connect to node 1 integrated shell
$ make c-node-2 # connect to node 2 integrated shell
$ make c-node-3 # connect to node 3 integrated shell
```
### SSH connection
to if you want to connect to the containers SSH service run.
```sh
# the password is `nsa`
$ ssh nasa@0.0.0.0 -p 2200 # for connecting to container No. 1
$ ssh nasa@0.0.0.0 -p 2200 # for connecting to container No. 2
$ ssh nasa@0.0.0.0 -p 2200 # for connecting to container No. 3
```