Skip to content
Deploy pull requests on a Kubernetes cluster before merged.
Branch: master
Clone or download
Latest commit 0238d22 May 26, 2019


GitHub release CircleCI codecov

Pullup is a Kubernetes add-on that helps you deploy pull requests on a Kubernetes cluster based on existing resources and cleanup resources automatically when pull requests are closed or merged.


Pullup requires Kubernetes 1.7 and later which supports Custom Resource Definitions (CRD).


First, create a new namespace.

kubectl create namespace pullup

Install CRDs.

kubectl apply -f
kubectl apply -f

Create a new service account and RBAC if it is enabled on your Kubernetes cluster. This enables Pullup to access Pullup resources.

kubectl apply -f

Create deployments. This will create two deployments. One is the controller that monitoring resource changes and the other is a HTTP server receiving GitHub events.

kubectl apply -f

Create a new service exposing the webhook server. You may need to change the service type based on your need.

kubectl apply -f


Besides the RBAC settings you have installed in the previous section, you also have to grant access of the resources that you defined in webhooks. If your Kubernetes cluster is not RBAC enabled, you can skip this section.

You have to create Role and RoleBinding (or ClusterRole and ClusterRoleBinding for all namespaces), set verbs to ["get", "create", "update"] for each kind of resources and bind the role to the pullup service account.

The following example includes Deployment and Service. See here for more details about RBAC.

# Change this to ClusterRole to apply in all namespaces.
kind: Role
  name: pullup-deployment
  # Deployment
  - apiGroups: ["apps", "extensions"]
    resources: ["deployments"]
    verbs: ["get", "create", "update"]
  # Service
  - apiGroups: [""]
    resources: ["services"]
    verbs: ["get", "create", "update"]
# Change this to ClusterRoleBinding to apply in all namespaces.
kind: RoleBinding
  name: pullup-deployment
# Bind to the pullup service account
  - kind: ServiceAccount
    name: pullup
    namespace: pullup
# Refer to the role above
  kind: Role
  name: pullup-deployment



See for information about setting environment.


You can’t perform that action at this time.