Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Adds a generic CoreDNS chart #785

Merged
merged 3 commits into from
Apr 3, 2017
Merged

Adds a generic CoreDNS chart #785

merged 3 commits into from
Apr 3, 2017

Conversation

shashidharatd
Copy link
Collaborator

This pr builds upon the initial pr for CoreDNS chart #758 done by @hunter,
I have included the commit in that pr and extended the chart to be deployable for multiple scenarios.

The original pr was handling only the scenario of replacing kube-dns by CoreDNS
I have extended now to deploy CoreDNS as a normal k8s app offering DNS service, which can be used from within cluster as well as outside the cluster like external dns service.

Request all members cc'ed below for a review.
cc @hunter @johnbelamaric @miekg

@hunter, if you agree we can push this pr instead of the original one as this one already includes your commit. we can iterate over this pr and push for merge asap.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 13, 2017
@miekg
Copy link
Contributor

miekg commented Mar 13, 2017

lgtm from a CoreDNS viewpoint

@shashidharatd
Copy link
Collaborator Author

Thanks @miekg

@hunter
Copy link
Contributor

hunter commented Mar 14, 2017

@shashidharatd, very happy to proceed with this PR. I'm caught up with a few other projects so haven't been able to spend much time on the chart.

@dhilipkumars
Copy link
Contributor

cc: @michelleN

annotations:
{{- if .Values.isClusterService }}
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prydonius @lachie83 should use of alpha schedulers warrant this chart belonging in incubator/?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seanknox, thanks for the review. This alpha scheduler API is used by almost all the addons in kubernetes including the kube-dns. I do not think the alpha tagging, affect the stability of that API and moreover its used in annotation. All said i am OK to move this chart to incubator if warrants.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only applies to alpha APIs, not alpha annotations

@seanknox
Copy link
Contributor

@shashidharatd I have one outstanding question around the use of the alpha scheduler APIs, but otherwise LGTM, thanks!

@shashidharatd
Copy link
Collaborator Author

Hi @prydonius @lachie83, can you PTAL

echo $SERVICE_IP
{{- else if contains "ClusterIP" .Values.serviceType }}
echo "{{ template "fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local"
echo "from within the cluster"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the ClusterIP case this just prints information instead of commands to run, so remove the prepended echo ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, this is what I see with ClusterIP in the notes output:

CoreDNS is now running in the cluster.
It can be accessed using the below endpoint
    echo "ns-coredns.default.svc.cluster.local"
    echo "from within the cluster"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bzub for the review. I have handled your comments now. PTAL.

hunter and others added 3 commits April 3, 2017 08:35
@seanknox seanknox added the lgtm Indicates that a PR is ready to be merged. label Apr 3, 2017
@lachie83 lachie83 merged commit 5348297 into helm:master Apr 3, 2017
@shashidharatd
Copy link
Collaborator Author

Thanks @lachie83

@shashidharatd shashidharatd deleted the coredns branch April 15, 2017 06:30
yanns pushed a commit to yanns/charts that referenced this pull request Jul 28, 2017
* CoreDNS

Adds a basic CoreDNS chart based off the project deployment
documentation

* Made CoreDNS chart generic to deploy in multiple scenarios

* Address review comments for CoreDNS chart
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. code reviewed lgtm Indicates that a PR is ready to be merged. size/medium UX reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants