zoukankan      html  css  js  c++  java
  • k8s使用glusterfs

    glusterfs-endpoints.json

    {
      "kind": "Endpoints",
      "apiVersion": "v1",
      "metadata": {
        "name": "glusterfs-cluster",
        "namespace": "app-bi"
      },
      "subsets": [
        {
          "addresses": [
            {
              "ip": "100.20.111.145"
            }
          ],
          "ports": [
            {
              "port": 2990
            }
          ]
        },
        {
          "addresses": [
            {
              "ip": "1o0.20.111.146"
            }
          ],
          "ports": [
            {
              "port": 2990
            }
          ]
        },
        {
          "addresses": [
            {
              "ip": "100.20.111.148"
            }
          ],
          "ports": [
            {
              "port": 2990
            }
          ]
        }
      ]
    }

    kubectl create -f glusterfs-endpoints.json

    glusterfs-service.json

    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "glusterfs-cluster",
        "namespace": "app-bi"
      },
      "spec": {
        "ports": [
          {"port": 2990}
        ]
      }
    }

    kubectl create -f glusterfs-service.json

    app-server-data-pv.yaml

    apiVersion: v1
    kind: PersistentVolume
    metadata:
      name: pv-app-server-data
      namespace: app-bi
    spec:
      capacity:
        storage: 5Gi
      accessModes:
        - ReadWriteMany
      glusterfs:
        endpoints: glusterfs-cluster
        path: app-server-data
        readOnly: false

    kubectl create -f app-server-data-pv.yaml

  • 相关阅读:
    Cocos2d-x游戏移植到Android平台
    Alice and Bob
    Hamming Codes
    Fire逃生
    Java中面向对象的理解
    常见的几个算法
    数组的介绍
    Java 中的数据类型
    Java 初相识
    JavaScript 数据类型 (续)
  • 原文地址:https://www.cnblogs.com/lingfenglian/p/11753938.html
Copyright © 2011-2022 走看看