sIDecar 模式
共享 | 不共享 |
---|---|
network | ipc |
utc | pID |
mount | user |
APIVersion: v1kind: PodMetadata: name: test-sIDecar namespace: defaultspec: hostname: test-sIDecar # 主机名 volumes: # 存储 - name: test-volume hostPath: path: /tmp containers: - name: test1 image: python imagePullPolicy: IfNotPresent args: - "python" - "-m" - "http.server" - "8111" ports: - containerPort: 8111 volumeMounts: - name: test-volume mountPath: /tmp/123 - name: test2 image: python imagePullPolicy: IfNotPresent args: - "python" - "-m" - "http.server" - "8112" ports: - containerPort: 8112 volumeMounts: - name: test-volume mountPath: /tmp/123
总结 以上是内存溢出为你收集整理的k8s资源sidecar全部内容,希望文章能够帮你解决k8s资源sidecar所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)