Commit Graph

20 Commits

Author SHA1 Message Date
KHIYANI, RAHUL (rk0850) bb8dd7af48 Coredns: Add apparmor profile to coredns-health container
Adding profile to missing container in coredns chart

Change-Id: I87d99ea53f8c7e086a5e098ae23e0a8ab8f84d6f
2020-04-17 22:32:52 +00:00
KHIYANI, RAHUL (rk0850) 7c8377447c Add Docker default AppArmor profile to coredns
Change-Id: Iae8b1b2c2b51b5f18567e46ae4aae55ca4c1d279
2020-02-05 15:16:33 +00:00
Egorov, Stanislav 4f0ae384a8 CoreDNS probe refactoring and version uplift
This is uplift for CoreDNS to version 1.6.2

Upstream CoreDNS image has no tools inside like wget/dig and can't
be used as is because pod probes will fail. Coredns pod has
Liveness/Readiness probes which are just a shell script to run
wget/dig to determine that CoreDNS is functional. So, decided
to add tools for probes in promenade image and do refactoring.

New endpoints for health check are running in side-car:
/externalhealth - to do the same check like previous shell script,
/selfcheck - to do check of the health of side-car itself.

Main container should be pointed to check endpoint provided by
side-car container.

Change-Id: Ib7fcf309b6cc34a86eeeec6e2109988cfa862955
2019-10-16 12:04:33 -07:00
Zuul 78f76b6ecd Merge "Add release uuid annotation to POD spec" 2019-06-26 13:33:19 +00:00
Kumar, Nishant(nk613n) 75d3a86234 Add release uuid annotation to POD spec
Change-Id: Id4a96de7da9233589b54217e04a346281eaea68c
2019-06-25 14:55:05 +00:00
pd2839 42cc2a67a7 Coredns: Add pod/container security context
This updates coredns chart to include the podsecurity context
on the pod template

This also adds the container security context to set
readOnlyRootFilesystem to true

Change-Id: Ib44e7b9e5d0ccc642ee095062f3aefcfef2a98f8
2019-06-20 19:56:36 +00:00
Matt McEuen ce6f253432 Change CoreDNS from Deployment to DaemonSet
CoreDNS is critical to cluster operations, and is also a very lightweight
service.  This change makes the CoreDNS service deployable as a Deployment
(current behavior), a DaemonSet, or both simultaneously.  This allows
DNS to be easily configured to run on all nodes (or all control
plane nodes if desired) for high availability of the service and
resiliency of the cluster.

The "deplyoment and daemonset" behavior can be used to provide an
uninterrupted migration path from a Deployment-based environment
to a DaemonSet-based one.

Change-Id: I58c3e62ac4892a4d9374d99eefe8055865cebf1e
2019-06-06 08:14:56 -05:00
Sean Eagan 2e2a30515c Use apps/v1 k8s controllers and add labels
Daemonset update strategy defaults to OnDelete in v1beta1, whereas
it defaults to RollingUpdate in v1, which seems prefereable.

This also adds helm-toolkit based labels at the controller level
to match standard usage such as for example by armada as wait labels.

This change has been tested using the promenade resiliency gate.

Change-Id: I9fd1bc4caedc0a6717b779e5333640ca8dc78b7e
2019-04-23 09:24:53 -05:00
Zuul 422d22ff9c Merge "Add release uuid to pods and rc objects (prom)" 2018-11-06 19:18:34 +00:00
Mark Burnett 6638b47cb9 Share process namespaces with exec probes
This avoids leaving zombies in cases where the processes don't reap
children.

Also fixes a certificate issue with the resiliency gate.

Change-Id: I8a795557b0d60338c40b360c947b81a20fd48877
2018-11-02 14:53:48 -05:00
Matt McEuen eae60aba15 Add release uuid to pods and rc objects (prom)
This PS adds the ability to attach a release uuid to pods and rc
objects as desired.  This can be used, for example, to force an
artificial manifest change in CICD scenarios, for upgradability
testing purposes.

Change-Id: I8d0ffac306258f940c63799e86e7e26b5c2c5add
2018-10-16 12:43:32 -05:00
Dmitrii Kabanov 8bdc4cfe8e CoreDNS: add configurable replicas
This patchset makes possible to set/update the quantity of replicas
for CoreDNS through the variable in values.yaml.

Change-Id: I9a6ad0f7f2fe95b7d8cfd2ac5f4c6e235e8bb1a4
2018-10-04 10:44:28 -07:00
Mark Burnett faf5a9a2d0 Expand CoreDNS liveness/readiness probes
This adds direct name resolution as part of these checks.  We have
experienced an issue with older versions of the proxy plugin that
resulted in coredns pods unable to resolve upstream names, but passing
health checks.

Change-Id: I9241b78490b4ae1640fb028c8c32bb179bf4e8ec
2018-06-11 03:07:19 +00:00
Anthony Lin 5f608430dc Add Labels for Application/Component - CoreDNS
Add application and component labels for CoreDNS

Change-Id: I05372334cd769528648a1453a8ced23e7bf968da
2018-05-16 01:45:59 +00:00
Mark Burnett 8a7791e13a Bump Kubernetes version from 1.8.6 to 1.10.2
* Updates version references
* Increase memory of test VMs due to higher usage with bump
* Move etcd chart scripts from /tmp to /tmp/bin
* Remove certificate signing options for controller manager
* Remove -a from `kubectl get pods`, since that is deprecated in 1.10
* Shorten liveness/readiness probe times for CoreDNS

Change-Id: I16db0370f1c619e16002dd58e29025eb1538691f
2018-05-04 09:21:18 -05:00
Scott Hussey 1326e43417 Add configmap hash to CoreDNS deployment
- This should force pod restarts when the coredns core file
  changes

Change-Id: I5bd34373f9846476e45b7b39ae170a8868997906
2018-04-13 14:57:47 -05:00
Scott Hussey ccd372a974 Resource limits on Promenade charts
- Update Makefile to more closely match UCP standards
- Add resource limits to any Pods missing them

Change-Id: Ia791a6b207c2baca7dd3141be71aef513c916661
2018-03-29 08:52:56 -04:00
Mark Burnett 09cdb0459d Add node selector to coredns chart
Change-Id: I5ffb775ed4d78ca0ee0badfca04a6d4383c0085e
2018-03-23 16:30:09 -05:00
Mark Burnett dbd08fd2f2 Use OSH-infra Calico chart
* Updates examples

Change-Id: I66d1acfb249e3f3a45f0c3f9465f70f69ea82113
2018-03-05 10:18:04 -06:00
Mark Burnett ff3787c2ad Use HAProxy for apiserver discovery
This removes the reliance on coredns for APIserver discovery, allowing
a simpler configuration that is compatible with corednx 1.0.x

Change-Id: Ia3b7b5627c16ec47af6b0d6d5e8dee2674e9b1ee
2018-02-08 14:30:35 -06:00