aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/kubernetes/templates/keystone.yaml
blob: b3ef4124df6973242d3d4c408e4e20661453b8cf (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:mitaka
        env:
        - name: KEYSTONE_HOSTNAME
          value: "varuna"
        - 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