flowchart
OCP --> AdminView
OCP --> DevView
subgraph Views
DevView
AdminView
end
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
# "Explicit swap" | |
# The user can explicitly request swap | |
kind: Pod | |
spec: | |
resources | |
requests: | |
# This assumes separate resources for mem and swap | |
# Set by user | |
memory: 2G | |
# Set by user |
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
- hosts: localhost | |
tasks: | |
- name: Create VM | |
kubernetes.kubevirt.kubevirt_vm: | |
state: present | |
name: testvm | |
namespace: default | |
labels: | |
app: test | |
spec: |
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
$ ./virtctl-v0.50.0-rc.0-linux-amd64 | |
Available Commands: | |
plug volume add a volume to a running VM | |
completion generate the autocompletion script for the specified shell | |
console Connect to a console of a virtual machine instance. | |
expose Expose a virtual machine instance, virtual machine, or virtual machine instance replica set as a new service. | |
guest fs Return full list of filesystems available on the guest machine. | |
guestfs Start a shell into the libguestfs pod | |
guest osinfo Return guest agent info about operating system. | |
help Help about any command |
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
# virtctl is in your $PATH | |
# You are logged into a cluster | |
# Then the snippet below enables seamless ssh login. | |
# Usage `ssh [<user>@]<vmname>.<namespace>.ocp` | |
# "ocp" can be anything, for convenience replace with your cluster's base fqdn | |
host *.ocp | |
ProxyCommand virtctl port-forward --stdio=true %h %p |
flowchart
qPlatform["Current platform?"]
qBM["With Bare-Metal nodes?"]
qAZ["Special AZ needs?"]
to-UPI["Use UPI"]
to-hypershift["Use Hypershift"]
qPlatform -- UPI-none --> qBM
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
# JUST TO BRAINSTORM | |
- name: Create a VM object from an inline definition | |
vm.kubevirt.io: | |
state: present | |
name: my-vm | |
namespace: my-namespace | |
spec: | |
instancetype: | |
name: clarge |
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
apiVersion: kubevirt.io/v1 | |
kind: VirtualMachine | |
metadata: | |
name: fedora | |
spec: | |
template: | |
spec: | |
domain: | |
cpu: | |
cores: 2 |
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
# loki from | |
# https://github.com/grafana/loki/tree/v2.6.0 | |
# run: | |
# $ pwd | |
# <somewhere>/ocp-must-gather.local.614777<...>openshift-origin-must-gather-sha256-<...>77c9c15e76eca | |
# $ python3 mgloki.py | |
# namespaces/openshift-apiserver-operator/pods/openshift-apiserver-operator-76bd66d74b-v22tc/openshift-apiserver-operator-55bdd9d74b-v63tc.yaml | |
# … | |
# |
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
# https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/ | |
[fabiand@toolbox Downloads]$ minikube kubectl -- apply -f - <<EOF | |
apiVersion: v1 | |
kind: ResourceQuota | |
metadata: | |
name: mem-cpu-demo | |
spec: | |
hard: | |
requests.cpu: "1" |
NewerOlder