Preview only show first 10 pages with watermark. For full document please download

Lfs258-labs_v_2018-01-16

linux

   EMBED


Share

Transcript

  LFS258: Version 2018-01-16c   Copyright the Linux Foundation 2018. All rights reserved.  iic   Copyright the Linux Foundation 2018. All rights reserved.The training materials provided or developed by The Linux Foundation in connection with the training services are protectedby copyright and other intellectual property rights.Open source code incorporated herein may have other copyright holders and is used pursuant to the applicable open sourcelicense.The training materials are provided for individual use by participants in the form in which they are provided. They may not becopied, modified, distributed to non-participants or used to provide training to others without the prior written consent of TheLinux Foundation.No part of this publication may be reproduced, photocopied, stored on a retrieval system, or transmitted without express priorwritten consent.Published by:the  Linux Foundation http://www.linuxfoundation.orgNo representations or warranties are made with respect to the contents or use of this material, and any express or impliedwarranties of merchantability or fitness for any particular purpose or specifically disclaimed.Although third-party application software packages may be referenced herein, this is for demonstration purposes only andshall not constitute an endorsement of any of these software applications. Linux  is a registered trademark of Linus Torvalds. Other trademarks within this course material are the property of theirrespective owners.If there are any questions about proper and fair use of the material herein, please contact: [email protected]: V 2018-01-16 c   Copyright the Linux Foundation 2018. All rights reserved.  Contents 1 Introduction 1 1.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Basics of Kubernetes 3 2.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 Kubernetes Architecture 5 3.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4 Installation and Configuration 7 4.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 5 APIs and Access 27 5.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6 Managing State With Deployments 33 6.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7 Volumes and Data 41 7.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 8 Services 55 8.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 9 Ingress 61 9.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 10 API Objects 63 10.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 11 Scheduling 67 11.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 12 Logging and Troubleshooting 75 12.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 13 Custom Resource Definition 79 13.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 14 Kubernetes Federation 83 iii  iv  CONTENTS  14.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 15 Helm 85 15.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 16 Security 89 16.1 Labs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 LFS258: V 2018-01-16 c   Copyright the Linux Foundation 2018. All rights reserved.