Commit Graph

125 Commits

Author SHA1 Message Date
Chris Lu 831adc091f fix image comparison 2020-11-08 23:58:48 -08:00
Chris Lu 5a4f61591d adjust for tests 2020-11-08 23:02:09 -08:00
Chris Lu fab237e7ef fix expected master count 2020-11-08 22:34:04 -08:00
Chris Lu 6bb6a1bae6 for the quorum 2020-11-08 18:22:26 -08:00
Chris Lu cb86e4a770 ensure the image version matches expected version
fix https://github.com/seaweedfs/seaweedfs-operator/issues/25
2020-11-08 18:20:33 -08:00
Chris Lu 8342be9b1c proceed only when masters are all ready
fix https://github.com/seaweedfs/seaweedfs-operator/issues/21
2020-11-08 17:41:12 -08:00
Chris Lu 8585daff05 go fmt 2020-11-08 17:40:30 -08:00
Chris Lu 411cb7bc7d fix odd number of masters 2020-11-08 17:40:16 -08:00
Chris Lu 9ba4b60d94 re-run reconcile every 5 seconds, to check node status changes 2020-11-08 17:00:41 -08:00
Chris Lu eccad4af1e unused functions 2020-11-08 16:46:16 -08:00
Chris Lu 771312ddfb add steps to develop inside k8s 2020-11-08 16:23:17 -08:00
Chris Lu b0f01a5e1a add namespace to master peers list 2020-11-08 16:12:31 -08:00
Chris Lu 3ecd205e8e add a seaweed admin
related to https://github.com/seaweedfs/seaweedfs-operator/issues/23
2020-11-08 00:55:56 -08:00
Chris Lu 291b479395 filer, volume stateful set detect changes 2020-11-04 19:01:19 -08:00
Chris Lu 95dc4a247d master statefulset ensure consistent style
fix https://github.com/seaweedfs/seaweedfs-operator/issues/19
2020-11-04 19:00:34 -08:00
Chris Lu 46806156b6 add filer and s3 ingress 2020-11-04 14:30:15 -08:00
Chris Lu 255a6487c7 fix filer configmap 2020-11-03 20:47:45 -08:00
Chris Lu 561e7fcc3a add filer.toml to /etc/seaweedfs 2020-11-03 20:01:19 -08:00
Chris Lu 7399cc6e30 fix filer replica 2020-11-03 18:26:28 -08:00
Howard Lau 647b74f909
fix wrong if
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-11-01 09:34:52 +00:00
Howard Lau 152049b5cf
fix lint
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-11-01 09:32:43 +00:00
Howard Lau 08430619b9
fix lint
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-11-01 09:28:08 +00:00
Howard Lau 89bf4e4e0e
Add tests
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-11-01 09:24:13 +00:00
Howard Lau 753e8e8c00
Add managed-by
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-11-01 06:46:34 +00:00
Howard Lau eb051a3202
Use Kubernetes recommended labels
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-11-01 06:43:45 +00:00
Howard Lau a9ea14b399
fix port
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 09:23:54 +00:00
Howard Lau e8ba79aae6
add filer peers on filer startup
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 09:15:16 +00:00
Howard Lau cbd151aa2a
fix service
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 07:14:24 +00:00
Howard Lau 223d464e45
do not sleep
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 06:57:51 +00:00
Howard Lau 53536d56db
fix name
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 06:57:02 +00:00
Howard Lau 7b11a10862
fix master name
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 06:44:51 +00:00
Howard Lau a8c8fd65bc
add config
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 06:42:00 +00:00
Howard Lau 8c390ce083
fix float issues
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 03:09:04 +00:00
Howard Lau 95b9af71fa
ownerReference for cm
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-30 02:42:34 +00:00
Howard Lau e7b287bb6f Merge branch 'master' into peersvc 2020-10-30 02:40:34 +00:00
Chris Lu 4d2cd6ce12
Merge pull request #7 from howardlau1999/config
Support raw TOML config for master and filer
2020-10-29 08:52:56 -07:00
Chris Lu 9e229fc647
Merge pull request #9 from howardlau1999/owner
Set ownerReference for GC
2020-10-29 08:51:33 -07:00
Howard Lau 0d53ed3402
Set ownerReference for GC
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-29 14:31:06 +00:00
Howard Lau c5fbce3700
Make sure the operator is runnable
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-29 11:56:59 +00:00
Howard Lau e8baea6ae4
fix rbac
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-29 11:37:49 +00:00
Howard Lau 6c601549f9
rbac
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-29 11:24:38 +00:00
Howard Lau 2c0d8fac02
fix
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-29 09:03:30 +00:00
Howard Lau f8e325e446
create peer svc for sts
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-29 08:57:16 +00:00
Howard Lau 3722dcdc0e
fix mountpath
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-28 11:33:16 +00:00
Howard Lau a4b872fbbc
format
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-28 11:31:02 +00:00
Howard Lau 6ee14a018f
Reconcile ConfigMap
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-28 11:29:11 +00:00
Howard Lau 09d121bcb5
Support raw TOML config for master and filer
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-28 11:19:17 +00:00
Howard Lau d6e3cf7be9
use accessor to merge config and extract magic numbers
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-28 07:06:37 +00:00
Howard Lau ef177093c7
remove unused field
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-28 05:09:01 +00:00
Howard Lau 4f59aa4ada
refactor to multiple specs
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
2020-10-28 05:06:25 +00:00
Chris Lu 937ea45c04 add volume server disks 2020-10-20 00:17:14 -07:00
Chris Lu 80ba5abbae probe volume, filer. 2020-10-18 22:56:12 -07:00
Chris Lu 1a443616b6 master probe 2020-10-18 22:49:11 -07:00
Chris Lu 4b67dd3791 simplify 2020-10-18 01:59:38 -07:00
Chris Lu 8ad7ee2d50 create ingress, simplify ensure filer statefulset 2020-10-18 00:12:33 -07:00
Chris Lu a5c5e85f2a simplify 2020-10-18 00:06:40 -07:00
Chris Lu 58aa518ba7 simplify 2020-10-17 20:52:13 -07:00
Chris Lu 4df48f08de adjust logs 2020-10-17 14:07:06 -07:00
Chris Lu 95164dc830 add filer nodeport service 2020-10-17 13:51:07 -07:00
Chris Lu 4bb6f99cd8 support upgrade 2020-10-17 02:25:23 -07:00
Chris Lu 4ea680c4c9 fix filer starting 2020-10-17 00:59:38 -07:00
Chris Lu a55feda96d support adjustable volume count and filer count 2020-10-16 23:25:46 -07:00
Chris Lu 30e457b814 merge s3 with filer 2020-10-14 21:53:09 -07:00
Chris Lu c7e0392c1c refactor 2020-10-14 21:45:53 -07:00
Chris Lu bef24b2e33 create filer and s3 2020-08-05 21:11:40 -07:00
Chris Lu 3a17b591e7 add volume service and statefulset 2020-08-04 22:13:36 -07:00
Chris Lu 87c1ee2c7e tweaking log messages 2020-08-02 22:48:15 -07:00
Chris Lu 9ee5f6bb7e need to add a delay for the dns to be ready 2020-08-02 17:09:59 -07:00
Chris Lu 9c9549c1cc reordering
still has problem on a brand new k8s cluster
2020-08-02 16:52:05 -07:00
Chris Lu c53585391a headless service + statefulset
EnableServiceLinks
PublishNotReadyAddresses
2020-08-02 16:12:52 -07:00
Chris Lu 9b075d68ce restart 2020-08-01 23:27:46 -07:00
Chris Lu f65a532f78 change master service to headless service 2020-08-01 18:01:15 -07:00
Chris Lu bcd4d42404 refactoring 2020-07-28 23:21:01 -07:00
Chris Lu 03e6abe6e8 simple, but somehow the reconcile function is not invoked 2020-07-27 02:22:49 -07:00
Chris Lu b37f7a9f02 operator-sdk create api --group=objectstore --version=v100 --kind=Master 2020-07-26 15:10:35 -07:00