Created
March 16, 2018 17:16
-
-
Save alpert/9c937ef8806280e964249050648829e2 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
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