Created
September 6, 2017 22:45
-
-
Save devinburnette/0a65036804fb7e594450cce8d5466ade to your computer and use it in GitHub Desktop.
Kubernetes Pod Spec Example
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: resque-web | |
spec: | |
type: NodePort | |
selector: | |
component: resque-web | |
stack: local | |
ports: | |
- protocol: TCP | |
port: 5678 | |
nodePort: 5678 | |
name: http | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: resque-web-local | |
spec: | |
replicas: 1 | |
revisionHistoryLimit: 1 | |
strategy: | |
rollingUpdate: | |
maxUnavailable: "0%" | |
maxSurge: 1 | |
selector: | |
matchLabels: | |
component: resque-web | |
stack: local | |
template: | |
metadata: | |
name: resque-web | |
labels: | |
component: resque-web | |
stack: local | |
logs: "true" | |
deployTime: {{DEPLOY_TIME}} | |
spec: | |
containers: | |
- name: resque-web | |
image: ennexa/resque-web:latest | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 5678 | |
args: | |
- -r | |
- redis://redis:6379 | |
imagePullSecrets: | |
- name: awssecret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment