Compare commits
65 commits
a9ec608b3b
...
d67abd0006
Author | SHA1 | Date | |
---|---|---|---|
Micke Nordin | d67abd0006 | ||
Micke Nordin | 2cd489694d | ||
Micke Nordin | c8719b90e0 | ||
Micke Nordin | 01c82b19c4 | ||
Micke Nordin | 42a4400e14 | ||
Micke Nordin | be15897f1b | ||
Micke Nordin | 99ae6aad08 | ||
Micke Nordin | 4d7ad133f0 | ||
Micke Nordin | 857f47df8c | ||
Micke Nordin | 7c6e4e568e | ||
Micke Nordin | e96d558fe1 | ||
Micke Nordin | e576aa7d63 | ||
Micke Nordin | f9603a74fb | ||
Micke Nordin | 6540e97612 | ||
Micke Nordin | 4984c2c474 | ||
Micke Nordin | 2d027b05a7 | ||
Micke Nordin | 371218f3d0 | ||
Micke Nordin | f554c14f0d | ||
Micke Nordin | cc8a7cbd23 | ||
Micke Nordin | f8f42d2fda | ||
Micke Nordin | f316a8b679 | ||
Micke Nordin | 521339d17c | ||
Micke Nordin | 3eb723bc7c | ||
Micke Nordin | bfb8528a5b | ||
Micke Nordin | 6a7e716655 | ||
Micke Nordin | 49d0fc411a | ||
Micke Nordin | 656d429e35 | ||
Micke Nordin | 8c6039bebf | ||
Micke Nordin | f8c720d61a | ||
Micke Nordin | b33d75d5a5 | ||
Micke Nordin | 55ffd9497e | ||
Micke Nordin | 07da5b4f03 | ||
Micke Nordin | beaf615301 | ||
Micke Nordin | 22a4658679 | ||
Micke Nordin | d73835d60b | ||
Micke Nordin | 3ed80176f2 | ||
Micke Nordin | 4a987fa0cc | ||
Micke Nordin | b4b45e9c43 | ||
Micke Nordin | d354a4da3b | ||
Micke Nordin | cc64522243 | ||
Micke Nordin | e7692f2665 | ||
Micke Nordin | 17b82d9984 | ||
Micke Nordin | 8d34ad30ce | ||
Micke Nordin | 4298770b42 | ||
Micke Nordin | 9d1a988ab1 | ||
Micke Nordin | 44a33aee30 | ||
Micke Nordin | 94279e41b0 | ||
Micke Nordin | 0a25d2ea04 | ||
Micke Nordin | e968d8a8cc | ||
Micke Nordin | af83e3cd45 | ||
Micke Nordin | 5367d1de02 | ||
Micke Nordin | 7ad1dca2d6 | ||
Micke Nordin | 981656e27f | ||
Micke Nordin | 6014bc0328 | ||
Micke Nordin | 48207a6096 | ||
Micke Nordin | bc58f96ed0 | ||
Micke Nordin | 11403777cb | ||
Micke Nordin | 2cb16e7352 | ||
Micke Nordin | 108c7c6e1a | ||
Micke Nordin | d6d1a240e6 | ||
Micke Nordin | f58a0842e1 | ||
Micke Nordin | 4ae33d899c | ||
Micke Nordin | 7a868fafea | ||
Micke Nordin | 85b4eca237 | ||
Micke Nordin | baca2b4936 |
27
argocd-nginx/overlays/prod/argocd-ingress.yaml
Normal file
27
argocd-nginx/overlays/prod/argocd-ingress.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: argocd-ingress
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: argocd-server
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
ingressClassName: nginx
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- argocd.streams.sunet.se
|
||||||
|
secretName: tls-secret
|
||||||
|
rules:
|
||||||
|
- host: argocd.streams.sunet.se
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: argocd-server
|
||||||
|
port:
|
||||||
|
number: 80
|
6
argocd-nginx/overlays/prod/kustomization.yaml
Normal file
6
argocd-nginx/overlays/prod/kustomization.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources: [../../base]
|
||||||
|
patches:
|
||||||
|
- path: argocd-ingress.yaml
|
17
argocd/overlays/prod/argocd-cm.yaml
Normal file
17
argocd/overlays/prod/argocd-cm.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/instance: argocd
|
||||||
|
app.kubernetes.io/name: argocd-cm
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
name: argocd-cm
|
||||||
|
namespace: argocd
|
||||||
|
data:
|
||||||
|
resource.customizations: |
|
||||||
|
networking.k8s.io/Ingress:
|
||||||
|
health.lua: |
|
||||||
|
hs = {}
|
||||||
|
hs.status = "Healthy"
|
||||||
|
return hs
|
||||||
|
kustomize.buildOptions: --enable-helm
|
21
argocd/overlays/prod/argocd-repo-server-deployment.yaml
Normal file
21
argocd/overlays/prod/argocd-repo-server-deployment.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: repo-server
|
||||||
|
app.kubernetes.io/name: argocd-repo-server
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
name: argocd-repo-server
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argocd-repo-server
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: argocd-repo-server
|
||||||
|
env:
|
||||||
|
- name: ARGOCD_EXEC_TIMEOUT
|
||||||
|
value: "300s"
|
||||||
|
|
22
argocd/overlays/prod/argocd-server-deployment.yaml
Normal file
22
argocd/overlays/prod/argocd-server-deployment.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: server
|
||||||
|
app.kubernetes.io/name: argocd-server
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
name: argocd-server
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: argocd-server
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- /usr/local/bin/argocd-server
|
||||||
|
- --insecure
|
||||||
|
- --redis
|
||||||
|
- "argocd-redis-ha-haproxy:6379"
|
||||||
|
name: argocd-server
|
8
argocd/overlays/prod/kustomization.yaml
Normal file
8
argocd/overlays/prod/kustomization.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../base
|
||||||
|
patches:
|
||||||
|
- path: argocd-server-deployment.yaml
|
||||||
|
- path: argocd-repo-server-deployment.yaml
|
||||||
|
- path: argocd-cm.yaml
|
|
@ -3,6 +3,8 @@ resources:
|
||||||
- spark-master-controller.yml
|
- spark-master-controller.yml
|
||||||
- spark-master-service.yml
|
- spark-master-service.yml
|
||||||
- spark-ui-proxy-controller.yml
|
- spark-ui-proxy-controller.yml
|
||||||
|
- spark-ui-proxy-ingress.yml
|
||||||
|
- spark-ui-proxy-service.yml
|
||||||
- spark-worker-controller.yml
|
- spark-worker-controller.yml
|
||||||
- spark-cert-issuer.yaml
|
- spark-cert-issuer.yaml
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
|
32
spark/base/spark-ui-proxy-ingress.yml
Normal file
32
spark/base/spark-ui-proxy-ingress.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: spark-ui-proxy-ingress
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
|
# nginx.ingress.kubernetes.io/auth-type: basic
|
||||||
|
# nginx.ingress.kubernetes.io/auth-secret: htpasswd
|
||||||
|
# nginx.ingress.kubernetes.io/auth-realm: Enter your credentials
|
||||||
|
cert-manager.io/issuer: "letsencrypt"
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: spark-ui-proxy
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts: [spark-test.streams.sunet.se]
|
||||||
|
secretName: tls-secret
|
||||||
|
rules:
|
||||||
|
- host: spark-test.streams.sunet.se
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: spark-ui-proxy
|
||||||
|
port:
|
||||||
|
number: 80
|
12
spark/base/spark-ui-proxy-service.yml
Normal file
12
spark/base/spark-ui-proxy-service.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: spark-ui-proxy
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
component: spark-ui-proxy
|
||||||
|
type: LoadBalancer
|
|
@ -11,3 +11,5 @@ helmCharts:
|
||||||
namespace: spark
|
namespace: spark
|
||||||
helmGlobals:
|
helmGlobals:
|
||||||
chartHome: ../../base/charts/
|
chartHome: ../../base/charts/
|
||||||
|
patches:
|
||||||
|
- path: spark-ui-proxy-ingress.yml
|
||||||
|
|
32
spark/overlays/test/spark-ui-proxy-ingress.yml
Normal file
32
spark/overlays/test/spark-ui-proxy-ingress.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: spark-ui-proxy-ingress
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
|
# nginx.ingress.kubernetes.io/auth-type: basic
|
||||||
|
# nginx.ingress.kubernetes.io/auth-secret: htpasswd
|
||||||
|
# nginx.ingress.kubernetes.io/auth-realm: Enter your credentials
|
||||||
|
cert-manager.io/issuer: "letsencrypt"
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
defaultBackend:
|
||||||
|
service:
|
||||||
|
name: spark-ui-proxy
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts: [spark-test.streams.sunet.se]
|
||||||
|
secretName: tls-secret
|
||||||
|
rules:
|
||||||
|
- host: spark-test.streams.sunet.se
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: spark-ui-proxy
|
||||||
|
port:
|
||||||
|
number: 80
|
Loading…
Reference in a new issue