-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fec83f
commit 401930d
Showing
1 changed file
with
37 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
replicaCount: 3 | ||
#replicaCount: 3 | ||
|
||
#image: | ||
# repository: nginx # Replace with your microservice image name | ||
#pullPolicy: IfNotPresent | ||
#tags: | ||
# - "latest" | ||
#- "stable" | ||
#- "alpine" # Replace with your microservice image tag | ||
#env: | ||
# microservice: | ||
# selectorLabels: "micro" | ||
# fullname: "k8s" | ||
|
||
#service: | ||
#type: ClusterIP | ||
#port: 80 | ||
|
||
app: | ||
name: my-microservice | ||
|
||
deployment: | ||
replicas: 2 # Example number of replicas for your deployment | ||
|
||
image: | ||
repository: nginx # Replace with your microservice image name | ||
pullPolicy: IfNotPresent | ||
tags: | ||
- "latest" | ||
- "stable" | ||
- "alpine" # Replace with your microservice image tag | ||
env: | ||
microservice: | ||
selectorLabels: "micro" | ||
fullname: "k8s" | ||
repository: nginx # Replace with your Docker image repository URL/name | ||
tag: latest # Replace with your Docker image tag | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
port: 80 # Example service port | ||
targetPort: 8080 # Example target port | ||
|
||
configMap: | ||
name: my-microservice-config | ||
key: configKey | ||
|
||
secret: | ||
name: my-microservice-secret | ||
key: secretKey | ||
value: my-secret-value | ||
|