Manage projects

Mission Control organizes clusters by projects. A project is a logical grouping of clusters. For example, you might have a project for each environment (dev, test, prod), or for each team (team1, team2, team3).

Administrators with the correct permissions can easily control the lifecycle of nodes, datacenters, and underlying hardware.

Perform database operations using the Mission Control User Interface (UI)

Mission Control provides a UI through the IP address of any node using port 30880 on the Control-Plane cluster. For example, issue https://10.0.0.3:30880 from a web browser, where 10.0.0.3 is the qualifying node’s IP address.

Create a new project

The first item in the sidebar gives you access to the list of projects.

To create a new project, do the following:

  1. In the Mission Control UI, click Projects →, and then click New Project.

    Project list
  2. Enter a name for the project in the New project dialog, and then click Create Project.

    Mission Control generates a unique identifier called the Project Slug, and creates a new project.

  3. Access the project by selecting its name in the Projects → list.

Perform database operations using a Command Line Interface (CLI)

The Kubernetes kubectl command-line tool, v1.22 or later, enables you to run commands programmatically against Kubernetes (K8s) clusters through the K8s API server.

Create a new project

Projects are special namespaces that have two additional fields:

  • A mission-control.datastax.com/is-project label set to true

  • A mission-control.datastax.com/project-name annotation set to the project name

The project slug is used as the name for the namespace and generated by Mission Control when a project is created. Here is an example of a project definition:

apiVersion: v1
kind: Namespace
metadata:
  name: PROJECT_NAME
  labels:
    mission-control.datastax.com/is-project: "true"
  annotations:
    mission-control.datastax.com/project-name: "PROJECT_NAME"

Replace PROJECT_NAME with the name of the project you want to create.

After saving this manifest to a file, for example, PROJECT_NAME.yaml, you can create the project with the following command:

kubectl apply -f PROJECT_NAME.yaml

Replace PROJECT_NAME with the name of the project you want to create.

Delete a project

Deleting a project is as simple as deleting the namespace:

kubectl delete namespace PROJECT_NAME

Replace PROJECT_NAME with the name of the project you want to delete.

Modify a project name

The project name is stored in the mission-control.datastax.com/project-name annotation. You can modify it with the following command:

kubectl annotate namespace PROJECT_NAME mission-control.datastax.com/project-name=NEW_PROJECT_NAME  --overwrite

Replace the following:

  • PROJECT_NAME with the name of the project you want to modify.

  • NEW_PROJECT_NAME with the new name for the project.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com