• Method of deploying k8s in docker


    K8s K8s is a cluster cluster in which there are multiple namespaces, multiple pods under a namespace, and multiple containers under a pod.This article takes you from the beginning to deploy k8s in docker. Docker Download Docker installation: https://docs.docker.com/docker-for-mac/install/Using k8s in docker: https://docs.docker.com/desktop/kubernetes/In docker settings, click two as shown in the following figure. K8s related […]

  • K8s and storage — Interpretation of flexvolume


    preface The great thing about k8s is its scalability. In the storage field, it supports flex volume and CSI. Today I’ll focus on flexvolume. Flexvolume is a storage plug-in extension mode supported by kubernetes v1.8 +. Similar to CNI plug-ins, it requires external plug-ins to put the binaries in a pre configured path (such as […]

  • K8s and DNS — some practical experience of coredns


    About coredns Install the new version k8s, coredns has become the default DNS. Before Kube DNS. Coredns is a flexible and extensible DNS server, which can be used as kubernetes cluster DNS. Like kubernetes, the coredns project is hosted by CNCF. But in practical use, we need some attention. Increase the anti affinity of the […]

  • Comparison of docker k8s network architecture


    Docker network architecture Design defects: The bridge is virtualized by the host and cannot be addressed externally. If you want to be addressed externally, you need to map the container port to the host port. In fact, port mapping is realized by adding corresponding rules to the NAT table of iptables, which is also called […]

  • Tekton Pipelines–Task


    Preface Tekton pipelines is an open source implementation that configures and runs CI / CD style pipelines for your kubernetes application. Pipelines create custom resources to declare pipelines as building blocks. The custom resource is an extension of the kubernetes API. You can create custom kubernetes objects. After installing the custom resources, users can use […]

  • How to debug a docker container from a separate container


    Containers are great for encapsulating software, but sometimes you can go too far by blindly altering the container image to make it as small as possible. We need to find a good balance between “clean” images and images that cannot be debugged. The normal way to see people debugging a running container is to docker […]

  • Create optimized go image files and stepped pits


    It is not difficult to create a go image file on docker, but the created file is very large, close to 1g, which is not convenient to use. One of the main problems of docker image is how to optimize and create a small image. We can create docker image files with multi-level construction method, […]

  • K8s and HPA — event driven auto scaling based on kubernetes


    Keda enables fine-grained automatic scaling of event driven kubernetes workloads (including zero to Zero Auto scaling). Keda acts as the kubernetes metrics server, allowing users to define auto scaling rules using a dedicated kubernetes custom resource definition. Keda can run on the cloud and edge, can be locally integrated with kubernetes components (such as horizo […]

  • K8s and log — add a filter for fluent bit using Lua


    Preface Previously, we introduced the fluent bit log collection artifact. Recently, we have met the needs of wonderful people. We have to use Lua to write the filter of fluent bit to meet the needs. First of all, the following requirements are introduced:The non container log team uses filebeat, and its configuration file is as […]

  • Chance coincidence and docker


    Foreplay Ben Xiaobai suddenly became interested in the reliability of mongodb again in the morning,Then we found that 4.0 already supports replica set level transactions,I don’t quite understand,But the important thing is that transactions are not downward compatible,Compatibility must be improved to 4.0 Check on my Ubuntu mongo –version The result is 3.6.3So consider upgrading […]

  • The most complete knowledge map that k8s learners can’t miss (including 58 knowledge point links)


    Author: Alibaba server development technology expert Guide readingKubernetes, as the “operating system” in the cloud native era, is a necessary skill for every user to be familiar with and use it. This article outlines the knowledge map of kubernetes, which is a container service. Some contents refer to the knowledge map on the Internet to […]

  • Add tag to ebs for k8s and aws- add-ebs-tags-controller


    preface When using aws’s managed k8s–eks, you can’t avoid using aws’s LB and block storage. All the resources in the AWS public cloud can customize tags. The advantage of this is that the resources can be audited and counted in different dimensions according to the specific meaning of tag. For example, by department, by project, […]