Skip to content

Commit

Permalink
create onprem: completely delete old pod
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 2, 2024
1 parent 3f07e6a commit f6d8fe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ailib/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ def create_onprem(overrides={}, debug=False):
call(cmd, shell=True)
storage = '--storage-driver vfs' if 'KUBERNETES_SERVICE_PORT' in os.environ else ''
network = '--network assistedv6' if ipv6 else ''
cmd = f"podman {storage} play kube {network} --replace --configmap {tmpdir}/configmap.yml {tmpdir}/pod.yml"
cmd = "podman pod rm -f assisted-installer-service ; "
cmd = f"podman {storage} play kube {network} --configmap {tmpdir}/configmap.yml {tmpdir}/pod.yml"
info(f"Running: {cmd}")
call(cmd, shell=True)

Expand Down

0 comments on commit f6d8fe3

Please sign in to comment.