this is my first blog post here.
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}
print("hello world")
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-test-ci-pod-1
namespace: test-ns
spec:
containers:
- name: ubuntu-dp
image: golang:1.18
command: ["/bin/bash"]
args: ["-c", "sleep infinity"]
securityContext:
runAsUser: 0 # 以 root 用户运行容器
volumeMounts:
- name: docker-socket
mountPath: /var/run/docker.sock
imagePullPolicy: Always # 每次启动 Pod 时都拉取最新镜像
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
type: Socket
你好 小笼包 谢谢 再见