GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — APIWorld-Product/k8s-deployment.yml at master · dpazarcioglu/APIWorld-Product

Expand file tree

/

k8s-deployment.yml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
67 lines (66 loc) · 1.74 KB
/

k8s-deployment.yml

Copy path

File metadata and controls

67 lines (66 loc) · 1.74 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# Input file to create a Kubernetes deployment with a Microgateway
# Docker image including health checks
#
# Added pull always policy
#
# Prerequisites:
# 1. Create Microgateway Docker Image
# 2. Push Microgateway Docker image to Docker registry
# 3. Create Native Service Docker Image
# 4. Push Native Service Docker image to Docker registry
#
# Execute to create a Kubernetes deployment:
#
# kubectl create -f yml.yml
#
apiVersion: apps/v1
kind: Deployment
metadata:
name: product-service-deployment
labels:
app: product-service
spec:
minReadySeconds: 30
replicas: 1
selector:
matchLabels:
app: product-service
template:
metadata:
labels:
app: product-service
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: product-service-sidecar
imagePullPolicy: Always
image: apiworldref:5000/productmg:latest
ports:
- containerPort: 9090 # must match the exposed port of the microgateway docker image
livenessProbe:
exec:
command:
- /bin/sh
- -c
- /opt/softwareag/Microgateway/files/k8s-lifenesscheck.sh
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
exec:
command:
- /bin/sh
- -c
- /opt/softwareag/Microgateway/files/k8s-readinesscheck.sh
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
- name: product-service
imagePullPolicy: Always
image: apiworldref:5000/productservice:latest
ports:
- containerPort: 8090
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.