8000 GitHub - ankur0904/installer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ankur0904/installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

    ██╗ ██╗ ██╗
   ██╔╝████████╗
  ██╔╝ ╚██╔═██╔╝
 ██╔╝  ████████╗
██╔╝   ╚██╔═██╔╝
╚═╝     ╚═╝ ╚═╝

Requirements

Before starting the installation script, please go over all the necessary requirements.

Host where the environment will be installed

  • Host minimum hardware specification
    • x86_64 architecture Linux OS
    • min 4 vcpu
    • min 16GB RAM
    • min 200GB disk
  • The host needs to have public IP and TCP ports 80, 443, and 30000 opened (also TCP 6443 if you want to access the Kubernetes cluster from your local machine)
  • The script has been currently tested on Debian-based distros (Ubuntu 22.04/Debian 12)

Valid domain

Registered domain with base domain and wildcard pointed to your host IP where

  • domain name IN A host.ip
  • *.domain-name IN A host.ip

OAuth App created with one of the Identity providers

One of the identity provider OAuth App set:

Values to set in the identity provider:

  • Homepage URL: https://{{ domain-name }}
  • Authorization callback URL: https://id.{{ domain-name }}

Setup

git clone https://github.com/daytonaio/installer
cd installer
./setup.sh

You will need the next 3 values:

  • URL - domain name you have set in your DNS provider and pointing to IP address of the machine where you are deploying Daytona
  • IDP_ID - client ID you get from your identity provider as stated in Requirements
  • IDP_SECRET - client secret you get from your identity provider as stated in Requirements ̨̨̨ After running the script, you will be prompted to input those values:
./setup.sh
...
Enter app hostname (valid domain) (URL): daytona.example.com
Enter GitHub Client ID (IDP_ID): changeme
Enter GitHub Client Secret (IDP_SECRET): changeme

After variables are set, the prompt will show you A records that need to be added to your DNS zone, and certbot will also show you information on how to edit your DNS zone in order to get a valid wildcard certificate, so please follow the instructions.

It is also possible to set all 3 values via CLI when running the script:

URL="daytona.example.com" IDP_ID="changeme" IDP_SECRET="changeme" ./setup.sh

Update

To update existing setup you simply need to run script again on the same machine. Be sure to download latest setup.sh and run it again:

./setup.sh

If you used prompt to provide URL, IDP_ID, IDP_SECRET you will need to input those values again. Certificate setup, if still valid, will be skiped.

If you used CLI with those 3 values set, you can simply repeat that command:

URL="daytona.example.com" IDP_ID="changeme" IDP_SECRET="changeme" ./setup.sh

Restart/Cleanup

If you want to remove and start all over, you can run the script with the --remove parameter, and it will delete k3s cluster with all the tools installed. Afterwards, you can create everything again with --install.

./setup.sh --remove

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0