Root access

Report a typo

You have a database pod with a MySQL image. But to get access to the container, you need to set a password.

Set the password value of the environment variable MYSQL_ROOT_PASSWORD as "root".

apiVersion: v1 
kind: Pod 
metadata: 
   name: database-pod 
spec: 
  containers: 
    - name: database-container 
      image: mysql:latest 
      env: 
       - name: MYSQL_ROOT_PASSWORD

Copy the manifest and complete it by adding a single line with the key and the value separated by a :.

Enter a short text
___

Create a free account to access the full topic