Create secret manually

This commit is contained in:
Joey Hafner 2023-03-31 06:50:29 -07:00
parent d8f3952173
commit 097ab113e9
2 changed files with 16 additions and 8 deletions

View File

@ -1,9 +1,9 @@
secretGenerator:
- name: mysql-pass
literals:
- password=E2UVUasvVoiJEUxuBUiyM8B3iS3dmy5hZEwYBBuC
#secretGenerator:
#- name: mysql-pass
# literals:
# - password=E2UVUasvVoiJEUxuBUiyM8B3iS3dmy5hZEwYBBuC
resources:
- Deployment.yaml
- Service.yaml
- PersistentVolumeClaim.yaml
#resources:
# - Deployment.yaml
# - Service.yaml
# - PersistentVolumeClaim.yaml

View File

@ -0,0 +1,8 @@
---
apiVersion: v1
kind: Secret
metadata:
name: mysql-pass
type: Opaque
data:
password: E2UVUasvVoiJEUxuBUiyM8B3iS3dmy5hZEwYBBuC