... | ... | @@ -8,6 +8,19 @@ note: |
|
|
- job-id 这个 label, job-scheduler 会打:
|
|
|

|
|
|
|
|
|
```go
|
|
|
func (k *KubeClient) createKubeJob(job *jobscheduler.Job) error {
|
|
|
|
|
|
var turnOnIstio bool = TurnOnIstio
|
|
|
var jobVolumes []corev1.Volume
|
|
|
var jobVolumeMounts []corev1.VolumeMount
|
|
|
|
|
|
jobClient := k.clientset.BatchV1().Jobs(job.GetNamespace())
|
|
|
|
|
|
// labels
|
|
|
labels := k.getLabels(job)
|
|
|
|
|
|
```
|
|
|
|
|
|
note:
|
|
|
- 官网提到的 CRD 似乎不叫 clusterlogconfigs https://loggie-io.github.io/docs-en/getting-started/quick-start/kubernetes/ |
|
|
\ No newline at end of file |