70 Commits

Author SHA1 Message Date
portdirect
fa2620d54b RBAC for OSH
This PS applys RBAC rules to OSH, based off the work
done in https://review.openstack.org/#/c/526464/

Change-Id: I541b0ac1a3972566ef2b66571ae32744dab70c17
2017-12-26 10:24:19 -05:00
intlabs
fe6107cf76 Images: Update values to allow simple parse of images being used
This PS updates the values file layout for images to allow simple
parsing of the images in use by charts, allowing them to be queried
and modified much more simply. By moving the image tags to a 'tags'
key, we can extend the options used simply to accomodate extra
options simply (eg prefixing the tag for use with an internal
registry) or pre-pulling the images to reduce chart deploy failure.

Change-Id: I9ec1dbb00d997ab6cb021bf0b698f7aae740e95d
2017-10-23 10:05:20 -05:00
Chris Wedgwood
48fa00f2d7 mariadb: reasonable timing for readinessProbe
Give mariadb time to start up and probe only as much as needed.  This
avoids premature health warnings.

Change-Id: I5427cb26dc6a788123bdfac925e6d94321aabb1f
2017-10-12 18:36:40 +00:00
intlabs
61569d1b8b KubeAPI: Update secrets to be in conformance with k8s 1.8
Kubernetes 1.8 is stricter about the feilds in a secrets manifest,
this PS updates OpenStack-Helm to be compliant.

Change-Id: I9e19d07060d8517e0f4fd3056013191b1b4ba2da
2017-10-09 18:20:03 -05:00
Pete Birley
b120667031 Endpoint lookups: fix typo in overrides
This PS fixes a typo in the endpoint lookup function and input.

Change-Id: I6ff6d68bf82e1e1f70438a7017f4e1a6df7f59a7
2017-09-06 11:15:54 -05:00
Jenkins
198162a073 Merge "Fix some typos" 2017-09-03 04:47:48 +00:00
Pete Birley
bede94c835 Endpoint lookup namespace and fqdn support
This PS adds namespace and fqdn support to endpoint lookup functions,
it also permits over-riding of the puplic endpoint for ingress.

Change-Id: Ib61c5c00a214d75fe85fbffe9080c2ae88bd8cb9
2017-08-31 19:06:33 +00:00
lidong
75a2639a48 Fix some typos
Correct some spelling errors in files : 
mariadb/templates/etc/_00-base.cnf.tpl,tools/gate/funcs/kube.sh


Change-Id: Ie6d7f2b90a8d569663452d00565af2789bbb377e
2017-08-08 03:39:06 +00:00
Pete Birley
ff8744a9b9 Licence: Remove licence header from rendered files
This PS removes the licence header from rendered output from tiller,
significantly reducing the configmap size of charts deployed to the
cluster.

Change-Id: I5d1b246f2068f3b83bf59ba79fe8b88bbc9a6161
2017-08-07 17:16:13 -05:00
Pete Birley
e7abfee16d MariaDB: Update start script to be more robust
This PS updates the MariaDB start script remove templated values
from being directly inserted into the script. It also moves the
root connection params to a secret to prevent the root password
being exposed in logs.

Change-Id: I10977ef267877a5913bf265280ff5439c7bf268c
2017-07-29 23:05:20 +00:00
Steve Wilkerson
8dfc2cf3a3 Fix mariadb start script
Fixes the reference to mariadb replicas used when adding pods to
the mariadb cluster. This was causing nodes to not be added to
the cluster properly

Change-Id: I9df586c8939e241ea58d933652c767542fd364ff
2017-07-29 10:35:48 -05:00
Pete Birley
f30cbcf108 Update pod affinity to allow customisation
This PS updates the pod affinity function to allow customisation by
operators at the point of deployment.

Change-Id: I8b7b2f584e990e068051d9a6d5cc7b1e1adb5aa5
2017-07-28 15:02:47 +00:00
Alan Meadows
ccea6b4df5 Convert ceph to utilize hostNetworking
This enhances the stability and recovery of ceph by leveraging
hostNetworking for monitors as well as OSDs, and enables the
K8S_HOST_NETWORK variable within ceph-docker.  This enhancement should
allow recovery of monitors from a complete downed cluster.

Additionally, ceph's generic "ceph-storage" node label has been
split out for mon, mds, and osd.

Co-Authored-By: Larry Rensing <lr699s@att.com>
Change-Id: I27efe5c41d04ab044dccb5f38db897cb041d4723
2017-07-14 19:06:57 +00:00
Pete Birley
4d066332a7 Values: Move replicas to pod key
This PS move s the replicas key to be under the pod key in the values.
It brings further consolation of related configuration params to be
nested under common keys across all charts.

Change-Id: I420b06debd0a62ba5d83497be43ff6c49c49d339
2017-07-13 23:08:08 -05:00
Pete Birley
20527cb57c Move k8s pod params under common key
This PS moves K8s pod params under a common key.

Change-Id: Ib4e72e82a4f1540fa800c39d0dcc91b286d96c93
2017-07-11 23:28:47 +00:00
Tin Lam
670a78bcbe Fix file permission and readOnly flag
This patchset enforces stricter file permission on *-etc configmap and
sets readOnly flag to true in a number of charts.

Change-Id: I233689a5d56dd1352e0d81997a94b4cdd6bed5d2
Signed-off-by: Tin Lam <tin@irrational.io>
2017-07-08 13:24:14 -05:00
Pete Birley
ac06f49849 Unify and normalise K8s Resources and Upgrade Strategy
This PS unifies and normalises Kubernetes resource allocation and
update strategy across all OpenStack-Helm elements.

Change-Id: Ia41fc453cb5191fa447ca6e1aa0f5b431c939dc8
2017-07-06 17:48:16 +00:00
Pete Birley
c5bbc97ab7 Soft pod anti-affinity for all pods
This PS adds soft anti-affinity to all pods in OS-H. By doing so
resiliancy is improved by attempting to ensure that pods are created
on seperate nodes.

Change-Id: I0c1092498f7a1e44218ef785ca3f73fa9f49819c
2017-07-03 14:15:40 -05:00
Pete Birley
8ff8e7aeb2 Mariadb: Update to use endpoint values layout and lookups
This PS adjusts the MariaDB chart to use the same endpoint values
layout as used in other openstack-helm components. It also removes
credentials and params from the configmaps and moves them to secrets
and env vars as appropriate.

Change-Id: I9116be7c46cdd16c743ca2784878f3de65665f8c
2017-07-03 13:17:48 +00:00
Pete Birley
4cc4b66898 Mariadb: fix pod antiaffinity declaration
This PS fixes the pod antiaffinity declaration for MariaDB.

Change-Id: Iadbccd1b9ead1dfd01a82f880adfced647cba5de
2017-07-03 12:20:17 +00:00
Michał Dulko
a6cd9bac16 Use k8s 1.6 syntax of declaring affinity
K8s 1.6 has affinity/antiaffinity funtionalities as a beta feature. This
means we don't need to declare them using annotations. This commit
switches usages of affinity to 1.6 syntax.

Change-Id: Ia68f4ab28a018617bd44b1295fea58cd30eb4a39
2017-06-20 16:51:07 +02:00
Pete Birley
0f88893a41 Images: fix references to be explicit, and point to right dep image.
This PS fixes some image references, to bring them inline with the
style and location with other services.

Change-Id: I1c42748875170a5a33bed7566382f3e31438dc7d
2017-06-15 08:59:08 -05:00
Jenkins
f51854d207 Merge "Configmaps: set default mode of files in *-bin configmaps to +x" 2017-06-12 15:50:24 +00:00
Jenkins
3b6dec1364 Merge "Adding pod disruption budget for mariadb" 2017-06-12 13:52:32 +00:00
Pete Birley
81aef1ecea Configmaps: set default mode of files in *-bin configmaps to +x
This PS sets the default modetype of mounts from *-bin configmaps
to 0555, and removes the then unnecessary commands from the manifests.

Change-Id: I93ce0facb06affdf362a58f8520e69ba94ea3034
2017-06-12 00:22:30 -05:00
Larry Rensing
bcdb673e49 Adding pod disruption budget for mariadb
This PS adds pod disruption budgets for mariadb

Change-Id: I6ca698c15ec6693dd001183220e619e305f2732c
2017-06-12 04:12:37 +00:00
Jenkins
efc68f4347 Merge "Make remaining volumeMounts readOnly" 2017-06-01 21:40:26 +00:00
Jenkins
1ca77db357 Merge "Update remaining markdown docs to RST" 2017-06-01 21:32:41 +00:00
Pete Birley
8c29949c0d Helm-Toolkit: Update naming to be explict and remove old functions.
This PS updates the way helm-toolkit functions are named to
reference the full path they are loacted at. This should make
development and debugging easier. Addtionally unused functions
have been pruned as well.

Change-Id: I03c553f1d01bccc70c86768b416b147c90d9b2f0
2017-05-31 19:52:02 +00:00
Chris Wedgwood
f9252a8235 Use storageClassName in preference to the annotation.
Change-Id: I60a2b607b85cd22abbd5b0d10c4571430f56d62f
2017-05-27 05:18:51 +00:00
Larry Rensing
ed2b82977b Make remaining volumeMounts readOnly
This cleanup adds a readOnly tag for the remaining volumeMounts
across the project.

Change-Id: I1035c075c2e0c6f2b1b76a14e45094ed4e90a879
2017-05-26 13:46:30 +00:00
Mark Burnett
de20cbb15d Use the standard Dockerhub MariaDB image
Addresses consistency issues that appear with autoincrement fields in
the existing chart, as demonstrated in [1].  It should allow automatic
recovery of 2 out of the 3 (default) cluster members.

It does not address automatic recovery of a complete shutdown of all
cluster nodes.

[1] https://review.openstack.org/#/c/465977/

Change-Id: I84c86e1862f03a6d381bf219b821ea3636049f0b
2017-05-25 08:56:35 -05:00
Chris Wedgwood
8b07ffa2d1 Simplify/lessen requirements for MariaDB
Change-Id: Ic0159fc38f9551c60ae588ab2d78944fb61239e2
2017-05-23 23:41:59 +00:00
Michał Dulko
cc243499ec Update remaining markdown docs to RST
There were few remaining README.md files. This commit converts them to
RST.

Change-Id: Ia0be0012fff33b9be5c9db3febc1e45a076701ec
2017-05-22 10:56:51 +02:00
Jenkins
fb11f693ab Merge "Cleanup - add remaining configmap hashes" 2017-05-20 23:08:07 +00:00
Tin Lam
e28c4f7ae3 Add a whitespace check script
This patch sets put in whitespace check against all files except .tgz,
files in hidden directory or things in the doc/build folder.  Enforcing
the cleanup work in [0]. Also fixed two readmes' trailing blank spaces.

[0] https://review.openstack.org/#/c/466409/

Change-Id: I21ee232e4d502ca2db9dbf012624d6552d0f7ad2
2017-05-20 11:17:45 -05:00
Gage Hugo
dc1ae977a5 Remove all trailing whitespaces
This change removes any trailing whitespaces found while
running:

find . -type f -exec egrep -l " +$" {} \;

Change-Id: Ic1dc8765a0971a32da4c3116871e9450a55b357f
2017-05-19 18:07:06 -05:00
Jenkins
c2397e1bc9 Merge "MariaDB: Log and buffer pool default size reduction" 2017-05-18 20:03:07 +00:00
Larry Rensing
fea453ba72 Consolidate volumes across charts
This PS standardizes configmap mounts across all charts to be named
<project>-etc or <project>-bin.  This reduces the amount of volumes
listed in each file.

Change-Id: Idbaf495fa243bb9ea0f6ad755ca4f899d5fc0d6f
2017-05-16 15:49:51 +00:00
Larry Rensing
365132a4c5 Cleanup - add remaining configmap hashes
This adds a configmap-bin/etc hash value to the remainder of the manifests

Change-Id: Icccadccfd1d68e89b452b1c722e28b7340d9164b
2017-05-15 20:51:35 +00:00
Pete Birley
1f536fee87 MariaDB: Log and buffer pool default size reduction
This PS reduces the default log and buffer size.

Change-Id: If789064424bfbaba7a427f9bbfe6f3a64e954fdf
Closes-Bug: #1688058
2017-05-05 10:32:44 -05:00
Pete Birley
6d788c7eff MariaDB: Reduce size of default PVC
This PS reduces the default size of the PVC to one that works on systems
with limited storage avalible. It has no effect on the resilance or
production readyness status of the deployed cluster, simply the amount
of data that can be stored within it.

Change-Id: Ic01b9a6658a1b4161b160f35842060ad84cb8ec7
2017-04-30 14:56:04 -05:00
Seungkyu Ahn
d4f7fa5775 Add galera sync method option
Galera has a copule of options to sync mariadb cluster.
Default value is mysqldump which is slow, except for small data-sets, but is the most tested option.
rsync option is much faster than mysqldump on large data-sets.
So add --wsrep_sst_method value.

Change-Id: Ide03801b2472fa3d4f76bbe32e75bf6e618ac7e1
2017-04-24 02:07:19 +09:00
Pete Birley
b6aed791fb Update chart.yaml to be consistent across repo
This PS updates the chart.yaml to be consistent across the repo, and
changes the description to make clear that they are the OpenStack-Helm
derived versions of the charts while using `helm search`.

Change-Id: Iac3cfd2cddba7130b28a65c3d353712c8a3aa02b
2017-04-16 11:21:07 -05:00
Jeff Augustine
91a966206f Corrected project name in README files
Change-Id: I4e97d7c66506dc08c6c3eee163dc2a98e04d5771
2017-04-12 15:31:38 -05:00
Brandon B. Jozsa
b83ce91f1e WIP: ToC Preparation for Openstack (#296)
* complete docs refactor

* replaces /data references in favor of /var/lib/localkube - fixes #95

* additional layout changes

* additional operations layout

* readme updates and versioning updates to multinode doc

* remove dragons

* project goal clarity

* remove 'magic'

* clean up container image concerns

* slight verbiage change

* charts not hard coded

* small change requested

* reconfiguration

* updates to minikube docs
2017-04-01 09:19:32 -07:00
Wil Reichert
3899b73a47 use pod command: instead of the COMMAND environment variable 2017-03-03 15:07:29 +09:00
Pete Birley
116931bb51 Rename common chart, and update all references to functions within it. (#167)
* Rename common chart to helm-toolkit

* Update useage of helpers to include reference to chart they come from.

* Update helm-toolkit function naming

Also catches several functions missed in previous PS

* Update remaining requirements.yaml to use helm-toolbox

* Dep Check container fix for common -> helm-toolbox renaming
2017-02-14 16:52:38 -08:00
gardlt
58c0da8a74 remove-lock-files-from-chart-directories
* removed lockfiles from charts dir

Closes-bug: #180
2017-02-07 10:37:36 -06:00
Brandon B. Jozsa
a5c2e9d489 adding apache-lic header for mariadb 2017-02-03 10:24:31 -05:00