diff --git a/src/examples/netology.jsonnet b/src/examples/netology.jsonnet new file mode 100644 index 0000000..49ca8b4 --- /dev/null +++ b/src/examples/netology.jsonnet @@ -0,0 +1,20 @@ +# Денис Савосин +local k = (import 'ksonnet-util/kausal.libsonnet'); + +{ + _config:: { + name: 'change_me', + namespace: std.extVar('qbec.io/defaultNs'), + + container: { + requests: { cpu: '10m', memory: '100Mi' }, + limits: { cpu: '200m', memory: '200Mi' }, + }, + }, + + local serviceAccount = k.core.v1.serviceAccount, + + serviceAccount: + serviceAccount.new($._config.name) + + serviceAccount.mixin.metadata.withNamespace($._config.namespace), +} \ No newline at end of file diff --git a/src/examples/netology.sh b/src/examples/netology.sh new file mode 100644 index 0000000..ce63c6d --- /dev/null +++ b/src/examples/netology.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +STUDENT_NAME="your name" + +echo "my name in ${STUDENT_NAME}" \ No newline at end of file diff --git a/src/examples/netology.tf b/src/examples/netology.tf new file mode 100644 index 0000000..ac63a3a --- /dev/null +++ b/src/examples/netology.tf @@ -0,0 +1,10 @@ +provider "aws" { + region = "us-west-2" + version = "~> 2.18" +} + +resource "aws_cloudwatch_log_group" "lambda" { + name = "/aws/lambda/netology" + + retention_in_days = 1 +} \ No newline at end of file diff --git a/src/examples/netology.yaml b/src/examples/netology.yaml new file mode 100644 index 0000000..75a56c4 --- /dev/null +++ b/src/examples/netology.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: myservice + namespace: default +spec: + ports: + - name: web + port: 9093 + targetPort: 9093 + selector: {} \ No newline at end of file diff --git a/src/homework/1.1/task1.png b/src/homework/1.1/task1.png new file mode 100644 index 0000000..53d0883 Binary files /dev/null and b/src/homework/1.1/task1.png differ diff --git a/src/homework/1.1/task2.md b/src/homework/1.1/task2.md new file mode 100644 index 0000000..418ce29 --- /dev/null +++ b/src/homework/1.1/task2.md @@ -0,0 +1,10 @@ +## Задание №2 - Описание жизненного цикла задачи + +1. Постановка задачи (менеджер) +2. Оценка задачи (менеджер + разработчик) +3. Решение задачи (разработчик) +4. Ревью изменений (девопс + разработчик) +5. Тестирование изменений (тестировщик) +6. Сбор новой версии (девопс + менеджер) +7. Деплой новой версии (девопс) +8. Мониторинг после деплоя (девопс + разработчик) \ No newline at end of file