{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb-operator/issues/249","repository_url":"https://api.github.com/repos/pingcap/tidb-operator","labels_url":"https://api.github.com/repos/pingcap/tidb-operator/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb-operator/issues/249/comments","events_url":"https://api.github.com/repos/pingcap/tidb-operator/issues/249/events","html_url":"https://github.com/pingcap/tidb-operator/issues/249","id":393804412,"node_id":"MDU6SXNzdWUzOTM4MDQ0MTI=","number":249,"title":"We need to add a label for pv to indicate which node this pv belongs to","user":{"login":"cwen0","id":22956341,"node_id":"MDQ6VXNlcjIyOTU2MzQx","avatar_url":"https://avatars3.githubusercontent.com/u/22956341?v=4","gravatar_id":"","url":"https://api.github.com/users/cwen0","html_url":"https://github.com/cwen0","followers_url":"https://api.github.com/users/cwen0/followers","following_url":"https://api.github.com/users/cwen0/following{/other_user}","gists_url":"https://api.github.com/users/cwen0/gists{/gist_id}","starred_url":"https://api.github.com/users/cwen0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwen0/subscriptions","organizations_url":"https://api.github.com/users/cwen0/orgs","repos_url":"https://api.github.com/users/cwen0/repos","events_url":"https://api.github.com/users/cwen0/events{/privacy}","received_events_url":"https://api.github.com/users/cwen0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-24T03:43:13Z","updated_at":"2018-12-27T07:08:23Z","closed_at":null,"author_association":"MEMBER","body":"Sometimes, we need to count the status of pvs on special nodes by `kubectl`. \r\nAlthough we have added this information to `nodeAffinity`, this is not convenient for us to monitor by `kubectl` .\r\n"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb-operator/issues/comments/450090992","html_url":"https://github.com/pingcap/tidb-operator/issues/249#issuecomment-450090992","issue_url":"https://api.github.com/repos/pingcap/tidb-operator/issues/249","id":450090992,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDA5MDk5Mg==","user":{"login":"tennix","id":7932127,"node_id":"MDQ6VXNlcjc5MzIxMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7932127?v=4","gravatar_id":"","url":"https://api.github.com/users/tennix","html_url":"https://github.com/tennix","followers_url":"https://api.github.com/users/tennix/followers","following_url":"https://api.github.com/users/tennix/following{/other_user}","gists_url":"https://api.github.com/users/tennix/gists{/gist_id}","starred_url":"https://api.github.com/users/tennix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tennix/subscriptions","organizations_url":"https://api.github.com/users/tennix/orgs","repos_url":"https://api.github.com/users/tennix/repos","events_url":"https://api.github.com/users/tennix/events{/privacy}","received_events_url":"https://api.github.com/users/tennix/received_events","type":"User","site_admin":false},"created_at":"2018-12-27T07:08:23Z","updated_at":"2018-12-27T07:08:23Z","author_association":"MEMBER","body":"Using custom columns works great! But it's better to add claim and claim namespace. From claim name and namespace, users can know what pod occupies the underlining PV.\r\n```\r\nkubectl get pv -l app.kubernetes.io/managed-by=tidb-operator -o=custom-columns='NAMESPACE:spec.claimRef.namespace,CLAIM:.spec.claimRef.name,NAME:.metadata.name,NODE:.spec.nodeAffinity.required.nodeSelectorTerms[0].matchExpressions[0].values[0],PATH:.spec.local.path' \r\n```\r\nWe should add this to the operation documents, so users using local pv can easily know where the data directory is for a specific pod."}}
{"actor":{"display_login":"tennix"}}