1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
   | $ cat /etc/heketi/heketi.json {   "_port_comment": "Heketi Server Port Number",   "port": "8080",
    "_use_auth": "Enable JWT authorization. Please enable for deployment",   "use_auth": false,
    "_jwt": "Private keys for access",   "jwt": {     "_admin": "Admin has access to all APIs",     "admin": {       "key": "123456"     },     "_user": "User only has access to /volumes endpoint",     "user": {       "key": "123456"     }   },
    "_glusterfs_comment": "GlusterFS Configuration",   "glusterfs": {     "_executor_comment": [       "Execute plugin. Possible choices: mock, ssh",       "mock: This setting is used for testing and development.",       "      It will not send commands to any node.",       "ssh:  This setting will notify Heketi to ssh to the nodes.",       "      It will need the values in sshexec to be configured.",       "kubernetes: Communicate with GlusterFS containers over",       "            Kubernetes exec api."     ],     "executor": "ssh",
      "_sshexec_comment": "SSH username and private key file information",     "sshexec": {       "keyfile": "/etc/heketi/heketi_key",       "user": "root",       "port": "Optional: ssh port.  Default is 22",       "fstab": "Optional: Specify fstab file on node.  Default is /etc/fstab"     },
      "_db_comment": "Database file name",     "db": "/var/lib/heketi/heketi.db",
      "_loglevel_comment": [       "Set log level. Choices are:",       "  none, critical, error, warning, info, debug",       "Default is warning"     ],     "loglevel" : "debug"   } }
  # 启动 systemctl enable heketi && systemctl restart heketi && systemctl status heketi
  # 测试 $ curl http://localhost:8080/hello Hello from Heketi
   |