Administer 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).

Through 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.

Creating a new project

The first item in the sidebar gives you access to the list of projects. Click on Projects → to display the list of existing projects. In that list click on + New Project to create a new project:

Project list

The following dialog opens:

New project dialog

Enter a name for the project and click on the Create Project button. The Project Slug is a unique identifier that is generated by Mission Control. The new project is created and you can click on its name in the Projects → list to access it.

Through 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.

Creating 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-slug>
  labels:
    mission-control.datastax.com/is-project: "true"
  annotations:
    mission-control.datastax.com/project-name: "<`MY_PROJECT`>"

After saving this manifest to a file (example, <`MY_PROJECT>.yaml`), you can create the project with the following command:

kubectl apply -f <`MY_PROJECT`>yaml

Deleting a project

Deleting a project is as simple as deleting the namespace:

kubectl delete namespace <`MY_PROJECT`>

Modifying 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 <`MY_PROJECT`> mission-control.datastax.com/project-name=<`NEW_PROJECT_NAME`>  --overwrite

Parameter

Description

MY-PROJECT

The namespace of the chosen project

NEW_PROJECT_NAME

The new project name

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