https://github.com/jitsusama/example-rke-k8s-digitalocean
Example of configuring and deploying K8S via RKE on a DigitalOcean VM.
https://github.com/jitsusama/example-rke-k8s-digitalocean
digitalocean example kubernetes rke
Last synced: 7 months ago
JSON representation
Example of configuring and deploying K8S via RKE on a DigitalOcean VM.
- Host: GitHub
- URL: https://github.com/jitsusama/example-rke-k8s-digitalocean
- Owner: Jitsusama
- Created: 2020-06-07T04:36:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-07T04:36:41.000Z (over 5 years ago)
- Last Synced: 2025-01-20T08:28:49.864Z (9 months ago)
- Topics: digitalocean, example, kubernetes, rke
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository contains an example setup that can be used to bootstrap a K8s
single node cluster via Rancher's RKE installer on a DigitalOcean VM in a few
commands. In addition, it includes deployment configuration that will bring up
a very simple default nginx web server, running HTTP natively, but utilizing
the default RKE ingress controller to perform TLS offloading at the domain
example.com (with a bundled self-signed certificate matching that domain name
to boot).Here is the commands that can be used to bring this all up:
```fish
set ssh_keys (doctl compute ssh-key list --format ID --no-header | string join ',')
doctl compute droplet create --enable-monitoring --size s-2vcpu-2gb\
--ssh-keys $ssh_keys --region tor1 --image ubuntu-18-04-x64\
--format ID,PublicIPv4 --no-header --wait rke-node-01 |\
string replace -r " +" " " | read node ip_address
sed -i '' "s/address:.*/address: $ip_address/" rke-deploy.yaml
sleep 20
ssh root@$ip_address\
"curl https://releases.rancher.com/install-docker/18.09.2.sh | sh"
sleep 10
rke up --config rke-deploy.yaml
sleep 10
kubectl --kubeconfig kube_config_rke-deploy.yaml apply -f k8s-deploy.yaml
```Here are the commands that will allow you to quickly clean up when done:
```fish
rke remove --config rke-deploy.yaml
doctl compute droplet delete $node
```