PyConChina2022-北京-用Python给Kubernetes写个自定义控制器-张晋涛用 Python 给 Kubernetes 写个控制器 主讲人: 张晋涛 个人介绍 Apache APISIX PMC Kubernetes Ingress NGINX maintainer Microsoft MVP 『 K8S 生态周报』发起人和维护者 GitHub:tao12345666333 Mail: zhangjintao@apache.org Agenda admission-controller 示例实现 响应: 200 状态码的 AdmissionReview 对象 uid 从 request 复制过来 allowed: 决定是否允许 可包含 status 或者 patch 等响应 https://github.com/tao12345666333/py-admission-controller 其他方案 OPA/Gatekeeper0 码力 | 17 页 | 1.76 MB | 1 年前3
Celery v4.0.1 Documentationthis method is called when the worker is shutdown. Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 Consumer(on_task_request, init_callback= , hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationthis method is called when the worker is shutdown. Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 Consumer(on_task_request, init_callback= , hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationthis method is called when the worker is shutdown. Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 Consumer(on_task_request, init_callback= , hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery 4.0 Documentationthis method is called when the worker is shutdown. Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 Consumer(on_task_request, init_callback= , hostname=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery 3.0 Documentationthis method is called when the worker is shutdown. Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, host- name=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 {‘shutdown’: controller_info_t(alias=None, type=u’control’, visible=True, default_timeout=1.0, help=u’Shutdown worker(s).’, signature=None, args=None, variadic=None), ‘time_limit’: controller_info_t(alias=None 0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.1.0 DocumentationChapter 2. Contents Celery Documentation, Release 4.1.0 Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, host- name=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 {‘shutdown’: controller_info_t(alias=None, type=u’control’, visible=True, default_timeout=1.0, help=u’Shutdown worker(s).’, signature=None, args=None, variadic=None), ‘time_limit’: controller_info_t(alias=None 0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery v4.0.1 DocumentationUser Guide 173 Celery Documentation, Release 4.0.1 Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, host- name=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 {‘shutdown’: controller_info_t(alias=None, type=u’control’, visible=True, default_timeout=1.0, help=u’Shutdown worker(s).’, signature=None, args=None, variadic=None), ‘time_limit’: controller_info_t(alias=None 0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery v4.0.0 Documentationthis method is called when the worker is shutdown. Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, host- name=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 {‘shutdown’: controller_info_t(alias=None, type=u’control’, visible=True, default_timeout=1.0, help=u’Shutdown worker(s).’, signature=None, args=None, variadic=None), ‘time_limit’: controller_info_t(alias=None 0 码力 | 701 页 | 2.59 MB | 1 年前3
Celery 4.0 Documentationthis method is called when the worker is shutdown. Attributes app The current app instance. controller The parent WorkController object that created this consumer. hostname The workers node name Consumer(on_task_request, init_callback=, host- name=None, pool=None, app=None, timer=None, controller=None, hub=None, amqheartbeat=None, worker_options=None, disable_rate_limits=False, initial_prefetch_count=2 {‘shutdown’: controller_info_t(alias=None, type=u’control’, visible=True, default_timeout=1.0, help=u’Shutdown worker(s).’, signature=None, args=None, variadic=None), ‘time_limit’: controller_info_t(alias=None 0 码力 | 707 页 | 2.63 MB | 1 年前3
共 134 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14













