You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: infrastructure/README.md
+25-9Lines changed: 25 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -97,23 +97,39 @@ the services on kubernetes, which is done by this plan.
97
97
98
98
#### Github Actions
99
99
100
-
As part of this infrastructure, Github Actions are used to automatically build and push Docker images to Azure ACR, and
101
-
to redeploy Kubernetes pods once that happens. Said Github Actions depend on specific Github Secrets, that are listed below
102
-
for reference. Said secrets are automatically created by the `base` Terraform project, and do not need to be created manually.
100
+
As part of this infrastructure, Github Actions are used to automatically build
101
+
and push Docker images to Azure ACR, and to redeploy Kubernetes pods once that
102
+
happens. Said Github Actions depend on specific Github Secrets and Variables,
103
+
that are listed below for reference.
104
+
105
+
Secrets and variables listed below are automatically created by the `base`
106
+
Terraform project, and do not need to be created manually. Their value often
107
+
depends on the outputs of other Terraform modules, so configuring all these via
108
+
Terraform (and avoiding to change them manually within the settings of the
109
+
relevant GitHub repository) guarantees that values available to GitHub actions
110
+
are always coherent with the state of the terraformed infrastructure.
111
+
112
+
For example, AKS-related variables depend on settings for the cluster name as
113
+
well as the hostname of the AKS API server, which is assigned by Azure upon
114
+
creation of an AKS cluster.
115
+
116
+
##### Secrets
103
117
104
-
-`AZURE_AKS_CLUSTER_NAME`: The name of the AKS cluster. Get from `Base`'s `k8s_cluster_name`
105
-
-`AZURE_AKS_HOST`: The AKS cluster hostname (without port or protocol). Get from `Base`'s `k8s_cluster_private_fqdn`
106
118
-`AZURE_CLIENT_ID`: The hostname for the Azure ACT. Get from `Base`'s `container_registry_client_id`
107
-
-`AZURE_RESOURCE_GROUP`: The AKS Resource Group name. Specified by you when setting up the infrastructure.
108
119
-`AZURE_SUBSCRIPTION_ID`: The Azure Subscription Id. Get from `Base`'s `azure_subscription_id`
109
120
-`AZURE_TENANT_ID`: The Azure Tenant Id. Get from `Base`'s `azure_tenant_id`
121
+
-`BASTION_SSH_PRIVATE_KEY`: The ssh private key to access the bastion host. Get it by connection to the bastion host using SSH, and generating a new public/private SSH key pair.
122
+
-`REGISTRY_PASSWORD`: The password to access the Azure. Get from `Base`'s `container_registry_password`
123
+
124
+
##### Variables
125
+
126
+
-`AZURE_AKS_CLUSTER_NAME`: The name of the AKS cluster. Get from `Base`'s `k8s_cluster_name`
127
+
-`AZURE_AKS_HOST`: The AKS cluster hostname (without port or protocol). Get from `Base`'s `k8s_cluster_private_fqdn`
128
+
-`AZURE_RESOURCE_GROUP`: The AKS Resource Group name. Specified by you when setting up the infrastructure.
110
129
-`BASTION_HOST`: The hostname for the bastion machine. Get from `Base`'s `bastion_hostname`
111
130
-`BASTION_USER`: By default this will be `ubuntu` if using the initial user created on bastion host instantiation. It is configurable in case infrastructure admins wish to configure a different user on the bastion host or the default distro user is renamed.
112
-
-`BASTION_SSH_PRIVATE_KEY`: The ssh private key to access the bastion host. Get it by connection to the bastion host using SSH, and generating a new public/private SSH key pair.
113
131
-`REGISTRY_LOGIN_SERVER`: The hostname for the Azure ACR. Get from `Base`'s `container_registry_hostname`
114
132
-`REGISTRY_USERNAME`: The username for the Azure ACR. Get from `Base`'s `container_registry_client_id`
115
-
-`REGISTRY_PASSWORD`: The password to access the Azure. Get from `Base`'s `container_registry_password`
116
-
-`BASTION_SSH_PRIVATE_KEY`: The ssh private key to access the bastion host. Get it by connection to the bastion host using SSH, and generating a new public/private SSH key pair.
117
133
118
134
Additional Github Actions Secrets are needed, as required by the [frontend application](../app/README.md#env-variables)
119
135
and used by the corresponding [Github workflow](../.github/workflows/publish-marxan-docker-images.yml) that builds
0 commit comments