Skip to content

Instantly share code, notes, and snippets.

💭
🏆 Vibranium Status Level

Nilesh Londhe lvnilesh

💭
🏆 Vibranium Status Level
Block or report user

Report or block lvnilesh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lvnilesh
lvnilesh / .ssh config
Last active Jan 15, 2020 — forked from jkobie/.ssh config
Script to create Cloud Genius workstation from a linux computer
View .ssh config
# Created on Mon Jan 13 19:16:24 PST 2020
Host CloudGenius
HostName ec2-52-24-156-230.us-west-2.compute.amazonaws.com
ForwardAgent yes
User ubuntu
StrictHostKeyChecking no
IdentityFile /home/jkobie/.ssh/DoNotUseThisKey-CloudGeniusOnly.pem
Host ec2-52-24-156-230.us-west-2.compute.amazonaws.com
HostName ec2-52-24-156-230.us-west-2.compute.amazonaws.com
IdentityFile /home/jkobie/.ssh/DoNotUseThisKey-CloudGeniusOnly.pem
View mac.setup.sh
brew install awscli jq wget
brew cask install visual-studio-code
ln -sf "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" /usr/local/bin/code
code --install-extension ms-vscode-remote.remote-ssh
rm -rf settings.json
wget https://gist.githubusercontent.com/lvnilesh/523afc0e19f4dba3bca6e6c2fc99bbaa/raw/2ee1c531083ba771f8fd9d3c74b8415198038954/settings.json
mv -f settings.json "$HOME/Library/Application Support/Code/User/"
View cronjob.yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: pi
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
metadata:
View mm-ing.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: mattermost
annotations:
kubernetes.io/ingress.class: nginx
#kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
View mm-svc.yaml
apiVersion: v1
kind: Service
metadata:
name: mattermost
spec:
ports:
- name: http
port: 8000
selector:
role: mattermost
View mmdeploy.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: mattermost
spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
@lvnilesh
lvnilesh / mmpvpvc.yaml
Created Nov 16, 2019
mattermost pv pvc
View mmpvpvc.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: mattermostconfig
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteMany
nfs:
@lvnilesh
lvnilesh / cf-api-key.yaml
Created Nov 16, 2019
cloudflare api key secret
View cf-api-key.yaml
---
apiVersion: v1
kind: Secret
metadata:
name: cloudflare-api-key
namespace: cert-manager
type: Opaque
data:
api-key: this-string
# echo -n "actual-api-key" | base64 -
@lvnilesh
lvnilesh / issuer-dns.yaml
Last active Nov 17, 2019
cluster issuer
View issuer-dns.yaml
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
namespace: cert-manager
spec:
acme:
# You must replace this email address with your own.
# Let's Encrypt will use this to contact you about expiring
# certificates, and issues related to your account.
@lvnilesh
lvnilesh / writeup
Created Nov 16, 2019
0.11.0 cert-manager
View writeup
https://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html
k create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)
# Install the CustomResourceDefinition resources separately
You can’t perform that action at this time.