Skip to content

Instantly share code, notes, and snippets.

View panshu29's full-sized avatar
🎯
Focusing

Anshu panshu29

🎯
Focusing
  • Bangalore
View GitHub Profile

check EKS release

curl -s https://docs.aws.amazon.com/eks/latest/userguide/doc-history.rss | grep "<title>Kubernetes version"

Create EKS Cluster

eksctl create cluster --version=1.14 --name suhas-eks-test --region us-east-1 --zones us-east-1a,us-east-1b --node-type t2.medium --nodes 2 --ssh-access=true --ssh-public-key basarkod-test

Without any nodeGroup - Public

eksctl create cluster --without-nodegroup --version=1.14 --name delete-me --vpc-public-subnets=subnet-123,subnet-456

Without any nodeGroup - PRIVATE

@panshu29
panshu29 / tf-gcs-bootstrap.sh
Created May 14, 2021 13:30 — forked from bborysenko/tf-gcs-bootstrap.sh
Setting up Terraform GCS remote backend
#!/usr/bin/env bash
set -u
set -e
set -o pipefail
GCP_PROJECT="$(gcloud config list --format 'value(core.project)')"
GCP_SERVICES=(
"storage-api.googleapis.com"
@panshu29
panshu29 / System Design.md
Created January 29, 2021 06:03 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@panshu29
panshu29 / curl_notes.txt
Created January 12, 2021 17:41 — forked from tuxfight3r/curl_notes.txt
openshift rest api login / json patch via curl
#Login to openshift and retrieve token
curl -u admin -kv -H "X-CSRF-Token: xxx" \
'https://master.cluster.local:8443/oauth/authorize?client_id=openshift-challenging-client&response_type=token'
#It should give you a bearer token like this
https://master.cluster.local:8443/oauth/token/implicit#access_token=aRVmsEHbUEhd4WeP2bctj0n57ogHMBvOIcrtjc7tCw4&expires_in=86400&scope=user%3Afull&token_type=Bearer
TOKEN="aRVmsEHbUEhd4WeP2bctj0n57ogHMBvOIcrtjc7tCw4"
#Get a configmap named configmaptest
@panshu29
panshu29 / jenkins_script.js
Last active March 22, 2020 15:02
sample Jenkins pipeline script
pipeline {
agent {
node {
label 'maven'
}
}
environment {
microserviceName = "demo-ms"
namespaceName = "sample-project"
@panshu29
panshu29 / openshift-cheatsheet.md
Created July 28, 2019 06:53 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
    --from-file=ssh-privatekey=$HOME/.ssh/id_rsa