|
|
@ -5,7 +5,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
# Install tooling
|
|
|
|
# Install tooling
|
|
|
|
brew install helm kubernetes-cli terraform
|
|
|
|
brew install kubernetes-cli terraform
|
|
|
|
|
|
|
|
|
|
|
|
# Bootstrapping
|
|
|
|
# Bootstrapping
|
|
|
|
(cd bootstrap && terraform init && terraform apply)
|
|
|
|
(cd bootstrap && terraform init && terraform apply)
|
|
|
@ -20,6 +20,16 @@ terraform destroy
|
|
|
|
|
|
|
|
|
|
|
|
- https://learnk8s.io/terraform-lke
|
|
|
|
- https://learnk8s.io/terraform-lke
|
|
|
|
- https://cert-manager.io/docs/tutorials/acme/ingress/
|
|
|
|
- https://cert-manager.io/docs/tutorials/acme/ingress/
|
|
|
|
|
|
|
|
- https://www.linode.com/community/questions/20215/how-to-re-attach-persistent-volume-to-pod-when-claim-is-deleted
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> At first I get new PVC uid by command:
|
|
|
|
|
|
|
|
> `kubectl get pvc my-pvc-0 -o yaml | grep uid`
|
|
|
|
|
|
|
|
> Then I edit new empty volume, what provisioned by CSI Driver and remove claim - pv binding by removing claimRef section in:
|
|
|
|
|
|
|
|
> `kubectl edit pv pvc-yyyyyyyyyyyy`
|
|
|
|
|
|
|
|
> After that new PV change status to "Available" and can be deleted.
|
|
|
|
|
|
|
|
> Then I edit old PV, what I want to bind with pod via new claim and put PVC uid to claimRef section:
|
|
|
|
|
|
|
|
> `kubectl edit pv pvc-xxxxxxxxxxx`
|
|
|
|
|
|
|
|
> After that, the old volume became associated with the new claim.
|
|
|
|
|
|
|
|
|
|
|
|
## TODO
|
|
|
|
## TODO
|
|
|
|
|
|
|
|
|
|
|
|