Last active
December 10, 2019 13:17
-
-
Save sanjid133/49f1e0ebc912af8c76b1f1324e1b406e to your computer and use it in GitHub Desktop.
How to Install Hashicorp Vault in Kubernetes
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: vault | |
spec: | |
ports: | |
- name: http | |
nodePort: 30001 | |
port: 8200 | |
selector: | |
app: vault | |
type: NodePort | |
--- | |
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: vault | |
labels: | |
app: vault | |
spec: | |
serviceName: "vault" | |
selector: | |
matchLabels: | |
app: vault | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: vault | |
spec: | |
containers: | |
- name: vault | |
image: "vault:0.10.4" | |
args: | |
- "server" | |
- "-dev" | |
- "-dev-root-token-id=root" | |
ports: | |
- name: http | |
containerPort: 8200 | |
protocol: "TCP" | |
- name: server | |
containerPort: 8201 | |
protocol: "TCP" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment