Skip to content

Commit

Permalink
update blue/green example
Browse files Browse the repository at this point in the history
  • Loading branch information
remche committed Jun 9, 2021
1 parent b166322 commit 3187add
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/blue-green-nodes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module "controlplane" {
flavor_name = "m1.small"
public_net_name = "public"
rke2_config_file = "server.yaml"
manifests_path = "./manifests"
}

module "blue_node" {
Expand Down
16 changes: 16 additions & 0 deletions examples/blue-green-nodes/manifests/rke2-ingress-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use Daemonset on all nodes with master role
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-ingress-nginx
namespace: kube-system
spec:
valuesContent: |-
controller:
kind: DaemonSet
nodeSelector:
node-role.kubernetes.io/master: "true"
tolerations:
- effect: NoExecute
key: CriticalAddonsOnly
operator: "Exists"
7 changes: 3 additions & 4 deletions examples/blue-green-nodes/server.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node-label:
- "server=toto"
- "something=veryamazing"

# Control plane wont execute regular workloads
node-taint:
- "CriticalAddonsOnly=true:NoExecute"

0 comments on commit 3187add

Please sign in to comment.