Skip to content

Commit 407814e

Browse files
committed
update
1 parent d9faf6e commit 407814e

File tree

5 files changed

+92
-8
lines changed

5 files changed

+92
-8
lines changed

src/Cloud/aws/opensearch.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@
44

55
```sh
66
# 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
89

910
# 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
1123
```
1224

1325
## Specific cases
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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/

src/Infrastructure/kubectl/installation-k8s.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ $ minikube version
1818
$ minikube start
1919
```
2020

21-
## Helm
22-
23-
```sh
24-
$ brew install kubernetes-helm
25-
```
26-
2721
## References
2822

2923
* https://labs.play-with-k8s.com/

src/Infrastructure/terraform/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ $ terraform -help
1616
$ terraform -version
1717
```
1818

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+
1934
### Plugin
2035

2136
```sh

0 commit comments

Comments
 (0)