| Name | c7n-kube JSON | 
            
| Version | 
                  0.2.45
                   
                  JSON | 
            
 | download  | 
            
| home_page | None  | 
            
| Summary | Cloud Custodian - Kubernetes Provider | 
            | upload_time | 2025-07-17 18:41:16 | 
            | maintainer | None | 
            
            | docs_url | None | 
            | author | Cloud Custodian Project | 
            
            | requires_python | <4.0.0,>=3.9.2 | 
            
            
            | license | None | 
            | keywords | 
                 | 
            | VCS | 
                
                     | 
                
            
            | bugtrack_url | 
                
                 | 
             
            
            | requirements | 
                
                  No requirements were recorded.
                
             | 
            
| Travis-CI | 
                
                   No Travis.
                
             | 
            | coveralls test coverage | 
                
                   No coveralls.
                
             | 
        
        
            
            # 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-kube can be run and installed via poetry. `poetry install && poetry run c7n-kube`.  
| 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-kube --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.
            
         
        Raw data
        
            {
    "_id": null,
    "home_page": null,
    "name": "c7n-kube",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.9.2",
    "maintainer_email": null,
    "keywords": null,
    "author": "Cloud Custodian Project",
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# Custodian Kubernetes Support\n\nCloud Custodian can run policies directly inside your cluster, reporting on \nresources that violate those policies, or blocking them altogether.\n\n## Running the server\n\nc7n-kube can be run and installed via poetry. `poetry install && poetry run c7n-kube`.  \n\n| name           | default   | description                                                  |\n|----------------|-----------|--------------------------------------------------------------|\n| --host         | 127.0.0.1 | (optional) The host that the server should listen on.        |\n| --port         | 8800      | (optional) The port the server will listen on.               |\n| --policy-dir   |           | Path to the policy directory.                                |\n| --on-exception | warn      | Action to take on an internal exception. One of: warn, deny. |\n| --cert         |           | Path to the certificate.                                     | \n| --ca-cert      |           | Path to the CA's certificate.                                |\n| --cert-key     |           | Path to the certificate's key.                               |\n\n## Generate a MutatingWebhookConfiguration\n\nAfter the server is running, you'll need to configure and install the \nMutatingWebhookConfiguration manually. To generate a webhook configuration, you\ncan run `poetry run c7n-kube --generate --endpoint $ENDPOINT_URL --policy-dir $DIR`, and \nit will generate an appropriate configuration for you, based on your policies.\n\nNote: some modification of the webhook configuration may be required. See the \n[documentation](https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/) \non webhooks for more configuration.\n\n## Development\n\nYou can use [skaffold](https://github.com/GoogleContainerTools/skaffold/) to \nassist with testing and debugging this controller. Run `skaffold dev` in this\nfolder to deploy the local container into a local kubernetes cluster. It will \nautomatically redeploy it as files change.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Cloud Custodian - Kubernetes Provider",
    "version": "0.2.45",
    "project_urls": {
        "documentation": "https://cloudcustodian.io/docs/",
        "homepage": "https://cloudcustodian.io",
        "repository": "https://github.com/cloud-custodian/cloud-custodian"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e85e0af8d530cd4513977337ca895dd6769462f3deac866a3d0055dce6a53f50",
                "md5": "47832116de3a01605f2e6456a1362aa7",
                "sha256": "db0958b6c7202968069afb3e046209e308c3b76ced7c5ed3c0439df18eabde53"
            },
            "downloads": -1,
            "filename": "c7n_kube-0.2.45-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "47832116de3a01605f2e6456a1362aa7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.9.2",
            "size": 25448,
            "upload_time": "2025-07-17T18:41:16",
            "upload_time_iso_8601": "2025-07-17T18:41:16.819973Z",
            "url": "https://files.pythonhosted.org/packages/e8/5e/0af8d530cd4513977337ca895dd6769462f3deac866a3d0055dce6a53f50/c7n_kube-0.2.45-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-17 18:41:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cloud-custodian",
    "github_project": "cloud-custodian",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "c7n-kube"
}