diff --git a/k8s/haproxy.cfg b/k8s/haproxy.cfg index 8cce5563..7d4bd01c 100644 --- a/k8s/haproxy.cfg +++ b/k8s/haproxy.cfg @@ -14,5 +14,5 @@ frontend the-frontend backend the-backend server google.com-80 google.com:80 maxconn 32 check - server bing.com-80 bing.com:80 maxconn 32 check + server ibm.fr-80 ibm.fr:80 maxconn 32 check diff --git a/prepare-vms/settings/enix.html b/prepare-vms/settings/enix.html new file mode 100644 index 00000000..29b322c4 --- /dev/null +++ b/prepare-vms/settings/enix.html @@ -0,0 +1,117 @@ +{# Feel free to customize or override anything in there! #} +{%- set url = "http://septembre2018.container.training" -%} +{%- set pagesize = 9 -%} +{%- if clustersize == 1 -%} + {%- set workshop_name = "Docker workshop" -%} + {%- set cluster_or_machine = "machine" -%} + {%- set this_or_each = "this" -%} + {%- set machine_is_or_machines_are = "machine is" -%} + {%- set image_src = "https://s3-us-west-2.amazonaws.com/www.breadware.com/integrations/docker.png" -%} +{%- else -%} + {%- set workshop_name = "Kubernetes workshop" -%} + {%- set cluster_or_machine = "cluster" -%} + {%- set this_or_each = "each" -%} + {%- set machine_is_or_machines_are = "machines are" -%} + {%- set image_src_swarm = "https://cdn.wp.nginx.com/wp-content/uploads/2016/07/docker-swarm-hero2.png" -%} + {%- set image_src_kube = "https://avatars1.githubusercontent.com/u/13629408" -%} + {%- set image_src = image_src_kube -%} +{%- endif -%} + + + + +{% for cluster in clusters %} + {% if loop.index0>0 and loop.index0%pagesize==0 %} + + {% endif %} +
+ +

+ Voici les informations permettant de se connecter à votre + cluster pour cette formation. Vous pouvez vous connecter + à ces machines virtuelles avec n'importe quel client SSH. +

+

+ + + + + + +
identifiant:
docker
mot de passe:
{{ docker_user_password }}
+ +

+

+ Vos serveurs sont : + + + {% for node in cluster %} + + {% endfor %} +
node{{ loop.index }}:{{ node }}
+

+

Le support de formation est à l'adresse suivante : +

{{ url }}
+

+
+{% endfor %} + + diff --git a/prepare-vms/settings/enix.yaml b/prepare-vms/settings/enix.yaml new file mode 100644 index 00000000..37d03579 --- /dev/null +++ b/prepare-vms/settings/enix.yaml @@ -0,0 +1,25 @@ +# Number of VMs per cluster +clustersize: 5 + +# Jinja2 template to use to generate ready-to-cut cards +cards_template: settings/enix.html + +# Use "Letter" in the US, and "A4" everywhere else +paper_size: A4 + +# Feel free to reduce this if your printer can handle it +paper_margin: 0.2in + +# Note: paper_size and paper_margin only apply to PDF generated with pdfkit. +# If you print (or generate a PDF) using ips.html, they will be ignored. +# (The equivalent parameters must be set from the browser's print dialog.) + +# This can be "test" or "stable" +engine_version: stable + +# These correspond to the version numbers visible on their respective GitHub release pages +compose_version: 1.22.0 +machine_version: 0.14.0 + +# Password used to connect with the "docker user" +docker_user_password: training diff --git a/slides/k8s/configuration.md b/slides/k8s/configuration.md index 0948b286..39c30b04 100644 --- a/slides/k8s/configuration.md +++ b/slides/k8s/configuration.md @@ -327,7 +327,7 @@ We'll cover them just after!* - We will provide a simple HAproxy configuration, `k8s/haproxy.cfg` -- It listens on port 80, and load balances connections between Google and Bing +- It listens on port 80, and load balances connections between IBM and Google --- diff --git a/slides/k8s/statefulsets.md b/slides/k8s/statefulsets.md index 856b5934..35c7fc20 100644 --- a/slides/k8s/statefulsets.md +++ b/slides/k8s/statefulsets.md @@ -167,7 +167,7 @@ spec: - It indicates which *provisioner* to use -- And arbitrary paramters for that provisioner +- And arbitrary parameters for that provisioner (replication levels, type of disk ... anything relevant!)