Add Service CRD for Proxmox operator
This commit is contained in:
parent
6acf4f5cc9
commit
c1e992514e
1 changed files with 45 additions and 0 deletions
45
kubernetes/service-crd.yaml
Normal file
45
kubernetes/service-crd.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
name: services.proxmox.io
|
||||||
|
spec:
|
||||||
|
group: proxmox.io
|
||||||
|
versions:
|
||||||
|
- name: v1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
schema:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
enum: ["minecraft", "discord", "web", "database"]
|
||||||
|
containerType:
|
||||||
|
type: string
|
||||||
|
enum: ["lxc", "vm"]
|
||||||
|
vmid:
|
||||||
|
type: integer
|
||||||
|
network:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
vlan:
|
||||||
|
type: integer
|
||||||
|
ip:
|
||||||
|
type: string
|
||||||
|
resources:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
cpu:
|
||||||
|
type: integer
|
||||||
|
memory:
|
||||||
|
type: string
|
||||||
|
disk:
|
||||||
|
type: string
|
||||||
|
scope: Namespaced
|
||||||
|
names:
|
||||||
|
plural: services
|
||||||
|
singular: service
|
||||||
|
kind: Service
|
||||||
Loading…
Add table
Add a link
Reference in a new issue