From dc1bd3ffeaa37f29141db5bc073093dbdb14b5cd Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Sat, 7 Jun 2025 09:54:36 -0700 Subject: [PATCH] Beginning of my-wild-cloud init files. --- my-templates/.wildcloud/.gitignore | 1 + my-templates/.wildcloud/config.yaml | 34 ++++++++++++++++++ my-templates/.wildcloud/secrets.example.yaml | 1 + my-templates/README.md | 37 ++++++++++++++++++++ my-templates/apps/README.md | 29 +++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 my-templates/.wildcloud/.gitignore create mode 100644 my-templates/.wildcloud/config.yaml create mode 100644 my-templates/.wildcloud/secrets.example.yaml create mode 100644 my-templates/README.md create mode 100644 my-templates/apps/README.md diff --git a/my-templates/.wildcloud/.gitignore b/my-templates/.wildcloud/.gitignore new file mode 100644 index 0000000..03cdeec --- /dev/null +++ b/my-templates/.wildcloud/.gitignore @@ -0,0 +1 @@ +secrets.yaml diff --git a/my-templates/.wildcloud/config.yaml b/my-templates/.wildcloud/config.yaml new file mode 100644 index 0000000..b27504b --- /dev/null +++ b/my-templates/.wildcloud/config.yaml @@ -0,0 +1,34 @@ +wildcloud: + # You can also use a local path for the repository such as /home/adam/repos/wild-cloud + repository: https://github.com/payneio/wild-cloud +operator: + email: adam@adam.tld +cloud: + domain: cloud.adam.tld + internalDomain: internal.cloud.adam.tld + dockerRegistryHost: docker-registry.internal.cloud.adam.tld + tz: America/Los_Angeles + router: + dynamicDns: # Some routers provide this. + ip: 192.168.8.1 + nfs: + host: box-01 + mediaPath: /data/media + storageCapacity: 250Gi + dns: + ip: 192.168.8.218 + dhcpRange: 192.168.8.100,192.168.8.239 + dnsmasqInterface: enp5s0 +cluster: + endpoint: computer-01 + endpointIp: 192.168.8.241 + kubeConfig: /home/adam/.kube/config + loadBalancerRange: 192.168.8.240-192.168.8.250 + dashboard: + adminUsername: admin + certManager: + namespace: cert-manager + cloudflare: + apiToken: + domain: adam.tld + ownerId: cloud-adam-cluster diff --git a/my-templates/.wildcloud/secrets.example.yaml b/my-templates/.wildcloud/secrets.example.yaml new file mode 100644 index 0000000..523a2fe --- /dev/null +++ b/my-templates/.wildcloud/secrets.example.yaml @@ -0,0 +1 @@ +cloudflareApiToken: diff --git a/my-templates/README.md b/my-templates/README.md new file mode 100644 index 0000000..3a941c5 --- /dev/null +++ b/my-templates/README.md @@ -0,0 +1,37 @@ +# Your Wild-Cloud + +## Getting started + +### Install wild-cloud tools + +``` +# TBD +``` + +### Set up wild-cloud hardware + +TBD + +### Create your wild-cloud + +```bash +wild init # Creates a .wildcloud dir and copies templates. +wild update # Updates templates +wild cluster init # Copies cluster templates + +# Make your config and secrets changes. + +wild cluster build +wild cluster apply +# Optional: Check in cluster files. +``` + +### Install Wild-Cloud apps + +```bash +wild apps list +wild apps get +wild apps build +wild apps apply +# Optional: Check in app templates. +``` diff --git a/my-templates/apps/README.md b/my-templates/apps/README.md new file mode 100644 index 0000000..e4503f8 --- /dev/null +++ b/my-templates/apps/README.md @@ -0,0 +1,29 @@ +# My Wild-cloud Apps + +This directory contains the definitions for _your_ wild-cloud apps. You can change them however you like. You should keep them all in git and make commits anytime you change something. Some `wild` commands will overwrite files in your app directory (like when you are updating apps, or updating your configuration) so you'll want to review any changes made to your files after using them using `git`. + +## Usage + +To list all available apps: + +```bash +wild-cloud-app-list +``` + +To add a new app: + +```bash +wild-cloud-add +``` + +To install the app: + +```bash +wild-cloud-install +``` + +To update the app: + +```bash +TBD +```