Christian Adams
346b9b9e3e
ConfigMap supervisor configs and launch scripts for k8s
2020-04-02 13:56:33 -04:00
Shane McDonald
ff0186f72b
Delete k8s StatefulSet if it exists (for upgrades)
2020-04-02 12:21:35 -04:00
Shane McDonald
3060505110
Switch from StatefulSet to Deployment
...
We can do this now that we dropped RabbitMQ.
2020-04-02 09:24:49 -04:00
chris meyers
eab74cac07
autogenerate websocket secret
2020-03-26 10:32:37 -04:00
Shane McDonald
45ce6d794e
Initial migration of rabbitmq -> redis for k8s installs
2020-03-18 16:10:17 -04:00
softwarefactory-project-zuul[bot]
f4f4a7caec
Merge pull request #5851 from xelgand/devel
...
k8s installer: fix warning when applying deployment
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-02-10 18:20:36 +00:00
xelgand
7b9ad1d69a
k8s installer: fix warning when applying deployment
2020-02-09 16:35:10 +01:00
Bryan Hundven
7d2ed7b763
Bump stable/postgresql to 8.3.0
...
https://hub.helm.sh/charts/stable/postgresql/8.3.0
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com >
2020-02-07 15:07:44 -08:00
Bryan Hundven
76a6f84c70
Remove tempfile after running helm
...
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com >
2020-02-07 12:04:11 -08:00
Bryan Hundven
a984e5df7a
Have helm stable repo before running help repo update
...
It would be nice if the `helm` ansible module allowed you to just manage
helm repos, or maybe a `helm_repo` module... but shell with it ;)
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com >
2020-02-07 11:58:18 -08:00
Bryan Hundven
1c50b8427a
Put postgresql values in a tempfile, to be loaded by helm cli
...
Helm 3.x does not support passing values via stdin:
https://github.com/helm/helm/issues/7002
So setup a tempfile and write the template to the tempfile to be loaded
by helm ... --values <tempfile>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com >
2020-02-04 09:26:49 -08:00
Bryan Hundven
34d01f02cc
Upgrade stable/postgresql to helm chart to 8.1.5
...
This updated chart supports Helm 3.x
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com >
2020-02-04 09:26:49 -08:00
Bryan Hundven
d182c96c2e
Make AWX compatible with Helm 3.x
...
In issue #5371 , AWX has issues with using Helm 3.x.
This commit removes the usage tiller.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com >
2020-02-04 09:26:49 -08:00
Shane McDonald
3977ec42e1
Add kubectl / oc-specific API server version logic
2020-01-15 17:12:53 -05:00
Ryan Petrello
7396e2e7ac
add an awx-manage command for re-generating SECRET_KEY
2019-12-12 16:19:20 -05:00
Yanis Guenane
f8b2bcbae7
Linters: test new linter job
...
Depends-On: https://github.com/ansible/zuul-jobs/pull/40
2019-12-04 19:05:17 +01:00
softwarefactory-project-zuul[bot]
02c3e1c32f
Merge pull request #5420 from Spredzy/yamllint
...
yamllint: Make all files in awx pass yamllint
Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2019-12-04 13:42:56 +00:00
Shane McDonald
e68d576fd2
Generic method of detecting k8s api version
...
Related: https://github.com/ansible/awx/issues/5388
2019-12-02 11:45:20 -05:00
Yanis Guenane
ca247182df
yamllint: Make all files in awx pass yamllint
...
This commit updates all files that weren't passing yamllint for them to
pass.
A new yamllint target has been added. One can run `tox -e yamllint` or
`yamllint -s .` locally to ensure yaml files are still passing.
This check will be enabled in the CI so it can get on every new
contributions, and prevent merging non-compliant code.
Signed-off-by: Yanis Guenane <yguenane@redhat.com >
2019-12-02 15:12:51 +01:00
Shane McDonald
dcbb2813b5
Pull in downstream changes to k8s installer
2019-12-02 08:12:51 -05:00
Ilija Matoski
e2cd86089b
Allow deployments on Kubernetes version 1.16
2019-11-20 23:54:10 +01:00
Shane McDonald
fa278f83ad
Fix k8s installs using external db
2019-11-04 09:35:11 -05:00
lopf
432daa6139
fix 5089
2019-10-24 14:44:36 +02:00
Shane McDonald
8356327c2b
Downstream k8s installer changes
2019-10-22 15:57:40 -04:00
Christian Adams
ec1e93cc69
Upgrade to postgres 10.6
...
- use awx-python in shebang in dev env
- scl enable where needed for rhel7 & container installs
- use scram-sha-256 pg user hashing by default
- ensure psycopg2 is using the correct PG_CONFIG at build time for the right libpq version
2019-09-12 12:52:43 -04:00
Gabriel Totusek
794808cd10
Fix compatibility with postgresql helm chart v6.0.0+
2019-08-12 02:40:25 -07:00
Gabriel Totusek
d932a70eff
Downgrade postgres helm chart to v5.3.13
2019-08-12 00:43:09 -07:00
Gabriel Totusek
90e5b0a12d
Update postgres helm chart to v6.2.1
2019-08-11 23:16:43 -07:00
Gabriel Totusek
f705eba7ed
Add support for kubernetes tolerations, nodeSelector, and affinity
2019-08-11 23:10:56 -07:00
Yanis Guenane
11630a8803
Installer: quote password where it applies
...
Prior to this change, password having shell interpretable character
would break the installer (e.g '&', '(', etc... )
This commits rely on the `quote` filter from ansible to ensure those
password are properly quoted where it applies
Fixes: https://github.com/ansible/awx/issues/3943
Signed-off-by: Yanis Guenane <yguenane@redhat.com >
2019-06-03 11:50:52 +02:00
softwarefactory-project-zuul[bot]
7b39198f26
Merge pull request #2995 from coreywan/postgres_helm
...
adds persistence.storageClass and limits to postgress helm install
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-18 04:24:18 +00:00
softwarefactory-project-zuul[bot]
474876872e
Merge pull request #2999 from themr0c/issue-2991
...
related #2991 - Helm creation of postgreql on multiple namespaces
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2019-01-17 14:28:05 +00:00
Fabrice Flore-Thebault
c434d38876
adding helm chart version for postgresql
...
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com >
2019-01-16 09:40:49 +01:00
Fabrice Flore-Thebault
7b32262f75
revert pg_hostname
...
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com >
2019-01-15 14:59:17 +01:00
Fabrice Flore-Thebault
d69f6acf64
add helm repo update and fix helm upgrade
...
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com >
2019-01-15 14:48:26 +01:00
Fabrice Flore-Thebault
ef3aab1357
related #2991 - unify postgresql_service_name
...
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com >
2019-01-15 11:44:08 +01:00
Corey Wanless
0c074e0988
* adds persistence.storageClass and limits to postgress helm install
...
* adds new variables to the inventory
Signed-off-by: Corey Wanless <corey.wanless@wwt.com >
2019-01-14 11:28:21 -06:00
Fabrice Flore-Thebault
d43521bb77
fix #2991 - make Helm creation of postgreql succeed when installing multiple AWX on different namespaces on same kubernetes
...
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com >
2019-01-14 10:32:21 +01:00
Corey Wanless
b1710f9523
adds wait time for postgres setup as a variable
2019-01-11 22:23:43 -06:00
Idan Bidani
a213e01491
updating default Postgresql version to 9.6
2018-11-10 18:27:22 -05:00
westfood
694e494484
Using new Helm parameters for PostgreSQL access.
2018-10-28 11:55:36 +01:00
softwarefactory-project-zuul[bot]
1803a76a4d
Merge pull request #2485 from wwt/fix-tiller-namespace
...
Pass tiller namespace down to helm task
Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-10-25 21:40:08 +00:00
David Moreau Simard
1dd44df471
Let users disable create_preload_data if it isn't necessary
...
The demo things might not be desirable in a production environment.
2018-10-24 11:36:33 -04:00
James Evans
4198227116
Pass tiller namespace down to helm task
2018-10-18 09:34:13 -05:00
Shane McDonald
b9279ebd5e
Port downstream installer changes
2018-10-09 14:39:39 -04:00
Shane McDonald
2b9954c373
Pull in downstream k8s installer changes
...
- Secretification of secret stuff
- Backup / restore
2018-08-14 12:37:19 -04:00
Marcin Karkocha
a19df9b3b3
#2039 add tiller-namespace as argument
2018-07-02 12:33:26 +00:00
Shane McDonald
e623c3d7cd
Don’t hardcode Helm PostgreSQL deployment name
2018-04-25 11:17:26 -04:00
Shane McDonald
40d7751fbd
Remove image push logic from installer roles
...
I’m going to be reusing this code on the Tower side, and I’m trying to refactor some of the AWX specific bits out. There will probably be more to come, but this is a good start.
2018-04-16 19:01:43 -04:00
Shane McDonald
479a56c6d3
Generalize variable names in installer
...
secret_key
2018-04-16 17:43:15 -04:00