# Settings

<span style="font-weight: 400;">The plugin configuration file "</span>*<span style="font-weight: 400;">pandora\_kubernetes</span>*<span style="font-weight: 400;">" is divided into sections (all configuration parameters will be indicated without quotation marks even if they have blank spaces): </span>

```
API access settings 

## API connection parameters 

api_ip=192.168.80.145 

api_port=8443 

ssl=1 

## HTTP bearer authentication parameters 

auth_method=bearer 

auth_token=auth-token 

## HTTP basic authentication parameters 

#auth_method=basic 

#auth_user=user 

#auth_pass=pass 
```

**api\_ip**

<span style="font-weight: 400;">IP address to the Kubernetes API service. </span>

**port**

<span style="font-weight: 400;">Port listening to the Kubernetes API service. </span>

**auth\_token**

<span style="font-weight: 400;">If "</span>*<span style="font-weight: 400;">auth\_method=bearer</span>*<span style="font-weight: 400;">" indicates the authentication token of the user with access to the API. This token can be obtained by following these steps: </span>

1. <span style="font-weight: 400;"> Obtaining the user's "</span>*<span style="font-weight: 400;">secret name</span>*<span style="font-weight: 400;">": </span>

```
$ kubectl get serviceaccounts user -o yaml 

apiVersion: v1 

kind: ServiceAccount 

metadata: 

creationTimestamp: "2019-06-19T10:11:48Z" 

name: user 

namespace: namespace 

resourceVersion: "327" 

selfLink: /api/v1/namespaces/namespace/serviceaccounts/user 

uid: a60f3652-927a-11e9-b423-ae1361a56794 

secrets: 

- name: secret_name
```

2. <span style="font-weight: 400;"> Obtaining the “</span>*<span style="font-weight: 400;">token</span>*<span style="font-weight: 400;">” of the “</span>*<span style="font-weight: 400;">secret name</span>*<span style="font-weight: 400;">”: </span>

```
$ kubectl describe secret secret_name 

Name: secret-name 

Namespace: namespace 

Labels: <none> 

Annotations: kubernetes.io/service-account.name: default 

kubernetes.io/service-account.uid: a60f3652-927a-11e9-b423-ae1361a56794 Type: kubernetes.io/service-account-token 

Data 

==== 

token: auth-token 

ca.crt: 1066 bytes 

namespace: 7 bytes
```

**auth\_user**

<span style="font-weight: 400;">If "</span>*<span style="font-weight: 400;">auth\_method=basic</span>*<span style="font-weight: 400;">" points out the user with access to the API. </span>

**ssl**

<span style="font-weight: 400;">Indicates whether the connection to the API is HTTPS or not (1 → HTTPS, 0 → HTTP). </span>

**auth\_method**

<span style="font-weight: 400;">Authentication mechanism to be used. The values are either "</span>*<span style="font-weight: 400;">bearer</span>*<span style="font-weight: 400;">" or "</span>*<span style="font-weight: 400;">basic</span>*<span style="font-weight: 400;">". </span>

**auth\_pass**

<span style="font-weight: 400;">If "*auth\_method=basic*" indicates the user password with access to the API. </span>