Skip to content

Instantly share code, notes, and snippets.

@ruo91
Last active October 31, 2021 10:39
Show Gist options
  • Select an option

  • Save ruo91/e55a0b9ecdb23a09fa67d32affff6c0b to your computer and use it in GitHub Desktop.

Select an option

Save ruo91/e55a0b9ecdb23a09fa67d32affff6c0b to your computer and use it in GitHub Desktop.
OpenShift v4.x - 3Scale Custom Resource Definition
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
operators.coreos.com/3scale-operator.3scale: ""
name: apimanagers.apps.3scale.net
spec:
conversion:
strategy: None
group: apps.3scale.net
names:
kind: APIManager
listKind: APIManagerList
plural: apimanagers
singular: apimanager
preserveUnknownFields: true
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: APIManager is the Schema for the apimanagers API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
apicast:
image: string
managementAPI: string
openSSLVerify: true/false
productionSpec:
replicas: 1
registryURL: string
responseCodes: true/false
stagingSpec:
replicas: 1
appLabel: string
backend:
cronSpec:
replicas: 1
image: string
listenerSpec:
replicas: 1
redisImage: string
redisPersistentVolumeClaim:
storageClassName: string
workerSpec:
replicas: 1
highAvailability:
enabled: true/false
imageStreamTagImportInsecure: true/false
monitoring:
enabled: true/false
podDisruptionBudget:
enabled: true/false
resourceRequirementsEnabled: true/false
system:
appSpec:
replicas: 1
database:
mysql:
image: string
persistentVolumeClaim:
storageClassName: string
postgresql:
image: string
persistentVolumeClaim:
storageClassName: string
fileStorage:
persistentVolumeClaim:
storageClassName: string
image: string
memcachedImage: string
redisImage: string
redisPersistentVolumeClaim:
storageClassName: string
sidekiqSpec:
replicas: 1
sphinxSpec:
replicas: 1
tenantName: string
wildcardDomain: string
zync:
appSpec:
replicas: 1
databaseAffinity:
image: string
postgreSQLImage: string
queSpec:
replicas: 1
required:
- wildcardDomain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment