The 'set' command is used to change specific aspects of existing resources in a Kubernetes environment. This could include changing environment variables, image versions, or resource limits for a deployment.