cdk8s-external-dns is an CDK8S construct library that provides External Dns Configure.
Project description
cdk8s-external-dns
cdk8s external dns constructs for cdk8s
Basic implementation of a external dns construct for cdk8s. Contributions are welcome!
Usage
CDK External Dns
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from cdk8s import App, Chart
from constructs import Construct
from cdk8s_external_dns import AwsExternalDns, AwsZoneTypeOptions
# default will deploy to default namespace.
class MyChart(Chart):
def __init__(self, scope, name):
super().__init__(scope, name)
AwsExternalDns(self, "cdk8sAwsExternalDns",
domain_filter="exmaple.com",
aws_zone_type=AwsZoneTypeOptions.PUBLIC
)
app = App()
MyChart(app, "testcdk8s")
app.synth()
Featrue For Add IAM Policy.
- For IRSA add IAM Policy.
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
# CDK APP like eks_cluster.ts
from cdk8s_external_dns import AwsExternalDnsPolicyHelper
import aws_cdk.aws_eks as eks
cluster = eks.Cluster(self, "MyK8SCluster",
default_capacity=0,
masters_role=cluster_admin,
version=eks.KubernetesVersion.V1_18
)
external_dns_service_account = cluster.add_service_account("external-dns",
name="external-dns"
)
# will help you add policy to IAM Role .
AwsExternalDnsPolicyHelper.add_policy(external_dns_service_account)
Also can see example repo
License
Distributed under the Apache 2.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdk8s-external-dns-0.0.3.tar.gz
(39.7 kB
view hashes)
Built Distribution
Close
Hashes for cdk8s_external_dns-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12d8470c59653194d3431b5c12c7fa8bd31893edb4b3ec255d7b520b50580ace |
|
MD5 | 2c973b162e5b8f9bfdbaddc6a76ec82e |
|
BLAKE2b-256 | cbb8f4349e10bcd52c088ff0ea8ebc25775808c7b169604b4f8fb7ce6ebc25ba |