mirror of
https://github.com/truenas/charts.git
synced 2026-11-06 16:32:14 +00:00
remove wg0 on scale down
This commit is contained in:
1 file changed
+7
@@ -106,6 +106,13 @@ spec:
|
||||
ip route del {{ $ip }}/$netmask || echo "Route deletion failed..."
|
||||
fi
|
||||
echo "Routes deleted..."
|
||||
interface=$(ip a | grep wg0)
|
||||
if [ ! "$interface" == "" ]; then
|
||||
echo "Removing wg0 interface..."
|
||||
ip link delete wg0
|
||||
echo "Removed wg0 interface..."
|
||||
fi
|
||||
|
||||
{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }}
|
||||
volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }}
|
||||
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
|
||||
|
||||
Reference in new issue
Block a user