Skip to content

Instantly share code, notes, and snippets.

View tamalsaha's full-sized avatar
🎢
Building. Learning. Improving.

Tamal Saha tamalsaha

🎢
Building. Learning. Improving.
View GitHub Profile
for p in pagerduty wavefront dynatrace; \
do \
echo " /provider-$p-api:"; \
echo " repo: https://github.com/kubeform/provider-$p-api"; \
echo " /provider-$p-controller:"; \
echo " repo: https://github.com/kubeform/provider-$p-controller"; \
echo " /provider-$p-gen:"; \
echo " repo: https://github.com/kubeform/provider-$p-gen"; \
done
@tamalsaha
tamalsaha / local-path-storage.yaml
Created June 22, 2021 03:17
Install Rancher local-path-provisioner in OpenShift CRC
apiVersion: v1
kind: Namespace
metadata:
name: local-path-storage
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: local-path-provisioner-service-account
package main
import (
"context"
"fmt"
"net/http"
"github.com/golang/glog"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
apiVersion: kubedb.com/v1alpha2
kind: MongoDB
metadata:
name: mg-sh-tls
namespace: demo
spec:
version: 4.2.3
sslMode: requireSSL
tls:
# use client issuer to set client certs O=kubedb,OU=client
~/g/s/k/custom-resources (kubernetes-1.18.9) $ cd ~/Downloads/
~/Downloads $ export KUBECONFIG=ui-builder-demo-kubeconfig.yaml
~/Downloads $ helm install stash-crds appscode/stash-crds
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: ui-builder-demo-kubeconfig.yaml
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: ui-builder-demo-kubeconfig.yaml
NAME: stash-crds
LAST DEPLOYED: Tue Feb 16 22:03:16 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
apiVersion: kubedb.com/v1alpha2
kind: MongoDB
metadata:
name: mg-sh-tls
namespace: demo
spec:
version: 4.1.7-v3
sslMode: requireSSL
tls:
issuerRef:
@tamalsaha
tamalsaha / cla.txt
Created January 30, 2021 14:42
AppsCode Individual Contributor License Agreement
AppsCode Individual Contributor License Agreement
In order to clarify the intellectual property license granted with Contributions from any person or entity, AppsCode Inc. ("AppsCode") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of AppsCode; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to AppsCode. Except for the license granted herein to AppsCode and recipients of software distributed by AppsCode, You reserve all right, title, and interest in and to Your Contributions.
1. Definitions.
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with AppsCode. For legal entities, the entity making a Contribution
@tamalsaha
tamalsaha / crc.sh
Last active September 20, 2021 15:51 — forked from sub-mod/crc_remote_laptop.md
Setup CodeReady Containers on Remote Server and connect from Laptop 4.2
dns upgrade
# https://centos.pkgs.org/7/epel-x86_64/tinyproxy-1.8.3-2.el7.x86_64.rpm.html
curl -O https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/t/tinyproxy-1.8.3-2.el7.x86_64.rpm
yum --nogpgcheck localinstall tinyproxy-1.8.3-2.el7.x86_64.rpm
dnf install ncurses
{
"action": "completed",
"check_run": {
"id": 835616468,
"node_id": "MDg6Q2hlY2tSdW44MzU2MTY0Njg=",
"head_sha": "fb72938b9573bd57782879dbb0f89b41c4eea1db",
"external_id": "27964ad3-7180-556e-4779-68e5b8781c1b",
"url": "https://api.github.com/repos/appscode-cloud/grafana-tester/check-runs/835616468",
"html_url": "https://github.com/appscode-cloud/grafana-tester/runs/835616468",
"details_url": "https://github.com/appscode-cloud/grafana-tester/runs/835616468",
@tamalsaha
tamalsaha / script.sh
Last active June 27, 2020 10:04
Bash script template
#!/bin/bash
set -eou pipefail
SCRIPT_ROOT=$(realpath $(dirname "${BASH_SOURCE[0]}")/../..) # adjust as needed to go to root directory
SCRIPT_NAME=$(basename "${BASH_SOURCE[0]}")
pushd $SCRIPT_ROOT
# http://redsymbol.net/articles/bash-exit-traps/
function cleanup() {
popd