Last active
May 7, 2020 23:53
-
-
Save pandeybk/8f5478a6a6e76e2c7d0192a682da8014 to your computer and use it in GitHub Desktop.
pfsense.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF> pfsense.yaml | |
apiVersion: kubevirt.io/v1alpha3 | |
kind: VirtualMachineInstance | |
metadata: | |
name: pfsense | |
spec: | |
domain: | |
devices: | |
disks: | |
- disk: | |
bus: sata | |
name: pvcdisk | |
- disk: | |
bus: virtio | |
name: disk0 | |
machine: | |
type: "" | |
firmware: | |
bootloader: | |
efi: {} | |
resources: | |
requests: | |
memory: 2048M | |
terminationGracePeriodSeconds: 0 | |
volumes: | |
- name: pvcdisk | |
persistentVolumeClaim: | |
claimName: pfsense2 | |
- name: disk0 | |
persistentVolumeClaim: | |
claimName: pfsense-pvc | |
status: {} | |
EOF | |
# cdi cdi-uploadproxy ClusterIP 10.43.104.129 <none> 443/TCP 4d1h | |
virtctl image-upload --image-path=/home/goglides/pfSense-CE-2.4.5-RELEASE-amd64.iso --pvc-name=pfsense2 --pvc-size=10G --access-mode=ReadOnlyMany --uploadproxy-url=https://10.43.104.129:443 --insecure --wait-secs=240 | |
cat <<EOF> pvc.yaml | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: "pfsense-pvc" | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 10Gi | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment