Skip to content

Instantly share code, notes, and snippets.

@ByronHsu
Created January 30, 2023 21:29
Show Gist options
  • Save ByronHsu/2b484d53bcb4a361bf9af9fb303c8896 to your computer and use it in GitHub Desktop.
Save ByronHsu/2b484d53bcb4a361bf9af9fb303c8896 to your computer and use it in GitHub Desktop.
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
labels:
app: tf-job-operator
app.kubernetes.io/component: tfjob
app.kubernetes.io/name: tf-job-operator
name: tfjobs.kubeflow.org
spec:
additionalPrinterColumns:
- JSONPath: .status.conditions[-1:].type
name: State
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: kubeflow.org
names:
kind: TFJob
plural: tfjobs
singular: tfjob
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
properties:
spec:
properties:
tfReplicaSpecs:
properties:
Chief:
properties:
replicas:
maximum: 1
minimum: 1
type: integer
Evaluator:
properties:
replicas:
minimum: 0
type: integer
PS:
properties:
replicas:
minimum: 1
type: integer
Worker:
properties:
replicas:
minimum: 1
type: integer
versions:
- name: v1
served: true
storage: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment