Last active
February 6, 2018 02:53
-
-
Save catvec/afbb3d8a768fae0cfdadc08deb8d70b5 to your computer and use it in GitHub Desktop.
Files for kuberntes/external-dns issue #458: https://github.com/kubernetes-incubator/external-dns/issues/458
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.4.8 | |
| args: | |
| - --source=ingress | |
| - --domain-filter=noahh.io | |
| - --provider=digitalocean | |
| env: | |
| - name: DO_TOKEN | |
| value: "{{ .Values.DOToken }}" # <-- DO Token stored in values.yaml of a Helm chart just for my personal external-dns deployment |
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
| {{- $fullName := include "noahhuppert-com.fullname" . -}} | |
| {{- $servicePort := .Values.service.port -}} | |
| apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: {{ $fullName }} | |
| labels: | |
| app: {{ template "noahhuppert-com.name" . }} | |
| chart: {{ template "noahhuppert-com.chart" . }} | |
| release: {{ .Release.Name }} | |
| heritage: {{ .Release.Service }} | |
| annotations: | |
| kubernetes.io/tls-acme: "true" | |
| kubernetes.io/ingress.class: "gce" | |
| external-dns.alpha.kubernetes.io/hostname: k8s.noahh.io | |
| spec: | |
| tls: | |
| - hosts: | |
| {{- range .Values.ingress.hosts }} | |
| - {{ . }} | |
| {{- end }} | |
| secretName: {{ template "noahhuppert-com.name" . }}-tls | |
| rules: | |
| {{- range .Values.ingress.hosts }} | |
| - http: | |
| paths: | |
| - backend: | |
| serviceName: {{ $fullName }} | |
| servicePort: http | |
| {{- end }} |
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: v1 | |
| kind: Service | |
| metadata: | |
| name: {{ template "noahhuppert-com.fullname" . }} | |
| labels: | |
| app: {{ template "noahhuppert-com.name" . }} | |
| chart: {{ template "noahhuppert-com.chart" . }} | |
| release: {{ .Release.Name }} | |
| heritage: {{ .Release.Service }} | |
| spec: | |
| type: LoadBalancer | |
| ports: | |
| - port: {{ .Values.service.port }} | |
| targetPort: http | |
| protocol: TCP | |
| name: http | |
| selector: | |
| app: {{ template "noahhuppert-com.name" . }} | |
| release: {{ .Release.Name }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment