-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:gardener/gardener-extension-provi…
…der-azure into multi-zone-nat6
- Loading branch information
Showing
541 changed files
with
54,196 additions
and
14,987 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- $vers := Split .versions "," -}} | ||
{{ $defaultBranch := (index $vers 0) }} | ||
structure: | ||
- name: _index.md | ||
source: https://github.com/gardener/gardener-extension-provider-azure/blob/{{$defaultBranch}}/README.md | ||
- name: docs | ||
nodes: | ||
- nodesSelector: | ||
path: https://github.com/gardener/gardener-extension-provider-azure/tree/{{$defaultBranch}}/docs | ||
links: | ||
downloads: | ||
scope: | ||
"gardener/gardener-extension-provider-azure/(blob|raw)/(.*)/docs": ~ |
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 |
---|---|---|
@@ -1 +1 @@ | ||
v1.22.0-dev | ||
v1.23.0-dev |
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
15 changes: 15 additions & 0 deletions
15
charts/gardener-extension-provider-azure/templates/secret-serviceprincipal.yaml
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,15 @@ | ||
{{- range .Values.servicePrincipals }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: service-principal-{{ print .tenantID .clientID .clientSecret | sha256sum | trunc 12 }} | ||
namespace: {{ $.Release.Namespace }} | ||
labels: | ||
azure.provider.extensions.gardener.cloud/purpose: tenant-service-principal-secret | ||
data: | ||
tenantID: {{ .tenantID }} | ||
clientID: {{ .clientID }} | ||
clientSecret: {{ .clientSecret }} | ||
type: Opaque | ||
{{- end }} |
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
95 changes: 95 additions & 0 deletions
95
docs/tutorials/kubernetes-cluster-on-azure-with-gardener/_index.md
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,95 @@ | ||
--- | ||
title: Create a Kubernetes cluster on Azure with Gardener | ||
level: beginner | ||
category: Getting Started | ||
scope: app-developer | ||
--- | ||
|
||
### Overview | ||
|
||
Gardener allows you to create a Kubernetes cluster on different infrastructure providers. This tutorial will guide you through the process of creating a cluster on Azure. | ||
|
||
### Prerequisites | ||
|
||
- You have created an [Azure account](https://azure.microsoft.com/en-us/). | ||
- You have access to the Gardener dashboard and have permissions to create projects. | ||
- You have an Azure Service Principal assigned to your subscription. | ||
|
||
### Steps | ||
|
||
1. Go to the Gardener dashboard and create a *Project*. | ||
|
||
<img src="images/new-gardener-project.png"> | ||
|
||
|
||
1. Get the properties of your Azure AD tenant, Subscription and Service Principal. | ||
``` | ||
Before you can provision and access a Kubernetes cluster on Azure, you need to add the Azure service principal, AD tenant and subscription credentials in Gardener. | ||
Gardener needs the credentials to provision and operate the Azure infrastructure for your Kubernetes cluster. | ||
**Ensure that the Azure service principal has the `Contributor` role within your Subscription assigned.** | ||
``` | ||
|
||
|
||
- Tenant ID | ||
|
||
To find your TenantID, follow this [guide](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant). | ||
|
||
- SubscriptionID | ||
|
||
To find your SubscriptionID, search for and select *Subscriptions*. | ||
<img src="images/azure-select-subscription.png"> | ||
|
||
After that, copy the SubscriptionID from your subscription of choice. | ||
<img src="images/azure-choose-subscription.png"> | ||
|
||
- Service Principal (SPN) | ||
|
||
A service principal consist of a `ClientID` (also called `ApplicationID`) and a Client Secret. For more information, see [here](https://docs.microsoft.com/en-us/azure/active-directory/develop/app-objects-and-service-principals). You need to obtain the: | ||
- Client ID | ||
|
||
Access the [Azure Portal](https://portal.azure.com) and navigate to the `Active Directory` service. | ||
Within the service navigate to `App registrations` and select your service principal. Copy the ClientID you see there. | ||
|
||
|
||
- Client Secret | ||
|
||
Secrets for the Azure Account/Service Principal can be generated/rotated via the Azure Portal. | ||
After copying your ClientID, in the `Detail` view of your Service Principal navigate to `Certificates & secrets`. In the section, you can generate a new secret. | ||
|
||
1. Choose *Secrets*, then the plus icon <img src="images/plus-icon.png"> and select *Azure*. | ||
|
||
<img src="images/create-secret-azure.png"> | ||
|
||
1. Create your secret. | ||
|
||
1. Type the name of your secret. | ||
1. Copy and paste the `TenantID`, `SubscriptionID` and the Service Principal credentials (`ClientID` and `ClientSecret`). | ||
3. Choose *Add secret*. | ||
<img src="images/add-azure-secret.png"> | ||
|
||
>After completing these steps, you should see your newly created secret in the *Infrastructure Secrets* section. | ||
<img src="images/secret-stored.png"> | ||
|
||
1. To create a new cluster, choose *Clusters* and then the plus sign in the upper right corner. | ||
|
||
<img src="images/new-cluster.png"> | ||
|
||
1. In the *Create Cluster* section: | ||
1. Select *Azure* in the *Infrastructure* tab. | ||
1. Type the name of your cluster in the *Cluster Details* tab. | ||
1. Choose the secret you created before in the *Infrastructure Details* tab. | ||
1. Choose *Create*. | ||
|
||
<img src="images/create-cluster.png"> | ||
|
||
1. Wait for your cluster to get created. | ||
|
||
<img src="images/processing-cluster.png"> | ||
|
||
### Result | ||
|
||
After completing the steps in this tutorial, you will be able to see and download the kubeconfig of your cluster. | ||
|
||
<img src="images/copy-kubeconfig.png"> |
Binary file added
BIN
+93.8 KB
...tutorials/kubernetes-cluster-on-azure-with-gardener/images/add-azure-secret.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+311 KB
.../kubernetes-cluster-on-azure-with-gardener/images/azure-choose-subscription.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.6 KB
.../kubernetes-cluster-on-azure-with-gardener/images/azure-select-subscription.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+445 KB
.../tutorials/kubernetes-cluster-on-azure-with-gardener/images/copy-kubeconfig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+226 KB
docs/tutorials/kubernetes-cluster-on-azure-with-gardener/images/create-cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.5 KB
...orials/kubernetes-cluster-on-azure-with-gardener/images/create-secret-azure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.8 KB
docs/tutorials/kubernetes-cluster-on-azure-with-gardener/images/new-cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.6 KB
...rials/kubernetes-cluster-on-azure-with-gardener/images/new-gardener-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+225 Bytes
docs/tutorials/kubernetes-cluster-on-azure-with-gardener/images/plus-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+381 KB
...torials/kubernetes-cluster-on-azure-with-gardener/images/processing-cluster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+333 KB
docs/tutorials/kubernetes-cluster-on-azure-with-gardener/images/secret-stored.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.