---
title: Pivotal Container Services (PKS) setup
summary: null
url: >-
  https://www.fastly.com/documentation/guides/next-gen-waf/setup-and-configuration/kubernetes/pks
---

Integration with Pivotal Container Service (PKS) is set up in almost the same manner as a generic Kubernetes install. The main difference is access to the Kubernetes cluster for PKS is done by logging in via the provided `pks` client binaries from the [PKS install](https://network.pivotal.io/products/pivotal-container-service).

## Installation

There is nothing specific to do to integrate with PKS. Integration is the same as a generic Kubernetes install. The only difference is access to the Kubernetes cluster for PKS which is done by logging in via the provided `pks` client binaries from the [PKS install](https://network.pivotal.io/products/pivotal-container-service). For additional information about PKS, check out the [VMware documentation](https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid-Integrated-Edition/index.html).

1. Set up your environment.

   ```term copy
   # Credentials filename
   $ export KUBECONFIG=pks-creds.yaml
   ```

2. Log in to PKS using your URL and your username and password.

   ```term copy
   $ pks login -a <your-url> -u <user> -p <password> -k
   ```

3. Create the credentials file (from KUBECONFIG).

   ```term copy
   $ pks get-credentials <cluster-name>
   ```

4. Set the context to the remote cluster so all local commands are run on that remote cluster.

   ```term copy
   $ kubectl config use-context <cluster-name>
   ```

5. Deploy your application following normal Kubernetes instructions. Confirm the configuration has been set up correctly by running commands on the remote cluster, such as listing the pods:

   ```term copy
   $ kubectl get pods
   ```

6. Install Next-Gen WAF by following the [instructions for integrating with Kubernetes](https://www.fastly.com/documentation/guides/next-gen-waf/setup-and-configuration/kubernetes/kubernetes-intro).

## Related content

- [Kubernetes installation overview](https://www.fastly.com/documentation/guides/next-gen-waf/setup-and-configuration/kubernetes/kubernetes-intro)
