Skip to content

Instantly share code, notes, and snippets.

View cuongndc9's full-sized avatar

🤖 $TheNewAIOwner cuongndc9

  • Tam Kỳ - Quảng Nam
View GitHub Profile
@cuongndc9
cuongndc9 / docker-compose.yml
Created February 4, 2021 06:58 — forked from themonster2015/docker-compose.yml
BDE2020 Docker-compose.yml
version: "2"
services:
namenode:
build: ./namenode
image: bde2020/hadoop-namenode:1.1.0-hadoop2.7.1-java8
container_name: namenode
volumes:
- hadoop_namenode:/hadoop/dfs/name
environment:
@cuongndc9
cuongndc9 / instructions.txt
Created June 23, 2020 17:10 — forked from nathanborror/instructions.txt
Example Kubernetes setup with Postgres and two Services for serving an API and a static site using Ingress. Also have a CronJob example for kicks.
*** Cluster Setup for Google Container Engine ***
0/ Install and configure local gcloud and kubectl: https://cloud.google.com/sdk/docs/
> gcloud components install kubectl
1/ Configure Google Cloud account:
> gcloud config set account YOUR_EMAIL_ADDRESS
> gcloud config set project YOUR_PROJECT_ID
> gcloud config set compute/zone us-west1-a
> gcloud config set container/cluster example

Tooling for Interacting with a Local Cluster

kubectl

Autocomplete

@cuongndc9
cuongndc9 / nginxproxy.md
Created March 1, 2020 10:04 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers