What You Will do
We are seeking an experienced, talented Platform Engineer to join the engineering team at Shipper in Indonesia or remotely anywhere around the world. You'll be bringing your skills and expertise to design, build and scale our highly available and distributed SaaS platform and its numerous applications that make our business possible and essential to many.
You will be working in an Agile and test-driven environment, given the autonomy to decide the best way to design, ship and support the system. You will use the best tools for the job and follow industry best practices to ship a product that is truly valuable to our users and partners.kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml
kubectl patch deployment kubernetes-dashboard -n kubernetes-dashboard --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-skip-login"}]'
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.2/components.yaml
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
| // Node v6.9.0 | |
| // | |
| // TEST FILE (cut down for simplicity) | |
| // To ensure Golang encrypted string can be decrypted in NodeJS. | |
| // | |
| let crypto; | |
| try { | |
| crypto = require('crypto'); |
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
| #!/bin/bash | |
| docker-machine create --driver generic --generic-ip-address=<ip-vps> --generic-ssh-key ~/.ssh/id_rsa --generic-ssh-user=ubuntu node-neo-01 |
The *.txt files here hold user and database parameters. Specifically, replication.txt contains the user/role and password to use for replication. Whereas database.txt contains an initial database, user/role and password to create on the master.
Run the master:
$ fig run -d master
Wait for it to start up completely. Start the slave:
$ sudo apt update
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
$ sudo apt update
$ sudo apt install docker-ce
$ sudo usermod -aG docker ${USER}
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
| --- Kong with postgres container | |
| --- Step 1 Migration Database | |
| docker run --rm \ | |
| --network=kong-net \ | |
| -e "KONG_DATABASE=postgres" \ | |
| -e "KONG_PG_HOST=postgresql-local" \ | |
| -e "KONG_PG_DATABASE=kong-database" \ | |
| -e "KONG_PG_USER=root" \ | |
| -e "KONG_PG_PASSWORD=root" \ | |
| kong:latest kong migrations bootstrap |
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
| SELECT | |
| DATE(date) AS date_order, | |
| EXTRACT(MONTH FROM DATE(date)) AS month_of | |
| FROM | |
| GENERATE_SERIES(DATE_TRUNC('year', CURRENT_TIMESTAMP + INTERVAL '7 hour'), | |
| DATE_TRUNC('month', CURRENT_TIMESTAMP + INTERVAL '7 hour'), | |
| INTERVAL '1 month') AS date | |
| Results: [ |