1
0
mirror of https://github.com/rancher/rke.git synced 2025-05-13 10:54:34 +00:00
Commit Graph

180 Commits

Author SHA1 Message Date
Sebastiaan van Steenis
2b53fefbee Add parameter for s3 folder 2019-07-19 13:25:32 -07:00
kinarashah
f360207416 move metadata init to InitClusterObject 2019-07-08 15:40:31 -07:00
kinarashah
dc6f397f78 fix rke cluster delete from cli 2019-07-08 15:08:57 -07:00
kinarashah
116b47b025 rancher pass serviceoptions and addon templates to rke 2019-07-03 10:04:27 -07:00
kinarashah
c191ed6202 use k8s version info from kontainer-driver-metadata 2019-07-03 10:04:27 -07:00
moelsayed
2c907f9f21 rename EndpointCA 2019-06-25 14:17:53 -07:00
moelsayed
38c31b9766 Add option to pass custom CA certificate for S3 backend 2019-06-20 15:00:00 -07:00
Alex Seymour
ad415059cb Log error message on failure to get legacy cluster state from k8s 2019-06-17 14:55:50 -07:00
galal-hussein
22f261daf7 fix upgrade path for clusters created before 0.1.10 2019-05-29 15:44:37 -07:00
galal-hussein
7a0406c44f Check legacy state if kubeconfig doesnt exist 2019-04-23 16:43:07 -07:00
moelsayed
06b709e888 Add RemoveEtcdSnapshot 2019-04-05 13:51:08 -07:00
galal-hussein
3bc6b0a18f Fix desired state in rke rotate 2019-04-03 16:39:21 -07:00
galal-hussein
c1372bc797 Fetch certificates and state from nodes for legacy cluster 2019-03-18 12:59:52 -07:00
moelsayed
64fed4bd9b Change RestoreEtcdSnapshot to return updated cluster information 2019-03-09 08:52:26 -08:00
galal-hussein
2696b88dfc Upgrade legacy kubeapi service 2019-03-08 19:42:39 -08:00
moelsayed
1e34a7c5fa Add BackupConfig Enabled flag 2019-03-08 14:22:10 -08:00
moelsayed
e3d6fb4db9 Restore backup to a new etcd plane 2019-03-06 09:22:52 -08:00
moelsayed
b80785e75e Ensure certs are availaible for restore 2019-03-03 09:14:36 -08:00
galal-hussein
9d85116568 Modify kubernetes version check to allow upgrade 2019-03-01 11:11:16 -08:00
moelsayed
8304b99180 Continue restore on when nodes are off 2019-03-01 09:39:14 -08:00
moelsayed
1aa6057cb3 Fix command help message 2019-02-21 10:47:46 -08:00
moelsayed
eb3dd4958f Handle legacy clusters restore 2019-02-14 17:25:52 -08:00
moelsayed
1938b88023 Update help message 2019-02-07 11:07:06 -08:00
moelsayed
285ac8d81c Automatically sync local backups 2019-01-28 15:27:58 -08:00
galal-hussein
ec317d8361 Only use current versions from types 2019-01-24 12:15:47 -08:00
Jason Greathouse
a64e8f64fb honor kubernetes_version setting 2019-01-24 11:34:07 -08:00
moelsayed
3b3cda1b08 Work around systemd-resolved for dind
Add dind-dns-server option
Set sysctl configration for calico
2019-01-22 09:10:02 -08:00
galal-hussein
82fa8d6305 Add restart components to custom certs 2019-01-14 11:51:11 -08:00
galal-hussein
9ee750ec01 Adding csr generation and custom certs 2019-01-09 11:47:53 -08:00
Jason Greathouse
7afa6e927e update k8s defaults, CIS recommendations 2019-01-07 12:07:46 -08:00
Guangbo Chen
9cfe5661d8 add etcd s3 uploading and downloading snapshot feature 2019-01-04 13:54:14 -08:00
galal-hussein
3c6c7f1b7b Run rebuild cluster certs from clusterup 2018-12-20 14:04:47 -08:00
galal-hussein
4d23fb4288 Return api and client certs to rotate certs 2018-12-18 16:35:20 -08:00
galal-hussein
ff4c93e179 refactor etcd restoration process 2018-11-30 12:48:41 -08:00
galal-hussein
f3bbd81c52 Update etcd save/restore to work with new state managemnet 2018-11-27 11:09:56 -08:00
galal-hussein
11aa0caabc Fix rotate certificates with new state 2018-11-14 05:15:57 +08:00
galal-hussein
696b61679c Final fixes and cleanup for state management
Fix dind and local and etcd snapshots

add ExternalFlags and dialer options
2018-11-09 11:16:17 -08:00
moelsayed
6da35256a8 handle upgrade cases
backup state to kubernetes
2018-11-09 11:16:17 -08:00
galal-hussein
8b8870311b refactor the build state
remove extra cert generation for etcd in reconcile

fix reconcile and etcd add and remove cluster state with rke remove

fix add/remove issues

Fix the up command

Fix default paths for kubeconfig and rkestate
2018-11-09 11:16:17 -08:00
moelsayed
90fd13db65 Update main code path to use new state 2018-11-09 11:16:17 -08:00
galal-hussein
f48da22d8e init commit for refactor state
add init test

use rkeconfig for init

reconcile old state file
2018-11-09 11:16:17 -08:00
galal-hussein
3551e6e4b6 Add Rotate certificates command to rke 2018-10-31 12:08:31 -07:00
galal-hussein
a55b9a6ae0 Add option for dind storage driver 2018-10-18 09:32:29 -07:00
moelsayed
8a808c4cc5 Set cluster config as early as possible 2018-10-18 09:25:46 -07:00
galal-hussein
ce62c898bb Handle deleting all controlplane nodes when nodes are unreachable 2018-09-26 17:03:53 -07:00
galal-hussein
cb50672071 Generate system image list for k8s versions 2018-08-30 15:28:58 -07:00
galal-hussein
0d0ec5c7c4 Use default docker bridge network instead of creating new network 2018-08-15 09:35:36 -07:00
Sebastiaan van Steenis
caa2c524a6 Misc typos/definitions 2018-07-22 08:37:25 -07:00
Sebastiaan van Steenis
8231606b2a Move local check to top like in up 2018-07-11 12:54:58 -07:00
galal-hussein
247f4c9450 Add dind mode to rke 2018-07-10 15:51:17 -07:00
Sebastiaan van Steenis
a330cfb907 Make cluster.yml check the first check 2018-06-29 11:24:30 -07:00
moelsayed
557e9a7bde Move interactive image config out of services 2018-06-18 13:25:53 -07:00
galal-hussein
2da8682463 Add certificate bundle backup with etcd snapshot-save 2018-06-07 16:40:41 -07:00
galal-hussein
4b4ec352ae Change backup to snapshot in etcd 2018-05-18 00:34:12 +02:00
galal-hussein
29db257875 change the etcd backup to etcd snapshot-save 2018-05-17 09:05:34 -07:00
Bill Maxwell
73e56b0fbb Added flag to ignore docker version 2018-05-16 14:01:31 -07:00
galal-hussein
a3416e6b92 Etcd Backup/restore 2018-05-09 19:39:19 +02:00
galal-hussein
838928978a Add updated cluster config to the k8s state 2018-04-27 15:07:50 -07:00
Alena Prokharchyk
bcb9cf2a2b
Merge pull request from dahendel/addons-prompt
Prompt for addon paths and urls
2018-04-20 15:26:24 -07:00
Darren Shepherd
23ec8ebb36 Return error when a host is inactive 2018-04-17 23:42:59 -07:00
dhendel
ab61ac5499 Added prompt for addon paths and urls 2018-04-03 10:59:08 -05:00
Darren Shepherd
2c79e9bfc5 ClusterUp return certs 2018-04-02 04:03:43 -07:00
Darren Shepherd
b841604933 Revert "Make etcd provisioning a public API"
This reverts commit d2c58fb8e6.
2018-04-02 04:03:43 -07:00
Darren Shepherd
d2c58fb8e6 Make etcd provisioning a public API 2018-03-31 04:00:50 -07:00
moelsayed
ef7b997e2a Log RKE components to a specific location 2018-03-21 22:29:09 +02:00
galal-hussein
6e7e18ad1e Update workers only option
Disable port check
2018-03-20 15:17:35 +02:00
Bill Maxwell
ad0bc6c0aa Leverage global SSHAgentAuth setting
This addresses users issues in being unable to use RKE command line
using SSH_AUTH_SOCK. On OSX the socket env var is set, but nothing
is listening. Also, Linux users have reported issues. To address this
the default mode is to not use SSH Agent Auth. A user must set it
explicitly in either the config file or on the CLI. The only way
to use a passphrase protected key file is with a properly configured
SSH Agent and using SSH Agent Auth.
2018-03-05 17:52:43 -07:00
Darren Shepherd
c3d3d013dc Add option to use kubectl to deploy 2018-03-01 14:35:58 -07:00
galal-hussein
bfa51fd41c extract apply authz resource function 2018-02-26 16:04:19 -07:00
moelsayed
eddb9ec56b Use default images from types 2018-02-26 21:30:52 +02:00
Sebastiaan van Steenis
56da1fe849 SSH port is configurable 2018-02-21 13:04:06 +01:00
moelsayed
03673b8f22 Add support for custom WrapTransport for Kubernetes Client 2018-02-20 20:45:32 +02:00
galal-hussein
11d7aa0e16 Start cluster with only etcd nodes 2018-02-16 03:39:13 +02:00
galal-hussein
59182cee62 [RKE Refactor] Generate cluster and node certs 2018-02-08 20:15:36 +02:00
galal-hussein
d99efdc60f rke refactoring - configure cluster method 2018-02-08 05:13:06 +02:00
galal-hussein
cd1e5cf610 Custom dialers and remove local fixes 2018-02-03 03:04:53 +02:00
moelsayed
9320a57949 Pre-pull k8s images 2018-02-02 00:05:15 +02:00
galal-hussein
f8f877ba27 Add nginx ingress controller and labels/taints sync 2018-02-01 23:28:31 +02:00
galal-hussein
0ef0a17010 Add generic generation for pki objects and etcd TLS 2018-01-25 20:38:07 +02:00
moelsayed
7fada001d3 Fix port-check update issue 2018-01-19 01:54:02 +02:00
moelsayed
c815ef5751 Add open port checks 2018-01-17 23:45:29 +02:00
galal-hussein
447eb6a479 make cluster.yml optional in --local 2018-01-15 06:36:28 +02:00
galal-hussein
8685523038 Add local option to deploy/remove kubernetes on local machine
Remove insecure port from kube-api

Use cluster.yml config

Pass config dir to cluster up/remove
2018-01-12 20:46:09 +02:00
galal-hussein
67774f7e30 Handle add/remove for etcd nodes
Handle adding more than one etcd at once
2018-01-12 03:57:37 +02:00
Darren Shepherd
d8dd29765f Add context.Context to everything and also make logging pluggable 2018-01-09 15:18:01 -07:00
galal-hussein
bb008ba58a Save certificate after deploying control plane 2018-01-02 23:27:13 +02:00
galal-hussein
c5d4229409 Minor fixes 2017-12-21 23:12:26 +02:00
Alena Prokharchyk
e6c3f50a4d
Merge pull request from galal-hussein/healthcheck_validation
Add healthcheck for services components
2017-12-20 13:32:00 -08:00
galal-hussein
ed7ca110b0 Add healtcheck for services components
Integrate healthcheck with each service
2017-12-20 23:24:28 +02:00
moelsayed
2011a2cf01 Enable PodSecurityPolicy support 2017-12-20 23:15:21 +02:00
Alena Prokharchyk
68a3ef2a43
Merge pull request from galal-hussein/dialer_factory
Add Dialer Factory and receive rkeConfig instead of cluster yaml
2017-12-15 21:28:52 -08:00
galal-hussein
fd47cdc80d Add Dialer Factory 2017-12-16 07:23:58 +02:00
moelsayed
8ea65915d3 Enable RBAC and needed addons/network plugin configuration 2017-12-16 05:41:18 +02:00
moelsayed
c671552a27 add ignore_docker_version 2017-12-15 05:02:44 +02:00
Alena Prokharchyk
e58d7685da
Merge pull request from guangbochen/master
update misspelled common words
2017-12-13 09:52:25 -08:00
galal-hussein
67c4214906 Using a custom dialer for cluster hosts 2017-12-12 01:50:10 +02:00
Guangbo Chen
1cc26ee373 update misspelled common words 2017-12-09 19:53:38 +08:00
moelsayed
0ee002b2cf Add user-configurable images
Refactor configuration defaults
 Add comments to config
 Add configurable utility images
 Add configurable network plugin images
 Add configurable kubedns images
2017-12-05 20:34:54 +02:00
Darren Shepherd
df7e40188e Refactor types 2017-12-05 10:29:50 -07:00
galal-hussein
f7905e2dfd Add ssh key and path per host 2017-12-04 22:09:57 +02:00