50 lines
891 B
YAML
50 lines
891 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: openbao
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: openbao
|
|
namespace: openbao
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: openbao
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: openbao
|
|
spec:
|
|
containers:
|
|
- name: openbao
|
|
image: openbao/openbao:latest # Replace with the actual image
|
|
ports:
|
|
- protocol: HTTP
|
|
containerPort: 8200
|
|
# hostPort: 8200
|
|
# hostPort: 8200
|
|
# type: LoadBalancer
|
|
# env:
|
|
# - name: BAO_ADDR
|
|
# value: "http://0.0.0.0:8200"
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: openbao
|
|
namespace: openbao
|
|
spec:
|
|
selector:
|
|
app: openbao
|
|
ports:
|
|
- protocol: TCP
|
|
port: 8200
|
|
targetPort: 8200
|
|
nodePort: 30000
|
|
type: NodePort
|