
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
1,FROM alpine:latestRUN apk add --update htop && rm -rf /var/cache/apk/*CMD ["htop"]docker build -t myhtop .docker run -it --rm --pid=host myhtopJoining another container’s pid namespace ca
添加hostscat > /etc/hosts <<EOF127.0.0.1localhost localhost.localdomain localhost4 localhost4.localdomain4::1localhost localhost.localdomain localhost6 localhost6.localdomain6 192.
$ docker run -t -i -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/static-docker-binary:/usr/bin/docker busybox shBy bind-mounting the docker unix socket and statically linked docker b
k8sk8s架构图解kube-proxy浅析k8s-proxy浅析kube-dns架构图解api访问初探k8s rbac语法一步一步学习k8syamlk8s的command和argsk8s高可用和ingresskubenets基于rc滚动升级pod调度-不完整版本-及dashboard原理k8s常用命令简单的 Kubernetes Pod 日志查看工具 Kubetai
yum install python-netaddr libselinux-python -yCONFIG_FILE=inventory/inventory.cfg python3 contrib/inventory_builder/inventory.py 192.168.1.1-5ansible-playbook -i inventory/inventory.cfg cluster.y
[root@node131 bin]# cat kube-apiserver.service[Unit]Description=Kubernetes API ServerDocumentation=https://github.com/GoogleCloudPlatform/kubernetesAfter=network.target[Service]ExecStart=/root
https://kubernetes.io/docs/admin/authorization/rbac/#role-and-clusterrole
busybox计数器https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#dns-policyapiVersion: v1kind: Podmetadata:name: counterspec:containers:- name: countimage: busybox
https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/deployment下发过程可以通过查看event看到.crontab类似linux定时任务.先决: crontab需要用到这个版的api,将下面的添加到api的配置--runtime-config=batch/v2alpha1=true创建crontabapi
要求每个pod挂相同cm模板,得到属于自己的配置具体实现以filebeat镜像为例:docker-entrypoint.sh#!/bin/bashset -execho "pod-ip is $POD_IP"sed -i "s#\#pod-ip#pod-ip: $POD_IP#g" /etc/filebeat/filebeat.yml#注意这句filebeat -e -c /etc/file







