# using yaml alias - referencing a single value
test: &ref "foobar"
bar: *ref
# works also with bigger objects
bob: &bob
isPerson: true
-
tags are normally used to discribe versions
-
working mostly like git tags
-
BUT have the same issue like git tag as that it is a changeable reference, although normally one should not change such tag reference
- in reality though we have observed it multiple times that the underlying image to a tag changed
- assumption in some cases was, that a fixup or similar was applied backwards
- but this broke enough deployments for us to show an issue
-
a possible solution:
- (official definition): Kubernetes is a portable, extensible, open source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation.
- insimpler terms: it's a container orchestrator (which mainly manages containers)
- it support a distributed cluster architecture
- where a cluster describes a collection of multiple nodes/server (normally 3/5/7... consensus relevant)
- as it useses, to store the cluster state, the
etcd
distributed key-value store, which under the hood uses the Raft consensus algorithm - with that it manages containers across the cluster, so across all the nodes
- it normally is used distributed but also can run as a single node instance, mostly for development purpose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##### BEGIN SETTINGS ##### | |
SYSTEM=debian | |
ARCH=armhf | |
SUITE=testing | |
DEVICE=image.bin | |
HOSTNAME=unknown |
docker-compose
-
everything you learn you actually already know
- it's absolutly the same as with just docker
- only difference is, it's more declerative
-
let's learn and compare pure docker vs docker-compose
agenda
$ docker run -it --rm ubuntu:18.04
in container
4 apt-get update && apt-get install -y gnupg gnupg1 gnupg2 apt-transport-https curl
5 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
6 cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### get mac adress | |
`cat /sys/class/net/$(ip route show default | awk '/default/ {print $5}')/address` | |
tested on: | |
- coreos | |
NewerOlder