Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,18 @@ jobs:
- name: Check links
run: |
liche -r docs -d $(pwd) -c 10 -p -h -l -x '^(.*github.com.*|.*api.slack.com.*|.*twitter.com.*|.*linode.com.*|.*helm.sh.*|.*k8s.io.*|.*percona.com.*|.*kubernetes.io.*|.*search-guard.com.*|.*hub.docker.com.*|.*appscode.com.*|.*mongodb.com.*|.*community.arm.com.*|.*cluster.com.*|.*proxysql.com.*|.*postgresql.org.*|.*kafka.com.*|.*stackoverflow.com.*|.*redis.io.*|.*elastic.co.*|.*mysql.*|.*developer.hashicorp.com.*|.*pgpool.net.*|.*clickhouse.com.*)$'
max_retries=5
retry_count=0
while [ $retry_count -lt $max_retries ]; do
if liche -r docs -d $(pwd) -c 10 -p -h -l -x '^(.*github.com.*|.*api.slack.com.*|.*twitter.com.*|.*linode.com.*|.*helm.sh.*|.*k8s.io.*|.*percona.com.*|.*kubernetes.io.*|.*search-guard.com.*|.*hub.docker.com.*|.*appscode.com.*|.*mongodb.com.*|.*community.arm.com.*|.*cluster.com.*|.*proxysql.com.*|.*postgresql.org.*|.*kafka.com.*|.*stackoverflow.com.*|.*redis.io.*|.*elastic.co.*|.*mysql.*|.*developer.hashicorp.com.*|.*pgpool.net.*|.*clickhouse.com.*)$'; then
echo "Link check passed"
exit 0
fi
retry_count=$((retry_count + 1))
if [ $retry_count -lt $max_retries ]; then
echo "Link check failed, retrying... (attempt $((retry_count + 1))/$max_retries)"
sleep 5
fi
done
echo "Link check failed after $max_retries attempts"
exit 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: add-tls
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: es-demo
tls:
issuerRef:
apiGroup: "cert-manager.io"
kind: Issuer
name: es-issuer
certificates:
- alias: http
subject:
organizations:
- kubedb.com
emailAddresses:
- [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: es-issuer
namespace: demo
spec:
ca:
secretName: es-ca
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: es-new-issuer
namespace: demo
spec:
ca:
secretName: es-new-ca
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: esops-update-issuer
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: es-demo
tls:
issuerRef:
name: es-new-issuer
kind: Issuer
apiGroup: "cert-manager.io"
19 changes: 19 additions & 0 deletions docs/examples/elasticsearch/reconficure-tls/Elasticsearch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo
namespace: demo
spec:
deletionPolicy: WipeOut
enableSSL: true
replicas: 3
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
storageType: Durable
version: xpack-8.11.1

11 changes: 11 additions & 0 deletions docs/examples/elasticsearch/reconficure-tls/esops-remove.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: esops-remove
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: es-demo
tls:
remove: true
11 changes: 11 additions & 0 deletions docs/examples/elasticsearch/reconficure-tls/esops-rotate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: esops-rotate
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: es-demo
tls:
rotateCertificates: true
11 changes: 11 additions & 0 deletions docs/examples/elasticsearch/restart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: restart
namespace: demo
spec:
type: Restart
databaseRef:
name: es-quickstart
timeout: 3m
apply: Always
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: esops-hscale-down-topology
namespace: demo
spec:
type: HorizontalScaling
databaseRef:
name: es-hscale-topology
horizontalScaling:
topology:
master: 2
ingest: 2
data: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: esops-hscale-down-combined
namespace: demo
spec:
type: HorizontalScaling
databaseRef:
name: es
horizontalScaling:
node: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: esops-hscale-up-topology
namespace: demo
spec:
type: HorizontalScaling
databaseRef:
name: es-hscale-topology
horizontalScaling:
topology:
master: 3
ingest: 3
data: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: es-combined
namespace: demo
spec:
type: HorizontalScaling
databaseRef:
name: es
horizontalScaling:
node: 3
37 changes: 37 additions & 0 deletions docs/examples/elasticsearch/scalling/horizontal/topology.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-cluster
namespace: demo
spec:
enableSSL: true
version: xpack-8.11.1
storageType: Durable
topology:
master:
replicas: 3
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
data:
replicas: 3
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
ingest:
replicas: 3
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: vscale-topology
namespace: demo
spec:
type: VerticalScaling
databaseRef:
name: es-cluster
verticalScaling:
master:
resources:
limits:
cpu: 750m
memory: 800Mi
data:
resources:
requests:
cpu: 760m
memory: 900Mi
ingest:
resources:
limits:
cpu: 900m
memory: 1.2Gi
requests:
cpu: 800m
memory: 1Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: vscale-combined
namespace: demo
spec:
type: VerticalScaling
databaseRef:
name: es-combined
verticalScaling:
node:
resources:
limits:
cpu: 1500m
memory: 2Gi
requests:
cpu: 600m
memory: 2Gi
19 changes: 19 additions & 0 deletions docs/examples/elasticsearch/update-version/elasticsearch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo
namespace: demo
spec:
deletionPolicy: Delete
enableSSL: true
replicas: 3
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: standard
storageType: Durable
version: xpack-9.1.3

11 changes: 11 additions & 0 deletions docs/examples/elasticsearch/update-version/update-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: es-demo-update
namespace: demo
spec:
type: UpdateVersion
databaseRef:
name: es-demo
updateVersion:
targetVersion: xpack-9.1.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: es-volume-expansion-combined
namespace: demo
spec:
type: VolumeExpansion
databaseRef:
name: es-combined
volumeExpansion:
mode: "Online"
node: 4Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: volume-expansion-topology
namespace: demo
spec:
type: VolumeExpansion
databaseRef:
name: es-cluster
volumeExpansion:
mode: "Online"
master: 5Gi
data: 5Gi
ingest: 4Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: ElasticsearchOpsRequest
metadata:
name: volume-expansion-data-nodes
namespace: demo
spec:
type: VolumeExpansion
databaseRef:
name: es-cluster
volumeExpansion:
mode: "Online"
data: 5Gi
2 changes: 0 additions & 2 deletions docs/guides/cassandra/concepts/appbinding.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ spec:
url: http://cassandra-quickstart-coordinators-0.cassandra-quickstart-pods.demo.svc.cluster.local:8081,http://cassandra-quickstart-overlords-0.cassandra-quickstart-pods.demo.svc.cluster.local:8090,http://cassandra-quickstart-middlemanagers-0.cassandra-quickstart-pods.demo.svc.cluster.local:8091,http://cassandra-quickstart-historicals-0.cassandra-quickstart-pods.demo.svc.cluster.local:8083,http://cassandra-quickstart-brokers-0.cassandra-quickstart-pods.demo.svc.cluster.local:8082,http://cassandra-quickstart-routers-0.cassandra-quickstart-pods.demo.svc.cluster.local:8888
secret:
name: cassandra-quickstart-admin-cred
kind: Secret
tlsSecret:
name: cassandra-client-cert
kind: Secret
type: kubedb.com/cassandra
version: 28.0.1
```
Expand Down
1 change: 0 additions & 1 deletion docs/guides/clickhouse/concepts/appbinding.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ spec:
scheme: http
secret:
name: ch-cluster-auth
kind: Secret
type: kubedb.com/clickhouse
version: 24.4.1
```
Expand Down
1 change: 0 additions & 1 deletion docs/guides/druid/backup/application-level/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ spec:
url: http://sample-druid-coordinators-0.sample-druid-pods.demo.svc.cluster.local:8081,http://sample-druid-overlords-0.sample-druid-pods.demo.svc.cluster.local:8090,http://sample-druid-middlemanagers-0.sample-druid-pods.demo.svc.cluster.local:8091,http://sample-druid-historicals-0.sample-druid-pods.demo.svc.cluster.local:8083,http://sample-druid-brokers-0.sample-druid-pods.demo.svc.cluster.local:8082,http://sample-druid-routers-0.sample-druid-pods.demo.svc.cluster.local:8888
secret:
name: sample-druid-admin-cred
kind: Secret
type: kubedb.com/druid
version: 30.0.1
```
Expand Down
1 change: 0 additions & 1 deletion docs/guides/druid/backup/cross-ns-dependencies/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ spec:
url: http://sample-druid-coordinators-0.sample-druid-pods.demo.svc.cluster.local:8081,http://sample-druid-overlords-0.sample-druid-pods.demo.svc.cluster.local:8090,http://sample-druid-middlemanagers-0.sample-druid-pods.demo.svc.cluster.local:8091,http://sample-druid-historicals-0.sample-druid-pods.demo.svc.cluster.local:8083,http://sample-druid-brokers-0.sample-druid-pods.demo.svc.cluster.local:8082,http://sample-druid-routers-0.sample-druid-pods.demo.svc.cluster.local:8888
secret:
name: sample-druid-admin-cred
kind: Secret
type: kubedb.com/druid
version: 30.0.1
```
Expand Down
Loading
Loading