Created
January 20, 2021 19:25
-
-
Save likamrat/066b53d5065f3f4a12842a8d7eb22711 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: user-java-deployment | |
namespace: api | |
labels: | |
deploy: user-java | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: user-java | |
template: | |
metadata: | |
labels: | |
app: user-java | |
spec: | |
containers: | |
- image: "{{registry}}.azurecr.io/user-java:1.0" | |
imagePullPolicy: Always | |
name: user-java | |
livenessProbe: | |
httpGet: | |
path: /api/user-java/healthcheck | |
port: 80 | |
httpHeaders: | |
- name: Accept | |
value: application/json | |
initialDelaySeconds: 10 | |
periodSeconds: 30 | |
readinessProbe: | |
httpGet: | |
path: /api/user-java/healthcheck | |
port: 80 | |
httpHeaders: | |
- name: Accept | |
value: application/json | |
initialDelaySeconds: 5 | |
periodSeconds: 5 | |
ports: | |
- containerPort: 80 | |
name: http | |
protocol: TCP | |
- containerPort: 443 | |
name: https | |
protocol: TCP | |
envFrom: | |
- secretRef: | |
name: sql | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: user-java | |
namespace: api | |
spec: | |
type: ClusterIP | |
selector: | |
app: user-java | |
ports: | |
- protocol: TCP | |
name: user-java-http | |
port: 80 | |
targetPort: 80 | |
- protocol: TCP | |
name: user-java-https | |
port: 443 | |
targetPort: 443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment