Git Product home page Git Product logo

Comments (7)

dkoshkin avatar dkoshkin commented on July 21, 2024

@iqarmy how did you setup your kubeconfig file, did you use the make kubeconfig target or some other method?

Are there any errors if you run that command?

from dcos-kubernetes-quickstart.

iqarmy avatar iqarmy commented on July 21, 2024

I've actually manually created it as I'm using OSX on my local machine whilst DC/OS cluster runs within the local network. Below its contents (xx.xx.xx.xx - address of marathon-lb) :

$ cat ~/.kube/config
apiVersion: v1
clusters:
- cluster:
    insecure-skip-tls-verify: true
    server: https://xx.xx.xx.xx:6443
  name: kubernetes01
contexts:
- context:
    cluster: kubernetes01
    user: ""
  name: default-context
current-context: default-context
kind: Config
preferences: {}
users: []

from dcos-kubernetes-quickstart.

dkoshkin avatar dkoshkin commented on July 21, 2024

Do you mind wrapping the code in "```" as here, it will make it easier to review.

from dcos-kubernetes-quickstart.

iqarmy avatar iqarmy commented on July 21, 2024

Edited thx.

from dcos-kubernetes-quickstart.

iqarmy avatar iqarmy commented on July 21, 2024

adding dcos info for the kube cluster as well:

$  dcos kubernetes cluster describe 
Using Kubernetes cluster: kubernetes01
{
  "calico": {
    "calico_ipv4pool_cidr": "192.168.0.0/16",
    "cni_mtu": 1400,
    "felix_ipinipenabled": true,
    "felix_ipinipmtu": 1420,
    "ip_autodetection_method": "can-reach=9.0.0.0",
    "ipv4pool_ipip": "Always",
    "typha": {
      "enabled": false,
      "replicas": 3
    }
  },
  "etcd": {
    "cpus": 0.5,
    "data_disk": 3072,
    "disk_type": "ROOT",
    "mem": 1024,
    "wal_disk": 512
  },
  "kubernetes": {
    "authorization_mode": "AlwaysAllow",
    "control_plane_placement": "[[\"hostname\", \"UNIQUE\"]]",
    "control_plane_reserved_resources": {
      "cpus": 1.5,
      "disk": 10240,
      "mem": 4096
    },
    "dcos_token_authentication": false,
    "high_availability": false,
    "private_node_count": 1,
    "private_node_placement": "",
    "private_reserved_resources": {
      "kube_cpus": 2,
      "kube_disk": 10240,
      "kube_mem": 2048,
      "system_cpus": 1,
      "system_mem": 1024
    },
    "proxy": {
      "override_injection": false
    },
    "public_node_count": 0,
    "public_node_placement": "",
    "public_reserved_resources": {
      "kube_cpus": 0.5,
      "kube_disk": 2048,
      "kube_mem": 512,
      "system_cpus": 1,
      "system_mem": 1024
    },
    "service_cidr": "10.100.0.0/16"
  },
  "kubernetes-cluster": {
    "authorization_mode": "RBAC",
    "high_availability": true,
    "private_node_count": 3
  },
  "service": {
    "log_level": "INFO",
    "name": "kubernetes01",
    "region": "",
    "service_account": "",
    "service_account_secret": "",
    "sleep": 1000,
    "use_agent_docker_certs": false,
    "virtual_network_name": "dcos"
  }
}

from dcos-kubernetes-quickstart.

iqarmy avatar iqarmy commented on July 21, 2024

Just to update I'm getting 401 (unauth) regardless the:

"kubernetes-cluster": {
    "authorization_mode": "RBAC",
    "high_availability": true,
    "private_node_count": 3
  },

or

"kubernetes-cluster": {
    "authorization_mode": "AlwaysAllow",
    "high_availability": true,
    "private_node_count": 3
  },

Otherwise the cluster is provisioned as default.

from dcos-kubernetes-quickstart.

dkoshkin avatar dkoshkin commented on July 21, 2024

I would recommend using the Makefile target and then comparing it to the kubeconfig you are generating.

from dcos-kubernetes-quickstart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.