Install the operator and load balancer

Grant the Helm service account the cluster-admin role.

$ cat <<EOF | kubectl apply -f -
kind: ClusterRoleBinding
  name: helm-user-cluster-admin-role
  kind: ClusterRole
  name: cluster-admin
- kind: ServiceAccount
  name: default
  namespace: kube-system

Use Helm to install the operator and Traefik load balancer.

First, set up Helm:

$ helm repo add stable

Create a Traefik (ingress-based) load balancer.

Create a namespace for the load balancer.

$ kubectl create namespace traefik

Use the values.yaml in the sample but set kubernetes.namespaces specifically.

$ helm install traefik-operator stable/traefik \
    --namespace traefik \
    --values kubernetes/samples/charts/traefik/values.yaml \
    --set "kubernetes.namespaces={traefik}" \

Install the operator.

  1. Create a namespace for the operator:

    $ kubectl create namespace sample-weblogic-operator-ns
  2. Create a service account for the operator in the operator’s namespace:

    $ kubectl create serviceaccount -n sample-weblogic-operator-ns sample-weblogic-operator-sa
  3. Use helm to install and start the operator from the directory you just cloned:

    $ helm install sample-weblogic-operator kubernetes/charts/weblogic-operator \
      --namespace sample-weblogic-operator-ns \
      --set image=oracle/weblogic-kubernetes-operator:3.0.4 \
      --set serviceAccount=sample-weblogic-operator-sa \
      --set "domainNamespaces={}" \
  4. Verify that the operator’s pod is running, by listing the pods in the operator’s namespace. You should see one for the operator.

    $ kubectl get pods -n sample-weblogic-operator-ns
  5. Verify that the operator is up and running by viewing the operator pod’s log:

    $ kubectl logs -n sample-weblogic-operator-ns -c weblogic-operator deployments/weblogic-operator