Skip to content

Instantly share code, notes, and snippets.

View alexcpn's full-sized avatar

Alex Punnen alexcpn

View GitHub Profile
@alexcpn
alexcpn / Scrum
Last active August 13, 2019 05:59
Scrum Master and Scrum Slaves,
Yellow all walls with notes,
Step aside and see with glee,
The horror on the janitor's face.
And from what his broom has spared,
Pick a note to work on,
Stand-up straight before the master
To report or descope in glee.
@alexcpn
alexcpn / output.md
Created September 6, 2019 05:25
Kubernetes Local Specific Persistent Volume and Persistent Volume Claim

In Specific Node

core@alex-k8s-2 ~ $ vi /mnt/data2/index.html
core@alex-k8s-2 ~ $ cat /mnt/data2/index.html 
'Hello from Kubernetes Local storage'

PV,PVC,Status

@alexcpn
alexcpn / cloned_rook_gist.txt
Created September 9, 2019 10:52
Cloned rook ceph gist with small change
#!/bin/bash
# Generically install rook and test it out
: ${ROOK_BRANCH:=release-1.1}
TICK_CHAR='>'
mark_done () {
file_done=$1
date '+%s' > $file_done
echo 'done' >> $file_done
}
Status: Downloaded newer image for nvidia/cuda:10.0-base
Wed Oct 9 08:11:31 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.78 Driver Version: 410.78 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 Off | 00000000:01:00.0 On | N/A |
| N/A 36C P8 9W / N/A | 306MiB / 8119MiB | 0% Default |
@alexcpn
alexcpn / operator from helm.md
Last active January 16, 2020 04:14
How to create a Helm based Operator
@alexcpn
alexcpn / kubevirt image upload.md
Last active November 13, 2023 12:04
kubevirt image upload through CDI
@alexcpn
alexcpn / gvisor in Kubernetes.md
Last active February 6, 2020 10:40
gvisor in Kubernetes

How To

https://gvisor.dev/docs/user_guide/quick_start/kubernetes/ Using Containerd

You can also setup Kubernetes nodes to run pods in gvisor using the containerd CRI runtime and the gvisor-containerd-shim. You can use either the io.kubernetes.cri.untrusted-workloadannotation or RuntimeClass to run Pods with runsc. You can find instructions here.

[centos@azuretest-1 root]$ kubectl get nodes -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME azuretest-1 Ready master 40d v1.17.0 192.168.0.26 CentOS Linux 7 (Core) 3.10.0-957.27.2.el7.x86_64 docker://1.13.1 azuretest-2 Ready 40d v1.17.0 192.168.0.6 CentOS Linux 7 (Core) 3.10.0-957.27.2.el7.x86_64 docker://1.13.1

@alexcpn
alexcpn / ceph-cluster.yaml
Created March 11, 2020 11:51
ceph with block devices
[root@green--1 ~]# cat cluster-green.yaml
#################################################################################################################
# Define the settings for the rook-ceph cluster with settings that should only be used in a test environment.
# A single filestore OSD will be created in the dataDirHostPath.
# For example, to create the cluster:
# kubectl create -f common.yaml
# kubectl create -f operator.yaml
# kubectl create -f cluster-test.yaml
#################################################################################################################
apiVersion: ceph.rook.io/v1
@alexcpn
alexcpn / cassandra_green_statefulset.yaml
Last active April 1, 2020 10:00
Cassandra in Kuberenetes
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: cassandra
namespace: green
labels:
app: cassandra
spec:
serviceName: cassandra
replicas: 3
________________
> pulseaudio_ps_do
alex 1953 0.4 0.2 1332100 16788 ? S<l 19:13 0:03 /usr/bin/pulseaudio --start --log-target=syslog
alex 5319 0.0 0.0 11468 1008 pts/0 S+ 19:25 0:00 grep pulseaudio
________________
> which pulseaudio
/usr/bin/pulseaudio
________________
> pidof pulseaudio
1953