Skip to content

Commit cfa57f4

Browse files
author
Edvin Norling
committed
Gitops base docs how to manage SP and secrets
1 parent a17eac0 commit cfa57f4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/xks/operator-guide/github.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,31 @@ your terraform and gitops repositories.
99
In this document we will go through how to use XKF on GitHub focusing
1010
on 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

1439
How to run Terraform plan and apply through a GitHub action workflow.

0 commit comments

Comments
 (0)