kubernetes 1.8: features and future - openshift blog · community is the best feature kubernetes...

22
Kubernetes 1.8: Features and Future OpenShift Commons Briefing: Derek Carr - Lead Engineer, Kubernetes Clayton Coleman - Architect

Upload: phungcong

Post on 11-Mar-2019

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

Kubernetes 1.8: Features and FutureOpenShift Commons Briefing:

Derek Carr - Lead Engineer, KubernetesClayton Coleman - Architect

Page 2: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

What’s new this time around?

Page 3: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

BIGGER THAN EVER

● 2000+ pull requests and 2500 commits● 380+ committers● 39 features across 29 SIGs and 5 WG● 4 features to stable, 16 features to beta

And that’s just the technical part

Page 4: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

COMMUNITY IS THE BEST FEATURE

● Kubernetes Steering Committee Elections● New top level SIG - SIG-Architecture● Formalizing our proposal process (KEP)● Continuing investment in the community

Everyone is welcome here!

Page 5: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

Focus on Stability

Page 6: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

STABILITY IS A FEATURE

● Strong focus on fixing bugs1450 issues resolved since 1.7 (June 30th)

● Mature existing features to beta or stable 20 features moved to beta or stable

● Production mattersRefine, polish, scale, tighten

Page 7: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

EVENTS AND SCALE

● Events expose important transient info to users

● Key debugging tool● In large clusters, excessive

events observed● FIX: Streamline sources● FIX: Client-side rate limit● 1.9: Server-side throttle

master

Nodes

master

NodesNodes Nodes

Before:100 event/s

After:3 event/s

Page 8: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

DENSE CLUSTER SCALING● On very dense clusters

clients retrieve a lot of data

● Alpha: gzip compression● Alpha: clients can receive

results in chunks● Result: reduce 95th

percentile latencies and improve client experience

master

LIST Pods (3.5MB)

master

LIST PodsResults returned in chunks of 500

20KB 20KB 20KB

20KB ...

Page 9: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

MONITORING

● Prometheus cluster monitoring tech preview in OpenShift 3.7

● Fixed 10+ bugs around component monitoring

● Used experience at scale to guide new metrics

● Improve observability

Improvements in network and memory use before and after etcd3 migration

Page 10: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

Features

Page 11: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

METRICS AND AUTOSCALING

● Beta metrics API for pods and nodes, replacing heapster

● Custom metrics API to expose arbitrary application metrics

● HPA v2 autoscaler targeting custom metrics● Improve visibility into HPA status● Lay foundations for usage based scheduling

Page 12: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

EXTENSIBILITY EVERYWHERE

● FlexVolumes can more easily be deployed● New opportunities for node extension● Custom resource definitions support validation● Initializer and admission webhook bug fixes● CRI continues to mature (see CRI-O)

Page 13: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

RESIZE AND SNAPSHOT VOLUMES

● Grow PVCs by updating request size● Transparent increase by provider

● Ask for a volume to be snapshotted● Create a new PVC from an existing

snapshot

PVC 1 PVC 1Set larger size

10GB100GB

apiVersion: v1kind: PersistentVolumeClaimmetadata: name: snapshot-pv-provisioning-demo namespace: myns annotations: snapshot.alpha.kubernetes.io/snapshot: pv1-1spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 4Gi storageClassName: snapshot-promoter

Page 14: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

NETWORKING

● Alpha IPVS kube-proxy implementation○ Promises better failover handling and detection

● Network policy improvements○ Pod egress support added to NetworkPolicy○ CIDR rules for pod matching

Page 15: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

PERFORMANCE SENSITIVE APPS

● Goal○ Support more workload types○ With better performance○ Without sacrificing reliability

● Focus areas○ CPU management○ Device plugins○ HugePages

Page 16: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

CPU PINNING POLICIES

● Static CPU pinning (Alpha)○ Pods can run on exclusive core for their life○ Improve latency for Guaranteed QoS○ Takes physical processor topology into

account● Future CPU management policies proposed

Page 17: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

DEVICE PLUGINS

● Plugin model (Alpha)○ Discovery of external devices○ Making devices available to pods○ Health checking of devices

● Work done across ecosystem to validate model against GPUs, NICs, FPGAs, etc.

Page 18: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

HUGEPAGES

● Alpha support to enable pods to request and consume huge pages

● Benefits applications that have a large memory working set ○ Database management systems○ Java applications○ Packet processing systems

Page 19: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

BETTER CONTAINER RUNTIME

CRI-O is nearing production readiness

Performance, reliability, and overhead improvements. Stay tuned!

Page 20: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

Kubernetes 1.9

Page 21: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

(SOME) 1.9 GOALS● Stability and bug fixes (obv!)● Everything is extensible● Scaling improvements

● Initializers and webhook admission being used internally

● De-scheduler● Priority and preemption● More node level improvements

in resource management● CRI-O to stable on 1.8

● Get volume snapshots and resizing to beta

● Workload APIs to stable?● Metrics used in the scheduler ● Better Prometheus

integration into metrics● PodSecurityPolicy to stable?● Block device support

Page 22: Kubernetes 1.8: Features and Future - OpenShift Blog · COMMUNITY IS THE BEST FEATURE Kubernetes Steering Committee Elections New top level SIG - SIG-Architecture Formalizing our

Questions?

1.8 releases today!

Clayton Coleman - @smarterclaytonDerek Carr - @derekwaynecarr