github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/bytebase/templates/auto-plugin.yaml (about)

     1  apiVersion: batch/v1
     2  kind: Job
     3  metadata:
     4    name: python-job
     5  spec:
     6    template:
     7      spec:
     8        serviceAccountName: kubeblocks
     9        containers:
    10          - name: bytebase-python-script
    11            image: {{ .Values.images.python.registry }}/{{ .Values.images.python.repository }}:{{ .Values.images.python.tag }}
    12            command:
    13              - /bin/sh
    14              - -c
    15              - |
    16                mkdir -p /home/script
    17                cp /script/* /home/script
    18                chmod 777 /home/script/*
    19                cd /home/script
    20                ./init.sh
    21            volumeMounts:
    22              - name: script
    23                mountPath: /script
    24        restartPolicy: OnFailure
    25        volumes:
    26          - name: script
    27            configMap:
    28              name: bb-setup-script
    29    backoffLimit: 3