1
0
Fork 0
kubernetes/phpipam
Dustin d943c936a7 phpipam: Update PVC storage class name
The other day, when I was dealing with the mess that I accidentally
created by letting the *phpipam* MySQL database automaticall upgrade
itself, I attempted to restore from a Longhorn backup to try to get the
database working again.  This did work, but as a side-effect, it changed
the storage class name of the *phpipam-pvc* persistent volume claim from
`longhorn` to `longhorn-static`.  Now, when attempting to apply the
YAML manifest, `kubectl` complains because this field is immutable.  As
such, the manifest needs to be updated to reflect the value set by
Longhorn when the backup was restored and the PVC was recreated.
2023-10-10 22:42:14 -05:00
..
README.md phpipam: Add manifest for phpipam 2022-07-31 01:31:53 -05:00
phpipam.yaml phpipam: Update PVC storage class name 2023-10-10 22:42:14 -05:00

README.md

kubectl exec -n phpipam phpipam-db-0 -- \
    mysql \
    --password=$(kubectl get secret -n phpipam phpipam-mysql-root -o 'jsonpath={.data.password}' | base64 -d) \
    phpipam \
    < ~/tmp/phpipam_MySQL_dump_2022-07-31.sql