Skip to content

Instantly share code, notes, and snippets.

@kimschles
kimschles / intro-to-helm.md
Last active December 19, 2019 04:20
Intro to Helm

Create a ConfigMap with Helm

Create a local chart

  • helm create first-chart
  • Change into the first-chart directory and look around
  • Delete the templates directory

Add a ConfigMap

  • (re)Make a templates directory and change into the directory
  • Create a configmap.yaml file
@kimschles
kimschles / pr.md
Created September 30, 2019 22:53
Kim's PR Template

From John Turner's Blog Post: https://engineering.squarespace.com/blog/2019/code-review-culture-part-1

When submitting a PR, answer the following questions:

**What does this PR do?**
**Why do we want to do that?**
**What high level changes did you make to the code to accomplish that goal?**
**What other information should the reviewer be aware of when looking at this code?**
@kimschles
kimschles / keybase.md
Created September 25, 2019 17:30
Keybase Proof

Keybase proof

I hereby claim:

  • I am kimschles on github.
  • I am kimschles (https://keybase.io/kimschles) on keybase.
  • I have a public key ASBeMtQLgjpfXlqzlHzsntZtXW3OUpfH_7O4lStB2vSLGgo

To claim this, I am signing this object:

@kimschles
kimschles / ci-binary-download.md
Created September 9, 2019 17:00
Download binary and make it an executable
  install_polaris: &install_polaris
    run:
      name: Install Polaris
      command: |
        curl -L "https://github.com/FairwindsOps/polaris/releases/download/0.4.0/polaris_0.4.0_Linux_x86_64.tar.gz" > polaris.tar.gz
        tar -xvf polaris.tar.gz
        chmod +x polaris
 mv ./polaris /usr/local/bin```
@kimschles
kimschles / loop-array.js
Created March 4, 2019 02:10
loop-array.js from CJ's accelerator
// 1. Write a for loop that will log each element in the following array
let instructors = ['CJ', 'Casey', 'Kim', 'Kyle'];
// 2. Write a for loop that will log each element in the following array
let numbers = [4, 8, 15, 16, 23, 42];
// 3. Write a for loop that will log each element in the following array
@kimschles
kimschles / edtech-denver.md
Last active March 11, 2019 16:09
EdTech Companies in Denver
@kimschles
kimschles / yearConstructor.js
Created December 29, 2018 22:14
Example of JS constructor
const isLeap = (year) => {
class Year {
constructor() {
this.year = year
}
}
let now = new Year();
return now.year
};
@kimschles
kimschles / service.yml
Created December 26, 2018 18:09
service example for beginners_guide_to_k8s
apiVersion: v1
kind: Service
metadata:
name: dvlp-app
labels:
app: dvlp-app
spec:
type: LoadBalancer
ports:
- name: http
@kimschles
kimschles / Dockerfile
Last active December 26, 2018 17:34
Dockerfile for beginners_guide_to_k8s
FROM node:carbon
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
CMD ["npm", "start"]
@kimschles
kimschles / hpa.yml
Last active December 20, 2018 18:41
horizontal pod autoscaler example for beginners_guide_to_k8s
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: dvlp-app
spec:
minReplicas: 1
maxReplicas: 30
scaleTargetRef:
apiVersion: extensions/v1beta1
kind: Deployment