-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify kubevirt deployment for ocp / vanilla
- Loading branch information
Showing
14 changed files
with
80 additions
and
160 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind: Route | ||
apiVersion: route.openshift.io/v1 | ||
metadata: | ||
name: pxbbq | ||
namespace: pxbbq | ||
labels: | ||
app: pxbbq-web | ||
px-dr: 'false' | ||
spec: | ||
to: | ||
kind: Service | ||
name: pxbbq-svc | ||
weight: 100 | ||
port: | ||
targetPort: 8080 | ||
wildcardPolicy: None |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kubectl create ns pxbbq | ||
kubectl label ns pxbbq app=pxbbq | ||
kubectl label ns pxbbq backup=true | ||
|
||
kubectl apply -f /assets/kubevirt/dv-ubuntu.yml | ||
kubectl apply -f /assets/kubevirt/pxbbq.yml | ||
|
||
if [ "$platform" = ocp4 ]; then | ||
kubectl apply -f /assets/kubevirt/ocp/pxbbq-route.yml | ||
else | ||
kubectl patch svc pxbbq-svc -n pxbbq --type='json' -p '[{"op":"replace","path":"/spec/type","value":"NodePort"}]' | ||
pubIP=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) | ||
appPort=$(kubectl get svc pxbbq-svc -n pxbbq -o=jsonpath='{.spec.ports[?(@.port==80)].nodePort}') | ||
echo "Access PXBBQ on http://$pubIP:$appPort" >> /etc/motd | ||
fi | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kubectl create ns pxbbq | ||
kubectl label ns pxbbq app=pxbbq | ||
kubectl label ns pxbbq backup=true | ||
|
||
curl -O https://object-storage.public.mtl1.vexxhost.net/swift/v1/1dbafeefbd4f4c80864414a441e72dd2/bsd-cloud-image.org/images/freebsd/13.2/2023-04-21/zfs/freebsd-13.2-zfs-2023-04-21.qcow2 | ||
virtctl image-upload pvc freebsd-image -n pxbbq --size 5Gi --insecure --storage-class px-csi-db --image-path=./freebsd-13.2-zfs-2023-04-21.qcow2 | ||
|
||
kubectl apply -f /assets/kubevirt/pxbbq-freebsd.yml | ||
|
||
if [ "$platform" = ocp4 ]; then | ||
kubectl apply -f /assets/kubevirt/ocp/pxbbq-route.yml | ||
else | ||
kubectl patch svc pxbbq-svc -n pxbbq --type='json' -p '[{"op":"replace","path":"/spec/type","value":"NodePort"}]' | ||
pubIP=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) | ||
appPort=$(kubectl get svc pxbbq-svc -n pxbbq -o=jsonpath='{.spec.ports[?(@.port==80)].nodePort}') | ||
echo "Access PXBBQ on http://$pubIP:$appPort" >> /etc/motd | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
description: Install kubevirt on a bare-metal cluster | ||
scripts: ["install-px","kubevirt"] | ||
scripts: ["install-px","kubevirt","kubevirt-apps"] | ||
#aws_type: "c5n.metal" | ||
|
This file contains 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
This file contains 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