Skip to content

Commit

Permalink
Deployed a3d2e04 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Feb 6, 2025
0 parents commit 4857442
Show file tree
Hide file tree
Showing 204 changed files with 244,121 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
2,645 changes: 2,645 additions & 0 deletions 404.html

Large diffs are not rendered by default.

3,005 changes: 3,005 additions & 0 deletions addons/addons/index.html

Large diffs are not rendered by default.

3,215 changes: 3,215 additions & 0 deletions addons/clusterprofile/index.html

Large diffs are not rendered by default.

2,826 changes: 2,826 additions & 0 deletions addons/combining_all/index.html

Large diffs are not rendered by default.

3,336 changes: 3,336 additions & 0 deletions addons/example_flux_sources/index.html

Large diffs are not rendered by default.

3,383 changes: 3,383 additions & 0 deletions addons/helm_charts/index.html

Large diffs are not rendered by default.

3,236 changes: 3,236 additions & 0 deletions addons/kustomize/index.html

Large diffs are not rendered by default.

3,222 changes: 3,222 additions & 0 deletions addons/profile/index.html

Large diffs are not rendered by default.

3,092 changes: 3,092 additions & 0 deletions addons/raw_yaml/index.html

Large diffs are not rendered by default.

Binary file added assets/Sveltos_Profile_ClusterProfile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/addon_compliance.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/addons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/addons_deployment.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions assets/auto-deploy-postgres-cluster-per-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Anytime a Namespace with label postgres: required
# is created in a cluster with label type: app, deploys a postgres cluster.
# Source cluster is the management cluster.
# Destination cluster is the cluster with label type:services
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventSource
metadata:
name: detect-cluster-requiring-postgres
spec:
collectResources: true
resourceSelectors:
- group: ""
version: "v1"
kind: "Namespace"
labelFilters:
- key: postgres
operation: Equal
value: required
---
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventTrigger
metadata:
name: deploy-postgres-cluster
spec:
sourceClusterSelector:
matchLabels:
type: app
destinationClusterSelector:
matchLabels:
type: services
eventSourceName: detect-cluster-requiring-postgres
oneForEvent: true
policyRefs:
- name: postgres-cluster
namespace: default
kind: ConfigMap
---
apiVersion: v1
data:
cluster.yaml: |
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: {{ .Resource.metadata.name }}
namespace: {{ .Cluster.metadata.namespace }}
labels:
cluster-namespace: {{ .Cluster.metadata.namespace }}
cluster-name: {{ .Cluster.metadata.name }}
resource-name: {{ .Resource.metadata.name }}
spec:
instances: 3
bootstrap:
initdb:
database: todo
storage:
size: 1Gi
managed:
services:
disabledDefaultServices: ["ro", "r"]
additional:
- selectorType: rw
serviceTemplate:
metadata:
name: {{ .Resource.metadata.name }}
spec:
type: LoadBalancer
kind: ConfigMap
metadata:
annotations:
projectsveltos.io/instantiate: ok
name: postgres-cluster
namespace: default
70 changes: 70 additions & 0 deletions assets/auto-deploy-postgres-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Anytime a SveltosCluster with label postgres: required
# is created, deploys a postgres cluster.
# Source cluster is the management cluster.
# Destination cluster is the cluster with label type:services
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventSource
metadata:
name: detect-cluster-requiring-postgres
spec:
collectResources: true
resourceSelectors:
- group: "lib.projectsveltos.io"
version: "v1beta1"
kind: "SveltosCluster"
labelFilters:
- key: postgres
operation: Equal
value: required
---
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventTrigger
metadata:
name: deploy-postgres-cluster
spec:
sourceClusterSelector:
matchLabels:
type: mgmt
destinationClusterSelector:
matchLabels:
type: services
eventSourceName: detect-cluster-requiring-postgres
oneForEvent: true
policyRefs:
- name: postgres-cluster
namespace: default
kind: ConfigMap
---
apiVersion: v1
data:
cluster.yaml: |
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: cluster-{{ .Resource.metadata.name }}
namespace: {{ .Resource.metadata.namespace }}
labels:
cluster: {{ .Resource.metadata.namespace }}-{{ .Resource.metadata.name }}
spec:
instances: 3
bootstrap:
initdb:
database: todo
storage:
size: 1Gi
managed:
services:
disabledDefaultServices: ["ro", "r"]
additional:
- selectorType: rw
serviceTemplate:
metadata:
name: cluster-rw-lb
spec:
type: LoadBalancer
kind: ConfigMap
metadata:
annotations:
projectsveltos.io/instantiate: ok
name: postgres-cluster
namespace: default
Binary file added assets/autoscaler.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bucket_objects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/classifier.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/claudie-sveltos.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/cloudnative-pg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: config.projectsveltos.io/v1beta1
kind: ClusterProfile
metadata:
name: deploy-cnpg
spec:
clusterSelector:
matchLabels:
type: services
syncMode: Continuous
helmCharts:
- repositoryURL: https://cloudnative-pg.github.io/charts
repositoryName: cloudnative-pg
chartName: cloudnative-pg/cloudnative-pg
chartVersion: 0.22.1
releaseName: cnpg
releaseNamespace: cnpg-system
helmChartAction: Install
Binary file added assets/clusterset.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/db-per-ns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/discord_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/distribute_secret.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/eso_sveltos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/event_based_cross_cluster.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/event_driven_framework.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/event_loadbalancer-datapath.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/event_loadbalancer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/events.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/external_secret.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/external_secret_operator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions assets/fetch-postgres-data-per-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
## Fetch postgres credentials from the cluster where services are deployed.
## Create a Secret in the management cluster that contains the credentials
## Secret is named pg-credentials and it is created in the same namespace of the managed cluster
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventSource
metadata:
name: detect-credentials-secret
spec:
collectResources: true
resourceSelectors:
- group: ""
version: "v1"
kind: "Secret"
labelFilters:
- key: cnpg.io/reload
operation: Equal
value: "true"
---
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventTrigger
metadata:
name: credentials-secret
spec:
sourceClusterSelector:
matchLabels:
type: services
destinationClusterSelector:
matchLabels:
type: mgmt
eventSourceName: detect-credentials-secret
oneForEvent: true
policyRefs:
- name: credentials
namespace: default
kind: ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: credentials
namespace: default
annotations:
projectsveltos.io/instantiate: ok
data:
credentials: |
apiVersion: v1
kind: Secret
metadata:
name: {{ .Resource.metadata.name }}-credentials
namespace: {{ .Resource.metadata.namespace }}
data:
"password": "{{ get .Resource.data `password` }}"
"user": "{{ get .Resource.data `username` }}"
"namespace": "{{ get .Resource.metadata.labels `cnpg.io/cluster` |b64enc }}"
---
## Fetch postgres loadbalancer external-ip:port from the cluster where services are deployed.
## Create a ConfigMap in the management cluster that contains those info
## ConfigMap is named pg-loadbalancer-data and it is created in the same namespace of the managed cluster
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventSource
metadata:
name: detect-loadbalancer
spec:
collectResources: true
resourceSelectors:
- group: ""
version: "v1"
kind: "Service"
labelFilters:
- key: cnpg.io/isManaged
operation: Equal
value: "true"
---
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventTrigger
metadata:
name: cnpg-loadbalancer-data
spec:
sourceClusterSelector:
matchLabels:
type: services
destinationClusterSelector:
matchLabels:
type: mgmt
eventSourceName: detect-loadbalancer
oneForEvent: true
policyRefs:
- name: loadbalancer-data
namespace: default
kind: ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: loadbalancer-data
namespace: default
annotations:
projectsveltos.io/instantiate: ok
data:
credentials: |
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Resource.metadata.name }}-lb-data
namespace: {{ .Resource.metadata.namespace }}
data:
external-ip: {{ (index .Resource.status.loadBalancer.ingress 0).ip }}
port: "{{ (index .Resource.spec.ports 0).targetPort }}"
107 changes: 107 additions & 0 deletions assets/fetch-postgres-data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
## Fetch postgres credentials from the cluster where services are deployed.
## Create a Secret in the management cluster that contains the credentials
## Secret is named pg-credentials and it is created in the same namespace of the managed cluster
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventSource
metadata:
name: detect-credentials-secret
spec:
collectResources: true
resourceSelectors:
- group: ""
version: "v1"
kind: "Secret"
labelFilters:
- key: cnpg.io/reload
operation: Equal
value: "true"
---
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventTrigger
metadata:
name: credentials-secret
spec:
sourceClusterSelector:
matchLabels:
type: services
destinationClusterSelector:
matchLabels:
type: mgmt
eventSourceName: detect-credentials-secret
oneForEvent: true
policyRefs:
- name: credentials
namespace: default
kind: ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: credentials
namespace: default
annotations:
projectsveltos.io/instantiate: ok
data:
credentials: |
apiVersion: v1
kind: Secret
metadata:
name: pg-credentials
namespace: {{ .Resource.metadata.namespace }}
data:
"password": "{{ get .Resource.data `password` }}"
"user": "{{ get .Resource.data `username` }}"
---
## Fetch postgres loadbalancer external-ip:port from the cluster where services are deployed.
## Create a ConfigMap in the management cluster that contains those info
## ConfigMap is named pg-loadbalancer-data and it is created in the same namespace of the managed cluster
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventSource
metadata:
name: detect-loadbalancer
spec:
collectResources: true
resourceSelectors:
- group: ""
version: "v1"
kind: "Service"
labelFilters:
- key: cnpg.io/isManaged
operation: Equal
value: "true"
---
apiVersion: lib.projectsveltos.io/v1beta1
kind: EventTrigger
metadata:
name: cnpg-loadbalancer-data
spec:
sourceClusterSelector:
matchLabels:
type: services
destinationClusterSelector:
matchLabels:
type: mgmt
eventSourceName: detect-loadbalancer
oneForEvent: true
policyRefs:
- name: loadbalancer-data
namespace: default
kind: ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: loadbalancer-data
namespace: default
annotations:
projectsveltos.io/instantiate: ok
data:
credentials: |
apiVersion: v1
kind: ConfigMap
metadata:
name: pg-loadbalancer-data
namespace: {{ .Resource.metadata.namespace }}
data:
external-ip: {{ (index .Resource.status.loadBalancer.ingress 0).ip }}
port: "{{ (index .Resource.spec.ports 0).targetPort }}"
Binary file added assets/flux-jsonnet-sveltos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/flux-ytt-sveltos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/flux_and_sveltos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/generating-sveltos-conf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/google_cloud_storage_bucket.png
Binary file added assets/helm_chart_order.gif
Binary file added assets/images/favicon.png
Binary file added assets/instantiate_annotation.png
16 changes: 16 additions & 0 deletions assets/javascripts/bundle.f13b1293.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4857442

Please sign in to comment.