Kubernetes开源书 - 周立apiVersion: apps/v1beta1 kind: Deployment metadata: name: nginx-deployment spec: replicas: 3 template: metadata: labels: app: nginx spec: 06-理解K8s对象 21 containers: mysql # RC的POD标签选择器,即:监控和管理拥有这些标签的POD实例,确保当前集群中有且只有repli cas个POD实例在运⾏ template: metadata: labels: # 指定该POD的标签 app: mysql selector requirement matchExpressions: - {key: tier, operator: In, values: [frontend]} template: metadata: labels: app: guestbook tier: frontend spec:0 码力 | 135 页 | 21.02 MB | 1 年前3
Kubernetes Native DevOps PracticeSolution • Architecture and Features • CRD and operator design • Pipeline / Stage/ Task / Task Template / Version Control • Logging, monitoring, autoscaling, high availability • Extensibility / Integration Capabilities/Advantages to Build DevOps Solution parallelism Job Spec activeDeadlineSeconds completions Pod Template Expected maximum number of parallel build tasks Expected number of completed build tasks The after if finishes CronJob Spec schedule Cron style scheduler configuration concurrencyPolicy Job Template Concurrency policy of CronJob suspend Whether suspend latter jobs if the previous job is still0 码力 | 21 页 | 6.39 MB | 1 年前3
K8S安装部署开放服务labels: app: traefik spec: selector: matchLabels: app: traefik template: metadata: name: traefik labels: app: traefik spec: vi influxdb2/templates/service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "influxdb.fullname" . }} labels: {{- include "influxdb.labels" . | nindent 4 }} selectorLabels" . | nindent 4 }} --- apiVersion: v1 kind: Service metadata: name: {{ template "influxdb.fullname" . }}-headless labels: {{- include "influxdb.labels" . | nindent 40 码力 | 54 页 | 1.23 MB | 1 年前3
k8s操作手册 2.3#pod运行副本数(实例数) selector: #选择相应pod模板 matchLabels: podlable: nginx-deploy-pod template: #定义一个pod模板,具体要运行多少个实例由上面的replicas决定 metadata: labels: podlable: nginx-deploy-pod dslabel #打标签 spec: selector: #选择相应pod模板 matchLabels: podlable: ds-pod template: metadata: labels: podlable: ds-pod #pod模板标签 spec: containers: #Job名 spec: comple�ons: 3 #一共起1个pod(默认1) parallelism: 2 #可同时运行的pod数(默认1) template: spec: containers: #定义一组容器 - name: jobxx #容器名,小写字母开头,后可接数字-减号,不可带小数点0 码力 | 126 页 | 4.33 MB | 1 年前3
⾸云容器产品Kubernetes操作指南matchLabels: 39 app: wordpress 40 tier: mysql 41 strategy: 42 type: Recreate 43 template: 44 metadata: 45 labels: 46 app: wordpress 47 tier: mysql 48 matchLabels: 28 app: wordpress 29 tier: frontend 30 strategy: 31 type: Recreate 32 template: 33 metadata: 34 labels: 35 app: wordpress 36 tier: frontend 37 matchLabels: 39 app: wordpress 40 tier: mysql 41 strategy: 42 type: Recreate 43 template: 44 metadata: 45 labels: 46 app: wordpress 47 tier: mysql 480 码力 | 94 页 | 9.98 MB | 1 年前3
Over engineeringthe core of Kubernetes kopsKops 1.4 embed in .go file Kops 1.4 embed in .go file import “text/template” Kops 1.4 embed in .go file import “text/template” parse at runtime How do we develop ? ? ? No Yes make go-bindata ..also Kops 1.5 ..also 700 open GitHub issues Kops 1.5 ..also We couldn’t test our “text/template” code Kops 1.5 ..also We would still get panics at runtime.. Kops 1.5 List of things we ne0 码力 | 75 页 | 4.56 MB | 1 年前3
Автоматизация управления ClickHouse-кластерами в Kubernetesdefaults: templates: volumeClaimTemplate: storage-vc-template templates: volumeClaimTemplates: - name: storage-vc-template persistentVolumeClaim: spec: accessModes: defaults: templates: podTemplate: clickhouse-stable volumeClaimTemplate: storage-vc-template templates: podTemplates: - name: clickhouse-stable spec: containers:0 码力 | 44 页 | 2.24 MB | 1 年前3
Go Programming Pattern in Kubernetes PhilosophyapiVersion: apps/v1beta1 kind: Deployment metadata: name: nginx-deployment spec: replicas: 3 template: metadata: labels: app: nginx spec: containers: - name: nginx kubernetes.io/logging-agent": "true" name: helloworld-with-annotation spec: replicas: 1 template: metadata: name: helloworld-with-annotation spec: containers: -0 码力 | 29 页 | 2.12 MB | 1 年前3
张海宁:使用Kubernetes部署超级账本FabricOrdererOrgs: - Name: Orderer Domain: orgorderer1 Template: Count: 1 PeerOrgs: - Name: Org1 Domain: org1 Template: Count: 1 39 部署- 生成Fabric配置文件 crypto-config0 码力 | 45 页 | 2.70 MB | 1 年前3
基于 KUBERNETES 的 容器器 + AI 平台quota Device (GPU) quota …. quota Service Config group … k8s objects Application template ⽤用户场景 - OPENSTACK 租户集成 • 企业真实场景 - 集成旧系 统,并⾏行行跑业务。 • 资源对照表 • Tenant 与 Project • Namespace0 码力 | 19 页 | 3.55 MB | 1 年前3
共 15 条
- 1
- 2













