Getting Started
Getting Started with Kure
This guide will help you get up and running with Kure quickly.
Installation
go get github.com/go-kure/kure
Quick Example
Here’s a simple example creating a Kubernetes Deployment:
package main
import (
"github.com/go-kure/kure/pkg/kubernetes"
"github.com/go-kure/kure/pkg/io"
)
func main() {
// Create a deployment
deployment := kubernetes.CreateDeployment("my-app", "default")
kubernetes.AddDeploymentContainer(deployment, "app", "nginx:latest")
kubernetes.SetDeploymentReplicas(deployment, 3)
// Output as YAML
printer := io.NewPrinter()
printer.PrintObj(deployment)
}
Next Steps
- Explore the Packages: Learn about the available packages
- Read the Architecture: Understand how Kure works
- Try Examples: See real-world examples
- Join the Community: Contribute to the GitHub repository