Skip to content

SampaioLeal/butiko

Repository files navigation

Logo

Butiko

MIT License

Build kubernetes resources easily

Butiko Asciinema

Features

  • Create multiple environments with the variables list
  • Reuse manifests in various projects with the imports list
  • Define the namespace to all manifests in one place with the namespace keyword

Installing

curl -fsSL https://raw.githubusercontent.com/SampaioLeal/butiko/main/install.sh | sh

Usage

butiko build ./examples/simple/butiko.yaml

The results will be like:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
  namespace: myapp
spec:
  replicas: 2
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
        - name: myapp
          image: "registry.mycompany/myapp:latest"
          resources:
            requests:
              memory: 50Mi
              cpu: 100m
            limits:
              memory: 128Mi
              cpu: 500m
          ports:
            - containerPort: 3000

---
apiVersion: v1
kind: Service
metadata:
  name: myapp
  namespace: myapp
# ..........
# ..........
# ..........

Roadmap

  • Use cliffy
  • Support URL imports
  • Support other systems and archs

Feedback

Feedbacks are welcome through issues

License

MIT

Appendix

@SampaioLeal (the author) dedicates this project to his wife 💖 L.N 💖 that inspired the name of the project.