3. s
@ammbra1508
Why 12 factors and Kubernetes?
Run at push
of a button
Evolution
Declarative
formats
Scale up
with
minimal
changes
4. s
@ammbra1508
Why 12 factors and Kubernetes?
PortabilityLocal vs
production
Run at push
of a button
Evolution
Declarative
formats
Scale up
with
minimal
changes
Clean
Contract
Continuous
deployment
21. s
@ammbra1508
FACTOR 7 – PORT BINDING
Export services via port binding.
kubectl expose deployment/${NAME}
--type=”${SERVICE_TYPE}”
--name=${SERVICE_NAME}
22. s
@ammbra1508
FACTOR 8 – CONCURRENCY
22
YAML
Deployment Replica Set
Selector Selector
Pod Template Template
replicas = 2 spec.replicas = 2
POD
POD
APPLY
23. s
@ammbra1508
FACTOR 8 – CONCURRENCY
Scale out via the process model.
kubectl autoscale deployment {$DEPLOYMENT}
--min=${MIN_PODS} --max=${MAX_PODS}
--cpu-percent=${CPU}
--namespace=${NAMESPACE}
24. s
@ammbra1508
FACTOR 9 – DISPOSABILITY
helm upgrade ${RELEASE} ${CHART} --recreate-pods
Fast startup Graceful shutdown