Skip to content

Instantly share code, notes, and snippets.

@tass-lin
Created December 16, 2019 01:44
Show Gist options
  • Select an option

  • Save tass-lin/f382d263ded1fb20e7345c7c761d0e8d to your computer and use it in GitHub Desktop.

Select an option

Save tass-lin/f382d263ded1fb20e7345c7c761d0e8d to your computer and use it in GitHub Desktop.
vault docker image
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