... 任务 rsync -aP --delete qiyang@192.168.1.161::log /var/log/nginx/ --password-file=/etc/rsync.pas 参数: --delete 删除远程端没有的 ...
... 6.8.0 filebeat.inputs: - type: log enabled: false paths: - /var/log/nginx/*.log filebeat.config.modules: path: ${path.config}/modules.d/*.yml reload.enabled ...
... .kube-system.svc.cluster.local Name: nginx-sts-0.nginx-sts-svc Address 1: 10.244.1.181 nginx-sts-0.nginx-sts-svc.default.svc.cluster.local ...
... labels: app: backend tier: db spec: containers: - name: nginx image: nginx:v1 affinity: podAntiAffinity: # 使用的是 podAntiAffinity requiredDuringSchedulingIgnoredDuringExecution ...
... path /var/log/nginx/access.log pos_file /var/log/td-agent/nginx-access.log.pos tag nginx.access format nginx </source> <match nginx.access> @type ...
... : # services下可以有多个port和hosts - port: number: 80 name: nginx-http protocol: HTTP hosts: - weather.com # 自定义访问域名 apiVersion: networking ...
... 之前的要手动编译。 user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; include /usr/share/nginx/modules/*.conf; events { worker_connections 1024 ...
... 分配流量,如AB测试。 灰度发布实施方式: 基于负载均衡:nginx、haproxy、lvs 基于kubernetes:Pod的滚动更新回滚等、service ...
... 新的节点上: kubectl get pods NAME READY STATUS RESTARTS AGE nginx-dm-57f45f868f-xprhj 1/1 Running 0 160m
... : apiVersion: v1 kind: Pod metadata: name: sa-pod spec: containers: - name: nginx image: nginx:latest ports: - name: http containerPort: 80 serviceAccount: myadmin 运行后就可以 ...
... ceph-test namespace: default labels: app: init spec: containers: - name: nginx image: nginx:latest imagePullPolicy: IfNotPresent ports: - name: http containerPort: 80 volumeMounts ...
... apiVersion: v1 kind: Pod metadata: name: init-container spec: containers: - name: nginx image: nginx:1.12 ports: - name: http containerPort: 80 volumeMounts: - name: html mountPath ...
... -nginx spec: containers: - image: nginx imagePullPolicy: IfNotPresent name: staging-nginx volumeMounts: - name: nginx-conf mountPath: /etc/nginx/nginx.conf subPath: nginx.conf ...
... containers: - name: busybox-pvc image: nginx imagePullPolicy: IfNotPresent volumeMounts: - name: code mountPath: /usr/share/nginx/html/ volumes: - name: code persistentVolumeClaim ...
... -demo template: metadata: labels: app: rs-demo spec: containers: - name: myapp image: nginx ports: - name: html containerPort: 80 查看创建的RS: kubectl get pods ...
... : app: nginx-dm name: nginx-dm spec: replicas: 3 selector: matchLabels: app: nginx-dm template: metadata: labels: app: nginx-dm spec: containers: - image: nginx name: nginx ports ...
... : pod-use-hostnetwork labels: app: pod-use-hostnetwork spec: containers: - name: nginx image: nginx hostNetwork: true 查看创建的Pod: 看IP这一列是 ...
... -k8s port: number: 9090 设置白名单: annotations: nginx.ingress.kubernetes.io/service-weight: '' nginx.ingress.kubernetes.io/whitelist-source-range: 220.191.163 ...
... --dry-run -o yaml apiVersion: v1 kind: Service metadata: labels: app: nginx-svc name: nginx-svc spec: ports: - name: 8912-80 port: 8912 # service的port ...
... : default spec: containers: - name: myapp image: nginx:latest imagePullPolicy: IfNotPresent volumeMounts: - name: html mountPath: /usr/share/nginx/html/ # Pod中的目录 ports: - name ...