Compare commits
2 Commits
main
...
8d911a2bc3
Author | SHA1 | Date | |
---|---|---|---|
8d911a2bc3
|
|||
30eb618855
|
31
clusters/my-cluster/longhorn/ingress.yaml
Normal file
31
clusters/my-cluster/longhorn/ingress.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: longhorn-ingress
|
||||
namespace: longhorn-system
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
# type of authentication
|
||||
nginx.ingress.kubernetes.io/auth-type: basic
|
||||
# prevent the controller from redirecting (308) to HTTPS
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
|
||||
# name of the secret that contains the user/password definitions
|
||||
nginx.ingress.kubernetes.io/auth-secret: basic-auth
|
||||
# message to display with an appropriate context why the authentication is required
|
||||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required '
|
||||
# custom max body size for file uploading like backing image uploading
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: 10000m
|
||||
spec:
|
||||
rules:
|
||||
- host: longhorn-ui.lab.kill0.net
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: longhorn-frontend
|
||||
port:
|
||||
number: 80
|
||||
ingressClassName: nginx
|
@ -3,3 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- https://raw.githubusercontent.com/longhorn/longhorn/v1.6.2/deploy/longhorn.yaml
|
||||
- ingress.yaml
|
||||
|
8
clusters/my-cluster/nginx-ingress/kustomization.yaml
Normal file
8
clusters/my-cluster/nginx-ingress/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: nginx-ingress
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- repository.yaml
|
||||
- release.yaml
|
5
clusters/my-cluster/nginx-ingress/namespace.yaml
Normal file
5
clusters/my-cluster/nginx-ingress/namespace.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: nginx-ingress
|
15
clusters/my-cluster/nginx-ingress/release.yaml
Normal file
15
clusters/my-cluster/nginx-ingress/release.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: nginx-ingress
|
||||
namespace: nginx-ingress
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: nginx-ingress
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: nginx-ingress
|
||||
version: 1.3.1
|
||||
interval: 50m
|
10
clusters/my-cluster/nginx-ingress/repository.yaml
Normal file
10
clusters/my-cluster/nginx-ingress/repository.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: nginx-ingress
|
||||
namespace: nginx-ingress
|
||||
spec:
|
||||
type: "oci"
|
||||
interval: 5m
|
||||
url: oci://ghcr.io/nginxinc/charts
|
65
temp.json
Normal file
65
temp.json
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "Namespace",
|
||||
"metadata": {
|
||||
"annotations": {
|
||||
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Namespace\",\"metadata\":{\"annotations\":{},\"labels\":{\"app.kubernetes.io/instance\":\"flux-system\",\"app.kubernetes.io/part-of\":\"flux\",\"app.kubernetes.io/version\":\"v2.3.0\",\"pod-security.kubernetes.io/warn\":\"restricted\",\"pod-security.kubernetes.io/warn-version\":\"latest\"},\"name\":\"flux-system\"}}\n"
|
||||
},
|
||||
"creationTimestamp": "2024-08-06T20:28:12Z",
|
||||
"deletionTimestamp": "2024-08-06T20:28:34Z",
|
||||
"labels": {
|
||||
"app.kubernetes.io/instance": "flux-system",
|
||||
"app.kubernetes.io/part-of": "flux",
|
||||
"app.kubernetes.io/version": "v2.3.0",
|
||||
"kubernetes.io/metadata.name": "flux-system",
|
||||
"pod-security.kubernetes.io/warn": "restricted",
|
||||
"pod-security.kubernetes.io/warn-version": "latest"
|
||||
},
|
||||
"name": "flux-system",
|
||||
"resourceVersion": "7727",
|
||||
"uid": "9083e227-1e7a-4d0a-868a-ac04edda1a9e"
|
||||
},
|
||||
"spec": {
|
||||
"finalizers": []
|
||||
},
|
||||
"status": {
|
||||
"conditions": [
|
||||
{
|
||||
"lastTransitionTime": "2024-08-06T20:28:40Z",
|
||||
"message": "All resources successfully discovered",
|
||||
"reason": "ResourcesDiscovered",
|
||||
"status": "False",
|
||||
"type": "NamespaceDeletionDiscoveryFailure"
|
||||
},
|
||||
{
|
||||
"lastTransitionTime": "2024-08-06T20:28:40Z",
|
||||
"message": "All legacy kube types successfully parsed",
|
||||
"reason": "ParsedGroupVersions",
|
||||
"status": "False",
|
||||
"type": "NamespaceDeletionGroupVersionParsingFailure"
|
||||
},
|
||||
{
|
||||
"lastTransitionTime": "2024-08-06T20:28:40Z",
|
||||
"message": "All content successfully deleted, may be waiting on finalization",
|
||||
"reason": "ContentDeleted",
|
||||
"status": "False",
|
||||
"type": "NamespaceDeletionContentFailure"
|
||||
},
|
||||
{
|
||||
"lastTransitionTime": "2024-08-06T20:28:40Z",
|
||||
"message": "Some resources are remaining: gitrepositories.source.toolkit.fluxcd.io has 1 resource instances, kustomizations.kustomize.toolkit.fluxcd.io has 1 resource instances",
|
||||
"reason": "SomeResourcesRemain",
|
||||
"status": "True",
|
||||
"type": "NamespaceContentRemaining"
|
||||
},
|
||||
{
|
||||
"lastTransitionTime": "2024-08-06T20:28:40Z",
|
||||
"message": "Some content in the namespace has finalizers remaining: finalizers.fluxcd.io in 2 resource instances",
|
||||
"reason": "SomeFinalizersRemain",
|
||||
"status": "True",
|
||||
"type": "NamespaceFinalizersRemaining"
|
||||
}
|
||||
],
|
||||
"phase": "Terminating"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user