<@ULVA73B9P> How set login password for admin in c...
# ask-marvin
r
@Marvin How set login password for admin in community version prefect server in kubernets
m
Unfortunately, it seems there is no precise documentation or GitHub issue addressing the direct setting of an admin password in the community version of the Prefect server on Kubernetes. However, you can use the following steps to get started: 1. Deploy Prefect Server: Deploy Prefect server on Kubernetes platform using the provided Helm chart or YAML files.
Copy code
sh
helm repo add prefecthq <https://prefecthq.github.io/helm>
helm install my-prefect-server prefecthq/prefect-server
2. Configure RBAC and Auth System: Prefect uses the FastAPI framework which integrates well with OAuth2 for password-based authentication. Therefore, configure your Prefect server for OAuth2 authentication and role-based access control (RBAC). 3. Set up OAuth2 Configuration: Add OAuth2 configuration inside the Prefect configuration. Create
oauth2_config.yaml
.
Copy code
yaml
# oauth2_config.yaml
oauth2:
  client_id: "your-client-id"
  client_secret: "your-client-secret"
  token_url: "url-to-get-token"
  auth_url: "url-to-authenticate"
4. Seal the Password: Make use of Kubernetes secrets to store sensitive credentials.
Copy code
sh
kubectl create secret generic prefect-oauth2-secret --from-file=oauth2_config.yaml
5. Deploy Secrets and Configuration: Adjust your Prefect server deployment to mount the secrets and adjust configuration. Here is an additional resource you might find useful: Prefect Kubernetes Guide For more detailed instructions and to check for the latest authentication and RBAC options, always refer to the Prefect documentation. If you have more specific requirements or run into issues, feel free to ask!