File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,31 @@ your terraform and gitops repositories.
99In this document we will go through how to use XKF on GitHub focusing
1010on Infrastructure As Code (IAC) using Terraform.
1111
12+ ## GitOps promotion
13+
14+ In XKF we use the cloud providers container registry to store custom application images.
15+
16+ ### Azure
17+
18+ Assuming that you are using XKF to setup your AKS cluster it will automatically create a SP that you can use
19+ to send images to ACR.
20+ Depending on your input values it will be called something like ` sp-rg-xks-dev-tenant-contributor ` .
21+ That SP is added to a group that have ACR push access.
22+
23+ The generated SP stores it's secrets in a key vault ` kv-dev-we-core-1337 ` with the SP name.
24+ In it you will find all the secrets you need.
25+
26+ TODO write instructions how to extract the AZ key vault secret and push to GitHub.
27+
28+ Create [ GitHub secrets] ( https://docs.microsoft.com/en-us/azure/container-instances/container-instances-github-action#save-credentials-to-github-repo )
29+ named as follows.
30+
31+ | Secret | Value |
32+ | ---------------------------- | -------------------------------------------------------------------------------------- |
33+ | REGISTRY_LOGIN_SERVER_ \< ENV> | The login server name of your registry (all lowercase). Example: myregistry.azurecr.io |
34+ | REGISTRY_USERNAME_ \< ENV> | the clientId from the JSON output from the service principal creation |
35+ | REGISTRY_PASSWORD_ \< ENV> | The clientSecret from the JSON output from the service principal creation |
36+
1237## Terraform
1338
1439How to run Terraform plan and apply through a GitHub action workflow.
You can’t perform that action at this time.
0 commit comments