1
0
Fork 0

added skeleton for static ip

but it did not work
This commit is contained in:
Christian Kühnel 2019-10-09 12:48:37 +02:00
parent fb85a8b83a
commit 5d2387492d
3 changed files with 26 additions and 39 deletions

View file

@ -35,3 +35,8 @@ gcloud container node-pools create services --cluster $GCP_CLUSTER --zone $GCP_Z
# https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/local-ssd
gcloud container node-pools create ssd --cluster $GCP_CLUSTER --zone $GCP_ZONE \
--machine-type=n1-standard-32 --num-nodes=1 --local-ssd-count=1
# create static IP address
# IP can be created, but not used in Ingress. Not sure why
# gcloud compute addresses create web-static-ip --global

View file

@ -18,17 +18,19 @@ metadata:
name: nginx-ingress
namespace: jenkins
annotations:
# static IP assignment not working. Not sure why.
# kubernetes.io/ingress.global-static-ip-name: "web-static-ip"
kubernetes.io/ingress.class: "nginx"
cert-manager.io/issuer: "letsencrypt-staging"
cert-manager.io/issuer: "letsencrypt-prod"
spec:
tls:
# -- staging ------------------
- secretName: results-staging-tls
hosts:
- results.staging.llvm-merge-guard.org
- secretName: results-staging-tls
hosts:
- jenkins.staging.llvm-merge-guard.org
# - secretName: results-staging-tls
# hosts:
# - results.staging.llvm-merge-guard.org
# - secretName: results-staging-tls
# hosts:
# - jenkins.staging.llvm-merge-guard.org
# -- prod ------------------
- secretName: results-prod-tls
@ -54,15 +56,15 @@ spec:
servicePort: 8080
# -- staging ------------------
- host: jenkins.staging.llvm-merge-guard.org
http:
paths:
- backend:
serviceName: jenkins-ui
servicePort: 8080
- host: results.staging.llvm-merge-guard.org
http:
paths:
- backend:
serviceName: nginx-results
servicePort: 80
# - host: jenkins.staging.llvm-merge-guard.org
# http:
# paths:
# - backend:
# serviceName: jenkins-ui
# servicePort: 8080
# - host: results.staging.llvm-merge-guard.org
# http:
# paths:
# - backend:
# serviceName: nginx-results
# servicePort: 80

View file

@ -1,20 +0,0 @@
# Copyright 2019 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- Issuer.yaml
- Certificates.yaml
- Ingress.yaml