Last active
October 20, 2017 17:47
-
-
Save seanhagen/d7abd5583ebf0db38e67b03fe3058cff to your computer and use it in GitHub Desktop.
K8S Config
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: users | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 80 | |
protocol: TCP | |
name: http | |
selector: | |
app: users-pods | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: users | |
spec: | |
replicas: 2 | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 1 | |
template: | |
metadata: | |
labels: | |
name: users-pods | |
spec: | |
containers: | |
- image: gcr.io/biba-services/users | |
name: users-container | |
imagePullPolicy: Always | |
env: | |
- name: PORT | |
value: "80" | |
ports: | |
- name: http | |
containerPort: 80 | |
selector: | |
matchLabels: | |
name: users-pods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment