Created
June 22, 2020 08:21
-
-
Save vamsijakkula/8e8398aa5e8723ad1d5092e27ee96e4f to your computer and use it in GitHub Desktop.
This file contains hidden or 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: hello-python-service | |
spec: | |
selector: | |
app: hello-python | |
ports: | |
- protocol: "TCP" | |
port: 6000 | |
targetPort: 5000 | |
type: LoadBalancer | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-python | |
spec: | |
selector: | |
matchLabels: | |
app: hello-python | |
replicas: 4 | |
template: | |
metadata: | |
labels: | |
app: hello-python | |
spec: | |
containers: | |
- name: hello-python | |
image: vamsijakkula/hello-python | |
livenessProbe: | |
httpGet: | |
path: /healthz | |
port: 5000 | |
initialDelaySeconds: 5 | |
timeoutSeconds: 2 | |
periodSeconds: 10 | |
failureThreshold: 3 | |
ports: | |
- containerPort: 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment