-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from sassoftware/staging
6.1.0 - June 15, 2023
- Loading branch information
Showing
14 changed files
with
172 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Kubernetes Configuration File Generation | ||
|
||
## Overview | ||
|
||
Generating a kube config file for the AWS Infrastructure as Code (IaC) repository supports two options. | ||
|
||
The options are: | ||
|
||
- Provider Based | ||
- Kubernetes Service Account and Cluster Role Binding | ||
|
||
### Provider Based - AWS Cloud Provider | ||
|
||
This option creates a kube config file that utilizes the `aws` CLI executable from Amazon. This method generates an `access_token` with an expiration time that is refreshed each time you use the kube config file to access your cluster. | ||
|
||
Portability is more limited with this option given the file is tied to the authentication method used to create the file. | ||
|
||
### Kubernetes Service Account and Cluster Role Binding | ||
|
||
This option creates a static kube config file that includes creation of the following: | ||
|
||
- Service Account | ||
- Cluster Role Binding | ||
|
||
Once created, the `Service Account` is used to provide the `ca cert` and `token` embedded in the kube config file. | ||
|
||
This kube config file option is quite portable as the `ca cert` and `token` for the cluster are static. Anyone who has this file can access the cluster. | ||
|
||
## Usage | ||
|
||
| Name | Description | Type | Default | Notes | | ||
| :--- | ---: | ---: | ---: | ---: | | ||
| create_static_kubeconfig | Allows the user to create a provider- or service account-based kubeconfig file | bool | true | A value of `false` defaults to using the cloud provider's mechanism for generating the kubeconfig file. A value of `true` creates a static kubeconfig that uses a service account and cluster role binding to provide credentials. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,6 @@ users: | |
- get-token | ||
- --cluster-name | ||
- ${cluster_name} | ||
- --output | ||
- json | ||
command: aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.