Skip to content

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

License

Notifications You must be signed in to change notification settings

lxd5866/fake-kubelet

 
 

Repository files navigation

fake-kubelet

Build Status Go Report Card Docker Automated build GitHub license

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

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Dockerfile 1.6%