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
|
||||
# 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
|
||||
namespace: jenkins
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
# type: LoadBalancer
|
||||
# externalTrafficPolicy: Cluster
|
||||
selector:
|
||||
app: nginx-results
|
||||
|
|
|
@ -19,7 +19,7 @@ metadata:
|
|||
namespace: jenkins
|
||||
annotations:
|
||||
# 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"
|
||||
cert-manager.io/issuer: "letsencrypt-prod"
|
||||
spec:
|
||||
|
@ -35,10 +35,10 @@ spec:
|
|||
# -- prod ------------------
|
||||
- secretName: results-prod-tls
|
||||
hosts:
|
||||
- results.llvm-merge-guard.org
|
||||
- results.llvm-merge-guard.org
|
||||
- secretName: jenkins-prod-tls
|
||||
hosts:
|
||||
- jenkins.llvm-merge-guard.org
|
||||
- jenkins.llvm-merge-guard.org
|
||||
|
||||
rules:
|
||||
# -- prod ------------------
|
||||
|
|
|
@ -23,10 +23,10 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/mast
|
|||
# install certmanager based on
|
||||
# http://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html
|
||||
|
||||
kubectl create namespace cert-manager
|
||||
kubectl label namespace kube-system certmanager.k8s.io/disable-validation="true"
|
||||
kubectl create clusterrolebinding cluster-admin-binding \
|
||||
--clusterrole=cluster-admin \
|
||||
--user=$(gcloud config get-value core/account)
|
||||
# kubectl create namespace cert-manager
|
||||
# kubectl label namespace kube-system certmanager.k8s.io/disable-validation="true"
|
||||
# kubectl create clusterrolebinding cluster-admin-binding \
|
||||
# --clusterrole=cluster-admin \
|
||||
# --user=$(gcloud config get-value core/account)
|
||||
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v0.10.1/cert-manager.yaml
|
||||
|
||||
|
|
Loading…
Reference in a new issue