ben-toogood
5a88ea7247
runtime: resource limits (kubernetes implementation) ( #1931 )
...
* runtime: add resource limit CreateOptions
* util/kubernetes/client: implement support for resource limits
* runtime/kubernetes: set resource limits for k8s deployments
* util/kubernetes: remove template check for ints
* util/kubernetes: fix incorrect yaml syntax
* runtime/kubernetes: fix incorrect units
* runtime: update create options to use Resources struct
2020-08-14 11:47:28 +01:00
ben-toogood
006bbefaf3
runtime: support for dynamic secrets ( #1861 )
...
* runtime: replace CreateCredentials with CreateSecret
* runtime/kubernetes: secrets support
* runtime: CreateSecret => WithSecret
* runtime: use map[string]string for secrets
* runtime/kubernetes: update to use kv secrets
* Fix merge conflict (missing import)
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-29 13:41:50 +01:00
Asim Aslam
563768b58a
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00
ben-toogood
09ec20fded
runtime: provide credentials to services ( #1817 )
...
* runtime: inject credentials into service
* util/auth: self generate accounts (needed for jwt)
* runtime/kubernetes: add logging for creds
* runtime/kubernetes: serialize secret name
* runtime/kubernetes: remove unused code
* runtime/kubernetes: base64 encode secret
* runtime/kubernetes: remove metadata from secret
* util/kubernetes/client: omit empty secret metadata
* util/kubernetes/client: fix secret template
* util/kubernetes/client: fix secrets
* web: update auth util
* util/auth: fix missing arg
* extend token expiry
* extend token expiry
2020-07-10 16:25:46 +01:00
ben-toogood
3480e0a64e
runtime/kubernetes: remove reference to runtime cells ( #1814 )
2020-07-09 20:21:34 +01:00
ben-toogood
6d9a38a747
kubernetes: fixes for production ( #1812 )
...
* util/kubernetes/client: add secrets to deployments
* util/kubernetes/client: remove ServiceAccountName override
* debugging
* runtime/kubernetes: fix error
* runtime/kubernetes: remove test secret
* util/kubernetes/client: update default image
* util/kubernetes/client: remove default command for deployments
* runtime/kubernetes: pass source as arg
* runtime/kubernetes: remove debugging
* util/kubernetes/client: revert default image change
2020-07-09 16:29:01 +01:00
Dominic Wong
86dfcb819b
Ignore "no such process" error ( #1686 )
...
* Cleanup how status is updated for service. Ignore "no such process" error as it could be that the pid died
* add nice error log to record process error exit
2020-06-12 10:42:52 +01:00
Ben Toogood
494e0b5060
Runtime: Add Kubernetes ServiceAccounts & Remove imagePullSecrets
2020-04-27 14:13:51 +01:00
Ben Toogood
4c05623a3c
Image pull secret fix
2020-04-23 17:26:59 +01:00
ben-toogood
b692c045b5
Merge branch 'master' into git-secrets
2020-04-23 15:01:47 +01:00
Ben Toogood
88176dca53
Remove debugging
2020-04-23 14:13:07 +01:00
Ben Toogood
0f42346976
Additonal Debugging
2020-04-23 14:03:04 +01:00
ben-toogood
692b27578c
Runtime Namespace ( #1547 )
...
* Add context option to runtime; Add dynamic namespace to kubectl client
* Add namespace runtime arg
* Fixes & Debugging
* Pass options in k8s runtime
* Set namespace on k8s resources
* Additional Logging
* More debugging
* Remove Debugging
* Ensure namespace exists
* Add debugging
* Refactor namespaceExists check
* Fix
* Fix
* Fix
* Fix
* Change the way we check for namespace
* Fix
* Tidying Up
* Fix Test
* Fix merge bugs
* Serialize k8s namespaces
* Add namespace to watch
* Serialize namespace when creating k8s namespace
Co-authored-by: Ben Toogood <ben@micro.mu>
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-04-23 13:53:42 +01:00
Micro
316b81f790
Debugging
2020-04-23 13:11:00 +01:00
Micro
501a6bf3ea
Add imagePullSecrets to PodSpec
2020-04-23 12:27:36 +01:00
Asim Aslam
0449138f61
fix panic ( #1348 )
2020-03-14 21:18:41 +00:00
Asim Aslam
e803fb0855
Runtime hacks ( #1344 )
...
* Add Args/Image to runtime
* remove the hacks
2020-03-13 18:39:59 +00:00
7b385bf163
minimize allocations in logger and tunnel code ( #1323 )
...
* logs alloc
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* fix allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* tunnel allocs
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* try to fix tunnel
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* cache cipher for send
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* more logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-11 17:55:39 +00:00
ben-toogood
afe6861e2f
Update the k8s deployment to use metadata labels & custom source ( #1271 )
2020-02-28 15:07:55 +00:00
ben-toogood
dcf859098b
Fix k8s commands for github ( #1257 )
2020-02-25 11:39:03 +00:00
ben-toogood
5e8d5834eb
Dynamic Runtime source for k8s with github packages ( #1252 )
...
* Dynamic Runtime source for k8s
* Still check for source
* Replace / with - for k8s service names
* Simplify sourceForName function
2020-02-24 17:47:47 +00:00
117f56ebf7
prune util/log and user logger ( #1237 )
...
* prune util/log and user logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* plaintext logger
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
* add newline
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-02-23 13:45:20 +00:00
Ben Toogood
0591760932
Arg => Args
2020-02-06 12:17:16 +00:00
Ben Toogood
48b9f3f5e9
Fix
2020-02-06 11:28:34 +00:00
Ben Toogood
e46278a766
Test
2020-02-06 11:24:56 +00:00
Ben Toogood
fc4191c647
Fix
2020-02-06 11:12:40 +00:00
Ben Toogood
111126c780
Debugging
2020-02-06 11:00:14 +00:00
Ben Toogood
c28737e88e
Debugging
2020-02-06 10:54:11 +00:00
Ben Toogood
c7d922fac2
Debugging
2020-02-06 10:49:01 +00:00
Ben Toogood
f8e696bd30
Debugging
2020-02-06 10:44:12 +00:00
Ben Toogood
f0762bbb6b
Improve Logging
2020-02-06 10:16:32 +00:00
Ben Toogood
243c6a4246
Debug
2020-02-06 10:08:56 +00:00
Ben Toogood
9983aea928
Tidying Up
2020-02-06 09:29:27 +00:00
Ben Toogood
aa58a9749b
Action Asim's Feedback
2020-02-06 09:17:10 +00:00
f23638c036
fix import paths for v2 release
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-01-30 14:44:40 +03:00
Asim Aslam
39d7938405
Extract k8s run error
2020-01-18 02:13:24 +00:00
Asim Aslam
e1e6199743
normalise runtime service status
2020-01-10 21:54:28 +00:00
Asim Aslam
2fe64001c0
Start runtime services inline
2019-12-24 17:51:30 +00:00
Jake Sanders
e95f44d3f8
Move runtime/kubernetes/client to util/kubernetes/client
2019-12-17 11:32:38 +00:00
Asim Aslam
c3ed83dfba
Support service types in runtime
2019-11-29 11:35:00 +00:00
Asim Aslam
6475c1f3ad
Patch spec template annotations and use event timestmap
2019-11-26 17:33:41 +00:00
Asim Aslam
b06854b0d5
Change the k8s runtime notifier update to get the deployment and update build
2019-11-26 13:49:52 +00:00
Asim Aslam
252667398e
Update the runtime for k8s name formatting and move Get to Read endpoint ( #978 )
...
* Update the runtime for k8s name formatting and move Get to Read endpoint
* strip regex validation
2019-11-25 16:31:14 +00:00
Milos Gajdos
8dc3fb964e
Pass source of service to Deployment API; render templates properly ( #969 )
...
* Pass source of service to Deployment API; render templates properly
* Enable Go modules by default. Honor runtime.Service.Exec
* Make sure you remove go.mod and go.sum
2019-11-21 17:31:13 +00:00
Milos Gajdos
97c1300f53
[WIP] Micro Runtime ( #947 )
...
* Add Get() and GetOptions.
* Removed watcher. Outline of client. YAML templates
* Added default service and deployment templates and types
* Added API tests and cleaned up errors.
* Small refactoring. Template package is no more.
* Ripped out existing code in preparation to small rework
* Reshuffled the source code to make it organized better
* Create service and deployment in kubernetes runtime
* Major cleanup and refactoring of Kubernetes runtime
* Service now handles low level K8s API calls across both K8s deployment
an service API objects
* Runtime has a task queue that serves for queueing runtime action
requests
* General refactoring
* No need for Lock in k8s service
* Added kubernetes runtime env var to default deployment
* Enable running different versions of the same service
* Can't delete services through labels
* Proto cruft. Added runtime.CreateOptions implementation in proto
* Removed proxy service from default env variables
* Make service name mandatory param to Get method
* Get Delete changes from https://github.com/micro/go-micro/pull/945
* Replaced template files with global variables
* Validate service names before sending K8s API request
* Refactored Kubernetes API client. Fixed typos.
* Added client.Resource to make API resources more explicit in code
2019-11-15 13:41:40 +00:00