Add Kubernetes CRD and the related kustomization
Signed-off-by: babykart <babykart@gmail.com>
This commit is contained in:
parent
14d2f2b18d
commit
1fd347c4cd
2 changed files with 48 additions and 0 deletions
43
script/k8s/crd/garagenodes.deuxfleurs.fr.yaml
Normal file
43
script/k8s/crd/garagenodes.deuxfleurs.fr.yaml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: garagenodes.deuxfleurs.fr
|
||||||
|
spec:
|
||||||
|
conversion:
|
||||||
|
strategy: None
|
||||||
|
group: deuxfleurs.fr
|
||||||
|
names:
|
||||||
|
kind: GarageNode
|
||||||
|
listKind: GarageNodeList
|
||||||
|
plural: garagenodes
|
||||||
|
singular: garagenode
|
||||||
|
scope: Namespaced
|
||||||
|
versions:
|
||||||
|
- name: v1
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
description: Auto-generated derived type for Node via `CustomResource`
|
||||||
|
properties:
|
||||||
|
spec:
|
||||||
|
properties:
|
||||||
|
address:
|
||||||
|
format: ip
|
||||||
|
type: string
|
||||||
|
hostname:
|
||||||
|
type: string
|
||||||
|
port:
|
||||||
|
format: uint16
|
||||||
|
minimum: 0
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- address
|
||||||
|
- hostname
|
||||||
|
- port
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- spec
|
||||||
|
title: GarageNode
|
||||||
|
type: object
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
subresources: {}
|
5
script/k8s/crd/kustomization.yaml
Normal file
5
script/k8s/crd/kustomization.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- garagenodes.deuxfleurs.fr.yaml
|
Loading…
Add table
Reference in a new issue