...
ONAP on Kubernetes#QuickstartInstallation
Kubernetes
Kubernetes API
Kubernetes v11 Curl examples
for validating raw kubernetes api calls (take the .kube/config server and token and create a curl call with optional json parsing) - like below
Code Block | ||
---|---|---|
| ||
ubuntu@ip-172-31-30-96:~$ curl -k -H "Authorization: Bearer QmFzaWMgUVV........YW5SdGFrNHhNdz09" -H 'Accept: application/json' https://o...fo:8880/r/projects/1a7/kubernetes:6443/api/v1/pods | jq -r .items[0].spec.containers[0]
{
"name": "heapster",
"image": "docker.io/rancher/heapster-amd64:v1.5.2",
"command": [
"/heapster",
"--source=kubernetes:https://$KUBERNETES_SERVICE_HOST:443?inClusterConfig=true&useServiceAccount=true",
"--sink=influxdb:http://monitoring-influxdb.kube-system.svc.cluster.local:8086?retention=0s",
"--v=2"
],
"resources": {},
"volumeMounts": [
{
"name": "io-rancher-system-token-wf6d4",
"readOnly": true,
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
}
],
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
} |
Kubernetes Best Practices
Local nexus proxy
...