File tree Expand file tree Collapse file tree 5 files changed +92
-8
lines changed Expand file tree Collapse file tree 5 files changed +92
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
``` sh
6
6
# Create domain
7
- aws --endpoint-url=http://localhost:4566 opensearch create-domain --domain-name search
7
+ aws --endpoint-url=http://localhost:4566 opensearch create-domain --domain-name < domain_name>
8
+ # Domain will be available at http://localhost:9200/_<domain_name> in browser
8
9
9
10
# Describe domain
10
- aws --endpoint-url=http://localhost:4566 opensearch describe-domain --domain-name search
11
+ aws --endpoint-url=http://localhost:4566 opensearch describe-domain --domain-name < domain_name>
12
+
13
+ # Describe domain and check specific value (status if cluster)
14
+ aws --endpoint-url=http://localhost:4566 opensearch describe-domain --domain-name < domain_name> | jq " .DomainStatus.Processing"
15
+
16
+ # Check cluster health and verify it's up and running
17
+ curl http://localhost:9200/_cluster/health | jq .
18
+
19
+ # Create an index
20
+ curl -X PUT localhost:9200/< index_name>
21
+ curl -X PUT localhost:9200/new-domain
22
+ # Index will be available at the same url
11
23
```
12
24
13
25
## Specific cases
Original file line number Diff line number Diff line change
1
+ # k8s Installation
2
+
3
+ ## Installation
4
+
5
+ ``` sh
6
+ brew install helm
7
+ ```
8
+
9
+ ## Install plugin
10
+
11
+ ``` sh
12
+ # Install unittest plugin
13
+ helm plugin install https://github.com/quintush/helm-unittest
14
+
15
+ # List installed plugins
16
+ helm plugin list
17
+ ```
18
+
19
+ ## Working with Helm template
20
+
21
+ ``` sh
22
+ # Render helm template locally
23
+ helm template < project>
24
+
25
+ # Create a zip file of the helm chart
26
+ helm package
27
+
28
+ # Dry run
29
+ helm install --generate-name --dry-run --debug --values ./test-values.yaml < zip_file_name> .tgz
30
+ ```
31
+
32
+ ## Unit test
33
+
34
+ ``` sh
35
+ # Run unit tests
36
+ helm unittest < project>
37
+
38
+ # Override value during test run
39
+ # TODO: This doesn't work yet
40
+ helm unittest < project>> --set helmTests.enabled=true
41
+
42
+ # Run debug mode
43
+ helm unittest < project> --debug
44
+ ```
45
+
46
+ ## Install linter
47
+
48
+ ``` sh
49
+ # Install linter
50
+ brew install yamllint
51
+
52
+ # Verify version
53
+ yamllint --version
54
+
55
+ # Lint a file
56
+ yamllint < project> /templates/tests/< test_file> .yaml
57
+ ```
58
+
59
+ ## References
60
+
61
+ * https://labs.play-with-k8s.com/
62
+ * https://www.katacoda.com/courses/kubernetes/playground
63
+ * https://www.katacoda.com/
Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ $ minikube version
18
18
$ minikube start
19
19
```
20
20
21
- ## Helm
22
-
23
- ``` sh
24
- $ brew install kubernetes-helm
25
- ```
26
-
27
21
## References
28
22
29
23
* https://labs.play-with-k8s.com/
File renamed without changes.
Original file line number Diff line number Diff line change @@ -16,6 +16,21 @@ $ terraform -help
16
16
$ terraform -version
17
17
```
18
18
19
+ ### Version Manager
20
+
21
+ ` tfenv ` , a Terraform version manager, to install a specific version of Terraform.
22
+
23
+ ``` sh
24
+ # Install tfenv
25
+ $ brew install tfenv
26
+
27
+ # Install Terraform 1.4.6 using tfenv:
28
+ $ tfenv install 1.4.6
29
+
30
+ # Set Terraform 1.4.6 as the global version:
31
+ $ tfenv use 1.4.6
32
+ ```
33
+
19
34
### Plugin
20
35
21
36
``` sh
You can’t perform that action at this time.
0 commit comments