Skip to content

Instantly share code, notes, and snippets.

View bubeamos's full-sized avatar

Amos, Chidiebube bubeamos

  • Canada
View GitHub Profile
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "3600"
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-1:199155926715:certificate/badfabf7-0dbe-4578-a3af-f8be8fba1be0
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
labels:
apiVersion: v1
kind: Service
metadata:
name: nginx-ingress
spec:
type: LoadBalancer
ports:
- port: 80
name: http
- port: 443
apiVersion: v1
kind: Service
metadata:
name: default
namespace: default
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "tcp"
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
spec:
type: LoadBalancer
@bubeamos
bubeamos / setup.sh
Created March 21, 2018 11:04 — forked from code-sleuth/setup.sh
set up my flask api on aws instance
#!/bin/bash
sudo apt-get update
sudo apt-get install python3 python3-pip postgresql postgresql-contrib nginx virtualenv
mkdir ~/cp3
cd ~/cp3
virtualenv --python=python3 venv
git clone https://github.com/code-sleuth/yummy-recipes-api.git yummy-api
cd yummy-api
touch .env
@bubeamos
bubeamos / config.xml
Created March 18, 2018 09:56 — forked from g0t4/config.xml
Module 2 - What am I? Get this job loaded into Jenkins and running, there are two problems you'll encounter. Raw
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.2">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
@bubeamos
bubeamos / links.md
Created March 18, 2018 09:55 — forked from g0t4/links.md
Starting Point Files for Jenkins2 Getting Started course
@bubeamos
bubeamos / gce_demo_startup_script.sh
Created November 20, 2017 20:52 — forked from emilymye/gce_demo_startup_script.sh
Demos for Vault-GCP Auth Backend HUG/Webinar
# This assumes you have some role that can read some secret at secret/foo.
export VAULT_ADDR="http://my_vault_address.com"
export GCE_ROLE = "my-gce-role"
apt-get update
apt-get install -y jq
# Curl out to metadata server to get token
JWT=$(curl -H "Metadata-Flavor: Google" -G \