Skip to content

Instantly share code, notes, and snippets.

@bazzilio
Last active April 2, 2019 19:36
Show Gist options
  • Save bazzilio/938620e4221e8399842be4d67e41e1ed to your computer and use it in GitHub Desktop.
Save bazzilio/938620e4221e8399842be4d67e41e1ed to your computer and use it in GitHub Desktop.
k8s_metal_bare
kubectl get -o yaml endpoints
apiVersion: v1
items:
- apiVersion: v1
kind: Endpoints
metadata:
creationTimestamp: 2019-03-26T11:32:57Z
name: kubernetes
namespace: default
resourceVersion: "1468795"
selfLink: /api/v1/namespaces/default/endpoints/kubernetes
uid: e75b1bc3-4fba-11e9-a71a-6c3be5b47db8
subsets:
- addresses:
- ip: 192.168.80.15
- ip: 192.168.80.30
ports:
- name: https
port: 6443
protocol: TCP
kind: List
metadata:
resourceVersion: ""
selfLink: ""
apiVersion: v1
items:
- apiVersion: v1
kind: Service
metadata:
creationTimestamp: 2019-03-26T11:32:57Z
labels:
component: apiserver
provider: kubernetes
name: kubernetes
namespace: default
resourceVersion: "38"
selfLink: /api/v1/namespaces/default/services/kubernetes
uid: e756df68-4fba-11e9-a71a-6c3be5b47db8
spec:
clusterIP: 10.233.0.1
ports:
- name: https
port: 443
protocol: TCP
targetPort: 6443
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
kind: List
metadata:
resourceVersion: ""
selfLink: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment