Skip to content

Instantly share code, notes, and snippets.

@descrepes
Created June 29, 2020 19:19
Show Gist options
  • Save descrepes/4a71b7c829d41501ce6fa9ad33757fdf to your computer and use it in GitHub Desktop.
Save descrepes/4a71b7c829d41501ce6fa9ad33757fdf to your computer and use it in GitHub Desktop.
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: vmpools.cloud.mycompany.com
spec:
group: cloud.mycompany.com
versions:
- name: v1
served: true
storage: true
scope: Namespaced
names:
plural: vmpools
singular: vmpool
kind: VirtualMachinePool
listKind: VirtualMachinePoolList
shortNames:
- vmpool
additionalPrinterColumns:
- name: Age
type: date
format: date-time
JSONPath: .metadata.creationTimestamp
description: When the Customer Virtual Machine Pool was created
- name: Customer
type: string
JSONPath: .spec.customer
description: The cloud provider
- name: Provider
type: string
JSONPath: .spec.cloud.provider
description: The cloud provider
- name: Web Replicas
type: string
JSONPath: .spec.web.replicas
- name: Database Replicas
type: string
JSONPath: .spec.database.replicas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment