Created
March 19, 2020 15:50
-
-
Save zaharidichev/4bab2c2ca81e35192a110502e74c0f24 to your computer and use it in GitHub Desktop.
memtest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: mysql | |
namespace: memtest | |
spec: | |
ports: | |
- port: 3306 | |
selector: | |
app: mysql | |
clusterIP: None | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: mysql | |
namespace: memtest | |
spec: | |
selector: | |
matchLabels: | |
app: mysql | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: mysql | |
spec: | |
containers: | |
- image: mysql:5.6 | |
name: mysql | |
env: | |
# Use secret in real usage | |
- name: MYSQL_ROOT_PASSWORD | |
value: password | |
ports: | |
- containerPort: 3306 | |
name: mysql | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: mysql-client | |
namespace: memtest | |
spec: | |
selector: | |
matchLabels: | |
app: mysql-client | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: mysql-client | |
spec: | |
containers: | |
- image: mysql:5.6 | |
name: mysql-client | |
env: | |
# Use secret in real usage | |
- name: MYSQL_ROOT_PASSWORD | |
value: password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment