infrastructure/kubernetes/service-crd.yaml
2025-07-06 20:25:45 +00:00

45 lines
1,012 B
YAML

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