Skip to content

Lecture #10 - 11/17/2018

Agenda

Slides

Info

To view slides, students must login to Office 365 with their Microsoft Student Advantage account. Office 365 (Microsoft Student Advantage) access details can be found here.

Kubernetes Metrics Server

Reading

Kubernetes Authenticaton & Authorization

Kubernetes Autoscaling

Kubernetes Resources from Slides and Lecture

PodDisruptionBudget

1
2
3
4
5
6
7
8
9
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
  name: csye7374-pdb
spec:
  minAvailable: 1         
  selector:                
    matchLabels:           
      app: csye7374-l8           

HorizontalPodAutoscaler

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: csye7374
spec:
  maxReplicas: 5
  minReplicas: 1
  scaleTargetRef:
    apiVersion: extensions/v1beta1
    kind: Deployment
    name: csye7374
  metrics:
  - resource:                              
      name: cpu                            
      targetAverageUtilization: 30         
    type: Resource