moved results to jenkins namespace
This commit is contained in:
parent
90e82aee20
commit
39724eb627
5 changed files with 53 additions and 19 deletions
|
@ -17,5 +17,5 @@ set -eux
|
|||
|
||||
# nfs needs to be deployed first, as it creates the presistent volumes
|
||||
kubectl apply -f nfs.yaml
|
||||
kubectl apply -f results.yaml
|
||||
kubectl apply -k -f results-nginx
|
||||
kubectl apply -f jenkins.yaml
|
|
@ -16,7 +16,7 @@ apiVersion: apps/v1
|
|||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-results
|
||||
namespace: results
|
||||
namespace: jenkins
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
|
@ -53,21 +53,6 @@ spec:
|
|||
volumes:
|
||||
- name: nfs-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: nfs
|
||||
claimName: nfs-jenkins
|
||||
nodeSelector:
|
||||
cloud.google.com/gke-nodepool: services
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginx-results
|
||||
namespace: results
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
# externalTrafficPolicy: Cluster
|
||||
selector:
|
||||
app: nginx-results
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
cloud.google.com/gke-nodepool: services
|
28
kubernetes/results-nginx/Services.yaml
Normal file
28
kubernetes/results-nginx/Services.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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.
|
||||
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginx-results
|
||||
namespace: jenkins
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
# externalTrafficPolicy: Cluster
|
||||
selector:
|
||||
app: nginx-results
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
7
kubernetes/results-nginx/kustomization.yaml
Normal file
7
kubernetes/results-nginx/kustomization.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: jenkins
|
||||
resources:
|
||||
- Deployment.yaml
|
||||
- Services.yaml
|
||||
|
14
kubernetes/reverse-proxy/basic.sh
Executable file
14
kubernetes/reverse-proxy/basic.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
# basic setup of the reverse proxy based on
|
||||
# https://kubernetes.github.io/ingress-nginx/deploy/
|
||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/mandatory.yaml
|
||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/cloud-generic.yaml
|
||||
|
||||
# install jetstack based on
|
||||
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes
|
||||
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.8/deploy/manifests/00-crds.yaml
|
||||
kubectl label namespace kube-system certmanager.k8s.io/disable-validation="true"
|
||||
helm repo add jetstack https://charts.jetstack.io
|
||||
helm install --name cert-manager --namespace kube-system jetstack/cert-manager --version v0.8.0
|
Loading…
Reference in a new issue