Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Rosetta Stone

If you are coming from another clusterware or orchestrator, these tables map the command you know to its OpenSVC equivalent.

Clusterwares

OpenSVCVeritas Cluster Server (VCS)PowerHA (HACMP)
om daemon starthastartclstart
om daemon stophastopclstop
om monhastatusclstat
om daemon joinhasys -add
om daemon leavehasys -delete
om node freezehasys -freeze
om node unfreezehasys -unfreeze
om <path> createhagrp -add
om <path> deletehagrp -delete
om '*' lshagrp -listcllsgrp
om <path> starthagrp -online <group>clRGmove -g <RG> -n <node> -u
om <path> stophagrp -offline <group>clRGmove -g <RG> -n <node> -d
om <path> switch --to <node>hagrp -switch <group> <sys>clRGmove -s <RG> -n <node> -m
om <path> freezehagrp -freeze <group>
om <path> unfreezehagrp -unfreeze <group>
om <path> start --rid <rid>hares -online <res>
om <path> stop --rid <rid>hares -offline <res>

Orchestrators

Creating objects

OpenSVCKubernetes
om <path> create --config ./manifest.confkubectl create -f ./my-manifest.yaml
cat <cf> | om <path> create --config=-cat <cf> | kubectl create -f -
om ns1/sec/mysec key add --name grp --from /etc/groupkubectl create -f secret.yml

Viewing and finding

OpenSVCKubernetes
om '*' lskubectl get services
kubectl get pods
om container.type=docker lskubectl get pods -o jsonpath=...
om <path> config showkubectl describe svc <svc>
om <path> instance statuskubectl describe pod <pod>

Updating

OpenSVCKubernetes
om <path> config update --set ip#0.expose=80:8080/tcpkubectl expose rc nginx --port=80 --target-port=8000
om <path> config update --set env.icon_url=http://goo.gl/XXBTWqkubectl annotate pods my-pod icon-url=http://goo.gl/XXBTWq
om <path> config editkubectl edit svc/docker-registry

Deleting

OpenSVCKubernetes
om foo,baz purgekubectl delete pod,service baz foo --all
om env.name=myLabel instance deletekubectl delete pods,services -l name=myLabel

Interacting with resources

OpenSVCKubernetes
om <path> logskubectl logs my-pod
om <path> logs -fkubectl logs -f my-pod
om <path> container logskubectl logs my-pod -c my-container
om <path> container enter --rid container#1kubectl exec -it my-pod -- sh
kubectl attach my-pod -i

Interacting with nodes and cluster

OpenSVCKubernetes
om node freeze
om node freeze --node my-node
kubectl cordon my-node
om '**' instance stop --node my-nodekubectl drain my-node
om node unfreeze --node my-nodekubectl uncordon my-node
om cluster status --output jsonkubectl cluster-info dump
om node config update --set env.dedicated=special_user
plus a node selector in nodes
kubectl taint nodes foo dedicated=special-user:NoSchedule