Skip to content

Instantly share code, notes, and snippets.

View emreozkangit's full-sized avatar

Emre Özkan emreozkangit

View GitHub Profile
[root@ip-172-31-37-35 ec2-user]# buildah images | grep hello
localhost/hello latest ac9de229d777 Mar 28, 2019 05:56 420 MB
{
"kind": "Namespace",
"apiVersion": "v1",
"metadata": {
"name": "openshift-metrics",
"selfLink": "/api/v1/namespaces/openshift-metrics/finalize",
"uid": "04684928-d03b-11e8-af42-005056b02f5d",
"resourceVersion": "87438930",
"creationTimestamp": "2018-10-15T05:27:33Z",
"deletionTimestamp": "2019-04-03T08:00:34Z",
Perf
| where $__timeFilter(TimeGenerated)
| where ObjectName == "Memory" and CounterName == "% Committed Bytes In Use"|
summarize avg(CounterValue) by bin(TimeGenerated, 5m), Computer
| sort by TimeGenerated asc, Computer asc
Perf
| where $__timeFilter(TimeGenerated)
| where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize avg(CounterValue) by bin(TimeGenerated, 5m), Computer
| sort by TimeGenerated asc, Computer asc
Workflow Stop-Start-AzureVM
{
Param
(
[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()]
[String]
$AzureSubscriptionId,
[Parameter(Mandatory=$true)][ValidateNotNullOrEmpty()]
[String]
$AzureVMList="All",
root@emreozkan2c:/home/cloud_user# kubectl get nodes
NAME STATUS ROLES AGE VERSION
emreozkan2c.mylabserver.com Ready master 19d v1.14.1
emreozkan3c.mylabserver.com Ready <none> 19d v1.14.1
root@emreozkan2c:/home/cloud_user# curl -sfL https://get.rio.io | sh -
[INFO] Finding latest release
[INFO] Using v0.1.1-rc2 as release
[INFO] Downloading hash https://github.com/rancher/rio/releases/download/v0.1.1-rc2/sha256sum-amd64.txt
[INFO] Downloading binary https://github.com/rancher/rio/releases/download/v0.1.1-rc2/rio-linux-amd64
[INFO] Verifying binary download
root@emreozkan2c:/home/cloud_user# rio --system ps
NAME CREATED ENDPOINT REVISIONS SCALE WEIGHT DETAIL
rio-system/autoscaler 16 minutes ago v0 1 100%
rio-system/build-controller 16 minutes ago v0 1 100%
rio-system/buildkit 16 minutes ago v0 1 100%
rio-system/cert-manager 15 minutes ago v0 1 100%
rio-system/grafana 16 minutes ago https://grafana-rio-system.g6gfg6.on-rio.io:9443 v0 1 100%
rio-system/istio-citadel 16 minutes ago v0 1 100%
rio-system/istio-gateway 16 minutes ag
ubuntu@master:~$ cd rook/cluster/examples/kubernetes/ceph/
ubuntu@master:~/rook/cluster/examples/kubernetes/ceph$ kubectl apply -f common.yaml
namespace/rook-ceph created
customresourcedefinition.apiextensions.k8s.io/cephclusters.ceph.rook.io created
customresourcedefinition.apiextensions.k8s.io/cephfilesystems.ceph.rook.io created
customresourcedefinition.apiextensions.k8s.io/cephnfses.ceph.rook.io created
customresourcedefinition.apiextensions.k8s.io/cephobjectstores.ceph.rook.io created
customresourcedefinition.apiextensions.k8s.io/cephobjectstoreusers.ceph.rook.io created
customresourcedefinition.apiextensions.k8s.io/cephblockpools.ceph.rook.io created
customresourcedefinition.apiextensions.k8s.io/volumes.rook.io created
root@emreozkan1c:/home/cloud_user/rook/cluster/examples/kubernetes/ceph# kubectl get pods -n rook-ceph
NAME READY STATUS RESTARTS AGE
rook-ceph-agent-t9594 1/1 Running 0 52s
rook-ceph-mon-a-6b7dc6f7bd-5csxr 1/1 Running 0 24s
rook-ceph-operator-8bc78b546-t65rq 1/1 Running 0 53s
rook-discover-ckf65 1/1 Running 0 52s