blob: 9d188758107c6a5ebd3a2fd875cb20d372d63a67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: moon
name: keystone
spec:
replicas: 1
template:
metadata:
labels:
app: keystone
spec:
hostname: keystone
containers:
- name: keystone
image: asteroide/keystone:pike
env:
- name: KEYSTONE_HOSTNAME
value: "127.0.0.1"
- name: KEYSTONE_PORT
value: "30006"
ports:
- containerPort: 35357
containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: keystone
namespace: moon
spec:
ports:
- port: 5000
targetPort: 5000
nodePort: 30006
selector:
app: keystone
type: NodePort
|