Add baked-in image capability
Add capability to "bake in" a disk image into a container image. Rework deployment process
This commit is contained in:
parent
bd6050ea3e
commit
7911c7eefc
9 changed files with 108 additions and 39 deletions
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
usage () {
|
||||
echo "usage: $0 ip"
|
||||
exit 1
|
||||
}
|
||||
|
||||
[[ $# -eq 1 ]] || usage
|
||||
ip="$1"
|
||||
|
||||
cd "$(dirname $0)"
|
||||
|
||||
sed "s!<IP>!${ip}!" ./metallb.yaml.template > ./metallb.yaml
|
||||
|
||||
echo "Configuring metallb..."
|
||||
kubectl apply -f ./metallb.yaml
|
||||
echo "Configuring services..."
|
||||
for i in ./svc-*.yaml; do
|
||||
svc="$(grep -Po "name: \Kpdp-.*$" "$i")"
|
||||
kubectl patch svc "$svc" -p '{"metadata":{"annotations":{"metallb.universe.tf/allow-shared-ip":"'"$ip"'"}},"spec":{"type": "LoadBalancer","loadBalancerIP":"'"$ip"'"}}'
|
||||
done
|
||||
echo "Done!"
|
Loading…
Add table
Add a link
Reference in a new issue