@meshxdata/fops 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +207 -0
- package/fops.mjs +37 -14
- package/package.json +1 -1
- package/src/agent/llm.js +2 -0
- package/src/auth/azure.js +92 -0
- package/src/auth/cloudflare.js +125 -0
- package/src/auth/index.js +2 -0
- package/src/commands/index.js +8 -4
- package/src/commands/lifecycle.js +31 -10
- package/src/plugins/bundled/fops-plugin-azure/index.js +44 -2896
- package/src/plugins/bundled/fops-plugin-azure/lib/azure-aks.js +130 -2
- package/src/plugins/bundled/fops-plugin-azure/lib/azure-auth.js +497 -0
- package/src/plugins/bundled/fops-plugin-azure/lib/azure-helpers.js +51 -13
- package/src/plugins/bundled/fops-plugin-azure/lib/azure-ops.js +206 -52
- package/src/plugins/bundled/fops-plugin-azure/lib/azure-provision.js +128 -34
- package/src/plugins/bundled/fops-plugin-azure/lib/azure-shared-cache.js +1 -1
- package/src/plugins/bundled/fops-plugin-azure/lib/azure-sync.js +4 -4
- package/src/plugins/bundled/fops-plugin-azure/lib/azure.js +2 -2
- package/src/plugins/bundled/fops-plugin-azure/lib/commands/fleet-cmds.js +254 -0
- package/src/plugins/bundled/fops-plugin-azure/lib/commands/infra-cmds.js +894 -0
- package/src/plugins/bundled/fops-plugin-azure/lib/commands/test-cmds.js +314 -0
- package/src/plugins/bundled/fops-plugin-azure/lib/commands/vm-cmds.js +893 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/dai-backend.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/dai-frontend.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-backend.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-frontend.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-hive.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-kafka.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-meltano.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-mlflow.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-opa.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-processor.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-scheduler.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-storage-engine.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-trino.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-watcher.yaml +13 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/config/repository.yaml +66 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/kustomization.yaml +30 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/acr-webhook-controller.yaml +63 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/externalsecrets.yaml +15 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/istio.yaml +42 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/kafka.yaml +15 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/kube-reflector.yaml +33 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/kubecost.yaml +12 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/nats-server.yaml +15 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/prometheus-agent.yaml +34 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/reloader.yaml +12 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/spark.yaml +112 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/tailscale.yaml +67 -0
- package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/vertical-pod-autoscaler.yaml +15 -0
- package/src/plugins/bundled/fops-plugin-file/demo/orders_renamed.aligned.csv +1 -1
- package/src/plugins/bundled/fops-plugin-file/index.js +81 -12
- package/src/plugins/bundled/fops-plugin-file/lib/match.js +133 -15
- package/src/plugins/bundled/fops-plugin-file/lib/report.js +3 -0
- package/src/plugins/bundled/fops-plugin-foundation/index.js +26 -6
- package/src/plugins/bundled/fops-plugin-foundation/lib/client.js +9 -5
- package/src/plugins/bundled/fops-plugin-foundation-graphql/lib/graphql/resolvers/data-product.js +32 -0
- package/src/plugins/bundled/fops-plugin-foundation-graphql/lib/graphql/schema.js +20 -1
- package/src/plugins/loader.js +23 -6
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: dai-backend
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/dai/backend/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: dai-frontend
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/dai/frontend/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-backend
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/backend/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-frontend
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/frontend/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-hive
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/hive/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-kafka
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/kafka/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-meltano
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/meltano/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-mlflow
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/mlflow/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-opa
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/opa/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-processor.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-processor
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/processor/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-scheduler.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-scheduler
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/scheduler/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
package/src/plugins/bundled/fops-plugin-azure/templates/cluster/apps/foundation-storage-engine.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-storage-engine
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/storage-engine/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-trino
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/trino/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation-watcher
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./apps/foundation/watcher/overlays/meshx/{{OVERLAY}}
|
|
13
|
+
prune: true
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: source.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: HelmRepository
|
|
4
|
+
metadata:
|
|
5
|
+
name: foundation
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
type: oci
|
|
9
|
+
interval: 1m0s
|
|
10
|
+
url: oci://meshxregistry.azurecr.io/helm
|
|
11
|
+
secretRef:
|
|
12
|
+
name: meshxregistry-helm-secret
|
|
13
|
+
---
|
|
14
|
+
apiVersion: source.toolkit.fluxcd.io/v1
|
|
15
|
+
kind: HelmRepository
|
|
16
|
+
metadata:
|
|
17
|
+
name: foundation
|
|
18
|
+
namespace: velora
|
|
19
|
+
spec:
|
|
20
|
+
type: oci
|
|
21
|
+
interval: 1m0s
|
|
22
|
+
url: oci://meshxregistry.azurecr.io/helm
|
|
23
|
+
secretRef:
|
|
24
|
+
name: meshxregistry-helm-secret
|
|
25
|
+
---
|
|
26
|
+
apiVersion: source.toolkit.fluxcd.io/v1
|
|
27
|
+
kind: HelmRepository
|
|
28
|
+
metadata:
|
|
29
|
+
name: dai
|
|
30
|
+
namespace: velora
|
|
31
|
+
spec:
|
|
32
|
+
type: oci
|
|
33
|
+
interval: 1m0s
|
|
34
|
+
url: oci://meshxregistry.azurecr.io/helm/dai
|
|
35
|
+
secretRef:
|
|
36
|
+
name: meshxregistry-helm-secret
|
|
37
|
+
---
|
|
38
|
+
apiVersion: source.toolkit.fluxcd.io/v1
|
|
39
|
+
kind: HelmRepository
|
|
40
|
+
metadata:
|
|
41
|
+
name: hive-metastore
|
|
42
|
+
namespace: flux-system
|
|
43
|
+
spec:
|
|
44
|
+
type: oci
|
|
45
|
+
interval: 1m0s
|
|
46
|
+
url: oci://meshxregistry.azurecr.io/helm
|
|
47
|
+
secretRef:
|
|
48
|
+
name: meshxregistry-helm-secret
|
|
49
|
+
---
|
|
50
|
+
apiVersion: source.toolkit.fluxcd.io/v1
|
|
51
|
+
kind: HelmRepository
|
|
52
|
+
metadata:
|
|
53
|
+
name: trinodb
|
|
54
|
+
namespace: flux-system
|
|
55
|
+
spec:
|
|
56
|
+
interval: 30m
|
|
57
|
+
url: https://trinodb.github.io/charts
|
|
58
|
+
---
|
|
59
|
+
apiVersion: source.toolkit.fluxcd.io/v1
|
|
60
|
+
kind: HelmRepository
|
|
61
|
+
metadata:
|
|
62
|
+
name: mlflow
|
|
63
|
+
namespace: flux-system
|
|
64
|
+
spec:
|
|
65
|
+
interval: 1m0s
|
|
66
|
+
url: https://community-charts.github.io/helm-charts
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
resources:
|
|
4
|
+
- config/repository.yaml
|
|
5
|
+
- operator/acr-webhook-controller.yaml
|
|
6
|
+
- operator/kube-reflector.yaml
|
|
7
|
+
- operator/externalsecrets.yaml
|
|
8
|
+
- operator/istio.yaml
|
|
9
|
+
- operator/kafka.yaml
|
|
10
|
+
- operator/kubecost.yaml
|
|
11
|
+
- operator/spark.yaml
|
|
12
|
+
- operator/vertical-pod-autoscaler.yaml
|
|
13
|
+
- operator/prometheus-agent.yaml
|
|
14
|
+
- operator/tailscale.yaml
|
|
15
|
+
- operator/nats-server.yaml
|
|
16
|
+
- operator/reloader.yaml
|
|
17
|
+
- apps/foundation-backend.yaml
|
|
18
|
+
- apps/foundation-frontend.yaml
|
|
19
|
+
- apps/foundation-scheduler.yaml
|
|
20
|
+
- apps/foundation-processor.yaml
|
|
21
|
+
- apps/foundation-watcher.yaml
|
|
22
|
+
- apps/foundation-opa.yaml
|
|
23
|
+
- apps/foundation-meltano.yaml
|
|
24
|
+
- apps/foundation-kafka.yaml
|
|
25
|
+
- apps/foundation-hive.yaml
|
|
26
|
+
- apps/foundation-storage-engine.yaml
|
|
27
|
+
- apps/foundation-trino.yaml
|
|
28
|
+
- apps/foundation-mlflow.yaml
|
|
29
|
+
- apps/dai-backend.yaml
|
|
30
|
+
- apps/dai-frontend.yaml
|
package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/acr-webhook-controller.yaml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: acr-webhook-controller
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1m0s
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/acr-webhook-controller
|
|
12
|
+
prune: false
|
|
13
|
+
patches:
|
|
14
|
+
- target:
|
|
15
|
+
kind: Secret
|
|
16
|
+
name: acr-pull-secret
|
|
17
|
+
namespace: acr-cache-system
|
|
18
|
+
patch: |-
|
|
19
|
+
- op: replace
|
|
20
|
+
path: /stringData/.dockerconfigjson
|
|
21
|
+
value: |
|
|
22
|
+
{
|
|
23
|
+
"auths": {
|
|
24
|
+
"meshxregistry.azurecr.io": {
|
|
25
|
+
"username": "{{ACR_USERNAME}}",
|
|
26
|
+
"password": "{{ACR_PASSWORD}}"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
- target:
|
|
31
|
+
kind: Secret
|
|
32
|
+
name: meshxregistry-helm-secret
|
|
33
|
+
namespace: acr-cache-system
|
|
34
|
+
patch: |-
|
|
35
|
+
- op: replace
|
|
36
|
+
path: /stringData/username
|
|
37
|
+
value: "{{ACR_USERNAME}}"
|
|
38
|
+
- op: replace
|
|
39
|
+
path: /stringData/password
|
|
40
|
+
value: "{{ACR_PASSWORD}}"
|
|
41
|
+
- target:
|
|
42
|
+
kind: Deployment
|
|
43
|
+
name: acr-cache-webhook
|
|
44
|
+
namespace: acr-cache-system
|
|
45
|
+
patch: |
|
|
46
|
+
apiVersion: apps/v1
|
|
47
|
+
kind: Deployment
|
|
48
|
+
metadata:
|
|
49
|
+
name: acr-cache-webhook
|
|
50
|
+
spec:
|
|
51
|
+
replicas: 3
|
|
52
|
+
template:
|
|
53
|
+
spec:
|
|
54
|
+
affinity:
|
|
55
|
+
podAntiAffinity:
|
|
56
|
+
requiredDuringSchedulingIgnoredDuringExecution:
|
|
57
|
+
- labelSelector:
|
|
58
|
+
matchExpressions:
|
|
59
|
+
- key: app
|
|
60
|
+
operator: In
|
|
61
|
+
values:
|
|
62
|
+
- acr-cache-webhook
|
|
63
|
+
topologyKey: kubernetes.io/hostname
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: external-secrets
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1h
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/external-secrets/manifests
|
|
12
|
+
prune: false
|
|
13
|
+
dependsOn:
|
|
14
|
+
- name: acr-webhook-controller
|
|
15
|
+
namespace: flux-system
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: istio-operator
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1h
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/istio-operator
|
|
12
|
+
prune: false
|
|
13
|
+
---
|
|
14
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
15
|
+
kind: Kustomization
|
|
16
|
+
metadata:
|
|
17
|
+
name: istio-controlplane
|
|
18
|
+
namespace: flux-system
|
|
19
|
+
spec:
|
|
20
|
+
dependsOn:
|
|
21
|
+
- name: istio-operator
|
|
22
|
+
interval: 10s
|
|
23
|
+
sourceRef:
|
|
24
|
+
kind: GitRepository
|
|
25
|
+
name: flux-system
|
|
26
|
+
path: ./infrastructure/istio-tenant/demo/azure/uaenorth
|
|
27
|
+
prune: false
|
|
28
|
+
---
|
|
29
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
30
|
+
kind: Kustomization
|
|
31
|
+
metadata:
|
|
32
|
+
name: jaeger
|
|
33
|
+
namespace: flux-system
|
|
34
|
+
spec:
|
|
35
|
+
dependsOn:
|
|
36
|
+
- name: istio-operator
|
|
37
|
+
interval: 10m0s
|
|
38
|
+
sourceRef:
|
|
39
|
+
kind: GitRepository
|
|
40
|
+
name: flux-system
|
|
41
|
+
path: ./infrastructure/jaeger
|
|
42
|
+
prune: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: kafka-operator
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1m0s
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/kafka-operator/velora
|
|
12
|
+
prune: false
|
|
13
|
+
dependsOn:
|
|
14
|
+
- name: acr-webhook-controller
|
|
15
|
+
namespace: flux-system
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: kube-reflector
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1m0s
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/reflector
|
|
12
|
+
prune: false
|
|
13
|
+
targetNamespace: reflector
|
|
14
|
+
dependsOn:
|
|
15
|
+
- name: acr-webhook-controller
|
|
16
|
+
namespace: flux-system
|
|
17
|
+
patches:
|
|
18
|
+
- target:
|
|
19
|
+
kind: Secret
|
|
20
|
+
name: acr-pull-secret
|
|
21
|
+
namespace: reflector
|
|
22
|
+
patch: |-
|
|
23
|
+
- op: replace
|
|
24
|
+
path: /stringData/.dockerconfigjson
|
|
25
|
+
value: |
|
|
26
|
+
{
|
|
27
|
+
"auths": {
|
|
28
|
+
"meshxregistry.azurecr.io": {
|
|
29
|
+
"username": "{{ACR_USERNAME}}",
|
|
30
|
+
"password": "{{ACR_PASSWORD}}"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: kubecost
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1m0s
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/kubecost/{{CLUSTER_NAME}}
|
|
12
|
+
prune: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: nats-server
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1m0s
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/nats-server/velora
|
|
12
|
+
prune: false
|
|
13
|
+
dependsOn:
|
|
14
|
+
- name: acr-webhook-controller
|
|
15
|
+
namespace: flux-system
|
package/src/plugins/bundled/fops-plugin-azure/templates/cluster/operator/prometheus-agent.yaml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
3
|
+
kind: Kustomization
|
|
4
|
+
metadata:
|
|
5
|
+
name: prometheus-agent
|
|
6
|
+
namespace: flux-system
|
|
7
|
+
spec:
|
|
8
|
+
interval: 1m
|
|
9
|
+
sourceRef:
|
|
10
|
+
kind: GitRepository
|
|
11
|
+
name: flux-system
|
|
12
|
+
path: ./infrastructure/prometheus-agent
|
|
13
|
+
prune: false
|
|
14
|
+
patches:
|
|
15
|
+
- target:
|
|
16
|
+
kind: ConfigMap
|
|
17
|
+
name: prometheus-agent-server
|
|
18
|
+
patch: |
|
|
19
|
+
apiVersion: v1
|
|
20
|
+
kind: ConfigMap
|
|
21
|
+
metadata:
|
|
22
|
+
name: prometheus-agent-server
|
|
23
|
+
namespace: monitoring
|
|
24
|
+
data:
|
|
25
|
+
prometheus.yml: |
|
|
26
|
+
global:
|
|
27
|
+
scrape_interval: 15s
|
|
28
|
+
evaluation_interval: 30s
|
|
29
|
+
scrape_configs:
|
|
30
|
+
- job_name: "{{CLUSTER_NAME}}-nats-exporter"
|
|
31
|
+
static_configs:
|
|
32
|
+
- targets: ["nats.nats.svc.cluster.local:7777"]
|
|
33
|
+
remote_write:
|
|
34
|
+
- url: "http://central-live-prometheus.privatelink.uaenorth.azmk8s.io/api/v1/write"
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
2
|
+
kind: Kustomization
|
|
3
|
+
metadata:
|
|
4
|
+
name: spark
|
|
5
|
+
namespace: flux-system
|
|
6
|
+
spec:
|
|
7
|
+
interval: 1m0s
|
|
8
|
+
sourceRef:
|
|
9
|
+
kind: GitRepository
|
|
10
|
+
name: flux-system
|
|
11
|
+
path: ./infrastructure/spark-operator/launchpad
|
|
12
|
+
prune: false
|
|
13
|
+
dependsOn:
|
|
14
|
+
- name: velora
|
|
15
|
+
namespace: flux-system
|
|
16
|
+
- name: acr-webhook-controller
|
|
17
|
+
namespace: flux-system
|
|
18
|
+
patches:
|
|
19
|
+
- target:
|
|
20
|
+
kind: HelmRelease
|
|
21
|
+
name: spark-operator
|
|
22
|
+
namespace: flux-system
|
|
23
|
+
patch: |-
|
|
24
|
+
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
25
|
+
kind: HelmRelease
|
|
26
|
+
metadata:
|
|
27
|
+
name: spark-operator
|
|
28
|
+
namespace: flux-system
|
|
29
|
+
spec:
|
|
30
|
+
values:
|
|
31
|
+
image:
|
|
32
|
+
pullSecrets:
|
|
33
|
+
- name: ecr-credentials
|
|
34
|
+
spark:
|
|
35
|
+
jobNamespaces:
|
|
36
|
+
- velora
|
|
37
|
+
---
|
|
38
|
+
apiVersion: rbac.authorization.k8s.io/v1
|
|
39
|
+
kind: ClusterRole
|
|
40
|
+
metadata:
|
|
41
|
+
name: job-creator
|
|
42
|
+
namespace: velora
|
|
43
|
+
rules:
|
|
44
|
+
- apiGroups: [""]
|
|
45
|
+
resources: ["configmaps"]
|
|
46
|
+
verbs: ["create", "delete", "get"]
|
|
47
|
+
- apiGroups: [""]
|
|
48
|
+
resources: ["pods"]
|
|
49
|
+
verbs: ["get"]
|
|
50
|
+
- apiGroups: [""]
|
|
51
|
+
resources: ["pods/log"]
|
|
52
|
+
verbs: ["get"]
|
|
53
|
+
- apiGroups: [""]
|
|
54
|
+
resources: ["pods/status"]
|
|
55
|
+
verbs: ["get", "list", "watch"]
|
|
56
|
+
- apiGroups: ["sparkoperator.k8s.io"]
|
|
57
|
+
resources: ["sparkapplications"]
|
|
58
|
+
verbs: ["create", "delete", "get"]
|
|
59
|
+
- apiGroups: ["sparkoperator.k8s.io"]
|
|
60
|
+
resources: ["scheduledsparkapplications"]
|
|
61
|
+
verbs: ["create", "delete", "get", "patch"]
|
|
62
|
+
- apiGroups: [""]
|
|
63
|
+
resources: ["secrets"]
|
|
64
|
+
verbs: ["create", "delete", "get", "patch", "update"]
|
|
65
|
+
---
|
|
66
|
+
apiVersion: rbac.authorization.k8s.io/v1
|
|
67
|
+
kind: RoleBinding
|
|
68
|
+
metadata:
|
|
69
|
+
name: create-jobs
|
|
70
|
+
namespace: velora
|
|
71
|
+
subjects:
|
|
72
|
+
- kind: Group
|
|
73
|
+
name: system:serviceaccounts:foundation
|
|
74
|
+
apiGroup: rbac.authorization.k8s.io
|
|
75
|
+
roleRef:
|
|
76
|
+
kind: ClusterRole
|
|
77
|
+
name: job-creator
|
|
78
|
+
apiGroup: rbac.authorization.k8s.io
|
|
79
|
+
---
|
|
80
|
+
apiVersion: rbac.authorization.k8s.io/v1
|
|
81
|
+
kind: RoleBinding
|
|
82
|
+
metadata:
|
|
83
|
+
name: spark
|
|
84
|
+
namespace: velora
|
|
85
|
+
subjects:
|
|
86
|
+
- kind: Group
|
|
87
|
+
name: system:serviceaccounts:foundation
|
|
88
|
+
roleRef:
|
|
89
|
+
kind: ClusterRole
|
|
90
|
+
name: job-creator
|
|
91
|
+
apiGroup: rbac.authorization.k8s.io
|
|
92
|
+
---
|
|
93
|
+
apiVersion: rbac.authorization.k8s.io/v1
|
|
94
|
+
kind: RoleBinding
|
|
95
|
+
metadata:
|
|
96
|
+
name: allow-velora-sas-in-spark-jobs
|
|
97
|
+
namespace: spark-jobs
|
|
98
|
+
subjects:
|
|
99
|
+
- kind: Group
|
|
100
|
+
name: system:serviceaccounts:velora
|
|
101
|
+
apiGroup: rbac.authorization.k8s.io
|
|
102
|
+
roleRef:
|
|
103
|
+
kind: ClusterRole
|
|
104
|
+
name: job-creator
|
|
105
|
+
apiGroup: rbac.authorization.k8s.io
|
|
106
|
+
---
|
|
107
|
+
apiVersion: v1
|
|
108
|
+
kind: Namespace
|
|
109
|
+
metadata:
|
|
110
|
+
name: spark-jobs
|
|
111
|
+
labels:
|
|
112
|
+
name: spark-jobs
|