infra
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
infra [2025/01/09 23:15] – 6b86b273-ff34-fce1-9d6b-804eff5a3f57 | infra [2025/03/07 22:37] (current) – ef2d127d-e37b-942b-aad0-6145e54b0c61 | ||
---|---|---|---|
Line 1: | Line 1: | ||
# IT Infrastructure | # IT Infrastructure | ||
- | |||
- | The acting CTO is responsible for maintaining TheLab' | ||
---- | ---- | ||
- | **Please don't tinker with the IT infrastructure | + | **Please don't tinker with the infra - daily operations of the space depend on it! If you want to change something, ask someone who's been around for a while first.** |
---- | ---- | ||
+ | |||
+ | ## Servers | ||
+ | |||
+ | <nspages :servers -customTitle=" | ||
+ | |||
+ | ## Cloudflare | ||
+ | |||
+ | We use Cloudflare for various things including (most importantly) DNS. The account is associated with [email protected], | ||
+ | |||
+ | Cloudflare tunnels are used for all ingress to our servers - no need to worry about rotating TLS certs, free DDoS protection, etc. | ||
+ | |||
+ | |||
+ | ## Github | ||
+ | |||
+ | Any active members working on code-related projects can be added as a member of TheLab' | ||
+ | |||
+ | |||
+ | ## Monitoring | ||
+ | |||
+ | We have a shared [cronitor](https:// | ||
## Network | ## Network | ||
Line 23: | Line 41: | ||
Management points: | Management points: | ||
- | - **10.200.10.1**: | + | - **10.200.10.1**: |
- **10.200.10.2**: | - **10.200.10.2**: | ||
+ | - `ssh [email protected] -c aes256-cbc -o KexAlgorithms=diffie-hellman-group-exchange-sha1 -o PubkeyAcceptedAlgorithms=+ssh-rsa -o HostKeyAlgorithms=+ssh-rsa` | ||
### Switch Ports | ### Switch Ports | ||
Line 34: | Line 53: | ||
- Infrastructure | - Infrastructure | ||
- Access Control | - Access Control | ||
- | |||
- | |||
- | ## CDN (Cloudflare) | ||
- | |||
- | We use Cloudflare for various things including (most importantly) DNS. The account is associated with [email protected], | ||
- | |||
- | |||
- | ## Servers | ||
- | |||
- | ### foobar.thelab.ms | ||
- | |||
- | Foobar is the main internet-facing server running [Conway](https:// | ||
- | |||
- | #### Provisioning Process | ||
- | |||
- | - Azure Standard_B1s running Ubuntu 24.04 in southcentralus. | ||
- | - Enable daily Azure backups during provisioning. | ||
- | - Manually populate IP in Cloudflare dns record (foobar.thelab.ms) | ||
- | - The cto user should trust the current acting CTO's ssh pubkey. It can always be updated through the Azure portal. | ||
- | - Manually install cloudflared for tunneling. It would be hard to automate, very easy to do by hand. | ||
- | - Make sure to run as a service i.e. `cloudflared service install` | ||
- | - Run `make ansible`! | ||
- | |||
- | Here's the cloudflared config at the time of provisioning: | ||
- | |||
- | ```yaml | ||
- | tunnel: < | ||
- | credentials-file: | ||
- | |||
- | originRequest: | ||
- | connectTimeout: | ||
- | |||
- | ingress: | ||
- | - hostname: members.thelab.ms | ||
- | service: http:// | ||
- | |||
- | - hostname: docs.thelab.ms | ||
- | service: http:// | ||
- | |||
- | - service: http_status: | ||
- | ``` | ||
- | |||
- | ### baz.thelab.ms | ||
- | |||
- | Baz is the main on-prem server at TheLab. | ||
- | |||
- | #### Provisioning Process | ||
- | |||
- | - Dell 16 core by 96gb r710 with a bunch of SSDs | ||
- | - Manually configure the RAID controller with a keyboard/ | ||
- | - One RAID 1 group for the first two disks (boot/os drive) | ||
- | - One RAID 0 group for the rest | ||
- | - Make sure the system option is set to turn on when power is lost | ||
- | - Install Ubuntu 24 from a flash drive | ||
- | - Create a LACP bond for NICs 1 and 2 with the IP: 10.200.10.234 | ||
- | - Mount the data drive to /mnt/data | ||
- | - Make the default username " | ||
- | - Run `make ansible`! | ||
- | |||
- | Here's the cloudflared config at the time of provisioning: | ||
- | |||
- | ```yaml | ||
- | tunnel: < | ||
- | credentials-file: | ||
- | |||
- | originRequest: | ||
- | connectTimeout: | ||
- | |||
- | ingress: | ||
- | - hostname: frigate.thelab.ms | ||
- | service: http:// | ||
- | |||
- | - service: http_status: | ||
- | ``` | ||
infra.1736464532.txt.gz · Last modified: 2025/01/09 23:15 by 6b86b273-ff34-fce1-9d6b-804eff5a3f57