1、Kubernetes is hard!-JFrog的Kubernetes实 践 Kubernetes?/ Kubernetes? Kubernetes?Kubernetes is F JJKubernetesFKrJFrogn n sb e u K t JFrogKubernetes JFrog CI/CD JFJFrogKubernetes Kubernetes Kubernetes ClusterAKSEKSGKERancherOpenshiftKubernetes The Hard WayKelsey Hightowerhttps:/ KubernetesNginxJFrogKubern
2、etes Docker SIGTERMSTDOUT/STDERRShutdownRecovery K8s0Cluster Scale-upScale-downNode Scale-upScale-downNThe Twelve-Factor App https:/ I.VII. VIII.II.III.IV.V.VI.IX. X. XI.XIIJFrogKubernetes resources:requests:memory: 1Gicpu: 100mlimits:memory: 2Gicpu: 250m. Pod Pod Pod Javav-Xms=1g -Xmx=2gRabbitMQvra
3、bbitmq.conftotal_memory_available_override_value = 1GBreadinessProbe:httpGet:path: /api/system/healthport: 8080livenessProbe:exec:command:- mongo- -eval readinessProbe- db.adminCommand(ping)livenessProbe:tcpSocket:port: 5672 livenessProbe Exec - return 0 on successHttp - return 400 on successTcp - s
4、ucceed to open a socket on a given Application pod example.Multiple artifactory logs forwarded by aFluentbit container to a log aggregator.Pod init PodApplicationcontainer sidecar LogcollectorFluentbitcontainerLJFrogKubernetes yaml yaml yaml yaml Helm https:/ Helm Chart template yamls ChartChart.yam
5、l values.yaml values-test.yaml, values-prod.yaml Charts Charts Helm ChartsC Helm Chartshttps:/ Helm Command# Lint your chart for errors and recommendations$ helm lint https:/docs.helm.sh# Download a chart for local viewing$ helm fetch # Get a release (application already deployed with helm) actual c
6、onfiguration$ helm get # Get the status of all the resources included in a release$ helm status # Get the actual resolved configuration without deploying anything$ helm template $ helm install -debug -dry-run # Test your release (need to write test pods in your chart)$ helm test JFrogKubernetes ssh
7、kubectl Dev/Ops OOBOut-of-B Prometheus G EFK StackFluentdElasticSearchKAPI https:/thenewstack.io/five-principles-monitoring-microservices A JFrogKubernetes CI/CDCI/CDJFrogKubernetes CI/CD JFrogKubernetes CI/CDKubernetesHelm Charts100+50 Kubernetes Helm CJFrogKubernetes / Kubernetes https:/kubernetes.ioKubernetes https:/Slack https:/Helm issues https:/ EndJFrog b n t usu u r e K