-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added provider for azure private dns; updated docs, examples, and charts
- Loading branch information
1 parent
e06fe9e
commit ea54c34
Showing
237 changed files
with
12,804 additions
and
13,623 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
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,38 @@ | ||
# Azure DNS Provider for Private Zones | ||
|
||
This DNS provider allows you to create and manage DNS entries in private zones of [Azure Private DNS](https://docs.microsoft.com/en-us/azure/dns/private-dns-overview). | ||
For public DNS zones, please see use the provider type [azure-dns](../azure-dns/README.md). | ||
|
||
## Create a service principal account | ||
|
||
Follow the steps as described in the Azure documentation to [create a service principal account](https://docs.microsoft.com/en-us/azure/dns/dns-sdk#create-a-service-principal-account) | ||
and grant the service principal account 'Private DNS Zone Contributor' permissions to the resource group. | ||
|
||
See also [How to protect private DNS zones and records](https://docs.microsoft.com/en-us/azure/dns/dns-protect-private-zones-recordsets) | ||
|
||
## Using the service principal account | ||
|
||
Create a `Secret` resource with the data fields `AZURE_SUBSCRIPTION_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, and `AZURE_CLIENT_SECRET`. | ||
The values need to be base64 encoded. | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: azure-credentials | ||
namespace: default | ||
type: Opaque | ||
data: | ||
# replace '...' with values encoded as base64 | ||
# see https://docs.microsoft.com/en-us/azure/dns/dns-sdk#create-a-service-principal-account | ||
AZURE_SUBSCRIPTION_ID: ... | ||
AZURE_TENANT_ID: ... | ||
AZURE_CLIENT_ID: ... | ||
AZURE_CLIENT_SECRET: ... | ||
|
||
# Alternatively use Gardener cloud provider credentials convention | ||
#tenantID: ... | ||
#subscriptionID: ... | ||
#clientID: ... | ||
#clientSecret: ... | ||
``` |
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,18 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: azure-private-credentials | ||
namespace: default | ||
type: Opaque | ||
data: | ||
# replace '...' with values encoded as base64 | ||
# see https://docs.microsoft.com/en-us/azure/dns/dns-sdk#create-a-service-principal-account | ||
AZURE_SUBSCRIPTION_ID: ... | ||
AZURE_TENANT_ID: ... | ||
AZURE_CLIENT_ID: ... | ||
AZURE_CLIENT_SECRET: ... | ||
# Alternatively use Gardener cloud provider credentials convention | ||
#tenantID: ... | ||
#subscriptionID: ... | ||
#clientID: ... | ||
#clientSecret: ... |
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,20 @@ | ||
apiVersion: dns.gardener.cloud/v1alpha1 | ||
kind: DNSProvider | ||
metadata: | ||
name: azure | ||
namespace: default | ||
spec: | ||
type: azure-private-dns | ||
secretRef: | ||
name: azure-private-credentials | ||
domains: | ||
include: | ||
- my.own.domain.com | ||
#exclude: | ||
#- my.excluded.domain.com | ||
#zones: | ||
# include: | ||
# - myResourceGroup/own.domain.com | ||
# - <resourceGroup>/<dnszone> | ||
# exclude: | ||
# - <resourceGroup>/<dnszone> |
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.