Skip to content

dunkeltech/k8s-operator-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kopf: Example Kubernetes Operator

This is an example kubernetes operator written in python with the help of kopf.

COPYRIGHT

This code is licensed under the MIT License. See LICENSE.txt file.

MySQL Operator

This operator is an example operator and definitively NOT production ready.

See example files for usage examples.

CRDs

MySQLOperators

This resource creates a mysql pod and a secret with an autogenerated password.

MySQLDatabases

This resource creates a database in the mysql pod.

MySQLUsers

This resource creates a user in the mysql pod.

Debugging with VSCode

If you want to debug with VSCode you can create the following launch.json file:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Run Operator",
            "type": "python",
            "request": "launch",
            "program": "/Users/jan/ENV/k8s-operator/bin/kopf",
            "args": [
                "run",
                "${file}",
            ],
            "justMyCode": true
        }
    ]
}

About

Example Kubernetes Operator with Kopf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published