Skip to content

Instantly share code, notes, and snippets.

@akash-gautam
Created August 21, 2018 06:36
Show Gist options
  • Save akash-gautam/d9f31d618a5736600146dedd5c2f1a02 to your computer and use it in GitHub Desktop.
Save akash-gautam/d9f31d618a5736600146dedd5c2f1a02 to your computer and use it in GitHub Desktop.
sslconfig-crd.yaml contains the definition for custom resource
apiVersion: "apiextensions.k8s.io/v1beta1"
kind: "CustomResourceDefinition"
metadata:
name: "sslconfigs.blog.velotio.com"
spec:
group: "blog.velotio.com"
version: "v1alpha1"
scope: "Namespaced"
names:
plural: "sslconfigs"
singular: "sslconfig"
kind: "SslConfig"
validation:
openAPIV3Schema:
required: ["spec"]
properties:
spec:
required: ["cert","key","domain"]
properties:
cert:
type: "string"
minimum: 1
key:
type: "string"
minimum: 1
domain:
type: "string"
minimum: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment