Skip to content

Commit

Permalink
Improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shestera committed Oct 11, 2024
1 parent 7e437cc commit e34c1a4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 30 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
minikube start
```


## Добавление токена авторизации GitHub

[Получение токена](https://github.com/settings/tokens/new)
Expand All @@ -17,7 +16,6 @@ minikube start
kubectl create secret docker-registry ghcr --docker-server=https://ghcr.io --docker-username=<github_username> --docker-password=<github_token> -n default
```


## Установка API GW kusk

[Install Kusk CLI](https://docs.kusk.io/getting-started/install-kusk-cli)
Expand All @@ -26,12 +24,25 @@ kubectl create secret docker-registry ghcr --docker-server=https://ghcr.io --doc
kusk cluster install
```

## Смена адреса образа в helm chart

После того как вы сделали форк репозитория и у вас в репозитории отработал GitHub Action. Вам нужно получить адрес образа <https://github.com/><github_username>/architecture-sprint-3/pkgs/container/architecture-sprint-3

Он выглядит таким образом
```ghcr.io/<github_username>/architecture-sprint-3:latest```

Замените адрес образа в файле `helm/smart-home-monolith/values.yaml` на полученный файл:

```yaml
image:
repository: ghcr.io/<github_username>/architecture-sprint-3
tag: latest
```
## Настройка terraform
[Установите Terraform](https://yandex.cloud/ru/docs/tutorials/infrastructure-management/terraform-quickstart#install-terraform)

Создайте файл ~/.terraformrc
```hcl
Expand All @@ -46,10 +57,11 @@ provider_installation {
}
```

## Применяем terraform конфигурацию
## Применяем terraform конфигурацию

```bash
cd terraform
terraform init
terraform apply
```

Expand All @@ -66,7 +78,6 @@ kubectl port-forward svc/kusk-gateway-envoy-fleet -n kusk-system 8080:80
curl localhost:8080/hello
```


## Delete minikube

```bash
Expand Down
17 changes: 9 additions & 8 deletions charts/smart-home-monolith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: latest

imagePullSecrets:
- name: ghcr
imagePullSecrets: []

nameOverride: ""
fullnameOverride: ""
Expand All @@ -30,10 +29,12 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

podSecurityContext: {}
podSecurityContext:
{}
# fsGroup: 2000

securityContext: {}
securityContext:
{}
# capabilities:
# drop:
# - ALL
Expand All @@ -48,7 +49,8 @@ service:
ingress:
enabled: false
className: ""
annotations: {}
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
Expand All @@ -61,7 +63,8 @@ ingress:
# hosts:
# - chart-example.local

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand All @@ -73,7 +76,6 @@ resources: {}
# cpu: 100m
# memory: 128Mi


autoscaling:
enabled: false
minReplicas: 1
Expand All @@ -100,7 +102,6 @@ tolerations: []

affinity: {}


postgresql:
enabled: true
auth:
Expand Down
17 changes: 0 additions & 17 deletions terraform/.terraform.lock.hcl

This file was deleted.

0 comments on commit e34c1a4

Please sign in to comment.