-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeck.example.yaml
91 lines (83 loc) · 2.86 KB
/
deck.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "1"
# the cluster configuration across all decks
cluster:
provider: k3d
minVersion: 4.0.0
name: another-cluster
nativeConfig: # content of the native config file (e.g. https://k3d.io/v5.0.0/usage/configfile/)
apiVersion: k3d.io/v1alpha2
kind: Simple
servers: 1 # same as `--servers 1`
agents: 1 # same as `--agents 2`
image: rancher/k3s:v1.22.9-k3s1 # same as `--image rancher/k3s:v1.20.4-k3s1`
ports:
- port: 8080:80
nodeFilters:
- loadbalancer
- port: 31820:31820/UDP
nodeFilters:
- agent[0]
decks:
- name: buzzword-counter
namespace: default
sources:
- type: helm
ref: https://kubernetes.github.io/dashboard/
chart: kubernetes-dashboard
releaseName: dashboard
parameters:
- name: ingress.enabled
value: true
- name: ingress.hosts
value: '{dashboard.127.0.0.1.nip.io}'
- name: protocolHttp
value: true
- name: service.externalPort
value: 8080
- name: serviceAccount.create
value: true
- name: serviceAccount.name
value: kubernetes-dashboard
# - type: file
# ref: https://raw.githubusercontent.com/kubernetes/dashboard/v2.5.0/aio/deploy/recommended.yaml
- type: file
content:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubernetes-dashboard
namespace: kubernetes-dashboard
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: kubernetes-dashboard
namespace: default
- type: helm
ref: git@github.com:Blueshoe/buzzword-charts.git
targetRevision: HEAD # only relevant for git
path: buzzword-counter
# chart: chart-name # Set this when pulling directly from a Helm repo. DO NOT set for git-hosted Helm charts.
# parameters: # extra values for --set (take precedence)
# - name: "ingress.domain"
# value: mydomain.example.com
# - name: "ingress.annotations.nginx-"
# value: "true"
releaseName: buzzword-counter # Release name override (defaults to application name)
# valueFiles: # Helm values (files) relative to 'path'
# - helm_vars/development/values.development.yaml
# - type: kustomize
# - type: directory
# ref: git@github.com:Blueshoe/buzzword-charts.git
# targetRevision: HEAD
# path: .
# recursive: true
- name: polls
namespace: polls
sources:
- type: kustomize
ref: https://github.com/Blueshoe/java-spring-example-charts.git
targetRevision: main
path: polls_k/overlays/development