Categorygithub.com/Chara-X/kube
modulepackage
0.0.0-20241014180457-e10534f1cce5
Repository: https://github.com/chara-x/kube.git
Documentation: pkg.go.dev

# README

kube

kubectl api-resources
kubectl create -f <filename> --validate=false
kubectl delete -f <filename> --wait=false
kubectl get <resource> <name> -o yaml
kubectl logs <pod-name>
apiVersion: v1
kind: Pod
metadata:
  name: playground
spec:
  containers:
    - image: /home/chara-x/daisy/codes/go/.experimental/playground/playground
      env:
        - name: USERNAME
          valueFrom:
            configMapKeyRef:
              name: cm
              key: username
        - name: PASSWORD
          valueFrom:
            configMapKeyRef:
              name: cm
              key: password
apiVersion: v1
kind: ReplicaSet
metadata:
  name: playground
spec:
  replicas: 2
  template:
    spec:
      containers:
        - image: /home/chara-x/daisy/codes/go/.experimental/playground/playground
apiVersion: v1
kind: Ingress
metadata:
  name: playground
spec:
  defaultBackend:
    service:
      port:
        number: 8080
  rules:
    - http:
        paths:
          - path: "/happy"
            backend:
              service:
                port:
                  number: 8081
          - path: "/sad"
            backend:
              service:
                port:
                  number: 8082
apiVersion: v1
kind: ConfigMap
metadata:
  name: cm
data:
  username: "chara-x"
  password: "123"

Reference

Creating a Custom Scheduler in Kubernetes: A Practical Guide

Develop on Kubernetes Series — Demystifying the For vs Owns vs Watches controller-builders in controller-runtime

Kube-Proxy: What is it and How it Works

# Packages

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author