From 736ddce13d641cdbc92ba4c3a9d94ab381987419 Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Wed, 3 Aug 2022 20:47:24 -0300 Subject: [PATCH 1/9] Create manifest-pod.yaml --- manifest-pod.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 manifest-pod.yaml diff --git a/manifest-pod.yaml b/manifest-pod.yaml new file mode 100644 index 000000000..3bb698e3b --- /dev/null +++ b/manifest-pod.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: pod +metadata: + name: testpodblue # no labels +spec: + containers: + name: appweb + image: fabricioveronez/web-page:blue + ports: + conteinerPort: 80 + +--- # --- permite declarar objetos num mesmo arquivo + +apiVersion: v1 +kind: pod +metadata: + name: testpodgreen + labels: # with labels + app: green +spec: + containers: + name: appweb + image: fabricioveronez/web-page:green + ports: + conteinerPort: 80 From 88ccaca8e0ed71a336a6a1a75766cef2a3df33c7 Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Wed, 3 Aug 2022 20:48:49 -0300 Subject: [PATCH 2/9] Create replicaset.yaml --- replicaset.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 replicaset.yaml diff --git a/replicaset.yaml b/replicaset.yaml new file mode 100644 index 000000000..eb9d0e944 --- /dev/null +++ b/replicaset.yaml @@ -0,0 +1,23 @@ +# pod template & replics -> replicas desejadas == replicas corrente +#assegurar (resilieñcia, escalabilidade) + +apiVersions: apps/v1 +kind: ReplicaSet +metadata: + name: testreplicaset +spec: + replicas: 3 #number replics + selector: + matchLabels: + app: appweb + template: + metadata: + labels: # name ramdon + app: appweb + spec: + containers: + name: appweb + #image: fabricioveronez/web-page:blue + image: fabricioveronez/web-page:green + ports: + conteinerPort: 80 From c826d404449313c6b6cc6ba89eb1cc2fe99e72c9 Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Wed, 3 Aug 2022 20:50:09 -0300 Subject: [PATCH 3/9] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 157eac3c8..1d649668e 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# kube-news \ No newline at end of file +# kube-news + +### Repositório base para o cumprimento dos desafios do Iniciativa DevOps✅ From 727acf1e578b3d576ca34ef04b55a3149a09ab36 Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Wed, 3 Aug 2022 21:04:10 -0300 Subject: [PATCH 4/9] Create deployment.yaml --- Deployment/deployment.yaml | 76 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Deployment/deployment.yaml diff --git a/Deployment/deployment.yaml b/Deployment/deployment.yaml new file mode 100644 index 000000000..4b442f37d --- /dev/null +++ b/Deployment/deployment.yaml @@ -0,0 +1,76 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: postgre +spec: + selector: + matchLabels: + app: postgre + template: + metadata: + labels: + app: postgre + spec: + containers: + - name: postgre + image: postgres:14.3 + ports: + - containerPort: 5432 + env: + - name: DB_PASSWORD + value: "PASS" + - name: DB_USERNAME + value: "TESTUSER" + - name: DB_DATABASE + value: "KUBE-NEWS" +--- +apiVersion: v1 +kind: Service +metadata: + name: postgre +spec: + selector: + app: postgre + ports: + - port: 5432 + nodePort: 5432 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: testedp +spec: + replicas: 3 + selector: + matchLabels: + app: testedp + template: + metadata: + labels: + app: testedp + spec: + containers: + - name: kubenews + image: IMAGE #fabricioveronez/kube-news:v2 + env: + - name: DB_DATABASE + value: "KUBE-NEWS" + - name: DB_USERNAME + value: "TESTUSER" + - name: DB_PASSWORD + value: "PASS" + - name: DB_HOST + value: "postgre" +--- +apiVersion: v1 +kind: Service +metadata: + name: kube-news +spec: + selector: + app: kubenews + ports: + - port: 80 + targetPort: 8080 + nodePort: 30000 + type: LoadBalancer From 2c0d2000e2ea8229dc07dca3361b0daac7bec15e Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Wed, 3 Aug 2022 21:06:29 -0300 Subject: [PATCH 5/9] Create Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..e894d03c3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node +WORKDIR /app +COPY ./package*.json ./ +RUN npm install +COPY . . +EXPOSE 8080 +CMD ["node", "server.js"] From 06e23448053cd3f4a38cc30d4d40163d4d3631d4 Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Fri, 5 Aug 2022 01:02:08 -0300 Subject: [PATCH 6/9] Terraform --- Terraform/main.tf | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Terraform/main.tf diff --git a/Terraform/main.tf b/Terraform/main.tf new file mode 100644 index 000000000..0918835b5 --- /dev/null +++ b/Terraform/main.tf @@ -0,0 +1,47 @@ +terraform { + required_providers { + digitalocean = { + source = "digitalocean/digitalocean" + version = "~> 2.0" + } + } +} + +provider "digitalocean" { + token = "https://youtu.be/K7wDMwJrv-k" +} + +resource "digitalocean_kubernetes_cluster" "k8s_iniciativa" { + name = var.k8s_name + region = var.region + # Grab the latest version slug from `doctl kubernetes options versions` + version = "1.23.9-do.0" + + node_pool { + name = "default" + size = "s-2vcpu-2gb" + node_count = 2 + } +} + +resource "digitalocean_kubernetes_node_pool" "node_premium" { + cluster_id = digitalocean_kubernetes_cluster.k8s_iniciativa.id + + name = "premium" + size = "s-4vcpu-8gb" + node_count = 1 + +} + +variable "https://youtu.be/K7wDMwJrv-k" {} +variable "k8s_name" {} +variable "region" {} + +output "kube_endpoint" { + value = digitalocean_kubernetes_cluster.k8s_iniciativa.endpoint +} + +resource "local_file" "kube_config" { + content = digitalocean_kubernetes_cluster.k8s_iniciativa.kube_config.0.raw_config + filename = "kube_config.yaml" +} From 5a2992bcde8564809b771b4580fec55e1afc7445 Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Fri, 5 Aug 2022 01:11:38 -0300 Subject: [PATCH 7/9] Terraform --- Terraform/terraform.tfstate.backup | 172 +++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100644 Terraform/terraform.tfstate.backup diff --git a/Terraform/terraform.tfstate.backup b/Terraform/terraform.tfstate.backup new file mode 100644 index 000000000..356dfee07 --- /dev/null +++ b/Terraform/terraform.tfstate.backup @@ -0,0 +1,172 @@ +{ + "version": 4, + "terraform_version": "1.0.0", + "serial": 17, + "lineage": "b99c2e81-b2e6-445b-badc-5da7f37e80cb", + "outputs": { + "kube_endpoint": { + "value": "https://f8bd4479-ebb0-4af7-b45f-2e271fc41aad.k8s.ondigitalocean.com", + "type": "string" + } + }, + "resources": [ + { + "mode": "managed", + "type": "digitalocean_kubernetes_cluster", + "name": "k8s_iniciativa", + "provider": "provider[\"registry.terraform.io/digitalocean/digitalocean\"]", + "instances": [ + { + "schema_version": 3, + "attributes": { + "auto_upgrade": false, + "cluster_subnet": "10.244.0.0/16", + "created_at": "2022-08-03 22:51:12 +0000 UTC", + "endpoint": "https://f8bd4479-ebb0-4af7-b45f-2e271fc41aad.k8s.ondigitalocean.com", + "ha": false, + "id": "f8bd4479-ebb0-4af7-b45f-2e271fc41aad", + "ipv4_address": "", + "kube_config": [ + { + "client_certificate": "", + "client_key": "", + "cluster_ca_certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1n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WenlTaVhrYkRFWEV5Tks2d0hvRUdNN1NwVQphVFZ5NTVid1poNTFZazc3cjBkbDJYTkFjS1lCTFJVdDJ0a2NwcDdPZWJLTDlwUisza2VpaENXVWlKUm1rNVVrCmg1UVJIOENiNmVMbU5rZUlFR1BRUXUvR0MwYzlnTEtzakFKY3N3L05ScDZORUZmMFI3bjM1K2hicUxLRmYrTEYKVTZFb0p4Q05vd05OemZ3WXZQYlRCTWlBUFF0Sk9QOHNIRUpSY2k3STNaZnZDbXQxZ2JVWkxST3V0dz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K", + "expires_at": "2022-08-10T22:56:42Z", + "host": "https://f8bd4479-ebb0-4af7-b45f-2e271fc41aad.k8s.ondigitalocean.com", + "raw_config": "apiVersion: v1\nkind: Config\nclusters:\n- cluster:\n certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlNakE0TURNeQpNalV4TVRWYUZ3MDBNakE0TURNeU1qVXhNVFZhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFDMGhRZHVZVTlvOGxVNitJMHlvanhtK2h3a0JYa2F2c05UREw2aUlXTTZBdlpHZTZaZQp1OVRMdmdBS0ppUG5WTm9KaXV5UHBwVmpvRDMxSzVSOEwzTXNhNDZCd1NoWDl3V0JJdGRUN0N3V3p3OWtGcHFvCjVEYzloRG9EbVEwN1VWU09IL09jYVRoRDFqaWZnbnJxQ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danielrosas\n user: do-nyc1-k8s-iniciativa-danielrosas-admin\n name: do-nyc1-k8s-iniciativa-danielrosas\ncurrent-context: do-nyc1-k8s-iniciativa-danielrosas\nusers:\n- name: do-nyc1-k8s-iniciativa-danielrosas-admin\n user:\n token: dop_v1_3aa9be899775fc137b5103366190edfe4e9e4ea6d0bda687719348b65a0b0075\n", + "token": "dop_v1_3aa9be899775fc137b5103366190edfe4e9e4ea6d0bda687719348b65a0b0075" + } + ], + "maintenance_policy": [ + { + "day": "any", + "duration": "4h0m0s", + "start_time": "22:00" + } + ], + "name": "k8s-iniciativa-danielrosas", + "node_pool": [ + { + "actual_node_count": 2, + "auto_scale": false, + "id": "40d4d2cb-a173-4264-8975-d85d9cb0aa3a", + "labels": {}, + "max_nodes": 0, + "min_nodes": 0, + "name": "default", + "node_count": 2, + "nodes": [ + { + "created_at": "2022-08-03 22:51:12 +0000 UTC", + "droplet_id": "311118537", + "id": "a547e779-36aa-4f21-ae86-a00e6e96dddb", + "name": "default-7nqdk", + "status": "running", + "updated_at": "2022-08-03 22:53:16 +0000 UTC" + }, + { + "created_at": "2022-08-03 23:29:16 +0000 UTC", + "droplet_id": "311121964", + "id": "d62338ef-ae14-4004-9b8f-9a992ca69263", + "name": "default-7nfxx", + "status": "running", + "updated_at": "2022-08-03 23:29:56 +0000 UTC" + } + ], + "size": "s-2vcpu-2gb", + "tags": [], + "taint": [] + } + ], + "region": "nyc1", + "service_subnet": "10.245.0.0/16", + "status": "degraded", + "surge_upgrade": true, + "tags": [], + "timeouts": null, + "updated_at": "2022-08-03 23:31:54 +0000 UTC", + "urn": "do:kubernetes:f8bd4479-ebb0-4af7-b45f-2e271fc41aad", + "version": "1.23.9-do.0", + "vpc_uuid": "d0707df9-a29e-4301-9497-fe20fb9a6a28" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIzIn0=" + } + ] + }, + { + "mode": "managed", + "type": "digitalocean_kubernetes_node_pool", + "name": "node_premium", + "provider": "provider[\"registry.terraform.io/digitalocean/digitalocean\"]", + "instances": [ + { + "schema_version": 1, + "attributes": { + "actual_node_count": 1, + "auto_scale": false, + "cluster_id": "f8bd4479-ebb0-4af7-b45f-2e271fc41aad", + "id": "77821775-1e0d-4df6-b52f-6183ccee365e", + "labels": {}, + "max_nodes": 0, + "min_nodes": 0, + "name": "premium", + "node_count": 1, + "nodes": [ + { + "created_at": "2022-08-03 23:14:43 +0000 UTC", + "droplet_id": "311120601", + "id": "452b5498-2f88-42a0-818e-b0b78b40308c", + "name": "premium-7nfui", + "status": "running", + "updated_at": "2022-08-03 23:15:25 +0000 UTC" + } + ], + "size": "s-4vcpu-8gb", + "tags": [], + "taint": [], + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", + "dependencies": [ + "digitalocean_kubernetes_cluster.k8s_iniciativa" + ] + } + ] + }, + { + "mode": "managed", + "type": "local_file", + "name": "kube_config", + "provider": "provider[\"registry.terraform.io/hashicorp/local\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "content": "apiVersion: v1\nkind: Config\nclusters:\n- cluster:\n certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0lDQm5Vd0RRWUpLb1pJaHZjTkFRRUxCUUF3TXpFVk1CTUdBMVVFQ2hNTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dBWURWUVFERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHlNakE0TURNeQpNalV4TVRWYUZ3MDBNakE0TUR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TkFjS1lCTFJVdDJ0a2NwcDdPZWJLTDlwUisza2VpaENXVWlKUm1rNVVrCmg1UVJIOENiNmVMbU5rZUlFR1BRUXUvR0MwYzlnTEtzakFKY3N3L05ScDZORUZmMFI3bjM1K2hicUxLRmYrTEYKVTZFb0p4Q05vd05OemZ3WXZQYlRCTWlBUFF0Sk9QOHNIRUpSY2k3STNaZnZDbXQxZ2JVWkxST3V0dz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K\n server: https://f8bd4479-ebb0-4af7-b45f-2e271fc41aad.k8s.ondigitalocean.com\n name: do-nyc1-k8s-iniciativa-danielrosas\ncontexts:\n- context:\n cluster: do-nyc1-k8s-iniciativa-danielrosas\n user: do-nyc1-k8s-iniciativa-danielrosas-admin\n name: do-nyc1-k8s-iniciativa-danielrosas\ncurrent-context: do-nyc1-k8s-iniciativa-danielrosas\nusers:\n- name: do-nyc1-k8s-iniciativa-danielrosas-admin\n user:\n token: dop_v1_3aa9be899775fc137b5103366190edfe4e9e4ea6d0bda687719348b65a0b0075\n", + "content_base64": null, + "directory_permission": "0777", + "file_permission": "0777", + "filename": "kube_config.yaml", + "id": "d8fa0ef78902f6200ff0328835ec98e43fd62cf5", + "sensitive_content": null, + "source": null + }, + "sensitive_attributes": [ + [ + { + "type": "get_attr", + "value": "content" + } + ] + ], + "private": "bnVsbA==", + "dependencies": [ + "digitalocean_kubernetes_cluster.k8s_iniciativa" + ] + } + ] + } + ] +} From a7dc56b71bf9ac11dcf19f407c725adb8003996b Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Fri, 5 Aug 2022 01:13:07 -0300 Subject: [PATCH 8/9] Terraform --- Terraform/terraform.tfstate | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Terraform/terraform.tfstate diff --git a/Terraform/terraform.tfstate b/Terraform/terraform.tfstate new file mode 100644 index 000000000..54bbbc3e0 --- /dev/null +++ b/Terraform/terraform.tfstate @@ -0,0 +1,8 @@ +{ + "version": 4, + "terraform_version": "1.0.0", + "serial": 21, + "lineage": "b99c2e81-b2e6-445b-badc-5da7f37e80cb", + "outputs": {}, + "resources": [] +} From e21399473f6150a423c0b4c10623647168f7832e Mon Sep 17 00:00:00 2001 From: Michael Douglas <74698250+douglasmd3@users.noreply.github.com> Date: Fri, 5 Aug 2022 01:16:24 -0300 Subject: [PATCH 9/9] Terraform --- Terraform/.terraform.lock.hcl | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Terraform/.terraform.lock.hcl diff --git a/Terraform/.terraform.lock.hcl b/Terraform/.terraform.lock.hcl new file mode 100644 index 000000000..5136167aa --- /dev/null +++ b/Terraform/.terraform.lock.hcl @@ -0,0 +1,43 @@ +rovider "registry.terraform.io/digitalocean/digitalocean" { + version = "2.21.0" + constraints = "~> 2.0" + hashes = [ + "h1:5/rQNY4d9WvCI+flyEJuUei+rOB53R8UR8GnXslUgTY=", + "zh:122a4e7aa7315be52c484fa9b8e8681a42ad17e1f892ca17d6aeb575902df078", + "zh:192f9428d965d1a5d2629e6ec1c238c6815601fbc909f905bf94ff9359ba88f6", + "zh:20d88900cd24e9c05e2addeeb9fd5df285fba928d5f9981128352a6089fcec88", + "zh:30eb650c04e4c6ab0b06549a345dacdfaf5597f24e916ed82cad798a546783e6", + "zh:33864a8bc3f02507397d36bc5bf21ad1be11c188d2d0d45fe19063d0f949ff49", + "zh:34431ea6fe25e734ed851595f622ff848c325fbf2f799d85a6cfcadedc1e9063", + "zh:4be9ee1d632352504541d3629ce583e2b89ab9e5eb6a9d6547d37eb1c02dc341", + "h1:3bH88Z7tlWvcoubm6hQUBk3s9bSIJC8bVHQz749B87Ece583e2b89ab9e5eb6a9d", + "zh:04f0978bb3e052707b8e82e46780c371ac1c66b689b4a23bbc2f58865ab7d5c0", + "zh:6484f1b3e9e3771eb7cc8e8bab8b35f939a55d550b3f4fb2ab141a24269ee6aa", + "zh:78a56d59a013cb0f7eb1c92815d6eb5cf07f8b5f0ae20b96d049e73db915b238", + "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", + "zh:8aa9950f4c4db37239bcb62e19910c49e47043f6c8587e5b0396619923657797", + "zh:996beea85f9084a725ff0e6473a4594deb5266727c5f56e9c1c7c62ded6addbb", + ] +} + +provider "registry.terraform.io/hashicorp/local" { + version = "2.2.3" + hashes = [ + + "zh:9a7ef7a21f48fabfd145b2e2a4240ca57517ad155017e86a30860d7c0c109de3", + "zh:a63e70ac052aa25120113bcddd50c1f3cfe61f681a93a50cea5595a4b2cc3e1c", + "zh:a6e8d46f94108e049ad85dbed60354236dc0b9b5ec8eabe01c4580280a43d3b8", + "zh:bb112ce7efbfcfa0e65ed97fa245ef348e0fd5bfa5a7e4ab2091a9bd469f0a9e", + "zh:d7bec0da5c094c6955efed100f3fe22fca8866859f87c025be1760feb174d6d9", + "zh:fb9f271b72094d07cef8154cd3d50e9aa818a0ea39130bc193132ad7b23076fd", + "zh:723436531aaec6a7d651b15857194993baee6e59d7b1b8c22176ee44065de905", + "zh:7305edf6305f3c0ba945509e679655d2b7c082f21723e2bd415c8f1f161a1a97", + "zh:acd2124cb1c604351f9482d47ab9a16a1887b8d9df049c8da0d0e3791326404d", + "zh:af6745bb9096a52e2570a758b55fd0a746b70d4bb04ba09ee33ab7dd63e87337", + "zh:b676c58bbfd08bd3960ed78740a23ed17d959ac0348cab08ad34aaeaff952c7d", + "zh:bfa739ac5fea3f89d9c403be91179729490370ed19b735070c9659e9265718aa", + "zh:c1d5a0d0995fddf0df03f1da49de9531ab45138cf0b24e67c45f23a38ba91c33", + "zh:cac52e76829a1fc01e165c4a66854b94b2813a21d392f6bddfacbba7edfd4f77", + "zh:d55cdd70b89e7e9cd674c0f39cdef93dd0ace1d361bbae65583df9defb7d4725", + ] +}