Skip to content

Commit

Permalink
making fenced code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
melonrush13 authored and frodopwns committed Oct 10, 2019
1 parent 92f48dc commit 9354215
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions docs/azuresql/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,62 @@ We will use two terminal windows to deploy SQL resouces.

In the first terminal window, run the operator by running the following commands:

```make install```

```make run```
```bash
make install
make run
```

Now that the operator is running, open your second terminal window. Here we will use our yaml files to create different Azure resources.

### 1. Create a Resource Group

Create a resource group by running the following yaml file. Update the name variable to your preferred resource group name.

```$ kubectl create -f config/samples/azure_v1_resourcegroup.yaml```
```bash
kubectl create -f config/samples/azure_v1_resourcegroup.yaml
```

### 2. Create SQL resources

Create your SQL resources by running the following yaml files. Update the resource group name, and SQL resource names to your preferred names.

- ```$ kubectl create -f config/samples/azure_v1_sqldatabase.yaml```
```bash
kubectl create -f config/samples/azure_v1_sqldatabase.yaml
```

- ```$ kubectl create -f config/samples/azure_v1_sqlfirewallrule.yaml```
```bash
kubectl create -f config/samples/azure_v1_sqlfirewallrule.yaml
```

- ```$ kubectl create -f config/samples/azure_v1_sqlserver.yaml```
```bash
kubectl create -f config/samples/azure_v1_sqlserver.yaml
```

## Updating SQL Resources

### View SQL Resources

To view your created SQL resources, such as sqlserver, run the following command:

`$ k get sqlserver`
```bash
k get sqlserver
```

Your servers should be displayed with their name and age.

### Delete a SQL Resource

To delete an existing resource from Kubernetes and Azure, such as SQL server, run:

`$ k edit sqlserver $sqlservername`
```bash
k edit sqlserver $sqlservername
```

Remove the lines under the finalizer, and then delete the sql server instance:

`$ k delete sqlserver $sqlservername`
```bash
k delete sqlserver $sqlservername
```

The following message should appear:

Expand Down

0 comments on commit 9354215

Please sign in to comment.