19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11 ■ Using ConfigMaps

name: MYSQL_ALLOW_EMPTY_PASSWORD

valueFrom:

configMapKeyRef:

key: mysql.allow.empty.password

name: mysql-config

image: mysql

name: mysql

ports:

-

containerPort: 3306

The mysql.yaml is shown in the vi editor in Figure 11-8.

Figure 11-8. Using ConfigMap key reference in an RC definition file

263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!