新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: users.ch20.kiamol.net
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
group: ch20.kiamol.net
|
||||
scope: Namespaced
|
||||
names:
|
||||
plural: users
|
||||
singular: user
|
||||
kind: User
|
||||
versions:
|
||||
- name: v1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
group:
|
||||
type: string
|
||||
additionalPrinterColumns:
|
||||
- name: Email
|
||||
type: string
|
||||
description: Email Address
|
||||
jsonPath: .spec.email
|
||||
- name: Group
|
||||
type: string
|
||||
description: Group
|
||||
jsonPath: .spec.group
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: "ch20.kiamol.net/v1"
|
||||
kind: User
|
||||
metadata:
|
||||
name: sre4
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
email: sre4@kiamol.net
|
||||
group: sre
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: "ch20.kiamol.net/v1"
|
||||
kind: User
|
||||
metadata:
|
||||
name: sre3
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
email: sre3@kiamol.net
|
||||
group: sre
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: "ch20.kiamol.net/v1"
|
||||
kind: User
|
||||
metadata:
|
||||
name: tester3
|
||||
labels:
|
||||
kiamol: ch20
|
||||
spec:
|
||||
email: tester3@kiamol.net
|
||||
group: test
|
||||
Reference in New Issue
Block a user