snapshot of http working via nginx-ingress
This commit is contained in:
parent
5d2387492d
commit
7f68d2d664
4 changed files with 10 additions and 10 deletions
|
@ -39,4 +39,4 @@ gcloud container node-pools create ssd --cluster $GCP_CLUSTER --zone $GCP_ZONE \
|
||||||
|
|
||||||
# create static IP address
|
# create static IP address
|
||||||
# IP can be created, but not used in Ingress. Not sure why
|
# IP can be created, but not used in Ingress. Not sure why
|
||||||
# gcloud compute addresses create web-static-ip --global
|
gcloud compute addresses create web-static-ip --region=$GCP_ZONE
|
|
@ -18,7 +18,7 @@ metadata:
|
||||||
name: nginx-results
|
name: nginx-results
|
||||||
namespace: jenkins
|
namespace: jenkins
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
# type: LoadBalancer
|
||||||
# externalTrafficPolicy: Cluster
|
# externalTrafficPolicy: Cluster
|
||||||
selector:
|
selector:
|
||||||
app: nginx-results
|
app: nginx-results
|
||||||
|
|
|
@ -19,7 +19,7 @@ metadata:
|
||||||
namespace: jenkins
|
namespace: jenkins
|
||||||
annotations:
|
annotations:
|
||||||
# static IP assignment not working. Not sure why.
|
# static IP assignment not working. Not sure why.
|
||||||
# kubernetes.io/ingress.global-static-ip-name: "web-static-ip"
|
kubernetes.io/ingress.global-static-ip-name: "web-static-ip"
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
cert-manager.io/issuer: "letsencrypt-prod"
|
cert-manager.io/issuer: "letsencrypt-prod"
|
||||||
spec:
|
spec:
|
||||||
|
@ -35,10 +35,10 @@ spec:
|
||||||
# -- prod ------------------
|
# -- prod ------------------
|
||||||
- secretName: results-prod-tls
|
- secretName: results-prod-tls
|
||||||
hosts:
|
hosts:
|
||||||
- results.llvm-merge-guard.org
|
- results.llvm-merge-guard.org
|
||||||
- secretName: jenkins-prod-tls
|
- secretName: jenkins-prod-tls
|
||||||
hosts:
|
hosts:
|
||||||
- jenkins.llvm-merge-guard.org
|
- jenkins.llvm-merge-guard.org
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# -- prod ------------------
|
# -- prod ------------------
|
||||||
|
|
|
@ -23,10 +23,10 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mast
|
||||||
# install certmanager based on
|
# install certmanager based on
|
||||||
# http://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html
|
# http://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html
|
||||||
|
|
||||||
kubectl create namespace cert-manager
|
# kubectl create namespace cert-manager
|
||||||
kubectl label namespace kube-system certmanager.k8s.io/disable-validation="true"
|
# kubectl label namespace kube-system certmanager.k8s.io/disable-validation="true"
|
||||||
kubectl create clusterrolebinding cluster-admin-binding \
|
# kubectl create clusterrolebinding cluster-admin-binding \
|
||||||
--clusterrole=cluster-admin \
|
# --clusterrole=cluster-admin \
|
||||||
--user=$(gcloud config get-value core/account)
|
# --user=$(gcloud config get-value core/account)
|
||||||
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.10.1/cert-manager.yaml
|
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.10.1/cert-manager.yaml
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue