2024-03-29 07:28:02 +00:00
|
|
|
include .env
|
|
|
|
|
|
|
|
|
2024-06-18 02:21:08 +00:00
|
|
|
namespaces:
|
|
|
|
./scripts/k8s-namespaces.sh
|
2024-06-13 01:38:11 +00:00
|
|
|
|
|
|
|
secrets:
|
|
|
|
./scripts/k8s-secrets.sh
|
|
|
|
|
2024-06-20 01:43:25 +00:00
|
|
|
flux-prod:
|
|
|
|
./scripts/flux-bootstrap-prod.sh
|
|
|
|
|
|
|
|
flux-staging:
|
2024-06-20 23:23:01 +00:00
|
|
|
(cd ./scripts; ./flux-bootstrap-staging.expect)
|
2024-04-22 00:14:48 +00:00
|
|
|
|
2024-06-19 16:46:23 +00:00
|
|
|
dev: kind namespaces secrets chisel velero
|
2024-04-22 00:14:48 +00:00
|
|
|
|
2024-06-21 01:32:22 +00:00
|
|
|
prod: namespaces secrets velero chisel flux-prod
|
2024-06-20 01:43:25 +00:00
|
|
|
|
2024-06-21 01:32:22 +00:00
|
|
|
staging: namespaces secrets velero chisel flux-staging
|
2024-04-18 20:51:09 +00:00
|
|
|
|
2024-06-18 02:21:08 +00:00
|
|
|
velero:
|
|
|
|
./scripts/velero-create.sh
|
2024-04-18 20:51:09 +00:00
|
|
|
|
2024-04-02 14:49:33 +00:00
|
|
|
tilt:
|
2024-06-19 16:46:23 +00:00
|
|
|
kind get kubeconfig > ~/.kube/kind.yaml
|
|
|
|
KUBECONFIG=~/.kube/kind.yaml tilt up -f ./t.wip.tiltfile
|
2024-04-02 14:49:33 +00:00
|
|
|
|
2024-03-29 07:28:02 +00:00
|
|
|
|
|
|
|
define _script
|
|
|
|
cat <<'EOF' | ctlptl apply -f -
|
|
|
|
apiVersion: ctlptl.dev/v1alpha1
|
|
|
|
kind: Cluster
|
|
|
|
product: minikube
|
|
|
|
registry: ctlptl-registry
|
|
|
|
kubernetesVersion: v1.28.3
|
|
|
|
EOF
|
|
|
|
endef
|
|
|
|
export script = $(value _script)
|
2024-03-29 10:14:18 +00:00
|
|
|
minikube:
|
2024-03-29 07:28:02 +00:00
|
|
|
@ eval "$$script"
|
|
|
|
minikube addons enable volumesnapshots
|
|
|
|
minikube addons enable csi-hostpath-driver
|
|
|
|
minikube addons enable metrics-server
|
|
|
|
|
2024-05-27 22:20:58 +00:00
|
|
|
kind:
|
2024-06-18 02:21:08 +00:00
|
|
|
./scripts/kind-with-local-registry.sh
|
2024-05-27 22:20:58 +00:00
|
|
|
|
2024-06-12 04:28:36 +00:00
|
|
|
chisel:
|
|
|
|
./scripts/k8s-chisel-operator.sh
|
|
|
|
|
2024-06-24 19:51:46 +00:00
|
|
|
clean:
|
|
|
|
./packages/infra/vultr-delete-orphaned-resources.js
|
|
|
|
|
2024-05-27 22:20:58 +00:00
|
|
|
deps:
|
2024-06-20 23:23:01 +00:00
|
|
|
sudo pamac install make entr nvm minikube kubectl docker helm expect
|
2024-05-27 22:20:58 +00:00
|
|
|
curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash
|
|
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
|
|
|
echo "go to https://github.com/txn2/kubefwd/releases/latest to get kubefwd"
|
|
|
|
echo "go to https://github.com/tilt-dev/ctlptl/releases/latest to get ctlptl"
|
|
|
|
sudo systemctl enable docker
|
|
|
|
sudo systemctl start docker
|
|
|
|
usermod -aG docker cj
|
|
|
|
newgrp docker
|
2024-06-18 02:21:08 +00:00
|
|
|
curl -OL 'https://github.com/vmware-tanzu/velero/releases/download/v1.13.2/velero-v1.13.2-linux-amd64.tar.gz'
|
2024-03-29 07:28:02 +00:00
|
|
|
|
|
|
|
# A gitea act runner which runs locally
|
|
|
|
# https://docs.gitea.com/next/usage/actions/overview
|
2024-03-29 10:14:18 +00:00
|
|
|
# this doesnt work because of missing docker in docker
|
|
|
|
# I'm running this using systemd instead
|
|
|
|
#runner:
|
|
|
|
# docker run -d --rm -e GITEA_INSTANCE_URL=https://gitea.futureporn.net -e GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN} -v /var/run/docker.sock:/var/run/docker.sock -v $$HOME/.local/share/applications/fp/act-runner-data:/data --privileged --name fp-gitea-act-runner gitea/act_runner
|
|
|
|
|