Last active
May 21, 2017 13:02
-
-
Save ryane/620adbe00d3666119d3926910ac31046 to your computer and use it in GitHub Desktop.
Code for ExternalDNS blog post
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: nginx | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
spec: | |
rules: | |
- host: nginx.extdns.ryaneschinger.com | |
http: | |
paths: | |
- backend: | |
serviceName: nginx | |
servicePort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 80 | |
selector: | |
app: nginx | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nginx | |
spec: | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- image: nginx | |
name: nginx | |
ports: | |
- containerPort: 80 |
This file contains hidden or 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
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: external-dns | |
spec: | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: external-dns | |
spec: | |
containers: | |
- name: external-dns | |
image: registry.opensource.zalan.do/teapot/external-dns:v0.3.0-beta.0 | |
imagePullPolicy: Always | |
args: | |
- --domain-filter=$(DOMAIN_FILTER) | |
- --source=service | |
- --source=ingress | |
- --provider=aws | |
env: | |
- name: DOMAIN_FILTER | |
valueFrom: | |
configMapKeyRef: | |
name: external-dns | |
key: domain-filter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment