Skip to content

Commit

Permalink
Add config and volume mappings
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Schmitz von Hülst <[email protected]>
  • Loading branch information
moritzschmitz-oviva committed Feb 14, 2024
1 parent e3f4c7c commit f9546c9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/tests/java-spiffe-helper.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: java-spiffe-helper
data:
java-spiffe-helper.properties: |
keyStorePath=keystore.p12
keyStorePass=password
keyPass=password
trustStorePath=truststore.p12
trustStorePass=password
keyStoreType=pkcs12
keyAlias=spiffe
spiffeSocketPath=unix:/run/spire/agent-sockets/spire-agent.sock
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -19,4 +35,19 @@ spec:
- name: java-spiffe-helper
image: java-spiffe-helper:test
imagePullPolicy: Always
volumeMounts:
- name: properties
mountPath: /app/java-spiffe-helper.properties
subPath: java-spiffe-helper.properties
- name: spire-sockets
mountPath: /run/spire/agent-sockets
readOnly: true
restartPolicy: Always
volumes:
- name: properties
configMap:
name: java-spiffe-helper
- name: spire-sockets
hostPath:
path: /run/spire/agent-sockets
type: DirectoryOrCreate

0 comments on commit f9546c9

Please sign in to comment.