Last active
January 29, 2017 13:23
-
-
Save nagas/5dde1ffadea7fef1e1a2026fc66ec16d to your computer and use it in GitHub Desktop.
This file contains 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
--- | |
################################################################################################## | |
# Redis datastore backend for Amalgam8 Controller | |
################################################################################################## | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: redis | |
labels: | |
name: redis | |
spec: | |
ports: | |
- port: 6379 | |
targetPort: 6379 | |
nodePort: 31400 | |
protocol: TCP | |
selector: | |
name: redis | |
type: NodePort | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: redis | |
labels: | |
name: redis | |
spec: | |
replicas: 1 | |
selector: | |
name: redis | |
template: | |
metadata: | |
labels: | |
name: redis | |
spec: | |
containers: | |
- name: redis | |
image: redis:alpine | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 6379 | |
--- | |
################################################################################################## | |
# Amalgam8 Controller Service | |
################################################################################################## | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: controller | |
labels: | |
name: controller | |
spec: | |
ports: | |
- port: 6080 | |
targetPort: 8080 | |
nodePort: 31200 | |
protocol: TCP | |
selector: | |
name: controller | |
type: NodePort | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: controller | |
labels: | |
name: controller | |
spec: | |
replicas: 1 | |
selector: | |
name: controller | |
template: | |
metadata: | |
labels: | |
name: controller | |
spec: | |
containers: | |
- name: controller | |
image: amalgam8/a8-controller | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: A8_LOG_LEVEL | |
value: info | |
- name: A8_DATABASE_TYPE | |
value: redis | |
- name: A8_DATABASE_HOST | |
value: redis://$(REDIS_SERVICE_HOST):$(REDIS_SERVICE_PORT) | |
ports: | |
- containerPort: 8080 | |
--- | |
################################################################################################## | |
# Amalgam8 Registry Service | |
################################################################################################## | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: registry | |
labels: | |
name: registry | |
spec: | |
ports: | |
- port: 5080 | |
targetPort: 8080 | |
nodePort: 31300 | |
protocol: TCP | |
selector: | |
name: registry | |
type: NodePort | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: registry | |
labels: | |
name: registry | |
spec: | |
replicas: 1 | |
selector: | |
name: registry | |
template: | |
metadata: | |
labels: | |
name: registry | |
spec: | |
containers: | |
- name: registry | |
image: amalgam8/a8-registry | |
imagePullPolicy: IfNotPresent | |
env: | |
- name: A8_STORE | |
value: redis | |
- name: A8_STORE_ADDRESS | |
value: $(REDIS_SERVICE_HOST):$(REDIS_SERVICE_PORT) | |
- name: A8_K8S_URL | |
value: https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT | |
- name: A8_K8S_TOKEN | |
value: $(cat /var/run/secrets/kubernetes.io/serviceaccount/token) | |
ports: | |
- containerPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment