Update Helm chart
This commit is contained in:
Родитель
8768406a72
Коммит
63284812a7
|
@ -1,5 +1,4 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: "1.0"
|
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
name: contosomaintenance
|
name: contosomaintenance
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|
|
@ -14,8 +14,8 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: contosomaintenance-bot
|
app: contosomaintenance-bot
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: acr-credentials
|
- name: acr-credentials
|
||||||
containers:
|
containers:
|
||||||
- name: contosomaintenance-bot
|
- name: contosomaintenance-bot
|
||||||
image: {{ .Values.containerRegistry }}/{{ .Values.botImageName }}:{{ .Values.botImageTag }}
|
image: {{ .Values.containerRegistry }}/{{ .Values.botImageName }}:{{ .Values.botImageTag }}
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
containerRegistry: __ContainerRegistry__
|
# containerRegistry: __ContainerRegistry__
|
||||||
apiImageName: __ApiImageName__
|
# apiImageName: __ApiImageName__
|
||||||
apiImageTag: __ApiImageTag__
|
# apiImageTag: __ApiImageTag__
|
||||||
botImageName: __BotImageName__
|
# botImageName: __BotImageName__
|
||||||
botImageTag: __BotImageTag__
|
# botImageTag: __BotImageTag__
|
||||||
|
containerRegistry: rothiedemoregistry.azurecr.io
|
||||||
|
apiImageName: rothiedemoregistry.azurecr.io/contosomaintenance-api
|
||||||
|
apiImageTag: latest
|
||||||
|
botImageName: rothiedemoregistry.azurecr.io/contosomaintenance-bot
|
||||||
|
botImageTag: latest
|
|
@ -1,19 +1,19 @@
|
||||||
resource "azurerm_kubernetes_cluster" "workshop" {
|
resource "azurerm_kubernetes_cluster" "workshop" {
|
||||||
name = "${var.name}aks"
|
name = "${var.prefix}${var.resource_name}aks"
|
||||||
location = "${azurerm_resource_group.test.location}"
|
location = "${azurerm_resource_group.workshop.location}"
|
||||||
resource_group_name = "${azurerm_resource_group.test.name}"
|
resource_group_name = "${azurerm_resource_group.workshop.name}"
|
||||||
dns_prefix = "${var.name}aks"
|
dns_prefix = "${var.prefix}${var.resource_name}aks"
|
||||||
|
|
||||||
agent_pool_profile {
|
agent_pool_profile {
|
||||||
name = "default"
|
name = "default"
|
||||||
count = 3
|
count = 3
|
||||||
vm_size = "Standard_B2s"
|
vm_size = "Standard_B2s"
|
||||||
os_type = "Linux"
|
os_type = "Linux"
|
||||||
os_disk_size_gb = 20
|
os_disk_size_gb = 30
|
||||||
}
|
}
|
||||||
|
|
||||||
service_principal {
|
service_principal {
|
||||||
client_id = "{var.sp_client_id}"
|
client_id = "${var.sp_client_id}"
|
||||||
client_secret = "{var.sp_client_secret}"
|
client_secret = "${var.sp_client_secret}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,14 +6,14 @@ provider "azurerm" {
|
||||||
# Follow the official guide, to setup the Storage Account:
|
# Follow the official guide, to setup the Storage Account:
|
||||||
# https://docs.microsoft.com/en-us/azure/terraform/terraform-backend
|
# https://docs.microsoft.com/en-us/azure/terraform/terraform-backend
|
||||||
|
|
||||||
terraform {
|
# terraform {
|
||||||
backend "azurerm" {
|
# backend "azurerm" {
|
||||||
storage_account_name = "__TFSTATE-STORAGE-ACCOUNT-NAME__" # <-- Replace this with your values
|
# storage_account_name = "__TFSTATE-STORAGE-ACCOUNT-NAME__" # <-- Replace this with your values
|
||||||
container_name = "__TFSTATE-CONTAINER-NAME__" # <-- Replace this with your values
|
# container_name = "__TFSTATE-CONTAINER-NAME__" # <-- Replace this with your values
|
||||||
access_key = "__TFSTATE-STORAGE-ACCESS-KEY__" # <-- Replace this with your values
|
# access_key = "__TFSTATE-STORAGE-ACCESS-KEY__" # <-- Replace this with your values
|
||||||
key = "terraform.tfstate"
|
# key = "terraform.tfstate"
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
resource "azurerm_resource_group" "workshop" {
|
resource "azurerm_resource_group" "workshop" {
|
||||||
name = "${var.prefix}${var.resource_name}workshop"
|
name = "${var.prefix}${var.resource_name}workshop"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче