create static IP
gcloud compute addresses create fanout-ingress --region $REGION
Note annotation "fanout-gress" is the name of static IP
annotations:
package main | |
import ( | |
"errors" | |
"flag" | |
"fmt" | |
"strings" | |
"time" | |
) |
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: echoheaders | |
spec: | |
selector: | |
matchLabels: | |
app: echoheaders | |
replicas: 1 | |
template: |
create static IP
gcloud compute addresses create fanout-ingress --region $REGION
Note annotation "fanout-gress" is the name of static IP
annotations:
#!/bin/bash | |
# GENERIC | |
# uptime | |
# dmesg | |
# df -a --inodes | |
# cat /proc/sys/fs/file-nr | |
# systemctl status -l docker | |
# sudo journalctl -u docker | |
# sudo journalctl -u kube-docker-monitor.service |
Create the sertificate and a secret
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout secret.key -out secret.crt -subj "/CN=foobar.com"
kubectl create secret tls tls-secret --key=secret.key --cert=secret.crt
#!/usr/bin/env bash | |
# centos7-mamp-bootstrap.sh | |
# this is an end to end LAMP setup on Centos7. | |
# this was originally written for Bootsrap.sh on Vagrant | |
#DATABASE_PW: root password to you db | |
DATABASE_PW='' | |
#DOMAIN: name of domain, used for ServerName in Apache |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strings" | |
"time" | |
) | |
// handler hello world, the web server |