Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerred committed Feb 10, 2024
1 parent f0b5aa9 commit 9daf8d9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
55 changes: 25 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ dotfiles, ansible, etc.
curl -sfL https://get.k3s.io | sh -
```

- Configure:

```
rm -rfv ~/.kube && mkdir ~/.kube && sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config && sudo chown $USER:$USER ~/.kube/config && chmod 600 ~/.kube/config
```
1. Copy the Kubernetes configuration

```
rm -rfv ~/.kube && mkdir ~/.kube && sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config && sudo chown $USER:$USER ~/.kube/config && chmod 600 ~/.kube/config
```

1. Install `helm` and `argocd`.

```
Expand All @@ -73,30 +71,7 @@ dotfiles, ansible, etc.
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
```

1. Port-forward Argo CD to access the UI.
```
kubectl port-forward svc/argocd-server -n argocd 8080:443 --address 0.0.0.0
```
1. Get the initial Argo CD `admin` password.
```
argocd admin initial-password -n argocd
```
1. Go to the Argo CD UI at `http://<host>:8080`. Change the `admin` password.
1. Add `apps/` directory in this repository to argocd.
1. Sync the `apps` Application.
1. Create the `1password` namespace.
```
kubectl create namespace 1password
```
1. Set the credentials in the `secrets` directory. Create these resources using
`kubectl apply`.
1. Set the credentials in the `secrets` directory.

- Be sure not to commit any changes to these files so that secrets don't
leak.
Expand All @@ -109,6 +84,26 @@ dotfiles, ansible, etc.
cat 1password-credentials.json | base64 -w 0
```
```
kubectl create namespace 1password
kubectl apply -f secrets/1password-secret.yaml
kubectl apply -f secrets/1password-token.yaml
```
1. Deploy the manifests in this repo
```
kubectl apply -f cdk8s/dist/apps.k8s.yaml
```
1. Get the initial Argo CD `admin` password.
```
argocd admin initial-password -n argocd
```
1. Change Argo CD the `admin` password.
1. Install Hauppauge Drivers for Hauppauge TV tuners.
- https://www.hauppauge.com/pages/support/support_linux.html
Expand Down
5 changes: 2 additions & 3 deletions k3s/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
tls-san:
- "lamport.tailnet-1a49.ts.net"
cluster-init: true
# TODO: uncomment to use IPv6
cluster-cidr: 10.42.0.0/16 #,2001:cafe:42::/56
service-cidr: 10.43.0.0/16 #,2001:cafe:43::/112
cluster-cidr: 10.42.0.0/16,2001:cafe:42::/56
service-cidr: 10.43.0.0/16,2001:cafe:43::/112
embedded-registry: true
secrets-encryption: true
node-name: "lamport"
Expand Down

0 comments on commit 9daf8d9

Please sign in to comment.