$ curl https://raw.githubusercontent.com/DataDog/dd-agent/master/datadog-cert.pem > datadog-cert.pem
$ export KUBERNETES_NS=<placeholder>
$ kubectl -n $KUBERNETES_NS create secret generic dd-agent-cert --from-file=datadog-cert.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
k8snssetup multi 10 --kubeconfig=/tmp/admin.kubeconfi.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: userProxy | |
namespace: kube-system | |
rules: | |
- apiGroups: ["*"] | |
resources: ["services/proxy"] | |
verbs: ["*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: RoleBinding | |
metadata: | |
name: ns-admin | |
subjects: | |
- kind: ServiceAccount | |
name: foo | |
namespace: foo-ns | |
roleRef: | |
kind: Role |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Config | |
clusters: | |
- cluster: | |
insecure-skip-tls-verify: true | |
server: https://10.0.0.1:8443 | |
name: cluster-lab | |
contexts: | |
- context: | |
cluster: cluster-lab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: go | |
os: linux | |
sudo: required | |
services: | |
- docker | |
go: | |
- 1.9.x | |
install: | |
- curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" |