c7n-kube-0.2.9
توضیحات
Cloud Custodian - Kubernetes Provider
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | c7n-kube-0.2.9 |
| نام | c7n-kube |
| نسخه کتابخانه | 0.2.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Cloud Custodian Project |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://cloudcustodian.io |
| آدرس اینترنتی | https://pypi.org/project/c7n-kube/ |
| مجوز | Apache-2.0 |
# Custodian Kubernetes Support
Cloud Custodian can run policies directly inside your cluster, reporting on
resources that violate those policies, or blocking them altogether.
# Running the server
c7n-kates can be run and installed via poetry. `poetry install && poetry run c7n-kates`.
| name | default | description |
|----------------|-----------|--------------------------------------------------------------|
| --host | 127.0.0.1 | (optional) The host that the server should listen on. |
| --port | 8800 | (optional) The port the server will listen on. |
| --policy-dir | | Path to the policy directory. |
| --on-exception | warn | Action to take on an internal exception. One of: warn, deny. |
| --cert | | Path to the certificate. |
| --ca-cert | | Path to the CA's certificate. |
| --cert-key | | Path to the certificate's key. |
# Generate a MutatingWebhookConfiguration
After the server is running, you'll need to configure and install the
MutatingWebhookConfiguration manually. To generate a webhook configuration, you
can run `poetry run c7n-kates --generate --endpoint $ENDPOINT_URL --policy-dir $DIR`, and
it will generate an appropriate configuration for you, based on your policies.
Note: some modification of the webhook configuration may be required. See the
[documentation](https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/)
on webhooks for more configuration.
# Development
You can use [skaffold](https://github.com/GoogleContainerTools/skaffold/) to
assist with testing and debugging this controller. Run `skaffold dev` in this
folder to deploy the local container into a local kubernetes cluster. It will
automatically redeploy it as files change.
نیازمندی
| مقدار | نام |
|---|---|
| ==0.9.26 | c7n |
| ==1.26.109 | boto3 |
| ==4.17.3 | jsonschema |
| ==3.0.5 | argcomplete |
| ==2.8.2 | python-dateutil |
| ==6.0 | pyyaml |
| ==0.9.0 | tabulate |
| ==5.2.0 | importlib-metadata |
| ==0.18.1 | docutils |
| ==1.29.109 | botocore |
| ==1.0.1 | jmespath |
| ==0.6.0 | s3transfer |
| ==22.2.0 | attrs |
| ==5.12.0 | importlib-resources |
| ==1.3.10 | pkgutil-resolve-name |
| ==0.19.3 | pyrsistent |
| ==4.5.0 | typing-extensions |
| ==1.16.0 | six |
| ==3.15.0 | zipp |
| ==1.26.15 | urllib3 |
| ==26.1.0 | kubernetes |
| ==1.32 | jsonpatch |
| ==2022.12.7 | certifi |
| ==2.17.2 | google-auth |
| ==2.28.2 | requests |
| ==1.3.1 | requests-oauthlib |
| ==67.6.1 | setuptools |
| ==1.5.1 | websocket-client |
| ==2.3 | jsonpointer |
| ==5.3.0 | cachetools |
| ==0.2.8 | pyasn1-modules |
| ==4.9 | rsa |
| ==3.1.0 | charset-normalizer |
| ==3.4 | idna |
| ==3.2.2 | oauthlib |
| ==0.4.8 | pyasn1 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl c7n-kube-0.2.9:
pip install c7n-kube-0.2.9.whl
نصب پکیج tar.gz c7n-kube-0.2.9:
pip install c7n-kube-0.2.9.tar.gz