Commit Graph

246 Commits (3af8a5b0902e2eefc1940e96fd39d673c6d2c154)

Author SHA1 Message Date
Oleksandr Garagatyi 35ce3544f7
Adapt UD and wsmaster to new plugin notation (#13204)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-05-02 09:50:01 +03:00
Oleksandr Garagatyi bbd4e10778 Change default plugin registry image
Change default plugin registry image to one pushed to quay.io
2019-04-28 09:03:33 +03:00
John Collier 7ac34636bc Add option to specify additional cluster role for workspaces. (#13178)
Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-04-26 19:34:28 +02:00
John Collier febc6a4b56 Add option to enable Postgres debug logs in the Che Helm chart (#13093)
Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-04-11 11:28:42 +03:00
Oleksandr Andriienko 0ce0408863
Fix licence year for some files. (#13082)
* Fix licence year.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Revert changes for .sql files

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>

* Revert more sql files.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2019-04-11 10:14:48 +03:00
Mykhailo Kuznietsov e0226c891a
Add metrics for number of users (#13001) 2019-04-04 11:01:02 +03:00
Sergii Leshchenko 5bfe67b7e7 Increase failure threshold instead of removing probes
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-04-03 11:16:40 +03:00
Masaki Muranaka dbe72d1478
Merge pull request #12970 from stnnguyen95/master
Running Che and workspaces as non-root in a Kubernetes cluster.
2019-03-29 13:23:57 +09:00
John Collier 86436a88e6 Allow sidecar containers to list Kubernetes services by default (#12983)
* Allow workspace pods to list Kubernetes services by default
* Update workspace-view-role.yaml to allow listing
of Kubernetes services
* Allow sidecar containers to list services on OpenShift
* Add services resource to workspace-view role for OpenShift

Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-03-28 15:25:55 +02:00
Son Nguyen 15fcd712c5 Running Che and Che workspaces as a non-root in a Kubernetes cluster.
Signed-off-by: Son Nguyen <son.nguyen@softwareag.com>
2019-03-26 01:01:50 -04:00
M J Shashank 570b0de3aa Fix typo in metrics ingress (#12601)
Signed-off-by: M J Shashank <iamshashankmj@gmail.com>
2019-03-21 09:26:24 +02:00
John Collier 7948770831 Add option to Che deployment.yaml to allow self-signed certificates (#12874)
Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-03-19 08:23:39 +01:00
Sergii Kabashniuk fb93ef7c06
Workspace start time metrics (#12859)
* Workspace start time metrics

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-03-15 09:50:46 +02:00
Mykola Morhun eec3b38fa6
Fix Che 6 workspaces on multiuser deployment (#12877)
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
2019-03-14 17:39:11 +02:00
Sergii Kabashniuk 7a1d3964a6
Successfully started workspaces ratio (#12852)
Successfully started workspaces ratio

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-03-12 13:25:11 +02:00
Eugene Ivantsov a9b952297a
Create view role rather than rely on view clusterRole (#12789)
* Create view role rather than rely on view clusterRole

* Create view role for k8s. Fix typo

* Typo and Java doc sync

* Add namespaced role to k8s and openshift templates. Role instead ClusterRole for k8s

* Rename view role to workspace-view

* Fix formatting

* Fix javadoc. Revent erroneous changes to postgres template

* Remove hidden Dockerfile

* Revert pg changes
2019-03-11 18:20:37 +02:00
Sergii Kabashniuk a5b06d444f
Introduced two web-socket endpoints for workspace master to split JSON-RPC messages (#12673)
* Introduced two web-socket endpoints for workspace master to split JSON-RPC messages
Based on Dmytro's Kulieshov  work https://github.com/eclipse/che/pull/12252

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-02-27 13:29:43 +02:00
Sergii Kabashniuk 577eba85ea
Add ProcessMemoryMetrics ProcessThreadMetrics (#12749)
* Add ProcessMemoryMetrics ProcessThreadMetrics

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-02-26 14:47:41 +02:00
Sergii Kabashniuk acfee5a206
Deployment of tracing/monitoring/debug on OpenShift (#12683)
* Deployment of tracing/monitoring/debug on OpenShift

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-02-19 13:56:29 +02:00
David Martin 892d16a23e Add keycloak realm & client id parameters (#10646)
When using an existing Keycloak instance, it may be necessary to specify a particular realm or client.
This allows them to be speicfied at install time via parameters.

Signed-off-by: David Martin <david.martin@redhat.com>
2019-02-11 09:16:20 +02:00
WeiYan 76417012f6 Fix link for deploying multi-user che to kubernetes (#12623)
Signed-off-by: Wei Yan <ywskycn@gmail.com>
2019-02-08 11:40:21 +02:00
Sergii Kabashniuk 3b43f8d8c1
Used non-blocking randomizer for Che master on OpenShift (#12563)
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-01-31 16:03:50 +02:00
Angel Misevski 40131c332e Enable precreate subpaths property by default in templates
The property CHE_INFRA_KUBERNETES_PVC_PRECREATE__SUBPATHS is required
for PVC cleanup on current versions of Kubernetes/OpenShift.

Without the property enabled, subpaths are created in PVCs by Kubernetes
when they are needed for pods. However, only the leaf directory created
in this way has write permissions for nonroot users. As a result, the
cleanup pod cannot delete directories created (e.g. the
workspaceX/projects) directory.

For more details, see https://github.com/eclipse/che/issues/12445

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-01-25 19:31:46 -05:00
Sergii Leshchenko b0754087f5
Added an ability to deploy Che Plugin Registry with argument for deploy_che.sh script (#12310) 2019-01-09 11:26:49 +02:00
Sergii Leshchenko 51f945a550
Use 'envFrom' in Che Deployment instead of duplicating of entries from config map (#12289) 2019-01-03 11:27:48 +02:00
Mykhailo Kuznietsov 69288516c8
Upgrade Tomcat and change default CORS configuration (#12144) 2018-12-22 10:56:27 +02:00
Lukas Krejci adec44ae9a Only deploy metrics ingress if metrics are enabled.
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2018-12-14 11:21:56 +02:00
Sergii Leshchenko 31d39ae363 Create or update oauth client instead of try to create a new one 2018-12-11 15:59:08 +02:00
Sergii Leshchenko b22b5fddc5 Remove supressing output/input during execution 2018-12-11 15:59:08 +02:00
Sergii Leshchenko 0dbf9e185e Add an ability to specify self-signed certificate during deploying che 2018-12-11 15:59:08 +02:00
Sergii Leshchenko 5cad285d74 Add more info about current deploying state 2018-12-11 15:59:08 +02:00
Sergii Leshchenko abe0a19232 Add an ability to set up oauth provided from deploy_che.sh with the argument 2018-12-11 15:59:08 +02:00
Sergii Leshchenko cd1153f471 Add settings in deploy_che.sh script 2018-12-11 15:59:08 +02:00
Innovimax f95511f2ef FIX Typo "doesn't exists" -> "doesn't exist" (#12154)
FIX Typo "doesn't exists" -> "doesn't exist" (#12154)
2018-12-11 09:37:04 +02:00
Sergii Leshchenko 331a63cd06 Rename OPENSHIFT_IDENTITY_PROVIDER_CERTIFICATE to CHE_SELF__SIGNED__CERT 2018-12-05 13:18:06 +02:00
Sergii Leshchenko 7d6ea15850 Add parameter to ocp.sh to deploy Che with SSL enabled 2018-12-05 13:18:06 +02:00
Sergii Leshchenko b3a6f94bf5 Fix creating of oauth client when SLL is enabled 2018-12-05 13:18:06 +02:00
Lukas Krejci d789f290dd Add prometheus and grafana to the Helm chart (#12088)
* Adds prometheus and grafana as to the deployment

moves che's custom charts into "custom-charts" directory so that they don't
interfere with helm which uses the "charts" directory to download and use
all the other remote dependencies.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>

* Deploy our own ingress for prometheus and grafana so that we can have
templatized names of the same format as the same of the deployment.

Also removed the hardcoded time interval in the sample dashboard so that
it uses the default of "last 6 hrs".

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>

* New lines at the end of the files and whitespace removal.
2018-12-05 13:06:35 +02:00
Lukas Krejci 55022e22cd Introducing Jaeger tracing support to the Che Helm chart. (#12049)
Introducing Jaeger tracing support to the Che Helm chart. (#12049)

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2018-12-04 16:20:49 +02:00
Mykhailo Kuznietsov 3d366a1c19
Add ability to change CORS configuration on Che Server through env vars (#12046) 2018-12-04 14:56:38 +02:00
Shashank MJ 4f991e77df set PROXY_ADDRESS_FORWARDING in keycloak deployment when tls is enabled 2018-11-30 17:09:17 +02:00
Sergii Kabashniuk da3eefe237
Metrics POC (#11990)
With CHE_METRICS_ENABLED env variable enable Prometheus metrics endpoint
2018-11-27 23:47:24 +02:00
Eugene Ivantsov cc1fb31ec4
Use proxy forwarding (#11137)
* Use proxy forwarding

* Double quotes for bool
2018-11-20 06:55:08 +02:00
Sergii Leshchenko 8514aae427 Update comment about helm chart parameter 2018-11-15 14:43:51 +02:00
Mykhailo Kuznietsov bbc7e7d751
Remove pure kubectl deployment (#11894) 2018-11-14 10:00:05 +02:00
Sergii Kabashniuk 8a38002dd9
Basic tracing support for OpenShift (#11844)
Basic tracing support for OpenShift (#11844)
2018-11-09 14:42:52 +02:00
Sergii Leshchenko a204733883 CHE-11349 Update helm chart to configure default service account (PR #11834) 2018-11-08 08:36:42 +02:00
Sergii Kabashniuk b53c0e5825
PostgreSQL debug mode (#9343)
* Added eclipse/che-postgres:nightly-debug image to run postgresql with configured logger format compatible with pgbadger reporting tool
2018-10-31 09:54:38 +02:00
Oleksandr Andriienko a6b945728e
Fix view rolebinding for kubernetes. (#11629)
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
2018-10-17 14:20:12 +03:00
Sergii Leshchenko 79e2813a10 Set Plugin Broker pull policy according to parameter 2018-10-04 21:12:36 +03:00
Oleksandr Garagatyi a44570e2f8 CHE-11408: Disable probes of Che master when debug is enabled
Remove readiness/liveness probes from Che deployment when debug is
enabled.
This allows to debug Che master for a long period of time without
Che container being killed because of unresponsive probes.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>

Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-10-01 09:31:47 +03:00
Sergii Kabashniuk e53b34b2b1
Setup default value for CHE_WORKSPACE_PLUGIN__REGISTRY__URL (#11354)
Setup default value for CHE_WORKSPACE_PLUGIN__REGISTRY__URL
2018-09-26 14:01:02 +03:00
Sergii Leshchenko 41b14c71b6
Make OpenShift infrastructure to create workspace service account if needed (#11199) 2018-09-21 08:50:25 +03:00
Oleksandr Garagatyi 036f044155 Add a property for default sidecar mem limit
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-09-17 14:01:34 +03:00
Eugene Ivantsov 2545559c30
Fix docs (#11203) 2018-09-13 12:36:09 +03:00
Sergii Leshchenko 5b848a6b02 CHE-10991 Add creating of workspace service account in Che Kubernetes Helm chart 2018-09-13 11:03:09 +03:00
Sergii Leshchenko b10c305d10 CHE-10991 Add creating of workspace service account in deployment Che on OpenShift 2018-09-13 11:03:09 +03:00
Eugene Ivantsov cb17ad3099
Use edit role for Che SA (#11177) 2018-09-13 10:15:21 +03:00
Oleksandr Garagatyi 8d589d0197 Fix an ability to use locally built images of Che on minishift
Latest versions of minishift ignore Che master docker image that
was built locally inside the VM.
Removeing docker.io from the image name workarounds the issue.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-09-07 17:20:37 +03:00
Oleksandr Garagatyi 85a0d2a8c7 Fix links to kubernetes deployment docs
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-09-07 17:19:41 +03:00
Kuperman Sergey 70f25dbebc Make Resource memory request configurable for k8s and OpenShift (#10673)
- Make Resource memory request configurable for k8s and OpenShift.
- Add alias for backwards compatibility to che.workspace.default_memory_limit_mb.
- set memory request to 512Mb.
- document CHE_WORKSPACE_DEFAULT__MEMORY__REQUEST__MB in che.env.
- Configure helm scripts to allow memory attributes on deployment.
Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>
2018-09-06 13:02:42 +03:00
Sergii Kabashniuk be3cc1a00c
Fixed helm deployment with default value of loggerConfig (#11056) 2018-09-04 13:15:16 +03:00
Sergii Kabashniuk 77a00179db
Add che.workspace.plugin_registry_url information to workspace/settings Rest method (#11015)
Add che.workspace.plugin_registry_url information to workspace/settings Rest method
2018-09-04 10:09:20 +03:00
Eugene Ivantsov 733d7bbd34
Multiple changes to deploy scripts (#11025)
* Multiple changes to deploy scripts

* Remove debug echo

* Fix formatting

* Fix formatting

* Fixup
2018-09-03 14:38:14 +03:00
Oleksandr Garagatyi 27bed82d5c
CHE-10561: Rework WS.NEXT flow to latest concept of plugin broker (#10740)
* Move wsnext flow in Kubernetes infra implementation

Now we need to start a broker and pass meta.yaml files to it.
Starting a broker is infra-specific stuff, so it has to be done
on the infra implementation side because we don't have a part
in the infra SPI that would allow us to start a broker.
Passing Meta files using InternalEnvironment object is more
invasive than passing only attributes. So, this commit applies
less invasive scheme.

* CHE-10202,10561: Add fetching of Che editor, plugins meta from the registry

Add fetching of Che editor ID from workspace attributes.
Add fetching of Che plugins IDs from workspace attributes.
Use colon sign for separating editor/plugin ID and version
instead of the slash.
Remove old Workspace.Next model objects.

* CHE-10561: Share WS.NEXT between k8s and OS infras

Use WS.NEXT in both k8s and OS infrastructure implementations.

* CHE-10561: fix fetching meta.yaml files from che-plugin-registry

* CHE-10561: Fix sidecar model serialization

Fixes the fact that some fields in workspace sidecar tooling model
POJOs were incorrectly named or required custom serialization of
fields.

* CHE-10561: Add listening of che-plugin-broker

Add code that allows listening for events from Che plugin broker.
An event might contain workspace tooling config as a result if the broker
finished successfully or error otherwise.

* CHE-10561: Add PluginBrokerManager to control broker lifecycle

Adds PluginBrokerManager that configures/starts/waits Che plugin
broker.

Remove unused code.
Remove notion of Workspace next.

* Align plugin registry property between different components

* Fix extra  path in che plugin registry URL

Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-09-03 08:57:32 +03:00
Eugene Ivantsov 1bacf0c5d1
Merge pull request #11011 from eclipse/ocp_sh_improvements
Ocp sh improvements
2018-08-31 14:45:48 +03:00
Eugene Ivantsov d75c8fa1c5 ocp.sh stuff 2018-08-31 14:43:37 +03:00
Eugene Ivantsov 0d752f76c1 ocp.sh stuff 2018-08-31 14:43:09 +03:00
Eugene Ivantsov 868b2aa60a ocp.sh stuff 2018-08-31 14:41:48 +03:00
Dmytro Nochevnov 265e044e0a
Fix path to OCP oauth certificate (#11010)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-08-31 13:57:08 +03:00
Sergii Kabashniuk 2b7ebd8f85
Added ability to deploy che plugin registry with ocp.sh (#10954)
Added ability to deploy che plugin registry with ocp.sh ./ocp.sh --deploy-che --deploy-che-plugin-registry
Add environment variableCHE_PLUGIN_REGISTRY_URL for che-master with a link to che plugin registry
2018-08-30 10:18:51 +03:00
Eugene Ivantsov 7f668b0b2f
Merge pull request #10947 from eclipse/revert_update_to_310
Revert update to 3.10
2018-08-29 11:09:09 +03:00
Eugene Ivantsov 27d3c58718 Remove host dir arg 2018-08-28 13:33:35 +03:00
Eugene Ivantsov d176a5144f Revert update to 3.10 2018-08-28 12:15:59 +03:00
Ido Itzkovich 11be6c2ecd Make Che logging variables configurable via helm (#10912)
- Added option to set CHE_LOGGER_CONFIG through
     global.log.loggerConfig in values.yaml.
     - Added option to set name of custom log appender
     implementation through global.log.customAppenderName
     in values.yaml.
     - Added default value for appender name in values.yaml
     - Added CHE_LOGGER_CONFIG to deployment container env

Signed-off-by: Ido Itzkovich <ido.itzkovich@gmail.com>
2018-08-28 11:23:39 +03:00
Eugene Ivantsov 01051b8ac7
Merge pull request #10888 from eclipse/create_okd_dir
Do not exit when okd dir removal fails
2018-08-27 10:16:35 +03:00
Sergii Kabashniuk 3ed123e8d3
Revert removal of CHE_MULTIUSER variable from che-server-template.yaml (#10911) 2018-08-27 10:08:00 +03:00
Eugene Ivantsov 566769d014 Do not exit when okd dir removal fails 2018-08-23 13:18:27 +03:00
Eugene Ivantsov 99a4ff5c00 Check if okd dir exists before removing content 2018-08-23 11:25:42 +03:00
Eugene Ivantsov ca4543f386 Create OKD local dir 2018-08-23 10:34:26 +03:00
Eugene Ivantsov 193a395f87
Merge pull request #10766 from eclipse/openshift_v_3_10
Multiple changes to deploy scripts
2018-08-22 20:52:57 +03:00
Eugene Ivantsov e5ed7028ae Remove local dir. Fix path to crt file 2018-08-21 12:28:38 +03:00
Mykhailo Kuznietsov dcb00c53d0
Fix remaining files with licenses (#10746) 2018-08-21 10:25:45 +03:00
Oleksandr Garagatyi eda8344ae6 Remove marketplace placeholder leftovers
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-08-20 11:08:07 +03:00
Oleksandr Garagatyi b5d727e475 Make Che communicate with che-plugin-registry
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-08-20 11:08:07 +03:00
Eugene Ivantsov d20e560693 remove todo 2018-08-15 15:53:30 +03:00
Guy Daich 099323a1e4
Merge pull request #10509 from i300543/master
Make host calculation more short and concise for che master
2018-08-15 15:31:53 +03:00
Eugene Ivantsov b676010b23 Revert workaround with tags 2018-08-14 19:34:08 +03:00
Eugene Ivantsov 5d5eb2bad9 Uncomment function 2018-08-14 17:54:49 +03:00
Sergey Kuperman 107c5507f9 fix hardcoded secret name in certificate.yaml
Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>
2018-08-14 14:35:09 +03:00
Eugene Ivantsov 9baa4bb84a Exit if ansible service broker deployment times out 2018-08-14 13:54:08 +03:00
Eugene Ivantsov 3eb094a7c1 Multiple changes to deploy scripts 2018-08-14 12:39:45 +03:00
Maxim Musienko 976842ffe9 fix k8s deployment fail (#10747)
* fix k8s deployment fail
2018-08-13 12:14:20 +03:00
Roman Iuvshyn 5d26cafed4
allow to set che ws agent inacive timeout in helm (#10705) 2018-08-09 11:37:04 +03:00
Angel Misevski 44588aa775 Remove unnecessary properties from kubernetes/OS infrastructure
Removes properties

- che.infra.kubernetes.username : can change, requiring reconfiguration
- che.infra.kubernetes.password : can change, requiring reconfiguration
- che.infra.kubernetes.oauth_token : expires

as they complicate setup and all represent suboptimal running scenarios.
Use che serviceaccount instead.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2018-08-07 10:11:12 -04:00
Sergey Kuperman 124a8f18ef Make host calculation more short and concise for che master
Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>
2018-08-06 10:57:59 +03:00
Mykhailo Kuznietsov 1170a06bb9
Add Proxy env variables for workspace containers in Openshift and Kub… (#10387) 2018-07-31 17:27:36 +03:00
Oleksandr Garagatyi e17fbed76f Small fixes WS.NEXT deployment readme
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-07-19 09:54:29 +02:00
Roman Iuvshyn bfd32d65fe
clean up k8s config map (#10391)
* clean up k8s config map
2018-07-12 11:56:55 +03:00
Roman Iuvshyn 19ecb7d8bd
set default k8s namespace to che (#10366)
* allow to override CHE_INFRA_KUBERNETES_NAMESPACE during deploy che on k8s with helm
2018-07-10 18:31:46 +03:00
Sergii Leshchenko a2c3a2229c
Added an ability to specify custom ocp tools dir (#10302)
* Fix evaluation of OC version in ocp.sh script

* Add an ability to specify custom ocp tools dir

The motivation to do that is not to download oc and jq
binaries each time after reboot since default folder is located in tmp
folder
2018-07-06 10:24:32 +03:00
Eugene Ivantsov cf0db82b97 Make initial pvc claim configurable 2018-07-05 16:33:18 +03:00
Guy Daich 7802427a32 Update readme.md (#10152)
Fix Routing Strategy Docs
2018-07-05 14:37:11 +03:00
Oleksandr Garagatyi 9fe9021330
Adjust Workspace.Next model classes to latest updates in the Workspace.Next vision (#10246)
Rework model, of CheService and renamed it to ChePlugin. 
Replace features hosting to apache server to be able to host plugin files and avoiding having model files for Go lang.
Host YAMLs instead of JSONs. Downloads and parse ChePlugin YAMLs instead of JSONs from the marketplace.
Improve unit tests coverage. 
Add support of Che Server protocol and path, so it is possible to run Classic GWT IDE in Workspace Next now.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-07-04 18:13:20 +02:00
Dmytro Nochevnov 363126c7a5
Fix start of workspaces of Eclipse Che Singleuser on OCP (#10146)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-06-22 10:30:26 +03:00
Roman Iuvshyn 86a56b0133
Update deploy_che.sh (#10126) 2018-06-21 10:37:28 +03:00
Dmytro Nochevnov c55a2db96c
Setup OCP to create objects under the certain user account (#10114)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-06-20 12:41:27 +03:00
Sergey Skorik 509e83955f
Fix image-che-flag
Use the right env name
2018-06-18 09:59:40 +03:00
Eugene Ivantsov 5fed493c90 Fix ocp.sh 2018-06-13 09:19:09 +03:00
Oleksandr Garagatyi bddbd658bf Add Workspace Next support to Openshift recipe/infra
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-06-08 17:10:24 +03:00
Oleksandr Garagatyi ddba875800 Fix incorrect link to Che docs
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-06-08 15:26:27 +03:00
i300543 34e6ab326f Improve wsmaster OpenIdConnect configurability, and helm deployment scripts (#9826)
* Improve wsmaster OpenIdConnect configurability, and helm deployment scripts
- Make username claim configurable  in cases
  Oidc provider does not support the default claim (default is "preferred_user")
- Introduce fallback for username (issuer+subject) if the username claim is not present
  in the token
- Extend helm scripts to take customOidcProvider and customOidcUsernameClaim
  parameters into account when deploying che master.
- Introduce cheDedicatedKeycloak global param, conditioning if dedicated che
  keycloak server should be deployed, and waited on by the master.
- default value for cheDedicatedKeycloak (if not defined) is true
  if the cheDedicatedKeycloak parameter is defined and is false,
  customOidcProvicer must be supplied, when using multiuser mode.

Signed-off-by: Sergey Kuperman <sergey.kuperman@sap.com>

* Code review fixes

Remove the extra if condition in configmap.yaml
Remove extra line in requirements.yaml
fix typo in deployment.yaml

* Add che.keycloak.username_claim property as NULL into multiuser.properties

* Simplify helm conditions, when deploying che master with or without keycloak

if multiuser = true, and .Values.customOidcProvider was supplied, assumption is that
we work with no keycloak (no waiting in deployment)

global.cheDedicatedKeycloak is still needed as separate variable for requirements.yaml to determine whether keycloak chart should be installed

so for keycloak deployment, no parameters need to be passed beside global.multiuser=true,
for custom OIDC :
.Values.customOidcProvider=http://url, and global.cheDedicatedKeycloak=false
both need to be set
2018-06-06 10:35:04 +03:00
Oleksandr Garagatyi 2fcdcf1fda CHE-8265: Add an ability to try Workspace.Next on k8s deployment
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-06-05 10:02:03 +03:00
Oleksandr Garagatyi 5dc9479073 Fix incorrect address in kubects deployment
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-06-04 14:48:31 +03:00
Eugene Ivantsov 29cb708773 Adding self signed cert to Java trust store 2018-05-30 12:27:41 +03:00
David Festal e0890235fa
Allow creating OpenShift objects under the current user account on OCP (#9577)
* Support identity provider token retrieval in both JSON or URL formats.

That's required because some identity providers (such a `openshift-v3`)
correctly return the token information in JSON, as expected. So
switching to the url-based syntax should only used when the returned
json is invalid.

Signed-off-by: David Festal <dfestal@redhat.com>

* Introduce an `OpenShiftClientConfigFactory` to allow customizing the OpenShift config returned according to the current context (workspace ID, current user)

Signed-off-by: David Festal <dfestal@redhat.com>

* Openshift Infra + Multi-user => allow using OpenShift identity provider to connect to openshift with the OS oauth token of the current Che user.

This introduces a new property:

`che.infra.openshift.oauth_identity_provider`

Signed-off-by: David Festal <dfestal@redhat.com>

* Notify the user when a workspace cannot be started from the nav bar.

Signed-off-by: David Festal <dfestal@redhat.com>

* Add the ability to install the Openshift certificate into Keycloak

Signed-off-by: David Festal <dfestal@redhat.com>

* Add a yaml file to provide the openshift certificate as a secret,

in case it has to be installed into the dedicated Keycloak server.

Then the commands to install Che multiuser on Minishift with this
certificate are:

```
oc new-project che

oc process -f multi/openshift-certificate-secret.yaml -p
CERTIFICATE="$(minishift ssh docker exec origin /bin/cat
./openshift.local.config/master/ca.crt)" | oc apply -f -; \
oc new-app -f multi/postgres-template.yaml; \
oc new-app -f multi/keycloak-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io; \
oc apply -f pvc/che-server-pvc.yaml; \
oc new-app -f che-server-template.yaml -p ROUTING_SUFFIX=$(minishift
ip).nip.io -p CHE_MULTIUSER=true -p
CHE_INFRA_OPENSHIFT_OAUTH__IDENTITY__PROVIDER=openshift-v3; \
oc set volume dc/che --add -m /data --name=che-data-volume
--claim-name=che-data-volume
```

Of course it's still needed to register the `openshift-v3` identity
provider in the Keycloak server, as well as, add the corresponding
`OAuthClient` object in Minihshift.

Signed-off-by: David Festal <dfestal@redhat.com>
2018-05-28 11:39:44 +02:00
Dmytro Nochevnov 6c0f87c29a
Wait until Che is available when deploying it on OCP (#9783)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-05-23 23:13:21 +03:00
Eugene Ivantsov 4493c8e5d0 Make client id and secret configurable from command line 2018-05-18 11:12:29 +03:00
Sergii Leshchenko 459acb5bb6 Fix project parameter usage example in deploy_che.sh script 2018-05-17 11:50:00 +03:00
Anton Korneta fc04f59045 Increase termination grace period to 6 minutes 2018-05-17 11:50:00 +03:00
Eugene Ivantsov c835bf3172
Merge pull request #9619 from sleshchenko/deployChe
Add logging of Kubernetes/OpenShift unrecoverable events
2018-05-07 10:15:18 +02:00
Dmytro Nochevnov ab9d485d8d Fix Eclipse Che deploy on OCP (#9627)
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
2018-05-05 10:57:41 +02:00
Sergii Leshchenko 279d85b728 Add name of an unknown argument in error message 2018-05-04 17:36:01 +03:00
Eugene Ivantsov a22a2b3510
Update deploy_che script (#9513)
* Update OpenShift Origin version to 3.9

* Deploy script uses templates

* Pass args to deploy script

* Remove old scripts and yamls

* Add missing args to ocp.sh help and and help to deploy_che.sh

* Small fixes

* Remove mistakenly added file

* Remove mistakenly added file

* Remove -a in docker ps to get registry container

* Do not pass args but export envs in ocp.sh

* Messed envs a bit

* Delete test service that is used to compute routing suffix

* Remove unnecessary port from Keycloak route

* Fixes

* Fixes

* Typo

* Minor fixes
2018-05-04 11:36:41 +02:00
Eugene Ivantsov 86f34103d1
Remove Keycloak job, use the right entrypoint, add envs the script requires (#9533) 2018-04-26 13:38:04 +03:00
Eugene Ivantsov b9346ee246
Update OpenShift Origin version to 3.9 (#9509)
* Update OpenShift Origin version to 3.9

* Update grep to verify docker registyr container is in running state

* Do not list exited containers when looking for Registry container ID
2018-04-23 18:05:00 +03:00
Eugene Ivantsov b062bdfb33
Use -gt as comparison operator (#9497) 2018-04-19 15:57:24 +03:00
Eugene Ivantsov c40a14e45e
Fixes to ocp script (#9493)
* Fixes to ocp script

* Remove duplicated env
2018-04-19 14:10:06 +03:00
Eugene Ivantsov b4c9fa91ea
Make Keycloak Admin configurable (#9490)
* Make Keycloak Admin configurable

* Make Keycloak Admin configurable

* Fix typos
2018-04-19 14:09:39 +03:00
Oleksandr Garagatyi 004d2a07f7
CHE-9428: fix kubernetes infra after a merge of not checked PR (#9446)
Set correct bindings of generics, fix generics;
Add missing properties in che.properties and kubectl deployment.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-04-18 12:48:21 +03:00
Sergii Leshchenko 09149b296f
Fix command for launching minikube with RBAC in helm chart readme (#9468) 2018-04-17 17:30:52 +03:00
Eugene Ivantsov fa046bd6e3
Use templates only to deploy Che to OpenShift (#9190)
* Use templates only to deploy Che to OpenShift

* Avoid breaking existing scripts

* Avoid breaking existing scripts

* Fixes

* Cleanup

* Cleanup

* Fixup

* New line and typos

* New line and typos

* Update dc/che. Env variables

* Remove creationtimestamp

* Template cleanup. Update README

* Fix DB URL env

* Add missing keycloak param

* Changes to ocp.sh to use new templates. Fix Keycloak template

* Env support

* Update server yaml. Update ocp.sh

* Configure CHE_IMAGE and CHE_TAG

* Add recycler

* Revern recycler sa

* Using credentials and creating ws in separate namespaces

* Use custom Keycloak image

* Use custom Keycloak image

* Remove use of credentials
2018-04-17 14:29:59 +03:00
Ilya Buziuk 6f3842bfeb che #9376 Setting default postgres image for 'deploy_postgres_only.sh' instead of failing if 'IMAGE_POSTGRES' env var is not set
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
2018-04-12 11:04:01 +02:00
Max Shaposhnik 161ff9416c
Configure JPA L2 cache coordination between instances on Openshift® / Kubernetes (#8982) 2018-04-11 13:44:15 +03:00
Guy Daich a48d4b42c8 k8s-infra: routing, TLS (rebased) (#9329)
Introduce an External Server Exposer Strategy, 
responsible for exposing service ports associated with external servers,
making them accessible from outside the cluster.
Move server exposure to shared k8s infra level:
- multi-host: unique hostname for each component, like Che Openshift infrastructure.
- single-host: single hostname for all components. Can be used in conjunction with TLS.
- default-host: default ingress hostname. Can be used for local development without dynamic DNS (based on ingress IP).
Add basic TLS support.
Signed-off-by: Guy Daich <guy.daich@sap.com>
2018-04-10 09:53:23 +03:00
Oleksandr Garagatyi 131ae27612 CHE-9275: Add setting of an env var to configure master logs encoding
Add setting of env var CHE_LOGS_APPENDERS_IMPL that sets Che master
logs producing configuration to deployments for:
- docker (che.env)
- kubernetes (kubectl)
- kubernetes (helm)
- openshift (scripts)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>

Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-04-06 09:16:49 +03:00
Anton Korneta 0afb356487 Disable che-data pvc creation for musltiuser che deployment 2018-03-28 11:17:20 +03:00
perspectivus1 c4896a1559 Fix K8s Helm Chart (#9230)
* Fix Kubernetes Helm chart name to match directory name (see PR 9143)

Signed-off-by: Eyal Barlev <perspectivus@gmail.com>
2018-03-27 17:48:46 +02:00
Roman Iuvshyn e38b7e963a
Allow to override CHE props defined in che-config file (#9240) 2018-03-26 14:20:43 +03:00
Roman Iuvshyn 03a06813e9
ocp.sh clean up (#9207)
ocp.sh clean up
2018-03-23 15:46:31 +02:00
Roman Iuvshyn e2e8ad95ae fix wait CHE pod in deploy script
both `available` and `progressing` should be "True" to treat deployment as successful
2018-03-22 16:30:16 +02:00
Roman Iuvshyn 67e95e9eaf fix deploy che multiuser
make KC configuration before CHE pod start
2018-03-22 14:44:03 +02:00
Roman Iuvshyn 123c3adde3 ocp.sh clean-up
ocp.sh clean-up
2018-03-22 11:31:51 +02:00
Roman Iuvshyn bd3c1956a2
fix deploy_che.sh ability to be launched from any place (#9165)
* fix deploy_che.sh ability to be launched from any place
2018-03-21 14:31:51 +02:00
Roman Iuvshyn 80b415fdd5
fix ocp.sh ability to be launched from any place (#9159)
* fix ocp.sh ability to be launched from any place
2018-03-21 12:05:44 +02:00
Oleksandr Garagatyi d047863484 Move deployment files out of dockerfiles folder
Move openshift/k8s deployment files from dockerfiles/init folder
to deploy folder with a better structure because they are not
related to init dockerfile.
Add readme files in each deployment target folder with links to
Che docs where the process of deployment is described.
Remove delivery of deployment files by init image which is
useless.
Remove empty docs files from the repo and init image.
Fix some minor typos and trailing spaces.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-03-20 22:13:24 +02:00