Add deployment and secret

This commit is contained in:
Pavle Portic 2023-02-23 15:40:54 +01:00
parent dd675f36c9
commit d315372dea
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
3 changed files with 39 additions and 0 deletions

25
deployment.yaml Normal file
View File

@ -0,0 +1,25 @@
kind: Deployment
metadata:
labels:
app: test
name: test
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- envFrom:
- secretRef:
name: example
image: alpine
imagePullPolicy: Always
command:
- sleep
- 10000

5
kustomization.yaml Normal file
View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- secret.yaml
- deployment.yaml

9
secret.yaml Normal file
View File

@ -0,0 +1,9 @@
---
apiVersion: v1
kind: Secret
metadata:
name: example
namespace: default
type: Opaque
stringData:
TESTVAR: testval