https://github.com/stopsopa/kuber
https://github.com/stopsopa/kuber
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stopsopa/kuber
- Owner: stopsopa
- Created: 2019-10-28T21:02:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T23:26:14.000Z (over 1 year ago)
- Last Synced: 2025-02-06T08:13:15.313Z (3 months ago)
- Language: JavaScript
- Homepage: https://github.com/tomekwlod/kuber
- Size: 666 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DEPRECATED
Created in 2019 - quite old now and not maintained.
These were just some heavy experiments with kubernetes.Nothing to be ashamed here:
I used best tools available at a time and delivered what's needed quickly.
# Installing
https://github.com/tomekwlod/kuber
Create at least two droplets in DO: `kuber-master`, `kuber-node-01`, ...
On a **master** node run:
- `cd /opt/kuber/master`
- `/bin/bash install.sh`
- copy the join command to paste it later to the nodes
- `/bin/bash user.sh`On **the nodes**:
- `cd /opt/kuber/master`
- `/bin/bash install.sh`
- `/bin/bash user.sh`
- still as root run:
- previously copied join command
- if you haven't copied the join command do below:
- `kubeadm token create --print-join-command`
- paste and execute
# Usage
(Own registry: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/)
```bash
kubectl run hw --image=image-here --port=80 (deprecated - use 'kubectl create' instead)
kubectl get deployments
kubectl get rs
kubectl get pods
kubectl expose deployment hw
kubectl expose deployment hw --type=NodePort
kubectl get services```
# Kubernetes live test
```bash
docker build -t piiapp:0.0.1 .
docker-compose updocker tag f27a644125ab sdpii/piiapp:0.0.3
docker push sdpii/piiapp:0.0.3```
# Read more:
- https://kubernetes.io/blog/2015/10/some-things-you-didnt-know-about-kubectl_28/
- https://github.com/kubernetes/examples/tree/master/staging/cluster-dns
- (configure the nodes’ resolv.conf) https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues
- https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/
- https://www.nginx.com/products/nginx/kubernetes-ingress-controller# Detailed readme
[link](/DO/002-nginx-ingress%5Bhttps%5D)