Skip to content

Commit

Permalink
docs: fix commands and references
Browse files Browse the repository at this point in the history
  • Loading branch information
anoop2811 committed Jan 13, 2024
1 parent 7a3efce commit 74a6fa4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
21 changes: 15 additions & 6 deletions docs/kubevela/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ This command will set up a new Kubernetes cluster named `my-k3d-cluster` running
Install KubeVela in your k3d cluster using Helm:

```bash
helm repo add kubevela https://charts.kubevela.net/core
helm repo add kubevela https://kubevela.github.io/charts
helm repo update
helm install --create-namespace -n vela-system kubevela kubevela/vela-core
helm install --create-namespace -n vela-system kubevela kubevela/vela-core --wait
```

Confirm the installation by checking the deployed pods:
Expand All @@ -46,35 +46,44 @@ Add the Cloud Native PostgreSQL Helm repository and install it:
```bash
helm repo add cnpg https://cloudnative-pg.github.io/charts
helm repo update
helm install cnpg cnpg/cloud-native-pg
helm upgrade --install cnpg \
--namespace cnpg-system \
--create-namespace \
cnpg/cloudnative-pg
```

## Step 4: Install Custom ComponentDefinitions

Before deploying the Fern application, add the following custom ComponentDefinitions:

1. **Install vela cli

```bash
curl -fsSl https://kubevela.io/script/install.sh | bash
```

1. **Gateway Component (gateway.cue):**

This updates the existing gateway trait to support the service type LoadBalancer.

```bash
kubectl apply -f gateway.cue
vela def apply ./docs/kubevela/gateway.cue
```

2. **Cloud Native PostgreSQL Component (cnpg.cue):**

Introduces a new component definition for Cloud Native PostgreSQL.

```bash
kubectl apply -f cnpg.cue
vela def apply ./docs/kubevela/cnpg.cue
```

## Step 5: Deploy the Fern Application

Deploy your application using the provided `vela.yaml` in a namespace called fern:

```bash
kubectls creante ns fern
kubectl create ns fern
kubectl apply -f vela.yaml
```

Expand Down
15 changes: 0 additions & 15 deletions docs/kubevela/cnpg-cluster.cue → docs/kubevela/cnpg.cue
Original file line number Diff line number Diff line change
Expand Up @@ -319,19 +319,4 @@ template: {
// +usage=Specify whether to reuse PVC during maintenance
reusePVC: bool | *false // Default to false
}
// parameter: {
// // enableSuperuser: true
// // superuserSecretName: postgres-super-app
// name: "postgres"
// namepsace: "fern"
// initDatabase: "fern"
// initOwner: "fern"
// initSecretName: "fern-secret"
// instances: 2
// storageSize: "0.5Gi"
// }
//
// context: {
// namespace: "fern"
// }
}

0 comments on commit 74a6fa4

Please sign in to comment.