Kubernetes Yaml Generator UI,kubernetes的Yaml构建器

Ija*_*han 5 kubernetes

是否有在线或自托管的工具将UI中的所有值作为输入并为以下kubernetes对象生成完整的声明性yaml:

  • 部署,带有初始化容器和imagepullsecret和其他选项
  • 服务
  • ConfigMap
  • 秘密
  • 守护进程
  • 有状态集
  • 命名空间和配额
  • RBAC资源

编辑:

我一直在使用kubectl createkubectl run,但是它们并不支持所有可能的配置选项,并且您仍然需要修正它支持的所有选项,在UI中,您可以从每种资源的Give选项中进行选择。

Ija*_*han 3

发现 yipee.io 支持所有选项和资源:

# Generated 2018-10-18T11:07:27.621Z by Yipee.io
# Application: nginx
# Last Modified: 2018-10-18T11:07:27.621Z

apiVersion: v1
kind: Service
metadata:
  namespace: webprod
  name: nginx
spec:
  selector:
    app: nginx
  ports:
  - port: 80
    targetPort: 8080
    name: nginx-hhpt
    protocol: TCP
    nodePort: 30003
  type: NodePort

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: nginx
  labels:
    app: nginx
  namespace: webprod
  annotations:
    yipee.io.lastModelUpdate: '2018-10-18T11:07:27.595Z'
spec:
  selector:
    matchLabels:
      name: nginx
      component: nginx
      app: nginx
  rollbackTo:
    revision: 0
  template:
    spec:
      imagePullSecrets:
      - name: imagsecret
      containers:
      - volumeMounts:
        - mountPath: /data
          name: nginx-vol
        name: nginx
        ports:
        - containerPort: 80
          protocol: TCP
          name: http
        imagePullPolicy: IfNotPresent
        image: docker.io/nginx:latest
      volumes:
      - name: nginx-vol
        hostPath:
          path: /data
          type: Directory
      serviceAccountName: test
    metadata:
      labels:
        name: nginx
        component: nginx
        app: nginx
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 2
  replicas: 1
  revisionHistoryLimit: 3
Run Code Online (Sandbox Code Playgroud)