Skip to content
gqlxj1987's Blog
Go back

Ko fast k8s deployment

Edit page

原文链接

skaffold tools to wrap process

skaffold process

ko takes a different approach that leans into Go idioms to eliminate configuration

# This example is based on:
# https://github.com/google/go-containerregistry/blob/master/cmd/ko/test/test.yaml
apiVersion: v1
kind: Pod
metadata:
  name: kodata
spec:
  containers:
  - name: test
    # ko builds and publishes this Go binary, and replaces this
    # with an image name.
    image: github.com/google/go-containerregistry/cmd/ko/test
  restartPolicy: Never

由ko来进行后面的部分

ko process

You only write Kubernetes yamls and code. No Dockerfiles, no Makefiles. You run one command and your latest code is running

$ko apply -f cmd/ko/test/test.yaml 

Edit page
Share this post on:

Previous Post
benchmark automl framework
Next Post
Kubernetes Monitor Pipeline