Enabling content security headers on Kubernetes

About this task

The changes in this task affect the following pods:
  • web

Procedure

  1. Edit the values.yaml file.
  2. Add the following parameter to the file, where company_domain is the domain name.
    contentSecurityPolicy: frame-ancestors https://*.company_domain
  3. Apply the changes to the configuration.
    Run the helm upgrade command from the helm directory where the Sametime installation package was unzipped.
    Specify the Sametime deployment name.
    helm upgrade sametime_deployment_name .
    Note: The dot is part of the command.
  4. Restart the pods with the changes. Use the kubectl scale command to scale the pods to zero and then to one that have been changed. You must run the commands for each pod that the change affects.
    1. Run the following command to scale the pod to zero.
      Scale the pod to zero, where pod_deployment_name is the pod name.
      
      kubectl scale deploy pod_deployment_name --replicas=0
      
    2. Run the following command to scale the pod to one.
      
      kubectl scale deploy pod_deployment_name --replicas=1