Skip to content

Instantly share code, notes, and snippets.

@alpert
Created March 16, 2018 17:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpert/9c937ef8806280e964249050648829e2 to your computer and use it in GitHub Desktop.
Save alpert/9c937ef8806280e964249050648829e2 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: ignite
spec:
ports:
- port: 8080
selector:
app: ignite
type: NodePort
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: ignite
spec:
selector:
matchLabels:
app: ignite
replicas: 4 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
# unlike pod-nginx.yaml, the name is not included in the meta data as a unique name is
# generated from the deployment name
labels:
app: ignite
spec:
containers:
- name: ignite
image: alpert/ignite
ports:
- containerPort: 8080
env:
- name: CONFIG_URI
value: https://raw.githubusercontent.com/apache/ignite/master/examples/config/example-cache.xml
- name: OPTION_LIBS
value: ignite-rest-http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment