This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: dvlp-k8s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: dvlp-app | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: dvlp-app | |
| template: | |
| metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: autoscaling/v1 | |
| kind: HorizontalPodAutoscaler | |
| metadata: | |
| name: dvlp-app | |
| spec: | |
| minReplicas: 1 | |
| maxReplicas: 30 | |
| scaleTargetRef: | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:carbon | |
| WORKDIR /usr/src/app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| EXPOSE 8080 | |
| CMD ["npm", "start"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: dvlp-app | |
| labels: | |
| app: dvlp-app | |
| spec: | |
| type: LoadBalancer | |
| ports: | |
| - name: http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const isLeap = (year) => { | |
| class Year { | |
| constructor() { | |
| this.year = year | |
| } | |
| } | |
| let now = new Year(); | |
| return now.year | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
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```
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: