Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d4b66bb651 | |||
| 1944dbbfcd | |||
| 0940cc20f8 | |||
| 20ce2b1b92 | |||
| 64dc5a0242 | |||
| 57c14d32c0 | |||
| 2df359c4a9 |
@@ -2,32 +2,28 @@
|
|||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: vault-issuer
|
|
||||||
cert-manager.io/common-name: puppetdb.k8s.syd1.au.unkin.net
|
|
||||||
cert-manager.io/private-key-size: "4096"
|
|
||||||
external-dns.alpha.kubernetes.io/hostname: puppetdb.k8s.syd1.au.unkin.net
|
|
||||||
external-dns.alpha.kubernetes.io/target: 198.18.200.4
|
|
||||||
labels:
|
labels:
|
||||||
traefik.io/instance: internal
|
traefik.io/instance: internal
|
||||||
app.kubernetes.io/component: puppetdb
|
annotations:
|
||||||
app.kubernetes.io/instance: puppetserver
|
cert-manager.io/cluster-issuer: vault-issuer
|
||||||
app.kubernetes.io/name: puppetserver
|
cert-manager.io/common-name: rancher.k8s.syd1.au.unkin.net
|
||||||
app.kubernetes.io/version: 8.8.0
|
cert-manager.io/private-key-size: "4096"
|
||||||
name: puppetdb
|
external-dns.alpha.kubernetes.io/hostname: rancher.k8s.syd1.au.unkin.net
|
||||||
namespace: puppet
|
external-dns.alpha.kubernetes.io/target: "198.18.200.4"
|
||||||
|
name: rancher
|
||||||
|
namespace: cattle-system
|
||||||
spec:
|
spec:
|
||||||
gatewayClassName: traefik-internal
|
gatewayClassName: traefik-internal
|
||||||
listeners:
|
listeners:
|
||||||
- allowedRoutes:
|
- allowedRoutes:
|
||||||
namespaces:
|
namespaces:
|
||||||
from: Same
|
from: Same
|
||||||
hostname: puppetdb.k8s.syd1.au.unkin.net
|
hostname: rancher.k8s.syd1.au.unkin.net
|
||||||
name: https
|
name: https
|
||||||
port: 443
|
port: 443
|
||||||
protocol: HTTPS
|
protocol: HTTPS
|
||||||
tls:
|
tls:
|
||||||
certificateRefs:
|
certificateRefs:
|
||||||
- kind: Secret
|
- kind: Secret
|
||||||
name: puppetdb-tls
|
name: rancher-tls
|
||||||
mode: Terminate
|
mode: Terminate
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: rancher
|
||||||
|
namespace: cattle-system
|
||||||
|
spec:
|
||||||
|
hostnames:
|
||||||
|
- rancher.k8s.syd1.au.unkin.net
|
||||||
|
parentRefs:
|
||||||
|
- name: rancher
|
||||||
|
sectionName: https
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: rancher
|
||||||
|
port: 80
|
||||||
|
matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: rancher
|
|
||||||
namespace: cattle-system
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: vault-issuer
|
|
||||||
cert-manager.io/common-name: rancher.k8s.syd1.au.unkin.net
|
|
||||||
cert-manager.io/private-key-size: "4096"
|
|
||||||
external-dns.alpha.kubernetes.io/hostname: rancher.k8s.syd1.au.unkin.net
|
|
||||||
external-dns.alpha.kubernetes.io/target: "198.18.200.0"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- rancher.k8s.syd1.au.unkin.net
|
|
||||||
secretName: rancher-tls
|
|
||||||
rules:
|
|
||||||
- host: rancher.k8s.syd1.au.unkin.net
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: rancher
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@@ -6,4 +6,5 @@ resources:
|
|||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- vaultauth.yaml
|
- vaultauth.yaml
|
||||||
- vaultstaticsecret.yaml
|
- vaultstaticsecret.yaml
|
||||||
- ingress.yaml
|
- gateway.yaml
|
||||||
|
- httproute.yaml
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
|
||||||
kind: HTTPRoute
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/component: puppetdb
|
|
||||||
app.kubernetes.io/instance: puppetserver
|
|
||||||
app.kubernetes.io/name: puppetserver
|
|
||||||
app.kubernetes.io/version: 8.8.0
|
|
||||||
name: puppetdb
|
|
||||||
namespace: puppet
|
|
||||||
spec:
|
|
||||||
hostnames:
|
|
||||||
- puppetdb.k8s.syd1.au.unkin.net
|
|
||||||
parentRefs:
|
|
||||||
- name: puppetdb
|
|
||||||
sectionName: https
|
|
||||||
rules:
|
|
||||||
- backendRefs:
|
|
||||||
- name: puppetdb
|
|
||||||
port: 8080
|
|
||||||
matches:
|
|
||||||
- path:
|
|
||||||
type: PathPrefix
|
|
||||||
value: /
|
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: puppetdb.k8s.syd1.au.unkin.net
|
||||||
|
external-dns.alpha.kubernetes.io/target: 198.18.200.0
|
||||||
|
cert-manager.io/cluster-issuer: vault-issuer
|
||||||
|
cert-manager.io/common-name: puppetdb.k8s.syd1.au.unkin.net
|
||||||
|
cert-manager.io/private-key-size: "4096"
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: puppetdb
|
||||||
|
app.kubernetes.io/instance: puppetserver
|
||||||
|
app.kubernetes.io/name: puppetserver
|
||||||
|
app.kubernetes.io/version: 8.8.0
|
||||||
|
name: puppetdb
|
||||||
|
namespace: puppet
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: puppetdb.k8s.syd1.au.unkin.net
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
service:
|
||||||
|
name: puppetdb
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
|
path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- puppetdb.k8s.syd1.au.unkin.net
|
||||||
|
secretName: puppetdb-tls
|
||||||
@@ -26,8 +26,7 @@ resources:
|
|||||||
- horizontalpodautoscaler_puppetserver-puppetboard-autoscaler.yaml
|
- horizontalpodautoscaler_puppetserver-puppetboard-autoscaler.yaml
|
||||||
- horizontalpodautoscaler_puppetserver-puppetdb-autoscaler.yaml
|
- horizontalpodautoscaler_puppetserver-puppetdb-autoscaler.yaml
|
||||||
- ingress_puppetboard.yaml
|
- ingress_puppetboard.yaml
|
||||||
- gateway_puppetdb.yaml
|
- ingress_puppetdb.yaml
|
||||||
- httproute_puppetdb.yaml
|
|
||||||
- service_puppetserver-agents-to-puppet.yaml
|
- service_puppetserver-agents-to-puppet.yaml
|
||||||
- service_puppet-headless.yaml
|
- service_puppet-headless.yaml
|
||||||
- service_puppet.yaml
|
- service_puppet.yaml
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: GatewayClass
|
kind: GatewayClass
|
||||||
metadata:
|
metadata:
|
||||||
|
labels:
|
||||||
|
traefik.io/instance: external
|
||||||
name: traefik-external
|
name: traefik-external
|
||||||
spec:
|
spec:
|
||||||
controllerName: traefik.io/gateway-controller
|
controllerName: traefik.io/gateway-controller
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: GatewayClass
|
kind: GatewayClass
|
||||||
metadata:
|
metadata:
|
||||||
|
labels:
|
||||||
|
traefik.io/instance: internal
|
||||||
name: traefik-internal
|
name: traefik-internal
|
||||||
spec:
|
spec:
|
||||||
controllerName: traefik.io/gateway-controller
|
controllerName: traefik.io/gateway-controller
|
||||||
|
|||||||
@@ -54,3 +54,5 @@ extraArgs:
|
|||||||
- --rfc2136-tsig-axfr
|
- --rfc2136-tsig-axfr
|
||||||
- --rfc2136-tsig-secret=$(EXTERNAL_DNS_RFC2136_TSIG_SECRET)
|
- --rfc2136-tsig-secret=$(EXTERNAL_DNS_RFC2136_TSIG_SECRET)
|
||||||
- --ingress-class=nginx
|
- --ingress-class=nginx
|
||||||
|
|
||||||
|
logLevel: debug
|
||||||
|
|||||||
@@ -82,4 +82,17 @@ podSecurityContext:
|
|||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop: [ALL]
|
||||||
|
add: [NET_BIND_SERVICE]
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
|
||||||
|
ports:
|
||||||
|
web:
|
||||||
|
port: 80
|
||||||
|
websecure:
|
||||||
|
port: 443
|
||||||
|
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -82,4 +82,17 @@ podSecurityContext:
|
|||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop: [ALL]
|
||||||
|
add: [NET_BIND_SERVICE]
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
|
||||||
|
ports:
|
||||||
|
web:
|
||||||
|
port: 80
|
||||||
|
websecure:
|
||||||
|
port: 443
|
||||||
|
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user