Gitlab - Argos ALM by PALO IT

Commit 631b5a65 authored by Palo IT's avatar Palo IT

initial commit

parents
kind: Deployment
apiVersion: apps/v1
metadata:
name: service-name
namespace: service-name
labels:
app: service-name
tags.datadoghq.com/service: "service-name"
spec:
replicas: 1
revisionHistoryLimit: 1
selector:
matchLabels:
app: service-name
template:
metadata:
annotations:
linkerd.io/inject: enabled
config.linkerd.io/proxy-cpu-request: "0.2"
config.linkerd.io/proxy-memory-request: 128Mi
labels:
app: service-name
tags.datadoghq.com/env: "dev"
tags.datadoghq.com/service: "service-name"
tags.datadoghq.com/version: "0.0.1"
spec:
volumes:
- hostPath:
path: /var/run/datadog/
name: apmsocketpath
containers:
- name: service-name
image: thisisafakeimagename:latest
volumeMounts:
- name: apmsocketpath
mountPath: /var/run/datadog
env:
- name: DD_ENV
valueFrom:
fieldRef:
fieldPath: metadata.labels['tags.datadoghq.com/env']
- name: DD_SERVICE
valueFrom:
fieldRef:
fieldPath: metadata.labels['tags.datadoghq.com/service']
- name: DD_VERSION
valueFrom:
fieldRef:
fieldPath: metadata.labels['tags.datadoghq.com/version']
- name: DD_LOGS_INJECTION
value: "true"
ports:
- containerPort: 9010
name: grpc
- containerPort: 9011
name: management
- containerPort: 9011
name: http-server
resources:
requests:
memory: "400Mi"
cpu: "300m"
limits:
memory: "600Mi"
cpu: "700m"
\ No newline at end of file
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: demo-service
namespace: demo-service
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: demo-service
minReplicas: 1
maxReplicas: 4
metrics:
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70
\ No newline at end of file
apiVersion: v1
kind: Namespace
metadata:
name: service-name
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: service-name
namespace: service-name
spec:
selector:
app: service-name
ports:
- protocol: TCP
port: 9010
targetPort: 9010
name: grpc
- protocol: TCP
port: 9011
targetPort: 9011
name: management
- protocol: TCP
port: 8080
targetPort: 8080
name: http-server
\ No newline at end of file
resources:
- Namespace.yml
- Service.yml
- Deployment.yml
- HorizontalPodAutoScaler.yml
\ No newline at end of file
kind: Deployment
apiVersion: apps/v1
metadata:
name: demo-service
namespace: demo-service
labels:
tags.datadoghq.com/env: "dev"
tags.datadoghq.com/version: "0.0.1-SNAPSHOT"
spec:
template:
metadata:
labels:
tags.datadoghq.com/env: "dev"
tags.datadoghq.com/version: "0.0.1-SNAPSHOT"
spec:
containers:
- env:
- name: ENVIRONMENT_VARIABLE_1
value: "value"
name: demo-service
image: thisisafakeimagename:latest
resources:
requests:
memory: "400Mi"
cpu: "300m"
limits:
memory: "600Mi"
cpu: "700m"
\ No newline at end of file
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: demo-service
namespace: demo-service
spec:
minReplicas: 1
maxReplicas: 2
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
patchesStrategicMerge:
- Deployment.yml
- HorizontalPodAutoScaler.yml
kind: Deployment
apiVersion: apps/v1
metadata:
name: service-name
namespace: service-name
labels:
tags.datadoghq.com/env: "prod"
tags.datadoghq.com/version: "0.0.1-SNAPSHOT"
spec:
template:
metadata:
labels:
tags.datadoghq.com/env: "prod"
tags.datadoghq.com/version: "0.0.1-SNAPSHOT"
spec:
containers:
- env:
- name: ENVIRONMENT_VARIABLE_1
value: "value"
name: service-name
image: thisisafakeimagename:latest
resources:
requests:
memory: "800Mi"
cpu: "800m"
limits:
memory: "1000Mi"
cpu: "1000m"
\ No newline at end of file
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: service-name
namespace: service-name
spec:
minReplicas: 1
maxReplicas: 4
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
patchesStrategicMerge:
- Deployment.yml
- HorizontalPodAutoScaler.yml
kind: Deployment
apiVersion: apps/v1
metadata:
name: service-name
namespace: service-name
labels:
tags.datadoghq.com/env: "qa"
tags.datadoghq.com/version: "0.0.1-SNAPSHOT"
spec:
template:
metadata:
labels:
tags.datadoghq.com/env: "qa"
tags.datadoghq.com/version: "0.0.1-SNAPSHOT"
spec:
containers:
- env:
- name: ENVIRONMENT_VARIABLE_1
value: "value"
name: service-name
image: thisisafakeimagename:latest
resources:
requests:
memory: "700Mi"
cpu: "700m"
limits:
memory: "800Mi"
cpu: "800m"
\ No newline at end of file
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: service-name
namespace: service-name
spec:
minReplicas: 1
maxReplicas: 3
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
patchesStrategicMerge:
- Deployment.yml
- HorizontalPodAutoScaler.yml
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment