vault
This commit is contained in:
@@ -21,11 +21,11 @@ spec:
|
|||||||
- image: siddharth67/sealed-secrets:v1
|
- image: siddharth67/sealed-secrets:v1
|
||||||
name: secret-app
|
name: secret-app
|
||||||
# uncomment block to mount secret
|
# uncomment block to mount secret
|
||||||
# volumeMounts:
|
volumeMounts:
|
||||||
# - name: app-secret-vol
|
- name: app-secret-vol
|
||||||
# mountPath: "/app/crds"
|
mountPath: "/app/crds"
|
||||||
# readOnly: true
|
readOnly: true
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: app-secret-vol
|
- name: app-secret-vol
|
||||||
# secret:
|
secret:
|
||||||
# secretName: app-crds
|
secretName: app-crds
|
||||||
|
|||||||
31
vault-secrets/deployment.yaml
Normal file
31
vault-secrets/deployment.yaml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
app: secret-app
|
||||||
|
name: secret-app
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: secret-app
|
||||||
|
strategy: {}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
app: secret-app
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: siddharth67/sealed-secrets:v1
|
||||||
|
name: secret-app
|
||||||
|
# uncomment block to mount secret
|
||||||
|
# volumeMounts:
|
||||||
|
# - name: app-secret-vol
|
||||||
|
# mountPath: "/app/crds"
|
||||||
|
# readOnly: true
|
||||||
|
# volumes:
|
||||||
|
# - name: app-secret-vol
|
||||||
|
# secret:
|
||||||
|
# secretName: app-crds
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
kind: Secret
|
kind: Secret
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: example-secret
|
name: app-crds
|
||||||
annotations:
|
annotations:
|
||||||
avp.kubernetes.io/path: "app/data/crds"
|
avp.kubernetes.io/path: "app/data/crds"
|
||||||
type: Opaque
|
type: Opaque
|
||||||
|
|||||||
15
vault-secrets/service.yaml
Normal file
15
vault-secrets/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
app: secret-app
|
||||||
|
name: secret-app
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app: secret-app
|
||||||
|
type: NodePort
|
||||||
Reference in New Issue
Block a user