dec 20 update
This commit is contained in:
parent
28780b0f25
commit
254b895faa
30
crontab-crd.yaml
Normal file
30
crontab-crd.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: crontabs.stable.example.com
|
||||
spec:
|
||||
group: stable.example.com
|
||||
versions:
|
||||
- name: v1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
properties:
|
||||
cronSpec:
|
||||
type: string
|
||||
image:
|
||||
type: string
|
||||
replicas:
|
||||
type: integer
|
||||
scope: Namespaced
|
||||
names:
|
||||
plural: crontabs
|
||||
singular: crontab
|
||||
kind: CronTab
|
||||
shortNames:
|
||||
- ct
|
||||
@ -8,6 +8,18 @@ echo it requires the machine where you run it to have 6GB of RAM or more
|
||||
echo press Enter to continue
|
||||
read
|
||||
|
||||
##########
|
||||
echo ########################################
|
||||
echo WARNING
|
||||
echo ########################################
|
||||
echo Nov 2020 - currently this script is NOT supported on Mac OS Big Sur
|
||||
echo I will communicate here one Apple/VMware have provided updates that make it work again
|
||||
echo
|
||||
echo Check the Setup Guide provided in this repository for alternative installations
|
||||
echo
|
||||
echo press Enter to continue
|
||||
read
|
||||
|
||||
# setting MYOS variable
|
||||
MYOS=$(hostnamectl | awk '/Operating/ { print $3 }')
|
||||
OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }')
|
||||
|
||||
13
list-pods-mysa-binding.yaml
Normal file
13
list-pods-mysa-binding.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: list-pods-mysa-binding
|
||||
namespace: default
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: list-pods
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: mysa
|
||||
namespace: default
|
||||
12
list-pods.yaml
Normal file
12
list-pods.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: list-pods
|
||||
namespace: default
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ''
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- list
|
||||
8
my-sslcert.yaml
Normal file
8
my-sslcert.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: stable.example.com/v1
|
||||
kind: SslConfig
|
||||
metadata:
|
||||
name: my-sslcert
|
||||
spec:
|
||||
cert: mycertfile
|
||||
key : myprivatekey
|
||||
domain: "*.stable.example.com"
|
||||
11
mypod.yaml
Normal file
11
mypod.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: mypod
|
||||
spec:
|
||||
containers:
|
||||
- name: alpine
|
||||
image: alpine:3.9
|
||||
command:
|
||||
- "sleep"
|
||||
- "3600"
|
||||
4
mysa.yaml
Normal file
4
mysa.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: mysa
|
||||
12
mysapod.yaml
Normal file
12
mysapod.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: mysapod
|
||||
spec:
|
||||
serviceAccountName: mysa
|
||||
containers:
|
||||
- name: alpine
|
||||
image: alpine:3.9
|
||||
command:
|
||||
- "sleep"
|
||||
- "3600"
|
||||
30
sslcerts-crd.yaml
Normal file
30
sslcerts-crd.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: sslconfigs.stable.example.com
|
||||
spec:
|
||||
group: stable.example.com
|
||||
versions:
|
||||
- name: v1
|
||||
served: true
|
||||
storage: true
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
properties:
|
||||
cert:
|
||||
type: string
|
||||
key:
|
||||
type: string
|
||||
domain:
|
||||
type: string
|
||||
scope: Namespaced
|
||||
names:
|
||||
plural: sslconfigs
|
||||
singular: sslconfig
|
||||
kind: SslConfig
|
||||
shortNames:
|
||||
- ssl
|
||||
@ -20,7 +20,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
ks8-app: traefik-ingress-lb
|
||||
k8s-app: traefik-ingress-lb
|
||||
name: traefik-ingress-lb
|
||||
spec:
|
||||
serviceAccountName: traefik-ingress-controller
|
||||
|
||||
Loading…
Reference in New Issue
Block a user