k8sTable of ContentsForeword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vPreface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii1. Kubernetes Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Pods 1Replication Controllers 4Replica Sets 5Deployments 7Services 8Jobs 10Volumes 12Architecture 142. Deploying a Java Application to Kubernetes. . . . . . . . . . . . . . . . . . . . 17Managing Kubernetes Cluster 17Running Your First Java Application 25Starting the WildFly Application Server 27Managing Kubernetes Resources Using a Configuration File 31Service Discovery for Java Application and a Database 33Kubernetes Maven Plugin 393. Advanced Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Persistent Volume 43Stateful Sets 48Horizontal Pod Autoscaling 51Daemon Sets 52iiiChecking the Health of a Pod 53Namespaces 54Rolling Updates 56Exposing a Service 584. Administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59Cluster Details 59Application Logs 62Debugging Applications 63Application Performance Monitoring 665. Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
评论