This is not a training course, actually you probably won't know how to setup a local Kubernetes cluster Just to share a bit of my own background, 10+ years in Java development, enterprise applicatin development As a project team, every engineer should know the basics of docker/kubernetes Raise interest to inspire some of you to take up trainings Tell the story from a different angle, start with looking back in history first, looking at some core concepts in ...
Move to modern JavaScript development 5 years ago.
Doesn't know docker/kubernetes at all 1.5 years ago.
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
> Cloud native technologies empower organizations to build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds. > Containers, service meshes, microservices, immutable infrastructure, and declarative APIs exemplify this approach. > ...
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
_
In a chinese saying, this is a strike from a higher dimension
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
docker run -it ubuntu
docker run -dp 80:80 gscho/linux_tweet_app
docker run -dp 80:80 dockersamples/101-tutorial
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Engineers at Google started the work on this feature in 2006, and was merged into the Linux kernel in January 2008. _
$ mount -t cgroup
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
blkio on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
memory on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
...
Zuhlke Engineering Singapore
/bin
,/etc
,/proc
docker image inspect ubuntu:latest
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
docker-compose.yml
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
> “Operating system support for warehouse-scale computing”. PhD thesis, Chapter 2.
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Zuhlke Engineering Singapore
Kubectl commands can be used to generate yaml files easily.
kubectl create deployment ... --dry-run=client -o yaml
kubectl expose deployment ... --dry-run=client -o yaml
Zuhlke Engineering Singapore
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: wealth-api
name: wealth-api
namespace: application
spec:
replicas: 2
selector:
matchLabels:
app: wealth-api
template:
metadata:
labels:
app: wealth-api
spec:
containers:
- image: artifactory.global.standardchartered.com/frog/frog-wealth-sg:latest
imagePullPolicy: Always
name: frog-wealth-sg
ports:
- containerPort: 8080
Zuhlke Engineering Singapore
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
labels:
app: wealth-api-svc
name: wealth-api-svc
namespace: application
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: wealth-api
type: LoadBalancer
loadBalancerSourceRanges:
- "10.0.0.0/8"
Zuhlke Engineering Singapore
You can add videos to your slides, and control the layout just like you do with images.
Both local files and YouTube links playback.
Zuhlke Engineering Singapore
[autoplay]
to start playing the video straight away[loop]
to loop the video[mute]
to mute the videoZuhlke Engineering Singapore