/fake-kubelet

This is a fake kubelet. The pod on this node will always be in the ready state, but no process will be started.

Primary LanguageGoMIT LicenseMIT

fake-kubelet

Build Status Go Report Card Docker Automated build GitHub license

This is a fork of wzshiming/fake-kubelet

This is a fake kubelet. The pod on this node will always be in the ready state, but no process will be started. This fake-kubelet exposes a gRPC interface that allows for patching the pod status dynamically.

Usage

Deploy fake kubelet.

kubectl apply -f https://raw.githubusercontent.com/wzshiming/fake-kubelet/master/deploy.yaml

kubectl get node You will find a 'fake' node.

Deploy app.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: fake-pod
  namespace: default
spec:
  replicas: 10
  selector:
    matchLabels:
      app: fake-pod
  template:
    metadata:
      labels:
        app: fake-pod
    spec:
      containers:
        - name: fake-pod
          image: fake
      nodeName: fake # Direct scheduling to 'fake' node

kubectl get pod You will find that it has been started, although the image does not exist.

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.