-
Notifications
You must be signed in to change notification settings - Fork 28
/
echoes.example.com.yaml
29 lines (29 loc) · 1010 Bytes
/
echoes.example.com.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: echoes.example.com
namespace: default # For easier deployment and avoid permissions collisions on most clusters, the resource is namespace-scoped. More information at: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/
spec:
group: example.com
names:
kind: Echo
plural: echoes # If not specified, Kubernetes would assume the plural is "Echos"
singular: echo
shortNames:
- echo
scope: Namespaced
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec: # There is only one (required) field named "replicas" specifying how many pods are created by the Operator
type: object
properties:
replicas:
type: integer
format: int32
required: ["replicas"]