Created
December 16, 2019 01:44
-
-
Save tass-lin/f382d263ded1fb20e7345c7c761d0e8d to your computer and use it in GitHub Desktop.
vault docker image
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
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: vault | |
| namespace: default | |
| spec: | |
| type: NodePort #LoadBalancer NodePort | |
| selector: | |
| name: vault | |
| ports: | |
| - port: 80 | |
| targetPort: 1234 | |
| protocol: TCP | |
| name: http | |
| --- | |
| kind: Deployment | |
| apiVersion: apps/v1 | |
| metadata: | |
| name: vault | |
| namespace: default | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: vault | |
| replicas: 1 | |
| template: | |
| metadata: | |
| labels: | |
| name: vault | |
| spec: | |
| containers: | |
| - name: vault | |
| image: docker.io/library/vault | |
| imagePullPolicy: Always | |
| ports: | |
| - containerPort: 1234 | |
| env: | |
| - name: VAULT_DEV_ROOT_TOKEN_ID | |
| value: "myroot" | |
| - name: VAULT_DEV_LISTEN_ADDRESS | |
| value: "0.0.0.0:1234" | |
| securityContext: | |
| capabilities: | |
| add: ["IPC_LOCK"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment