Example Apps to Demonstrate Argo CD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

350 lines
9.1 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
serving.knative.dev/release: "v0.8.0"
name: activator
namespace: knative-serving
spec:
selector:
matchLabels:
app: activator
role: activator
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
sidecar.istio.io/inject: "true"
labels:
app: activator
role: activator
serving.knative.dev/release: "v0.8.0"
spec:
containers:
- args:
- -logtostderr=false
- -stderrthreshold=FATAL
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: knative.dev/serving
image: gcr.io/knative-releases/knative.dev/serving/cmd/activator@sha256:88d864eb3c47881cf7ac058479d1c735cc3cf4f07a11aad0621cd36dcd9ae3c6
livenessProbe:
httpGet:
httpHeaders:
- name: k-kubelet-probe
value: activator
path: /healthz
port: 8012
name: activator
ports:
- containerPort: 8012
name: http1-port
- containerPort: 8013
name: h2c-port
- containerPort: 9090
name: metrics-port
readinessProbe:
httpGet:
httpHeaders:
- name: k-kubelet-probe
value: activator
path: /healthz
port: 8012
resources:
limits:
cpu: 1000m
memory: 600Mi
requests:
cpu: 300m
memory: 60Mi
securityContext:
allowPrivilegeEscalation: false
serviceAccountName: controller
terminationGracePeriodSeconds: 300
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
autoscaling.knative.dev/autoscaler-provider: hpa
serving.knative.dev/release: "v0.8.0"
name: autoscaler-hpa
namespace: knative-serving
spec:
replicas: 1
selector:
matchLabels:
app: autoscaler-hpa
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
app: autoscaler-hpa
serving.knative.dev/release: "v0.8.0"
spec:
containers:
- env:
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: knative.dev/serving
image: gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler-hpa@sha256:a7801c3cf4edecfa51b7bd2068f97941f6714f7922cb4806245377c2b336b723
name: autoscaler-hpa
ports:
- containerPort: 9090
name: metrics
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 100m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: false
serviceAccountName: controller
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
serving.knative.dev/release: "v0.8.0"
name: autoscaler
namespace: knative-serving
spec:
replicas: 1
selector:
matchLabels:
app: autoscaler
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
sidecar.istio.io/inject: "true"
traffic.sidecar.istio.io/includeInboundPorts: 8080,9090
labels:
app: autoscaler
serving.knative.dev/release: "v0.8.0"
spec:
containers:
- args:
- --secure-port=8443
- --cert-dir=/tmp
env:
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: knative.dev/serving
image: gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler@sha256:aeaacec4feedee309293ac21da13e71a05a2ad84b1d5fcc01ffecfa6cfbb2870
livenessProbe:
httpGet:
httpHeaders:
- name: k-kubelet-probe
value: autoscaler
path: /healthz
port: 8080
name: autoscaler
ports:
- containerPort: 8080
name: websocket
- containerPort: 9090
name: metrics
- containerPort: 8443
name: custom-metrics
readinessProbe:
httpGet:
httpHeaders:
- name: k-kubelet-probe
value: autoscaler
path: /healthz
port: 8080
resources:
limits:
cpu: 300m
memory: 400Mi
requests:
cpu: 30m
memory: 40Mi
securityContext:
allowPrivilegeEscalation: false
serviceAccountName: controller
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
networking.knative.dev/ingress-provider: istio
serving.knative.dev/release: "v0.8.0"
name: networking-istio
namespace: knative-serving
spec:
replicas: 1
selector:
matchLabels:
app: networking-istio
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
app: networking-istio
spec:
containers:
- env:
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: knative.dev/serving
image: gcr.io/knative-releases/knative.dev/serving/cmd/networking/istio@sha256:057c999bccfe32e9889616b571dc8d389c742ff66f0b5516bad651f05459b7bc
name: networking-istio
ports:
- containerPort: 9090
name: metrics
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 100m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: false
serviceAccountName: controller
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
serving.knative.dev/release: "v0.8.0"
name: webhook
namespace: knative-serving
spec:
replicas: 1
selector:
matchLabels:
app: webhook
role: webhook
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
sidecar.istio.io/inject: "false"
labels:
app: webhook
role: webhook
serving.knative.dev/release: "v0.8.0"
spec:
containers:
- env:
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: knative.dev/serving
image: gcr.io/knative-releases/knative.dev/serving/cmd/webhook@sha256:c2076674618933df53e90cf9ddd17f5ddbad513b8c95e955e45e37be7ca9e0e8
name: webhook
ports:
- containerPort: 9090
name: metrics-port
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 20m
memory: 20Mi
securityContext:
allowPrivilegeEscalation: false
serviceAccountName: controller
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
serving.knative.dev/release: "v0.8.0"
name: controller
namespace: knative-serving
spec:
replicas: 1
selector:
matchLabels:
app: controller
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
labels:
app: controller
serving.knative.dev/release: "v0.8.0"
spec:
containers:
- env:
- name: SYSTEM_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_LOGGING_NAME
value: config-logging
- name: CONFIG_OBSERVABILITY_NAME
value: config-observability
- name: METRICS_DOMAIN
value: knative.dev/serving
image: gcr.io/knative-releases/knative.dev/serving/cmd/controller@sha256:3b096e55fa907cff53d37dadc5d20c29cea9bb18ed9e921a588fee17beb937df
name: controller
ports:
- containerPort: 9090
name: metrics
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 100m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: false
serviceAccountName: controller
---