Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 0 additions & 91 deletions deck.example.yaml

This file was deleted.

63 changes: 63 additions & 0 deletions examples/deck.buzzword-counter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: "1"

cluster:
provider: k3d
minVersion: 4.0.0
name: another-cluster
nativeConfig:
apiVersion: k3d.io/v1alpha2
kind: Simple
servers: 1
agents: 1
image: rancher/k3s:v1.22.9-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: inline
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
path: buzzword-counter
releaseName: buzzword-counter
File renamed without changes.
28 changes: 28 additions & 0 deletions examples/deck.java-spring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "1"

cluster:
provider: k3d
minVersion: 4.0.0
name: another-cluster
nativeConfig:
apiVersion: k3d.io/v1alpha2
kind: Simple
servers: 1
agents: 1
image: rancher/k3s:v1.22.9-k3s1
ports:
- port: 8080:80
nodeFilters:
- loadbalancer
- port: 31820:31820/UDP
nodeFilters:
- agent[0]

decks:
- name: polls
namespace: polls
sources:
- type: kustomize
ref: https://github.com/Blueshoe/java-spring-example-charts.git
targetRevision: main
path: polls_k/overlays/development
46 changes: 9 additions & 37 deletions deck.example_kind.yaml → examples/deck.kind.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
version: "1"

# the cluster configuration across all decks
cluster:
provider: kind
minVersion: 0.14.0
name: another-cluster
nativeConfig: # content of the native config file (e.g. https://kind.sigs.k8s.io/docs/user/configuration/)
nativeConfig:
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 8080
Expand All @@ -24,7 +23,6 @@ cluster:
protocol: udp
- role: worker


decks:
- name: buzzword-counter
namespace: default
Expand All @@ -37,7 +35,7 @@ decks:
- name: ingress.enabled
value: true
- name: ingress.hosts
value: '{dashboard.127.0.0.1.nip.io}'
value: "{dashboard.127.0.0.1.nip.io}"
- name: protocolHttp
value: true
- name: service.externalPort
Expand All @@ -46,10 +44,8 @@ decks:
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
- type: inline
content:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -64,30 +60,6 @@ decks:
- kind: ServiceAccount
name: kubernetes-dashboard
namespace: default

- type: file
ref: https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml



# - 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