# HorizontalPodAutoscaler v2 — CPU + Memory metrics apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: php-apache-hpa namespace: default spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: php-apache minReplicas: 1 maxReplicas: 10 metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 50 - type: Resource resource: name: memory target: type: AverageValue averageValue: 200Mi behavior: scaleDown: stabilizationWindowSeconds: 300 policies: - type: Percent value: 100 periodSeconds: 15 scaleUp: stabilizationWindowSeconds: 0 policies: - type: Percent value: 100 periodSeconds: 15 - type: Pods value: 4 periodSeconds: 15 selectPolicy: Max <|endoftext|> # StatefulSet — Kafka cluster com PVC e headless service apiVersion: apps/v1 kind: StatefulSet metadata: name: kafka namespace: kafka spec: serviceName: kafka-headless replicas: 3 selector: matchLabels: app: kafka template: metadata: labels: app: kafka spec: terminationGracePeriodSeconds: 30 containers: - name: kafka image: confluentinc/cp-kafka:7.4.0 ports: - containerPort: 9092 name: kafka - containerPort: 9093 name: controller env: - name: KAFKA_BROKER_ID valueFrom: fieldRef: fieldPath: metadata.name - name: KAFKA_ZOOKEEPER_CONNECT value: "zookeeper:2181" resources: requests: memory: "512Mi" cpu: "250m" limits: memory: "1Gi" cpu: "500m" volumeMounts: - name: kafka-data mountPath: /var/lib/kafka/data volumeClaimTemplates: - metadata: name: kafka-data spec: accessModes: ["ReadWriteOnce"] storageClassName: standard resources: requests: storage: 10Gi <|endoftext|> # StatefulSet — PostgreSQL com PVC apiVersion: apps/v1 kind: StatefulSet metadata: name: postgres namespace: database spec: serviceName: postgres replicas: 1 selector: matchLabels: app: postgres template: metadata: labels: app: postgres spec: containers: - name: postgres image: postgres:15 ports: - containerPort: 5432 name: postgres env: - name: POSTGRES_DB value: mydb - name: POSTGRES_USER value: admin - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: name: postgres-secret key: password resources: requests: memory: "256Mi" cpu: "250m" limits: memory: "512Mi" cpu: "500m" volumeMounts: - name: postgres-data mountPath: /var/lib/postgresql/data volumeClaimTemplates: - metadata: name: postgres-data spec: accessModes: ["ReadWriteOnce"] resources: requests: storage: 5Gi <|endoftext|> # Ingress com TLS e múltiplos paths apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: app-ingress namespace: production annotations: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/ssl-redirect: "true" cert-manager.io/cluster-issuer: letsencrypt-prod spec: ingressClassName: nginx tls: - hosts: - app.example.com - api.example.com secretName: app-tls-secret rules: - host: app.example.com http: paths: - path: / pathType: Prefix backend: service: name: frontend-service port: number: 80 - host: api.example.com http: paths: - path: /v1 pathType: Prefix backend: service: name: api-service port: number: 8080 - path: /health pathType: Exact backend: service: name: api-service port: number: 8080 <|endoftext|> # Ingress simples sem TLS apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: simple-ingress namespace: default spec: ingressClassName: nginx rules: - host: myapp.example.com http: paths: - path: / pathType: Prefix backend: service: name: myapp-service port: number: 80 <|endoftext|> # PersistentVolumeClaim — SSD storage apiVersion: v1 kind: PersistentVolumeClaim metadata: name: fast-storage-pvc namespace: production spec: accessModes: - ReadWriteOnce storageClassName: fast-ssd resources: requests: storage: 20Gi <|endoftext|> # PersistentVolumeClaim — shared storage ReadWriteMany apiVersion: v1 kind: PersistentVolumeClaim metadata: name: shared-pvc namespace: default spec: accessModes: - ReadWriteMany resources: requests: storage: 100Gi <|endoftext|> # CronJob — backup diário com retentionPolicy apiVersion: batch/v1 kind: CronJob metadata: name: database-backup namespace: production spec: schedule: "0 2 * * *" concurrencyPolicy: Forbid successfulJobsHistoryLimit: 3 failedJobsHistoryLimit: 1 jobTemplate: spec: template: metadata: labels: job: database-backup spec: restartPolicy: OnFailure containers: - name: backup image: postgres:15 command: - /bin/sh - -c - | pg_dump -h $DB_HOST -U $DB_USER $DB_NAME | gzip > /backup/$(date +%Y%m%d).sql.gz env: - name: DB_HOST valueFrom: secretKeyRef: name: db-credentials key: host - name: DB_USER valueFrom: secretKeyRef: name: db-credentials key: username - name: DB_NAME value: production resources: requests: memory: "64Mi" cpu: "100m" limits: memory: "128Mi" cpu: "200m" backoffLimit: 3 <|endoftext|> # NetworkPolicy — deny all ingress/egress exceto permitidos apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: api-netpol namespace: production spec: podSelector: matchLabels: app: api policyTypes: - Ingress - Egress ingress: - from: - podSelector: matchLabels: role: frontend - namespaceSelector: matchLabels: name: monitoring ports: - protocol: TCP port: 8080 egress: - to: - podSelector: matchLabels: app: postgres ports: - protocol: TCP port: 5432 - to: - namespaceSelector: {} ports: - protocol: UDP port: 53 <|endoftext|> # NetworkPolicy — deny all (default deny) apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: default-deny-all namespace: production spec: podSelector: {} policyTypes: - Ingress - Egress <|endoftext|> # ClusterRole — read pods e logs apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: pod-reader rules: - apiGroups: [""] resources: ["pods", "pods/log"] verbs: ["get", "list", "watch"] - apiGroups: ["apps"] resources: ["deployments", "replicasets"] verbs: ["get", "list", "watch"] <|endoftext|> # ClusterRoleBinding — bind ServiceAccount ao ClusterRole apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: pod-reader-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: pod-reader subjects: - kind: ServiceAccount name: monitoring-sa namespace: monitoring - kind: User name: jane apiGroup: rbac.authorization.k8s.io <|endoftext|> # Deployment com resource requests/limits e probes apiVersion: apps/v1 kind: Deployment metadata: name: java-app namespace: production spec: replicas: 3 selector: matchLabels: app: java-app template: metadata: labels: app: java-app spec: containers: - name: java-app image: openjdk:17-slim ports: - containerPort: 8080 resources: requests: memory: "256Mi" cpu: "250m" limits: memory: "512Mi" cpu: "500m" livenessProbe: httpGet: path: /actuator/health port: 8080 initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 3 readinessProbe: httpGet: path: /actuator/health/readiness port: 8080 initialDelaySeconds: 10 periodSeconds: 5 <|endoftext|> # HelmRelease — Flux v2 com values customizados apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: kube-prometheus-stack namespace: monitoring spec: interval: 30m chart: spec: chart: kube-prometheus-stack version: ">=45.0.0" sourceRef: kind: HelmRepository name: prometheus-community namespace: flux-system interval: 12h values: grafana: enabled: true adminPassword: changeme prometheus: prometheusSpec: retention: 30d storageSpec: volumeClaimTemplate: spec: accessModes: ["ReadWriteOnce"] resources: requests: storage: 50Gi install: createNamespace: true remediation: retries: 3 upgrade: remediation: retries: 3 <|endoftext|> # Kustomization — overlay de production com patches apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: production resources: - ../../base - namespace.yaml patches: - path: deployment-patch.yaml target: kind: Deployment name: api-server images: - name: api-server newTag: "1.2.3" configMapGenerator: - name: app-config envs: - .env.production <|endoftext|> # ArgoCD Application com syncPolicy auto apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: my-app namespace: argocd finalizers: - resources-finalizer.argocd.argoproj.io spec: project: production source: repoURL: https://github.com/myorg/my-app targetRevision: main path: k8s/overlays/production destination: server: https://kubernetes.default.svc namespace: production syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true - PrunePropagationPolicy=foreground retry: limit: 5 backoff: duration: 5s factor: 2 maxDuration: 3m <|endoftext|> # Service — ClusterIP com múltiplas portas apiVersion: v1 kind: Service metadata: name: multi-port-svc namespace: production spec: type: ClusterIP selector: app: my-app ports: - name: http protocol: TCP port: 80 targetPort: 8080 - name: https protocol: TCP port: 443 targetPort: 8443 - name: metrics protocol: TCP port: 9090 targetPort: 9090 <|endoftext|> # Service — LoadBalancer com annotations AWS NLB apiVersion: v1 kind: Service metadata: name: public-lb namespace: production annotations: service.beta.kubernetes.io/aws-load-balancer-type: nlb service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true" spec: type: LoadBalancer selector: app: frontend ports: - name: http protocol: TCP port: 80 targetPort: 8080 - name: https protocol: TCP port: 443 targetPort: 8443 <|endoftext|> # Secret — Opaque com múltiplos valores apiVersion: v1 kind: Secret metadata: name: app-secrets namespace: production type: Opaque data: DB_PASSWORD: cGFzc3dvcmQxMjM= API_KEY: c2VjcmV0YXBpa2V5MTIz JWT_SECRET: and0c2VjcmV0a2V5 <|endoftext|> # Secret — TLS certificate apiVersion: v1 kind: Secret metadata: name: tls-secret namespace: production type: kubernetes.io/tls data: tls.crt: LS0tLS1CRUdJTi... tls.key: LS0tLS1CRUdJTi... <|endoftext|> # ConfigMap com arquivo nginx.conf apiVersion: v1 kind: ConfigMap metadata: name: nginx-config namespace: default data: nginx.conf: | worker_processes 1; events { worker_connections 1024; } http { upstream backend { server backend-service:8080; } server { listen 80; location / { proxy_pass http://backend; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } location /health { return 200 'ok'; } } } <|endoftext|> # Chart.yaml — Helm chart metadata apiVersion: v2 name: my-application description: A Helm chart for deploying my application type: application version: 1.2.3 appVersion: "2.0.0" keywords: - web - api - microservice dependencies: - name: postgresql version: "12.x.x" repository: https://charts.bitnami.com/bitnami condition: postgresql.enabled <|endoftext|> # values.yaml — Helm chart values with common patterns replicaCount: 2 image: repository: myapp pullPolicy: IfNotPresent tag: "" serviceAccount: create: true annotations: {} name: "" podAnnotations: {} podSecurityContext: {} securityContext: {} service: type: ClusterIP port: 80 ingress: enabled: false className: "nginx" annotations: cert-manager.io/cluster-issuer: letsencrypt-prod hosts: - host: chart-example.local paths: - path: / pathType: ImplementationSpecific tls: - secretName: chart-example-tls hosts: - chart-example.local resources: limits: cpu: 500m memory: 128Mi requests: cpu: 100m memory: 64Mi autoscaling: enabled: false minReplicas: 1 maxReplicas: 100 targetCPUUtilizationPercentage: 80 nodeSelector: {} tolerations: [] affinity: {} <|endoftext|> # Terraform — kubernetes_deployment resource resource "kubernetes_deployment" "app" { metadata { name = "my-app" namespace = "production" labels = { app = "my-app" } } spec { replicas = 3 selector { match_labels = { app = "my-app" } } template { metadata { labels = { app = "my-app" } } spec { container { name = "my-app" image = "myapp:1.0.0" port { container_port = 8080 } resources { limits = { cpu = "0.5" memory = "512Mi" } requests = { cpu = "250m" memory = "50Mi" } } } } } } } <|endoftext|> # PodDisruptionBudget — mantém mínimo de pods disponíveis apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: api-pdb namespace: production spec: minAvailable: 2 selector: matchLabels: app: api-server <|endoftext|> # Job — migração de banco de dados apiVersion: batch/v1 kind: Job metadata: name: db-migration namespace: production spec: ttlSecondsAfterFinished: 100 template: metadata: labels: job: db-migration spec: restartPolicy: Never containers: - name: migrate image: myapp:1.0.0 command: ["python", "manage.py", "migrate"] env: - name: DATABASE_URL valueFrom: secretKeyRef: name: db-credentials key: url backoffLimit: 3 <|endoftext|> # Namespace com labels e ResourceQuota apiVersion: v1 kind: Namespace metadata: name: production labels: env: production team: platform --- apiVersion: v1 kind: ResourceQuota metadata: name: production-quota namespace: production spec: hard: requests.cpu: "10" requests.memory: 20Gi limits.cpu: "20" limits.memory: 40Gi pods: "50" services: "20" <|endoftext|> # Kubernetes Troubleshooting Guide ## CrashLoopBackOff O Pod reinicia repetidamente. Diagnóstico: ```bash # Ver logs do pod (tentativa atual) kubectl logs -n # Ver logs da tentativa anterior kubectl logs -n --previous # Ver eventos e detalhes do pod kubectl describe pod -n ``` Causas comuns: erro de configuração, secret não encontrado, liveness probe muito agressiva. ## ImagePullBackOff Kubernetes não consegue baixar a imagem. Diagnóstico: ```bash kubectl describe pod | grep -A5 Events ``` Causas: imagem não existe, tag errada, credenciais de registry não configuradas. Solução: criar imagePullSecret e referenciar no pod. ## Pending (pod não sobe) ```bash kubectl describe pod kubectl get nodes -o wide kubectl describe node ``` Causas: recursos insuficientes (CPU/memory), nodeSelector sem match, PVC não bound. ## OOMKilled Container excedeu o memory limit. Solução: aumentar limits.memory ou otimizar uso. ## kubectl comandos úteis ```bash # Ver todos os recursos em um namespace kubectl get all -n # Ver logs em tempo real kubectl logs -f deployment/ -n # Executar shell em container kubectl exec -it -- /bin/sh # Port-forward para debug local kubectl port-forward svc/ 8080:80 # Ver eventos recentes kubectl get events --sort-by='.lastTimestamp' -n # Aplicar manifesto kubectl apply -f manifest.yaml --dry-run=client ``` <|endoftext|> # Helm — comandos essenciais ## Instalação e gerenciamento ```bash # Adicionar repositório helm repo add stable https://charts.helm.sh/stable helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update # Instalar chart helm install my-release bitnami/nginx --namespace ingress --create-namespace # Com values customizados helm install my-release bitnami/postgresql \ --set auth.postgresPassword=secretpassword \ --set primary.persistence.size=10Gi # Com values file helm install my-release ./my-chart -f values-production.yaml # Upgrade helm upgrade my-release bitnami/nginx --reuse-values # Rollback helm rollback my-release 1 # Ver releases helm list -A # Ver values de um release helm get values my-release ``` ## Debugging ```bash # Dry run helm install my-release ./my-chart --dry-run --debug # Template rendering helm template my-release ./my-chart > rendered.yaml # Lint helm lint ./my-chart ``` <|endoftext|> # kubernetes/website/content/en/examples/controllers/nginx-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 <|endoftext|> # kubernetes/website/content/en/examples/application/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 # tells deployment to run 2 pods matching the template template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 <|endoftext|> # kubernetes/website/content/en/examples/application/deployment-update.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.16.1 # Update the version of nginx from 1.14.2 to 1.16.1 ports: - containerPort: 80 <|endoftext|> # kubernetes/website/content/en/examples/application/deployment-scale.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 4 # Update the replicas from 2 to 4 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.16.1 ports: - containerPort: 80 <|endoftext|> # kubernetes/website/content/en/examples/pods/resource/memory-request-limit.yaml apiVersion: v1 kind: Pod metadata: name: memory-demo namespace: mem-example spec: containers: - name: memory-demo-ctr image: polinux/stress resources: requests: memory: "100Mi" limits: memory: "200Mi" command: ["stress"] args: ["--vm", "1", "--vm-bytes", "150M", "--vm-hang", "1"] <|endoftext|> # kubernetes/website/content/en/examples/pods/resource/cpu-request-limit.yaml apiVersion: v1 kind: Pod metadata: name: cpu-demo namespace: cpu-example spec: containers: - name: cpu-demo-ctr image: vish/stress resources: limits: cpu: "1" requests: cpu: "0.5" args: - -cpus - "2" <|endoftext|> # kubernetes/website/content/en/examples/pods/probe/exec-liveness.yaml apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-exec spec: containers: - name: liveness image: registry.k8s.io/busybox:1.27.2 args: - /bin/sh - -c - touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600 livenessProbe: exec: command: - cat - /tmp/healthy initialDelaySeconds: 5 periodSeconds: 5 <|endoftext|> # kubernetes/website/content/en/examples/pods/probe/http-liveness.yaml apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-http spec: containers: - name: liveness image: registry.k8s.io/e2e-test-images/agnhost:2.40 args: - liveness livenessProbe: httpGet: path: /healthz port: 8080 httpHeaders: - name: Custom-Header value: Awesome initialDelaySeconds: 3 periodSeconds: 3 <|endoftext|> # kubernetes/website/content/en/examples/pods/probe/tcp-liveness-readiness.yaml apiVersion: v1 kind: Pod metadata: name: goproxy labels: app: goproxy spec: containers: - name: goproxy image: registry.k8s.io/goproxy:0.1 ports: - containerPort: 8080 readinessProbe: tcpSocket: port: 8080 initialDelaySeconds: 15 periodSeconds: 10 livenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 15 periodSeconds: 10 <|endoftext|> # kubernetes/website/content/en/examples/service/networking/network-policy-allow-all-egress.yaml --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-all-egress spec: podSelector: {} egress: - {} policyTypes: - Egress <|endoftext|> # kubernetes/website/content/en/examples/service/networking/network-policy-default-deny-egress.yaml --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: default-deny-egress spec: podSelector: {} policyTypes: - Egress <|endoftext|> # kubernetes/website/content/en/examples/service/networking/network-policy-default-deny-ingress.yaml --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: default-deny-ingress spec: podSelector: {} policyTypes: - Ingress <|endoftext|> # kubernetes/website/content/en/examples/application/job/cronjob.yaml apiVersion: batch/v1 kind: CronJob metadata: name: hello spec: schedule: "* * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox:1.28 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure <|endoftext|> # kubernetes/website/content/en/examples/application/hpa/php-apache.yaml apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: php-apache spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: php-apache minReplicas: 1 maxReplicas: 10 metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 50 <|endoftext|> # kubernetes/website/content/en/examples/pods/storage/pv-claim.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: task-pv-claim spec: storageClassName: manual accessModes: - ReadWriteOnce resources: requests: storage: 3Gi <|endoftext|> # kubernetes/website/content/en/examples/pods/storage/pv-volume.yaml apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume labels: type: local spec: storageClassName: manual capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: "/mnt/data" <|endoftext|> # kubernetes/website/content/en/examples/application/nginx/nginx-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx spec: selector: matchLabels: app: nginx replicas: 3 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 <|endoftext|> # kubernetes/website/content/en/examples/pods/pod-nginx.yaml apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disktype: ssd <|endoftext|> # kubernetes/website/content/en/examples/configmap/configmaps.yaml apiVersion: v1 kind: ConfigMap metadata: name: special-config namespace: default data: special.how: very --- apiVersion: v1 kind: ConfigMap metadata: name: env-config namespace: default data: log_level: INFO <|endoftext|> # kubernetes/website/content/en/examples/pods/inject/secret.yaml apiVersion: v1 kind: Secret metadata: name: test-secret data: username: bXktYXBw password: Mzk1MjgkdmRnN0pi <|endoftext|> # kubernetes/website/content/en/examples/pods/inject/secret-pod.yaml apiVersion: v1 kind: Pod metadata: name: secret-test-pod spec: containers: - name: test-container image: nginx volumeMounts: # name must match the volume name below - name: secret-volume mountPath: /etc/secret-volume readOnly: true # The secret data is exposed to Containers in the Pod through a Volume. volumes: - name: secret-volume secret: secretName: test-secret <|endoftext|> # kubernetes/website/content/en/examples/pods/security/security-context.yaml apiVersion: v1 kind: Pod metadata: name: security-context-demo spec: securityContext: runAsUser: 1000 runAsGroup: 3000 fsGroup: 2000 supplementalGroups: [4000] volumes: - name: sec-ctx-vol emptyDir: {} containers: - name: sec-ctx-demo image: busybox:1.28 command: [ "sh", "-c", "sleep 1h" ] volumeMounts: - name: sec-ctx-vol mountPath: /data/demo securityContext: allowPrivilegeEscalation: false <|endoftext|> # kubernetes/website/content/en/examples/application/web/web.yaml apiVersion: v1 kind: Service metadata: name: nginx labels: app: nginx spec: ports: - port: 80 name: web clusterIP: None selector: app: nginx --- apiVersion: apps/v1 kind: StatefulSet metadata: name: web spec: serviceName: "nginx" replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: registry.k8s.io/nginx-slim:0.21 ports: - containerPort: 80 name: web volumeMounts: - name: www mountPath: /usr/share/nginx/html volumeClaimTemplates: - metadata: name: www spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 1Gi <|endoftext|> # fluxcd/flux2-kustomize-helm-example/infrastructure/controllers/cert-manager.yaml --- apiVersion: v1 kind: Namespace metadata: name: cert-manager labels: toolkit.fluxcd.io/tenant: sre-team --- apiVersion: source.toolkit.fluxcd.io/v1 kind: OCIRepository metadata: name: cert-manager namespace: cert-manager spec: interval: 24h url: oci://quay.io/jetstack/charts/cert-manager layerSelector: mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip" operation: copy ref: semver: "1.x" --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: cert-manager namespace: cert-manager spec: interval: 12h install: strategy: name: RetryOnFailure retryInterval: 2m upgrade: strategy: name: RetryOnFailure retryInterval: 3m chartRef: kind: OCIRepository name: cert-manager values: crds: enabled: true keep: false <|endoftext|> # argoproj/argo-cd/docs/operator-manual/project.yaml apiVersion: argoproj.io/v1alpha1 kind: AppProject metadata: name: my-project namespace: argocd # Finalizer that ensures that project is not deleted until it is not referenced by any application finalizers: - resources-finalizer.argocd.argoproj.io spec: # Project description description: Example Project # Allow manifests to deploy from any Git repos sourceRepos: - '*' # Only permit applications to deploy to the 'guestbook' namespace or any namespace starting with 'guestbook-' in the same cluster # Destination clusters can be identified by 'server', 'name', or both. destinations: - namespace: guestbook server: https://kubernetes.default.svc name: in-cluster # Destinations also allow wildcard globbing - namespace: guestbook-* server: https://kubernetes.default.svc name: in-cluster # Deny all cluster-scoped resources from being created, except for Namespace clusterResourceWhitelist: - group: '' kind: Namespace # Name is optional. If specified, only resources with a matching name will be allowed. # Globs in Go's filepath.Match syntax are supported. Example: "team1-*". name: '' # Deny all Namespace resources from being created if their name starts with 'kube-' clusterResourceBlacklist: - group: '' kind: Namespace # Name is optional. If specified, only resources with a matching name will be denied. name: 'kube-*' # Allow all namespaced-scoped resources to be created, except for ResourceQuota, LimitRange, NetworkPolicy namespaceResourceBlacklist: - group: '' kind: ResourceQuota - group: '' kind: LimitRange - group: '' kind: NetworkPolicy # Deny all namespaced-scoped resources from being created, except for Deployment and StatefulSet namespaceResourceWhitelist: - group: 'apps' kind: Deployment - group: 'apps' kind: StatefulSet # Enables namespace orphaned resource monitoring. orphanedResources: warn: false roles: # A role which provides read-only access to all applications in the project - name: read-only description: Read-only privileges to my-project policies: - p, proj:my-project:read-only, applications, get, my-project/*, allow groups: - my-oidc-group # A role which provides sync privileges to only the guestbook-dev application, e.g. to provide # sync privileges to a CI system - name: ci-role description: Sync privileges for guestbook-dev policies: - p, proj:my-project:ci-role, applications, sync, my-project/guestbook-dev, allow # NOTE: JWT tokens can only be generated by the API server and the token is not persisted # anywhere by Argo CD. It can be prematurely revoked by removing the entry from this list. jwtTokens: - iat: 1535390316 # Sync windows restrict when Applications may be synced. https://argo-cd.readthedocs.io/en/stable/user-guide/sync_windows/ syncWindows: - kind: allow schedule: '10 1 * * *' duration: 1h applications: - '*-prod' manualSync: true - kind: deny schedule: '0 22 * * *' duration: 1h namespaces: - default - kind: allow schedule: '0 23 * * *' duration: 1h clusters: - in-cluster - cluster1 # By default, apps may sync to any cluster specified under the `destinations` field, even if they are not # scoped to this project. Set the following field to `true` to restrict apps in this cluster to only clusters # scoped to this project. permitOnlyProjectScopedClusters: false # When using Applications-in-any-namespace, this field determines which namespaces this AppProject permits # Applications to reside in. Details: https://argo-cd.readthedocs.io/en/stable/operator-manual/app-any-namespace/ sourceNamespaces: - "argocd-apps-*" <|endoftext|> # k8s_examples_nfs-server-cdk-pv.yaml # PersistentVolumeClaim for Canonical's Charmed Distribution of Kubernetes. apiVersion: v1 kind: PersistentVolumeClaim metadata: name: nfs-pv-provisioning-demo labels: demo: nfs-pv-provisioning spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 200Gi storageClassName: cdk-cinder <|endoftext|> # helm_charts_controller-prometheusrules.yaml {{- if and .Values.controller.metrics.enabled .Values.controller.metrics.prometheusRule.enabled }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ template "nginx-ingress.controller.fullname" . }} {{- if .Values.controller.metrics.prometheusRule.namespace }} namespace: {{ .Values.controller.metrics.prometheusRule.namespace }} {{- end }} labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} {{- if .Values.controller.metrics.prometheusRule.additionalLabels }} {{ toYaml .Values.controller.metrics.prometheusRule.additionalLabels | indent 4 }} {{- end }} spec: {{- with .Values.controller.metrics.prometheusRule.rules }} groups: - name: {{ template "nginx-ingress.name" $ }} rules: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} <|endoftext|> # helm_charts_yarn-nm-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "hadoop.fullname" . }}-yarn-nm annotations: checksum/config: {{ include (print $.Template.BasePath "/hadoop-configmap.yaml") . | sha256sum }} labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: yarn-nm spec: serviceName: {{ include "hadoop.fullname" . }}-yarn-nm replicas: {{ .Values.yarn.nodeManager.replicas }} selector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: yarn-nm {{- if .Values.yarn.nodeManager.parallelCreate }} podManagementPolicy: Parallel {{- end }} template: metadata: labels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: yarn-nm spec: affinity: podAntiAffinity: {{- if eq .Values.antiAffinity "hard" }} requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name | quote }} component: yarn-nm {{- else if eq .Values.antiAffinity "soft" }} preferredDuringSchedulingIgnoredDuringExecution: - weight: 5 podAffinityTerm: topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name | quote }} component: yarn-nm {{- end }} terminationGracePeriodSeconds: 0 containers: - name: yarn-nm image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} ports: - containerPort: 8088 name: web command: - "/bin/bash" - "/tmp/hadoop-config/bootstrap.sh" - "-d" resources: {{ toYaml .Values.yarn.nodeManager.resources | indent 10 }} readinessProbe: httpGet: path: /node port: 8042 initialDelaySeconds: 10 timeoutSeconds: 2 livenessProbe: httpGet: path: /node port: 8042 initialDelaySeconds: 10 timeoutSeconds: 2 env: - name: MY_CPU_LIMIT valueFrom: resourceFieldRef: containerName: yarn-nm resource: limits.cpu divisor: 1 - name: MY_MEM_LIMIT valueFrom: resourceFieldRef: containerName: yarn-nm resource: limits.memory divisor: 1M volumeMounts: - name: hadoop-config mountPath: /tmp/hadoop-config volumes: - name: hadoop-config configMap: name: {{ include "hadoop.fullname" . }} <|endoftext|> # argocd_source_healthy_running_v0.1.x.yaml apiVersion: flink.apache.org/v1alpha1 kind: FlinkDeployment spec: job: state: running status: jobManagerDeploymentStatus: READY jobStatus: state: RUNNING reconciliationStatus: success: true <|endoftext|> # grafana_charts_alertmanager-statefulset.yaml {{- if .Values.alertmanager.statefulSet.enabled -}} {{- $clusterPort := regexReplaceAll ".+[:]" (default "0.0.0.0:9094" .Values.config.alertmanager.cluster_bind_address) "" -}} apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "enterprise-metrics.fullname" . }}-alertmanager labels: app: {{ template "enterprise-metrics.name" . }}-alertmanager chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: {{- toYaml .Values.alertmanager.annotations | nindent 4 }} spec: replicas: {{ .Values.alertmanager.replicas }} selector: matchLabels: app: {{ template "enterprise-metrics.name" . }}-alertmanager release: {{ .Release.Name }} updateStrategy: {{- toYaml .Values.alertmanager.statefulStrategy | nindent 4 }} serviceName: {{ template "enterprise-metrics.fullname" . }}-alertmanager {{- if .Values.alertmanager.persistentVolume.enabled }} volumeClaimTemplates: - metadata: name: storage {{- if .Values.alertmanager.persistentVolume.annotations }} annotations: {{ toYaml .Values.alertmanager.persistentVolume.annotations | nindent 10 }} {{- end }} spec: {{- if .Values.alertmanager.persistentVolume.storageClass }} {{- if (eq "-" .Values.alertmanager.persistentVolume.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.alertmanager.persistentVolume.storageClass }}" {{- end }} {{- end }} accessModes: {{ toYaml .Values.alertmanager.persistentVolume.accessModes | nindent 10 }} resources: requests: storage: "{{ .Values.alertmanager.persistentVolume.size }}" {{- end }} template: metadata: labels: app: {{ template "enterprise-metrics.name" . }}-alertmanager # The name label is important for cortex-mixin compatibility which expects certain names for services. name: alertmanager gossip_ring_member: "true" target: alertmanager release: {{ .Release.Name }} {{- with .Values.alertmanager.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: {{- if .Values.useExternalConfig }} checksum/config: {{ .Values.externalConfigVersion }} {{- else }} checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- end }} {{- with .Values.alertmanager.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ template "enterprise-metrics.serviceAccountName" . }} {{- if .Values.alertmanager.priorityClassName }} priorityClassName: {{ .Values.alertmanager.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.alertmanager.securityContext | nindent 8 }} initContainers: {{- toYaml .Values.alertmanager.initContainers | nindent 8 }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} {{- with .Values.alertmanager.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} nodeSelector: {{- toYaml .Values.alertmanager.nodeSelector | nindent 8 }} affinity: {{- toYaml .Values.alertmanager.affinity | nindent 8 }} tolerations: {{- toYaml .Values.alertmanager.tolerations | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.alertmanager.terminationGracePeriodSeconds }} volumes: - name: config secret: {{- if .Values.useExternalConfig }} secretName: {{ .Values.externalConfigSecretName }} {{- else }} secretName: {{ template "enterprise-metrics.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "enterprise-metrics.fullname" . }}-runtime - name: license secret: secretName: {{ .Values.license.secretName }} {{- if not .Values.alertmanager.persistentVolume.enabled }} - name: storage emptyDir: {} {{- end }} - name: tmp emptyDir: {} {{- if .Values.alertmanager.extraVolumes }} {{ toYaml .Values.alertmanager.extraVolumes | nindent 8 }} {{- end }} containers: {{- if .Values.alertmanager.extraContainers }} {{ toYaml .Values.alertmanager.extraContainers | nindent 8 }} {{- end }} - name: alertmanager image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - "-target=alertmanager" - "-config.file=/etc/enterprise-metrics/enterprise-metrics.yaml" - "-memberlist.join={{ template "enterprise-metrics.fullname" . }}-gossip-ring" {{- if gt (.Values.alertmanager.replicas | int) 1 }} {{- range $n := until (.Values.alertmanager.replicas |int ) }} - -alertmanager.cluster.peers={{ template "enterprise-metrics.fullname" $ }}-alertmanager-{{ $n }}.{{ template "enterprise-metrics.fullname" $ }}-alertmanager-headless.{{ $.Release.Namespace }}.svc:{{ $clusterPort }} {{- end }} {{- end }} {{- if .Values.minio.enabled }} - -admin.client.backend-type=s3 - -admin.client.s3.endpoint={{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000 - -admin.client.s3.bucket-name=enterprise-metrics-admin - -admin.client.s3.access-key-id=enterprise-metrics - -admin.client.s3.secret-access-key=supersecret - -admin.client.s3.insecure=true - -alertmanager-storage.backend=s3 - -alertmanager-storage.s3.endpoint={{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000 - -alertmanager-storage.s3.bucket-name=enterprise-metrics-ruler - -alertmanager-storage.s3.access-key-id=enterprise-metrics - -alertmanager-storage.s3.secret-access-key=supersecret - -alertmanager-storage.s3.insecure=true {{- end }} {{- range $key, $value := .Values.alertmanager.extraArgs }} - "-{{ $key }}={{ $value }}" {{- end }} volumeMounts: {{- if .Values.alertmanager.extraVolumeMounts }} {{ toYaml .Values.alertmanager.extraVolumeMounts | nindent 12}} {{- end }} - name: config mountPath: /etc/enterprise-metrics - name: runtime-config mountPath: /var/enterprise-metrics - name: license mountPath: /license - name: storage mountPath: "/data" {{- if .Values.alertmanager.persistentVolume.subPath }} subPath: {{ .Values.alertmanager.persistentVolume.subPath }} {{- else }} {{- end }} - name: tmp mountPath: /tmp ports: - name: http-metrics containerPort: {{ .Values.config.server.http_listen_port }} protocol: TCP - name: grpc containerPort: {{ .Values.config.server.grpc_listen_port }} protocol: TCP livenessProbe: {{- toYaml .Values.alertmanager.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.alertmanager.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.alertmanager.resources | nindent 12 }} securityContext: readOnlyRootFilesystem: true env: {{- if .Values.alertmanager.env }} {{- toYaml .Values.alertmanager.env | nindent 12 }} {{- end }} {{- end -}} <|endoftext|> # istio_52192.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [] releaseNotes: - | **Added** support for matching multiple VIPs in HTTP route. <|endoftext|> # istio_drop-coredump.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Removed** the `sidecar.istio.io/enableCoreDump` annotation. See the sample provided in `samples/proxy-coredump` for more preferred approaches to enable core dumps. <|endoftext|> # helm_charts_rbac_service_account.yaml {{- if .Values.rbac }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "jenkins-operator.name" . }} labels: helm.sh/chart: {{ include "jenkins-operator.chart" . }} app.kubernetes.io/name: {{ include "jenkins-operator.name" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | trunc 63 }} {{- end }} <|endoftext|> # istio_external-name-on.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issues: - 37331 releaseNotes: - | **Improved** support for `ExternalName` services. See Upgrade Notes for more information. upgradeNotes: - title: "`ExternalName` support changes" content: | Kubernetes `ExternalName` `Service`s allow users to create new DNS entries. For example, you can create an `example` service that points to `example.com`. This is implemented by a DNS `CNAME` redirect. In Istio, the implementation of `ExternalName`, historically, was substantially different. Each `ExternalName` represented its own service, and traffic matching the service was sent to the configured DNS name. This caused a few issues: * Ports are required in Istio, but not in Kubernetes. This can result in broken traffic if ports are not configured as Istio expects, despite them working without Istio. * Ports not declared as `HTTP` would match *all* traffic on that port, making it easy to accidentally send all traffic on a port to the wrong place. * Because the destination DNS name is treated as opaque, we cannot apply Istio policies to it as expected. For example, if I point an external name at another in-cluster Service (for example, `example.default.svc.cluster.local`), mTLS would not be used. `ExternalName` support has been revamped to fix these problems. `ExternalName`s are now simply treated as aliases. Wherever we would match `Host: ` we additionally will match `Host: `. Note that the primary implementation of `ExternalName` -- DNS -- is handled outside of Istio in the Kubernetes DNS implementation, and remains unchanged. If you are using `ExternalName` with Istio, please be advised of the following behavioral changes: * The `ports` field is no longer needed, matching Kubernetes behavior. If it is set, it will have no impact. * `VirtualServices` that route to an `ExternalName` service will no longer work unless the referenced service exists (as a Service or ServiceEntry). * `DestinationRule` can no longer apply to `ExternalName` services. Instead, create rules where the `host` references service. To opt-out, the `ENABLE_EXTERNAL_NAME_ALIAS=false` environment variable can be set. Note: the same change was introduced in the previous release, but off by default. This release turns the flag on by default. <|endoftext|> # argocd_source_target-deployment-env-vars.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: argocd.argoproj.io/tracking-id: 'guestbook:apps/Deployment:default/kustomize-guestbook-ui' iksm-version: '1.0' name: kustomize-guestbook-ui namespace: default spec: replicas: 1 revisionHistoryLimit: 3 selector: matchLabels: app: guestbook-ui template: metadata: labels: app: guestbook-ui spec: containers: - env: - name: SOME_OTHER_ENV_VAR value: some_other_value - name: YET_ANOTHER_ENV_VAR value: yet_another_value - name: SOME_ENV_VAR value: different_value! image: 'quay.io/argoprojlabs/argocd-e2e-container:0.1' name: guestbook-ui ports: - containerPort: 80 resources: requests: cpu: 50m memory: 100Mi <|endoftext|> # kube_prometheus_prometheusAdapter-clusterRoleAggregatedMetricsReader.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/component: metrics-adapter app.kubernetes.io/name: prometheus-adapter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.12.0 rbac.authorization.k8s.io/aggregate-to-admin: "true" rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-view: "true" name: system:aggregated-metrics-reader rules: - apiGroups: - metrics.k8s.io resources: - pods - nodes verbs: - get - list - watch <|endoftext|> # istio_fix-healthcheck-host-override.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 45632 releaseNotes: - | **Fixed** Regression in HTTPGet healthcheck probe translation. <|endoftext|> # helm_charts_stateful-set.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "ignite.fullname" . }} labels: app.kubernetes.io/name: {{ include "ignite.name" . }} helm.sh/chart: {{ include "ignite.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: selector: matchLabels: app: {{ include "ignite.fullname" . }} serviceName: {{ include "ignite.fullname" . }} replicas: {{ .Values.replicaCount }} template: metadata: labels: app: {{ include "ignite.fullname" . }} spec: serviceAccountName: {{ include "ignite.serviceAccountName" . }} {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} volumes: - name: config-volume configMap: name: {{ include "ignite.fullname" . }}-configmap items: - key: ignite-config.xml path: default-config.xml {{- with .Values.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.extraInitContainers }} initContainers: {{- toYaml .Values.extraInitContainers | nindent 6 }} {{- end }} containers: {{- if .Values.extraContainers }} {{- toYaml .Values.extraContainers | nindent 6 }} {{- end }} - name: ignite image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" {{- if .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} {{ end -}} resources: {{ toYaml .Values.resources | indent 10 }} {{- if .Values.envVars }} env: {{ toYaml .Values.envVars | indent 10 }} {{- else }} {{- if .Values.env }} env: {{- range $name, $value := .Values.env }} - name: "{{ $name }}" value: "{{ $value }}" {{- end }} {{- end }} {{- end }} {{- if .Values.envFrom }} envFrom: {{ toYaml .Values.envFrom | indent 10 }} {{- end }} ports: - containerPort: 11211 # JDBC port number. - containerPort: 47100 # communication SPI port number. - containerPort: 47500 # discovery SPI port number. - containerPort: 49112 # JMX port number. - containerPort: 10800 # SQL port number. - containerPort: 8080 # REST port number. - containerPort: 10900 #Thin clients port number. volumeMounts: {{- if (.Values.persistence.enabled) }} - mountPath: "/wal" name: ignite-wal - mountPath: "/persistence" name: ignite-persistence {{- end }} - name: config-volume mountPath: /opt/ignite/apache-ignite/config {{- with .Values.extraVolumeMounts }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumeClaimTemplates: {{- if (.Values.persistence.enabled) }} - metadata: name: ignite-persistence spec: accessModes: [ "ReadWriteOnce" ] storageClassName: "{{ include "ignite.fullname" . }}-persistence-storage-class" resources: requests: storage: {{ .Values.persistence.persistenceVolume.size }} - metadata: name: ignite-wal spec: accessModes: [ "ReadWriteOnce" ] storageClassName: "{{ include "ignite.fullname" . }}-wal-storage-class" resources: requests: storage: {{ .Values.persistence.walVolume.size }} {{- end }} <|endoftext|> # kustomize_foo.template.yaml # Copyright 2021 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 apiVersion: example.com/v1 kind: Foo metadata: name: example spec: targets: - app: A type: Go size: small - app: B type: Go <|endoftext|> # istio_scope-root-ca-configmap.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Updated** `meshConfig.discoverySelectors` to dynamically restrict the set of namespaces where istiod creates istio-ca-root-cert configmap if `ENABLE_ENHANCED_RESOURCE_SCOPING` feature flag is enabled. docs: - https://docs.google.com/document/d/1y4liRJbQW0NCMeQtqMma46flVqs-izV1/ <|endoftext|> # argocd_source_git-directories-exclude-example.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-addons namespace: argocd spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - git: repoURL: https://github.com/argoproj/argo-cd.git revision: HEAD directories: - path: applicationset/examples/git-generator-directory/excludes/cluster-addons/* - exclude: true path: applicationset/examples/git-generator-directory/excludes/cluster-addons/exclude-helm-guestbook template: metadata: name: '{{.path.basename}}' spec: project: "my-project" source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: '{{.path}}' destination: server: https://kubernetes.default.svc namespace: '{{.path.basename}}' syncPolicy: syncOptions: - CreateNamespace=true <|endoftext|> # helm_charts_analyzer_deployment.yaml {{- $component := "analyzer" -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "anchore-engine.analyzer.fullname" . }} labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: {{ $component }} {{- with .Values.anchoreAnalyzer.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} spec: selector: matchLabels: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} replicas: {{ .Values.anchoreAnalyzer.replicaCount }} strategy: type: Recreate rollingUpdate: null template: metadata: labels: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} {{- with .Values.anchoreAnalyzer.labels }} {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreAnalyzer.annotations }} annotations: {{ toYaml . | nindent 8 }} {{- end }} spec: securityContext: runAsUser: 1000 runAsGroup: 1000 {{- if .Values.anchoreEnterpriseGlobal.enabled }} imagePullSecrets: - name: {{ .Values.anchoreEnterpriseGlobal.imagePullSecretName }} {{- else }} {{- with .Values.anchoreGlobal.imagePullSecretName }} imagePullSecrets: - name: {{ . }} {{- end }} {{- end }} containers: {{- if .Values.cloudsql.enabled }} - name: cloudsql-proxy image: {{ .Values.cloudsql.image.repository }}:{{ .Values.cloudsql.image.tag }} imagePullPolicy: {{ .Values.cloudsql.image.pullPolicy }} command: ["/cloud_sql_proxy"] args: - "-instances={{ .Values.cloudsql.instance }}=tcp:5432" {{- if .Values.cloudsql.useExistingServiceAcc }} - "-credential_file=/var/{{ .Values.cloudsql.serviceAccSecretName }}/{{ .Values.cloudsql.serviceAccJsonName }}" volumeMounts: - mountPath: /var/{{ .Values.cloudsql.serviceAccSecretName }} name: {{ .Values.cloudsql.serviceAccSecretName }} readOnly: true {{- end }} {{- end }} - name: {{ .Chart.Name }}-{{ $component }} {{- if .Values.anchoreEnterpriseGlobal.enabled }} image: {{ .Values.anchoreEnterpriseGlobal.image }} imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }} {{- else }} image: {{ .Values.anchoreGlobal.image }} imagePullPolicy: {{ .Values.anchoreGlobal.imagePullPolicy }} {{- end }} {{- if .Values.anchoreEnterpriseGlobal.enabled }} args: ["anchore-enterprise-manager", "service", "start", "--no-auto-upgrade", "analyzer"] {{- else }} args: ["anchore-manager", "service", "start", "--no-auto-upgrade", "analyzer"] {{- end }} envFrom: - secretRef: name: {{ default (include "anchore-engine.fullname" .) .Values.anchoreGlobal.existingSecret }} - configMapRef: name: {{ template "anchore-engine.fullname" . }}-env env: {{- with .Values.anchoreGlobal.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreAnalyzer.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} - name: ANCHORE_POD_NAME valueFrom: fieldRef: fieldPath: metadata.name ports: - name: analyzer-api containerPort: {{ .Values.anchoreAnalyzer.containerPort }} volumeMounts: {{- if .Values.anchoreEnterpriseGlobal.enabled }} - name: anchore-license mountPath: /home/anchore/license.yaml subPath: license.yaml {{- end }} - name: analyzer-config-volume mountPath: /anchore_service/analyzer_config.yaml subPath: analyzer_config.yaml - name: config-volume mountPath: /config/config.yaml subPath: config.yaml {{- if (.Values.anchoreGlobal.certStoreSecretName) }} - name: certs mountPath: /home/anchore/certs/ readOnly: true {{- end }} - name: {{ $component }}-scratch mountPath: {{ .Values.anchoreGlobal.scratchVolume.mountPath }} {{- if .Values.anchoreGlobal.openShiftDeployment }} - name: service-config-volume mountPath: /anchore_service_config - name: logs mountPath: /var/log/anchore - name: run mountPath: /var/run/anchore {{- end }} livenessProbe: httpGet: path: /health port: analyzer-api {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} scheme: HTTPS {{- end }} initialDelaySeconds: 120 timeoutSeconds: 10 periodSeconds: 10 failureThreshold: 6 successThreshold: 1 readinessProbe: httpGet: path: /health port: analyzer-api {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} scheme: HTTPS {{- end }} timeoutSeconds: 10 periodSeconds: 10 failureThreshold: 3 successThreshold: 1 resources: {{ toYaml .Values.anchoreAnalyzer.resources | nindent 10 }} volumes: {{- if .Values.anchoreEnterpriseGlobal.enabled }} - name: anchore-license secret: secretName: {{ .Values.anchoreEnterpriseGlobal.licenseSecretName }} {{- end }} - name: config-volume configMap: name: {{ template "anchore-engine.fullname" .}} - name: {{ $component }}-scratch {{ toYaml .Values.anchoreGlobal.scratchVolume.details | nindent 10 }} {{- if .Values.anchoreGlobal.openShiftDeployment }} - name: service-config-volume emptyDir: {} - name: logs emptyDir: {} - name: run emptyDir: {} {{- end }} - name: analyzer-config-volume configMap: name: {{ template "anchore-engine.analyzer.fullname" . }} {{- with .Values.anchoreGlobal.certStoreSecretName }} - name: certs secret: secretName: {{ . }} {{- end }} {{- if .Values.cloudsql.useExistingServiceAcc }} - name: {{ .Values.cloudsql.serviceAccSecretName }} secret: secretName: {{ .Values.cloudsql.serviceAccSecretName }} {{- end }} {{- with .Values.anchoreAnalyzer.nodeSelector }} nodeSelector: {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreAnalyzer.affinity }} affinity: {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreAnalyzer.tolerations }} tolerations: {{ toYaml . | nindent 8 }} {{- end }} <|endoftext|> # istio_45842.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 45839 releaseNotes: - | **Fixed** an issue where specifying multiple include conditions by `--include` in bug report didn't't work as expected. <|endoftext|> # istio_drop-reload-plugin-certs.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the `AUTO_RELOAD_PLUGIN_CERTS` feature flag. <|endoftext|> # helm_charts_external-metrics-cluster-role.yaml {{- if and .Values.rbac.create .Values.rules.external -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}-external-metrics rules: - apiGroups: - "external.metrics.k8s.io" resources: - "*" verbs: - list - get - watch {{- end -}} <|endoftext|> # helm_charts_pvc.yaml {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "katafygio.fullname" . }} labels: {{ include "katafygio.labels.standard" . | indent 4 }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{- if .Values.persistence.storageClass }} {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # grafana_charts_alertmanager-svc-headless.yaml {{- $clusterPort := regexReplaceAll ".+[:]" (default "0.0.0.0:9094" .Values.config.alertmanager.cluster_bind_address) "" -}} apiVersion: v1 kind: Service metadata: name: {{ template "enterprise-metrics.fullname" . }}-alertmanager-headless labels: app: {{ template "enterprise-metrics.name" . }}-alertmanager chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.alertmanager.service.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.alertmanager.service.annotations | nindent 4 }} spec: type: ClusterIP clusterIP: None publishNotReadyAddresses: true ports: - port: {{ .Values.config.server.http_listen_port }} protocol: TCP name: http-metrics - port: {{ .Values.config.server.grpc_listen_port }} protocol: TCP name: grpc targetPort: grpc - port: {{ $clusterPort }} protocol: TCP name: cluster selector: app: {{ template "enterprise-metrics.name" . }}-alertmanager release: {{ .Release.Name }} <|endoftext|> # k8s_examples_spark-ui-proxy-controller.yaml kind: ReplicationController apiVersion: v1 metadata: name: spark-ui-proxy-controller spec: replicas: 1 selector: component: spark-ui-proxy template: metadata: labels: component: spark-ui-proxy spec: containers: - name: spark-ui-proxy image: elsonrodriguez/spark-ui-proxy:1.0 ports: - containerPort: 80 resources: requests: cpu: 100m args: - spark-master:8080 livenessProbe: httpGet: path: / port: 80 initialDelaySeconds: 120 timeoutSeconds: 5 <|endoftext|> # helm_charts_agent-service.yaml {{- if .Values.agent.enabled -}} {{- if .Values.agent.prometheus.scrape -}} apiVersion: v1 kind: Service metadata: name: {{ template "kiam.fullname" . }}-agent labels: app: {{ template "kiam.name" . }} chart: {{ template "kiam.chart" . }} component: "{{ .Values.agent.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- range $key, $value := .Values.agent.serviceLabels }} {{ $key }}: {{ $value | quote }} {{- end }} {{- if or .Values.agent.serviceAnnotations .Values.agent.prometheus.scrape }} annotations: {{- range $key, $value := .Values.agent.serviceAnnotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- if .Values.agent.prometheus.scrape }} prometheus.io/scrape: "true" prometheus.io/port: {{ .Values.agent.prometheus.port | quote }} {{- end }} {{- end }} spec: clusterIP: None selector: app: {{ template "kiam.name" . }} component: "{{ .Values.agent.name }}" release: {{ .Release.Name }} ports: - name: metrics port: {{ .Values.agent.prometheus.port }} targetPort: {{ .Values.agent.prometheus.port }} protocol: TCP {{- end -}} {{- end }} <|endoftext|> # helm_charts_ssl.yaml {{- if and .Values.tls.certData .Values.tls.keyData -}} apiVersion: v1 type: kubernetes.io/tls kind: Secret metadata: name: {{ include "gangway.fullname" . }}-tls labels: app.kubernetes.io/name: {{ include "gangway.name" . }} helm.sh/chart: {{ include "gangway.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} data: tls.crt: {{ .Values.tls.certData | b64enc }} tls.key: {{ .Values.tls.keyData | b64enc }} {{- end -}} <|endoftext|> # cert_manager_startupapicheck-job.yaml {{- if .Values.startupapicheck.enabled }} apiVersion: batch/v1 kind: Job metadata: name: {{ include "startupapicheck.fullname" . }} namespace: {{ include "cert-manager.namespace" . }} labels: app: {{ include "startupapicheck.name" . }} app.kubernetes.io/name: {{ include "startupapicheck.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "startupapicheck" {{- include "labels" . | nindent 4 }} {{- with .Values.startupapicheck.jobAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: backoffLimit: {{ .Values.startupapicheck.backoffLimit }} template: metadata: labels: app: {{ include "startupapicheck.name" . }} app.kubernetes.io/name: {{ include "startupapicheck.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "startupapicheck" {{- include "labels" . | nindent 8 }} {{- with .Values.startupapicheck.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.startupapicheck.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} spec: restartPolicy: OnFailure serviceAccountName: {{ template "startupapicheck.serviceAccountName" . }} {{- if hasKey .Values.startupapicheck "automountServiceAccountToken" }} automountServiceAccountToken: {{ .Values.startupapicheck.automountServiceAccountToken }} {{- end }} enableServiceLinks: {{ .Values.startupapicheck.enableServiceLinks }} {{- with .Values.global.priorityClassName }} priorityClassName: {{ . | quote }} {{- end }} {{- if (hasKey .Values.global "hostUsers") }} hostUsers: {{ .Values.global.hostUsers }} {{- end }} {{- with .Values.startupapicheck.securityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.global.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }}-startupapicheck image: "{{ template "image" (tuple .Values.startupapicheck.image .Values.imageRegistry .Values.imageNamespace (printf ":%s" .Chart.AppVersion)) }}" imagePullPolicy: {{ .Values.startupapicheck.image.pullPolicy }} args: - check - api - --wait={{ .Values.startupapicheck.timeout }} {{- with .Values.startupapicheck.extraArgs }} {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.startupapicheck.containerSecurityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} env: - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace {{- with .Values.startupapicheck.extraEnv }} {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.startupapicheck.resources }} resources: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.startupapicheck.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} {{- end }} {{- $nodeSelector := .Values.global.nodeSelector | default dict }} {{- $nodeSelector = merge $nodeSelector (.Values.startupapicheck.nodeSelector | default dict) }} {{- with $nodeSelector }} nodeSelector: {{- range $key, $value := . }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} {{- with .Values.startupapicheck.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.startupapicheck.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.startupapicheck.volumes }} volumes: {{- toYaml . | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # k8s_docs_user-namespaces-stateless.yaml apiVersion: v1 kind: Pod metadata: name: userns spec: hostUsers: false containers: - name: shell command: ["sleep", "infinity"] image: debian <|endoftext|> # istio_remove-extra-multicluster-helm-values.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: [] releaseNotes: - | **Removed** unsed multicluster-related Helm values. <|endoftext|> # istio_mismatch.yaml # Mismatch shows that we don't generate config for Gateways that do not match the GatewayClass apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: something-else listeners: - name: default port: 80 protocol: HTTP <|endoftext|> # istio_33864.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 33857 releaseNotes: - | **Fixed** an issue where the `default` profile name was missing in the `istioctl install` confirmation prompt message. <|endoftext|> # helm_charts_migrations-pre-upgrade.yaml {{- if (and (.Values.runMigrations) (not (eq .Values.env.database "off"))) }} # Why is this Job duplicated and not using only helm hooks? # See: https://github.com/helm/charts/pull/7362 apiVersion: batch/v1 kind: Job metadata: name: {{ template "kong.fullname" . }}-pre-upgrade-migrations labels: {{- include "kong.metaLabels" . | nindent 4 }} app.kubernetes.io/component: pre-upgrade-migrations annotations: helm.sh/hook: "pre-upgrade" helm.sh/hook-delete-policy: "before-hook-creation" spec: template: metadata: name: {{ template "kong.name" . }}-pre-upgrade-migrations labels: {{- include "kong.metaLabels" . | nindent 8 }} app.kubernetes.io/component: pre-upgrade-migrations spec: {{- if .Values.podSecurityPolicy.enabled }} serviceAccountName: {{ template "kong.serviceAccountName" . }} {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} initContainers: {{- if (eq .Values.env.database "postgres") }} {{- include "kong.wait-for-postgres" . | nindent 6 }} {{- end }} containers: - name: {{ template "kong.name" . }}-upgrade-migrations image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: {{- include "kong.final_env" . | nindent 8 }} command: [ "/bin/sh", "-c", "kong migrations up" ] volumeMounts: {{- include "kong.volumeMounts" . | nindent 8 }} securityContext: {{- include "kong.podsecuritycontext" . | nindent 8 }} restartPolicy: OnFailure volumes: {{- include "kong.volumes" . | nindent 6 -}} {{- end }} {{ if or .Values.podSecurityPolicy.enabled (and .Values.ingressController.enabled .Values.ingressController.serviceAccount.create) -}} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "kong.serviceAccountName" . }} namespace: {{ .Release.namespace }} annotations: "helm.sh/hook": pre-upgrade "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded labels: {{- include "kong.metaLabels" . | nindent 4 }} {{- end -}} <|endoftext|> # istio_49965.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 49965 releaseNotes: - | **Fixed** an issue with massive Virtual IPs reshuffling when add/remove duplicated host <|endoftext|> # helm_charts_xray-server-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "xray-server.fullname" . }} labels: app: {{ template "xray.name" . }} chart: {{ template "xray.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: {{ .Values.server.name }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ template "xray.name" . }} release: {{ .Release.Name }} component: {{ .Values.server.name }} template: metadata: labels: app: {{ template "xray.name" . }} release: {{ .Release.Name }} component: {{ .Values.server.name }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} serviceAccountName: {{ template "xray.serviceAccountName" . }} securityContext: runAsUser: {{ .Values.common.xrayUserId }} fsGroup: {{ .Values.common.xrayGroupId }} initContainers: - name: init-wait image: {{ .Values.initContainerImage | quote }} env: {{- if .Values.mongodb.enabled }} - name: MONGODB_USER value: {{ .Values.mongodb.mongodbUsername }} - name: MONGODB_DATABASE value: {{ .Values.mongodb.mongodbDatabase }} - name: MONGODB_PASSWORD valueFrom: secretKeyRef: name: {{ .Release.Name }}-mongodb key: mongodb-password {{- else }} - name: MONGODB_URL value: {{ .Values.global.mongoUrl }} {{- end }} {{- if .Values.postgresql.enabled }} - name: POSTGRES_USER value: {{ .Values.postgresql.postgresUser }} - name: POSTGRESS_PASSWORD valueFrom: secretKeyRef: name: {{ .Release.Name }}-postgresql key: postgres-password - name: POSTGRESS_DB value: {{ .Values.postgresql.postgresDatabase }} {{- else }} - name: POSTGRESS_URL value: {{ .Values.global.postgresqlUrl }} {{- end }} - name: RABBITMQ_USER value: {{ index .Values "rabbitmq-ha" "rabbitmqUsername" }} - name: RABBITMQ_ERLANG_COOKIE valueFrom: secretKeyRef: name: {{ .Release.Name }}-rabbitmq-ha key: rabbitmq-erlang-cookie - name: RABBITMQ_DEFAULT_PASS valueFrom: secretKeyRef: name: {{ .Release.Name }}-rabbitmq-ha key: rabbitmq-password command: - '/bin/sh' - '-c' - > cp -fv /scripts/setup.sh {{ .Values.common.xrayConfigPath }}; chmod +x {{ .Values.common.xrayConfigPath }}/setup.sh; {{ .Values.common.xrayConfigPath }}/setup.sh; volumeMounts: - name: data-volume mountPath: "{{ .Values.common.xrayConfigPath }}" - name: setup mountPath: "/scripts" containers: - name: {{ .Values.server.name }} image: {{ .Values.server.image }}:{{ default .Chart.AppVersion .Values.common.xrayVersion }} imagePullPolicy: {{ .Values.imagePullPolicy }} env: - name: XRAYCONFIGPATH value: "{{ .Values.common.xrayConfigPath }}" - name: XRAY_MASTER_KEY valueFrom: secretKeyRef: name: {{ template "xray.fullname" . }}-master-key key: master-key - name: XRAY_HA_NODE_ID valueFrom: fieldRef: fieldPath: metadata.name ports: - containerPort: {{ .Values.server.internalPort }} volumeMounts: - name: data-volume mountPath: "{{ .Values.common.xrayConfigPath }}" securityContext: allowPrivilegeEscalation: false resources: {{ toYaml .Values.server.resources | indent 10 }} readinessProbe: httpGet: path: / port: {{ .Values.server.internalPort }} initialDelaySeconds: 60 periodSeconds: 10 failureThreshold: 10 livenessProbe: httpGet: path: / port: {{ .Values.server.internalPort }} initialDelaySeconds: 90 periodSeconds: 10 volumes: - name: data-volume emptyDir: sizeLimit: {{ .Values.server.storage.sizeLimit }} - name: config-volume emptyDir: sizeLimit: 1Gi - name: setup configMap: name: {{ template "xray.fullname" . }}-setup <|endoftext|> # argocd_source_pod-running-restart-onfailure.yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: 2018-12-02T09:47:10Z name: my-pod namespace: argocd resourceVersion: "153419" selfLink: /api/v1/namespaces/argocd/pods/my-pod uid: 3cf9325e-f617-11e8-a057-fe5f49266390 spec: containers: - command: - sh - -c - exit 1 image: alpine:latest imagePullPolicy: Always name: main resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-f9jvj readOnly: true dnsPolicy: ClusterFirst nodeName: minikube restartPolicy: OnFailure schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - name: default-token-f9jvj secret: defaultMode: 420 secretName: default-token-f9jvj status: conditions: - lastProbeTime: null lastTransitionTime: 2018-12-02T09:47:10Z status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: 2018-12-02T09:47:10Z message: 'containers with unready status: [main]' reason: ContainersNotReady status: "False" type: Ready - lastProbeTime: null lastTransitionTime: 2018-12-02T09:47:10Z status: "True" type: PodScheduled containerStatuses: - containerID: docker://977dcb5c66325385f6df86276a3bcc2419e6aecc0b6682ab90853bd30f21fa51 image: alpine:latest imageID: docker-pullable://alpine@sha256:621c2f39f8133acb8e64023a94dbdf0d5ca81896102b9e57c0dc184cadaf5528 lastState: terminated: containerID: docker://977dcb5c66325385f6df86276a3bcc2419e6aecc0b6682ab90853bd30f21fa51 exitCode: 1 finishedAt: 2018-12-02T09:48:54Z reason: Error startedAt: 2018-12-02T09:48:54Z name: main ready: false restartCount: 4 state: waiting: message: Back-off 1m20s restarting failed container=main pod=my-pod_argocd(3cf9325e-f617-11e8-a057-fe5f49266390) reason: CrashLoopBackOff hostIP: 192.168.64.41 phase: Running podIP: 172.17.0.9 qosClass: BestEffort startTime: 2018-12-02T09:47:10Z <|endoftext|> # helm_charts_route.yaml {{- if .Values.route.enabled }} apiVersion: route.openshift.io/v1 kind: Route metadata: name: {{ .Values.route.name }} labels: {{ .Values.route.labels }} annotations: {{- range $key, $value := .Values.route.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: host: {{ .Values.route.path }} port: targetPort: {{ .Values.service.portName }} tls: insecureEdgeTerminationPolicy: Redirect termination: edge to: kind: Service {{- if .Values.service.name }} name: {{ .Values.service.name }} {{- else }} name: {{ template "nexus.name" . }}-service {{- end }} weight: 100 wildcardPolicy: None {{- end }} <|endoftext|> # helm_charts_controller-servicemonitor.yaml {{- if and .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ template "nginx-ingress.controller.fullname" . }} {{- if .Values.controller.metrics.serviceMonitor.namespace }} namespace: {{ .Values.controller.metrics.serviceMonitor.namespace }} {{- end }} labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} {{- if .Values.controller.metrics.serviceMonitor.additionalLabels }} {{ toYaml .Values.controller.metrics.serviceMonitor.additionalLabels | indent 4 }} {{- end }} spec: endpoints: - port: metrics interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }} {{- if .Values.controller.metrics.serviceMonitor.honorLabels }} honorLabels: true {{- end }} {{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }} namespaceSelector: {{ toYaml .Values.controller.metrics.serviceMonitor.namespaceSelector | indent 4 -}} {{ else }} namespaceSelector: matchNames: - {{ .Release.Namespace }} {{- end }} selector: matchLabels: app: {{ template "nginx-ingress.name" . }} component: "{{ .Values.controller.name }}" release: {{ template "nginx-ingress.releaseLabel" . }} {{- end }} <|endoftext|> # argocd_source_argocd-dex-server-rolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/name: argocd-dex-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: dex-server name: argocd-dex-server roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: argocd-dex-server subjects: - kind: ServiceAccount name: argocd-dex-server <|endoftext|> # grafana_charts_service-memcached-chunks.yaml {{- if .Values.memcachedChunks.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "loki.memcachedChunksFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.memcachedChunksSelectorLabels" . | nindent 4 }} {{- with .Values.memcachedChunks.serviceLabels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.memcached.serviceAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: ClusterIP clusterIP: None ports: - name: memcached-client port: 11211 targetPort: http protocol: TCP {{- if .Values.memcached.appProtocol }} appProtocol: {{ .Values.memcached.appProtocol }} {{- end }} - name: http-metrics port: 9150 targetPort: http-metrics protocol: TCP selector: {{- include "loki.memcachedChunksSelectorLabels" . | nindent 4 }} {{- end }} <|endoftext|> # helm_charts_spark-worker-deployment.yaml apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "worker-fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Worker.Component }}" spec: {{- if not .Values.Worker.Autoscaling.Enabled }} replicas: {{ default 1 .Values.Worker.Replicas }} {{- end }} strategy: type: RollingUpdate selector: matchLabels: component: "{{ .Release.Name }}-{{ .Values.Worker.Component }}" template: metadata: labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Worker.Component }}" spec: containers: - name: {{ template "worker-fullname" . }} image: "{{ .Values.Worker.Image }}:{{ .Values.Worker.ImageTag }}" command: ["{{ .Values.Spark.Path }}/bin/spark-class", "org.apache.spark.deploy.worker.Worker", "spark://{{ template "master-fullname" . }}:{{ .Values.Master.ServicePort }}"] ports: - containerPort: {{ .Values.Worker.ContainerPort }} resources: requests: cpu: "{{ .Values.Worker.Cpu }}" memory: "{{ .Values.Worker.Memory }}" env: - name: SPARK_DAEMON_MEMORY value: {{ default "1g" .Values.Worker.DaemonMemory | quote }} - name: SPARK_WORKER_MEMORY value: {{ default "1g" .Values.Worker.ExecutorMemory | quote }} - name: SPARK_WORKER_WEBUI_PORT value: {{ .Values.WebUi.ContainerPort | quote }} <|endoftext|> # helm_charts_keeper-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "stolon.fullname" . }}-keeper labels: app: {{ template "stolon.name" . }} chart: {{ template "stolon.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: serviceName: {{ template "stolon.fullname" . }}-keeper-headless replicas: {{ .Values.keeper.replicaCount }} selector: matchLabels: app: {{ template "stolon.name" . }} release: {{ .Release.Name }} component: stolon-keeper template: metadata: labels: app: {{ template "stolon.name" . }} release: {{ .Release.Name }} component: stolon-keeper stolon-cluster: {{ template "stolon.fullname" . }} annotations: {{- with .Values.keeper.annotations }} {{ toYaml . | indent 8 }} {{- end }} spec: {{- if .Values.keeper.priorityClassName }} priorityClassName: "{{ .Values.keeper.priorityClassName }}" {{- end }} serviceAccountName: {{ template "stolon.serviceAccountName" . }} terminationGracePeriodSeconds: 10 {{- if .Values.keeper.fsGroup }} securityContext: fsGroup: {{ .Values.keeper.fsGroup }} {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{ toYaml .Values.image.pullSecrets | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - "/bin/bash" - "-ec" - | # Generate our keeper uid using the pod index IFS='-' read -ra ADDR <<< "$(hostname)" export STKEEPER_UID="{{ .Values.keeper.uid_prefix }}${ADDR[-1]}" export POD_IP=$(hostname -i) export STKEEPER_PG_ADVERTISE_ADDRESS=$POD_IP export STKEEPER_PG_LISTEN_ADDRESS=${STKEEPER_PG_LISTEN_ADDRESS:-$POD_IP} export STOLON_DATA=/stolon-data chown stolon:stolon $STOLON_DATA {{- if .Values.shmVolume.enabled }} chmod -R 777 /dev/shm {{- end }} exec gosu stolon stolon-keeper --data-dir $STOLON_DATA env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: STKEEPER_CLUSTER_NAME value: {{ template "stolon.clusterName" . }} - name: STKEEPER_STORE_BACKEND value: {{ .Values.store.backend | quote }} {{- if eq .Values.store.backend "kubernetes" }} - name: STKEEPER_KUBE_RESOURCE_KIND value: {{ .Values.store.kubeResourceKind | quote }} {{- else }} - name: STKEEPER_STORE_ENDPOINTS value: {{ .Values.store.endpoints | quote }} {{- end }} - name: STKEEPER_PG_REPL_USERNAME {{ if not (empty .Values.replicationSecret.name) }} valueFrom: secretKeyRef: name: {{ .Values.replicationSecret.name }} key: {{ .Values.replicationSecret.usernameKey }} {{ else }} value: {{ .Values.replicationUsername | quote}} {{ end }} - name: STKEEPER_PG_REPL_PASSWORDFILE {{ if not (empty .Values.replicationSecret.name) }} value: /etc/secrets/stolon-{{ .Values.replicationSecret.name }}/{{ .Values.replicationSecret.passwordKey }} {{ else if not (empty .Values.replicationPasswordFile) }} value: {{ .Values.replicationPasswordFile }} {{ else }} value: "/etc/secrets/stolon/pg_repl_password" {{ end }} - name: STKEEPER_PG_SU_USERNAME {{ if not (empty .Values.superuserSecret.name) }} valueFrom: secretKeyRef: name: {{ .Values.superuserSecret.name }} key: {{ .Values.superuserSecret.usernameKey }} {{ else }} value: {{ .Values.superuserUsername | quote }} {{ end }} - name: STKEEPER_PG_SU_PASSWORDFILE {{ if not (empty .Values.superuserSecret.name) }} value: /etc/secrets/stolon-{{ .Values.superuserSecret.name }}/{{ .Values.superuserSecret.passwordKey }} {{ else if not (empty .Values.superuserPasswordFile) }} value: {{ .Values.superuserPasswordFile }} {{ else }} value: "/etc/secrets/stolon/pg_su_password" {{ end }} - name: STKEEPER_METRICS_LISTEN_ADDRESS value: "0.0.0.0:{{ .Values.ports.metrics.containerPort }}" - name: STKEEPER_DEBUG value: {{ .Values.debug | quote}} {{- if .Values.keeper.extraEnv }} {{ toYaml .Values.keeper.extraEnv | indent 12 }} {{- end }} ports: {{- range $key, $value := .Values.ports }} - name: {{ $key }} {{ toYaml $value | indent 14 }} {{- end }} resources: {{ toYaml .Values.keeper.resources | indent 12 }} volumeMounts: {{- if .Values.shmVolume.enabled }} - name: dshm mountPath: /dev/shm {{- end }} - name: data mountPath: /stolon-data {{- if .Values.tls.enabled }} - name: certs mountPath: /certs {{- end }} {{ if and (or (empty .Values.superuserSecret.name) (empty .Values.replicationSecret.name)) (or (empty .Values.superuserPasswordFile) (empty .Values.replicationPasswordFile)) }} - name: stolon-secrets mountPath: /etc/secrets/stolon {{ end }} {{ if not (empty .Values.superuserSecret.name) }} - name: stolon-secret-{{ .Values.superuserSecret.name }} mountPath: /etc/secrets/stolon-{{ .Values.superuserSecret.name }} {{ end }} {{ if and (not (empty .Values.replicationSecret.name)) (not (eq .Values.superuserSecret.name .Values.replicationSecret.name)) }} - name: stolon-secret-{{ .Values.replicationSecret.name }} mountPath: /etc/secrets/stolon-{{ .Values.replicationSecret.name }} {{ end }} {{- range $key, $value := .Values.keeper.volumeMounts }} - name: {{ $key }} {{ toYaml $value | indent 12 }} {{- end }} {{- if .Values.keeper.hooks.failKeeper.enabled }} - name: config mountPath: /pre-stop-hook.sh subPath: pre-stop-hook.sh {{- end }} {{- if .Values.nodePostStartScript }} - name: config mountPath: /postStartScript.sh subPath: postStartScript.sh {{- end }} lifecycle: {{- if .Values.keeper.hooks.failKeeper.enabled }} preStop: exec: command: ["/bin/bash", "-e", "/pre-stop-hook.sh"] {{- end }} {{- if .Values.nodePostStartScript }} postStart: exec: command: ["/bin/bash", "-e", "/postStartScript.sh"] {{- end }} {{- with .Values.keeper.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.keeper.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.keeper.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: {{- if .Values.shmVolume.enabled }} - name: dshm emptyDir: medium: Memory {{- end }} {{- if .Values.tls.enabled }} - name: certs secret: defaultMode: 0600 secretName: {{ if .Values.tls.existingSecret }}{{ .Values.tls.existingSecret }}{{ else }}{{ template "stolon.fullname" . }}-certs{{end}} {{ end }} - name: config configMap: name: {{ template "stolon.fullname" . }} {{ if or (empty .Values.superuserSecret.name) (empty .Values.replicationSecret.name) }} - name: stolon-secrets secret: secretName: {{ template "stolon.fullname" . }} {{ end }} {{ if not (empty .Values.superuserSecret.name) }} - name: stolon-secret-{{ .Values.superuserSecret.name }} secret: secretName: {{ .Values.superuserSecret.name }} {{ end }} {{ if and (not (empty .Values.replicationSecret.name)) (not (eq .Values.superuserSecret.name .Values.replicationSecret.name)) }} - name: stolon-secret-{{ .Values.replicationSecret.name }} secret: secretName: {{ .Values.replicationSecret.name }} {{ end }} {{- range $key, $value := .Values.keeper.volumes }} - name: {{ $key }} {{ toYaml $value | indent 10 }} {{- end }} {{- if .Values.persistence.enabled }} volumeClaimTemplates: - metadata: name: data spec: accessModes: {{- range .Values.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{- if .Values.persistence.storageClassName }} {{- if (eq "-" .Values.persistence.storageClassName) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClassName }}" {{- end }} {{- end }} {{- else }} - name: data emptyDir: {} {{- end }} <|endoftext|> # istio_pdb-resolve.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 54087 releaseNotes: - | **Fixed** an issue preventing the PodDisruptionBudget `maxUnavailable` field from being customizable. <|endoftext|> # helm_charts_geth.configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "ethereum.fullname" . }}-geth-config labels: app: {{ template "ethereum.name" . }} chart: {{ template "ethereum.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: networkid: "{{ .Values.geth.genesis.networkId }}" genesis.json: |- { "config": { "chainId": {{ .Values.geth.genesis.networkId }}, "homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block": 0 }, "difficulty": {{ .Values.geth.genesis.difficulty | quote }}, "gasLimit": {{ .Values.geth.genesis.gasLimit | quote }}, "alloc": { {{- if .Values.geth.account.address }} {{ .Values.geth.account.address | quote }}: { "balance": "1000000000000000000000000" } {{- end }} } } <|endoftext|> # argocd_source_aborted_bg_rollout.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "2" creationTimestamp: "2020-11-13T08:37:51Z" generation: 3 name: bluegreen namespace: argocd-e2e resourceVersion: "202207" selfLink: /apis/argoproj.io/v1alpha1/namespaces/argocd-e2e/rollouts/bluegreen uid: 39d30e1e-5e0e-460a-a217-fa21215f1d1f spec: replicas: 3 selector: matchLabels: app: bluegreen strategy: blueGreen: activeService: bluegreen autoPromotionEnabled: false scaleDownDelaySeconds: 10 template: metadata: creationTimestamp: null labels: app: bluegreen spec: containers: - image: nginx:1.18-alpine name: bluegreen resources: requests: cpu: 1m memory: 16Mi status: HPAReplicas: 3 abort: true abortedAt: "2020-11-13T08:38:19Z" availableReplicas: 3 blueGreen: activeSelector: 54bd6f9c67 canary: {} conditions: - lastTransitionTime: "2020-11-13T08:37:53Z" lastUpdateTime: "2020-11-13T08:37:53Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available - lastTransitionTime: "2020-11-13T08:38:19Z" lastUpdateTime: "2020-11-13T08:38:19Z" message: Rollout is aborted reason: RolloutAborted status: "False" type: Progressing currentPodHash: 5b6f6b55c4 observedGeneration: "3" readyReplicas: 3 replicas: 6 selector: app=bluegreen,rollouts-pod-template-hash=54bd6f9c67 stableRS: 54bd6f9c67 updatedReplicas: 3 <|endoftext|> # helm_charts_alertmanager-rolebinding.yaml {{- if and .Values.alertmanager.enabled .Values.rbac.create (eq .Values.alertmanager.useClusterRole false) -}} {{ range $.Values.alertmanager.namespaces }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: labels: {{- include "prometheus.alertmanager.labels" $ | nindent 4 }} name: {{ template "prometheus.alertmanager.fullname" $ }} namespace: {{ . }} subjects: - kind: ServiceAccount name: {{ template "prometheus.serviceAccountName.alertmanager" $ }} {{ include "prometheus.namespace" $ | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role {{- if (not $.Values.alertmanager.useExistingRole) }} name: {{ template "prometheus.alertmanager.fullname" $ }} {{- else }} name: {{ $.Values.alertmanager.useExistingRole }} {{- end }} {{- end }} {{ end }} <|endoftext|> # grafana_charts_gossip-ring-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "enterprise-metrics.fullname" . }}-gossip-ring labels: app: {{ template "enterprise-metrics.name" . }}-gossip-ring chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: ClusterIP clusterIP: None ports: - name: gossip-ring port: {{ .Values.config.memberlist.bind_port }} protocol: TCP targetPort: {{ .Values.config.memberlist.bind_port }} publishNotReadyAddresses: true selector: gossip_ring_member: "true" <|endoftext|> # istio_fix-analysis-gatewayport.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** Analyzer produces incorrect results for `GatewayPortNotOnWorkload` due to incorrect association of `Gateway.Spec.Servers[].Port.Number` with Service's `Port` instead of `TargetPort`. <|endoftext|> # helm_charts_web-svc.yaml {{- if .Values.web.enabled -}} apiVersion: v1 kind: Service metadata: name: {{ template "concourse.web.fullname" . }} labels: app: {{ template "concourse.web.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- range $key, $value := .Values.web.service.labels }} {{ $key }}: {{ $value | quote }} {{- end }} {{- if or .Values.web.service.annotations .Values.concourse.web.prometheus.enabled }} annotations: {{- range $key, $value := .Values.web.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- if .Values.concourse.web.prometheus.enabled }} prometheus.io/scrape: "true" prometheus.io/port: {{ .Values.concourse.web.prometheus.bindPort | quote }} {{- end }} {{- end }} spec: type: {{ .Values.web.service.type }} {{ if .Values.web.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- range .Values.web.service.loadBalancerSourceRanges }} - {{ . }} {{- end }} {{ end }} {{ if and (eq "LoadBalancer" .Values.web.service.type) .Values.web.service.loadBalancerIP }} loadBalancerIP: {{ .Values.web.service.loadBalancerIP }} {{ end }} ports: - name: atc port: {{ .Values.concourse.web.bindPort }} targetPort: atc {{ if and (eq "NodePort" .Values.web.service.type) .Values.web.service.atcNodePort }} nodePort: {{ .Values.web.service.atcNodePort}} {{ end }} {{- if .Values.concourse.web.tls.enabled }} - name: atc-tls port: {{ .Values.concourse.web.tls.bindPort }} targetPort: atc-tls {{ if and (eq "NodePort" .Values.web.service.type) .Values.web.service.atcTlsNodePort }} nodePort: {{ .Values.web.service.atcTlsNodePort}} {{ end }} {{- end }} - name: tsa port: {{ .Values.concourse.web.tsa.bindPort }} targetPort: tsa {{ if and (eq "NodePort" .Values.web.service.type) .Values.web.service.tsaNodePort }} nodePort: {{ .Values.web.service.tsaNodePort}} {{ end }} {{- if .Values.concourse.web.prometheus.enabled }} - name: prometheus port: {{ .Values.concourse.web.prometheus.bindPort }} targetPort: prometheus {{- end }} selector: app: {{ template "concourse.web.fullname" . }} {{- end }} <|endoftext|> # helm_charts_clusterrolebinding-autoscaler.yaml {{- if and .Values.autoscaler.enabled .Values.rbac.create }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "coredns.fullname" . }}-autoscaler labels: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" {{- if .Values.isClusterService }} k8s-app: {{ .Chart.Name }}-autoscaler kubernetes.io/cluster-service: "true" kubernetes.io/name: "CoreDNS" {{- end }} app.kubernetes.io/name: {{ template "coredns.name" . }}-autoscaler {{- if .Values.customLabels }} {{ toYaml .Values.customLabels | indent 4 }} {{- end }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "coredns.fullname" . }}-autoscaler subjects: - kind: ServiceAccount name: {{ template "coredns.fullname" . }}-autoscaler namespace: {{ .Release.Namespace }} {{- end }} <|endoftext|> # helm_charts_certs-pvc.yaml {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ template "openvpn.fullname" . }} labels: app: {{ template "openvpn.name" . }} chart: {{ template "openvpn.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{- if .Values.persistence.storageClass }} {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # argocd_source_minimal-image-replicas-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: client name: client spec: replicas: 1 selector: matchLabels: app: client strategy: {} template: metadata: labels: app: client spec: containers: - image: alpine:3 name: alpine resources: {} <|endoftext|> # helm_charts_clamd-configmap.yaml {{- if .Values.clamdConfig -}} kind: ConfigMap apiVersion: v1 metadata: name: {{ include "clamav.fullname" . }}-clamd labels: app: {{ template "clamav.name" . }} chart: {{ template "clamav.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: clamd.conf: {{ toYaml .Values.clamdConfig | indent 4 }} {{- end }} <|endoftext|> # istio_54575.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** support to set reinvocationPolicy for the revision-tag webhook when installing Istio with istioctl or Helm. <|endoftext|> # helm_charts_nginx-pvc.yaml {{- if and .Values.nginx.persistence.enabled (.Values.nginx.enabled ) }} {{- if (not .Values.nginx.persistence.existingClaim) }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "artifactory.nginx.fullname" . }} labels: app: {{ template "artifactory.name" . }} chart: {{ template "artifactory.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: accessModes: - {{ .Values.nginx.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.nginx.persistence.size | quote }} {{- if .Values.nginx.persistence.storageClass }} {{- if (eq "-" .Values.nginx.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.nginx.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_set-user-agent.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 28231 releaseNotes: - | **Fixed** user-agent in all istio binaries to include version. **Added** --vklog option to enable verbose logging in client-go. <|endoftext|> # istio_nds-cross-cluster-ip-family-filter.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** `GetAllAddressesForProxy` returning unreachable service addresses to proxies when the `DefaultAddress` IP family does not match the proxy's supported IP family. <|endoftext|> # argocd_source_apiservice-v1-false.yaml apiVersion: apiregistration.k8s.io/v1 kind: APIService metadata: name: v1beta1.admission.cert-manager.io labels: app: webhook app.kubernetes.io/instance: external-dns spec: group: admission.cert-manager.io groupPriorityMinimum: 1000 versionPriority: 15 service: name: cert-manager-webhook namespace: external-dns version: v1beta1 status: conditions: - lastTransitionTime: "2019-06-26T07:17:09Z" message: endpoints for service/cert-manager-webhook in "external-dns" have no addresses reason: MissingEndpoints status: "False" type: Available <|endoftext|> # cert_manager_startupapicheck-rbac.yaml {{- if .Values.startupapicheck.enabled }} {{- if .Values.global.rbac.create }} # create certificate role apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ template "startupapicheck.fullname" . }}:create-cert namespace: {{ include "cert-manager.namespace" . }} labels: app: {{ include "startupapicheck.name" . }} app.kubernetes.io/name: {{ include "startupapicheck.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "startupapicheck" {{- include "labels" . | nindent 4 }} {{- with .Values.startupapicheck.rbac.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} rules: - apiGroups: ["cert-manager.io"] resources: ["certificaterequests"] verbs: ["create"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "startupapicheck.fullname" . }}:create-cert namespace: {{ include "cert-manager.namespace" . }} labels: app: {{ include "startupapicheck.name" . }} app.kubernetes.io/name: {{ include "startupapicheck.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "startupapicheck" {{- include "labels" . | nindent 4 }} {{- with .Values.startupapicheck.rbac.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "startupapicheck.fullname" . }}:create-cert subjects: - kind: ServiceAccount name: {{ template "startupapicheck.serviceAccountName" . }} namespace: {{ include "cert-manager.namespace" . }} {{- end }} {{- end }} <|endoftext|> # helm_charts_apiregistration.yaml {{- $ca := genCA "svc-cat-ca" 3650 }} {{- $cn := include "kubedb.fullname" . -}} {{- $altName1 := printf "%s.%s" $cn .Release.Namespace }} {{- $altName2 := printf "%s.%s.svc" $cn .Release.Namespace }} {{- $cert := genSignedCert $cn nil (list $altName1 $altName2) 3650 $ca }} apiVersion: apiregistration.k8s.io/v1beta1 kind: APIService metadata: name: v1alpha1.admission.kubedb.com labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: "{{ template "kubedb.name" . }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" spec: group: admission.kubedb.com version: v1alpha1 service: namespace: {{ .Release.Namespace }} name: {{ template "kubedb.fullname" . }} caBundle: {{ b64enc $ca.Cert }} groupPriorityMinimum: {{ .Values.apiserver.groupPriorityMinimum }} versionPriority: {{ .Values.apiserver.versionPriority }} --- apiVersion: v1 kind: Secret metadata: name: {{ template "kubedb.fullname" . }}-apiserver-cert labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: "{{ template "kubedb.name" . }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" type: Opaque data: tls.crt: {{ b64enc $cert.Cert }} tls.key: {{ b64enc $cert.Key }} --- {{ if .Values.rbac.create }} # to read the config for terminating authentication apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ template "kubedb.fullname" . }}-apiserver-extension-server-authentication-reader namespace: kube-system labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: "{{ template "kubedb.name" . }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" roleRef: kind: Role apiGroup: rbac.authorization.k8s.io name: extension-apiserver-authentication-reader subjects: - kind: ServiceAccount name: {{ template "kubedb.serviceAccountName" . }} namespace: {{ .Release.Namespace }} --- # to delegate authentication and authorization apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "kubedb.fullname" . }}-apiserver-auth-delegator labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: "{{ template "kubedb.name" . }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" roleRef: kind: ClusterRole apiGroup: rbac.authorization.k8s.io name: system:auth-delegator subjects: - kind: ServiceAccount name: {{ template "kubedb.serviceAccountName" . }} namespace: {{ .Release.Namespace }} {{ end }} <|endoftext|> # argocd_source_pod-running-not-ready.yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: 2018-12-02T10:30:57Z name: never-ready namespace: argocd resourceVersion: "156420" selfLink: /api/v1/namespaces/argocd/pods/never-ready uid: 5aa62a14-f61d-11e8-a058-fe5f49266390 spec: containers: - command: - sh - -c - sleep 9999 image: alpine:latest imagePullPolicy: Always name: main readinessProbe: failureThreshold: 3 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: 8080 timeoutSeconds: 1 resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-f9jvj readOnly: true dnsPolicy: ClusterFirst nodeName: minikube restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - name: default-token-f9jvj secret: defaultMode: 420 secretName: default-token-f9jvj status: conditions: - lastProbeTime: null lastTransitionTime: 2018-12-02T10:30:57Z status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: 2018-12-02T10:30:57Z message: 'containers with unready status: [main]' reason: ContainersNotReady status: "False" type: Ready - lastProbeTime: null lastTransitionTime: 2018-12-02T10:30:57Z status: "True" type: PodScheduled containerStatuses: - containerID: docker://29bc9e85f48af23d5fdcd55fe347350245b584bc11d2b27ebce64d69f26d749a image: alpine:latest imageID: docker-pullable://alpine@sha256:621c2f39f8133acb8e64023a94dbdf0d5ca81896102b9e57c0dc184cadaf5528 lastState: {} name: main ready: false restartCount: 0 state: running: startedAt: 2018-12-02T10:30:59Z hostIP: 192.168.64.41 phase: Running podIP: 172.17.0.9 qosClass: BestEffort startTime: 2018-12-02T10:30:57Z <|endoftext|> # argocd_source_pipeline-paused.yaml apiVersion: numaflow.numaproj.io/v1alpha1 kind: Pipeline metadata: creationTimestamp: "2024-10-08T18:22:18Z" finalizers: - pipeline-controller generation: 1 name: simple-pipeline namespace: numaflow-system resourceVersion: "382381" uid: bb6cc91c-eb05-4fe7-9380-63b9532a85db labels: numaplane.numaproj.io/upgrade-state: "in-progress" annotations: numaflow.numaproj.io/allowed-resume-strategies: "slow, fast" spec: edges: - from: in to: cat - from: cat to: out lifecycle: deleteGracePeriodSeconds: 30 desiredPhase: Paused pauseGracePeriodSeconds: 30 limits: bufferMaxLength: 30000 bufferUsageLimit: 80 readBatchSize: 500 readTimeout: 1s vertices: - name: in scale: min: 1 source: generator: duration: 1s jitter: 0s msgSize: 8 rpu: 5 updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate - name: cat scale: min: 1 udf: builtin: name: cat updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate - name: out scale: min: 1 sink: log: {} updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate watermark: disabled: false maxDelay: 0s status: conditions: - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: Configured - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: DaemonServiceHealthy - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: Deployed - lastTransitionTime: "2024-10-09T20:26:54Z" message: No Side Inputs attached to the pipeline reason: NoSideInputs status: "True" type: SideInputsManagersHealthy - lastTransitionTime: "2024-10-09T20:26:54Z" message: All vertices are healthy reason: Successful status: "True" type: VerticesHealthy lastUpdated: "2024-10-09T20:26:54Z" mapUDFCount: 1 observedGeneration: 1 phase: Running reduceUDFCount: 0 sinkCount: 1 sourceCount: 1 udfCount: 1 vertexCount: 3 <|endoftext|> # k8s_docs_kind.yaml apiVersion: kind.x-k8s.io/v1alpha4 kind: Cluster nodes: - role: control-plane extraMounts: - hostPath: "./profiles" containerPath: "/var/lib/kubelet/seccomp/profiles" <|endoftext|> # istio_istiod-pdb-2replicas.golden.yaml # Not created if istiod is running remotely # a workaround for https://github.com/kubernetes/kubernetes/issues/93476 apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: istiod namespace: istio-system labels: app: istiod istio.io/rev: "default" install.operator.istio.io/owning-resource: unknown operator.istio.io/component: "Pilot" release: istiod istio: pilot app.kubernetes.io/name: "istiod" app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istiod" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: istiod-1.0.0 spec: minAvailable: 1 selector: matchLabels: app: istiod istio: pilot <|endoftext|> # k8s_docs_storageclass-local.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: local-storage provisioner: kubernetes.io/no-provisioner # indicates that this StorageClass does not support automatic provisioning volumeBindingMode: WaitForFirstConsumer <|endoftext|> # helm_charts_daemonset-tcp-udp-configMapNamespace-values.yaml controller: kind: DaemonSet service: type: ClusterIP tcp: configMapNamespace: default udp: configMapNamespace: default tcp: 9000: "default/test:8080" udp: 9001: "default/test:8080" <|endoftext|> # istio_gateway-rg-beta.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Upgraded** the gateway-api integration to read `v1beta1` resources for `ReferenceGrant`, `Gateway`, and `GatewayClass`. Users of the gateway-api must be on v0.6.0+ before upgrading Istio. `istioctl x precheck` can detect this issue before upgrading. <|endoftext|> # helm_charts_google-secret.yaml {{- if and .Values.config.google (not .Values.config.google.existingSecret) }} apiVersion: v1 kind: Secret metadata: labels: app: {{ template "oauth2-proxy.name" . }} chart: {{ template "oauth2-proxy.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "oauth2-proxy.fullname" . }}-google type: Opaque data: service-account.json: {{ .serviceAccountJson }} {{- end -}} <|endoftext|> # istio_network-label.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 25500 releaseNotes: - | **Added** The network for a Pod can be specified via the label "topology.istio.io/network". This overrides the setting for the cluster's installation values (values.globalnetwork). If the label isn't set, it is injected based on the global value for the cluster. <|endoftext|> # argocd_source_available.yaml apiVersion: ocs.openshift.io/v1 kind: StorageCluster metadata: name: test-storagecluster namespace: argocd spec: manageNodes: false monDataDirHostPath: /var/lib/rook storageDeviceSets: - name: test-storagecluster-device-set count: 1 resources: limits: cpu: "1" memory: 2Gi requests: cpu: "1" memory: 2Gi portable: true dataPVCTemplate: spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi placement: {} status: conditions: - lastHeartBeatTime: "2023-10-01T12:00:00Z" lastTransitionTime: "2023-10-01T12:00:00Z" message: Version check successful reason: VersionMatched status: "False" type: VersionMismatch - lastHeartBeatTime: "2023-10-01T12:00:00Z" lastTransitionTime: "2023-10-01T12:00:00Z" message: "Reconcile completed successfully" reason: ReconcileCompleted status: "True" type: ReconcileComplete - lastHeartBeatTime: "2023-10-01T12:00:00Z" lastTransitionTime: "2023-10-01T12:00:00Z" message: "Reconcile completed successfully" reason: ReconcileCompleted status: "True" type: Available - lastHeartBeatTime: "2023-10-01T12:00:00Z" lastTransitionTime: "2023-10-01T12:00:00Z" message: "Reconcile completed successfully" reason: ReconcileCompleted status: "False" type: Progressing - lastHeartBeatTime: "2023-10-01T12:00:00Z" lastTransitionTime: "2023-10-01T12:00:00Z" message: Reconcile completed successfully reason: ReconcileCompleted status: "False" type: Degraded - lastHeartBeatTime: "2023-10-01T12:00:00Z" lastTransitionTime: "2023-10-01T12:00:00Z" message: Reconcile completed successfully reason: ReconcileCompleted status: "True" type: Upgradeable <|endoftext|> # helm_charts_agent-daemonset.yaml {{- if .Values.agent.enabled -}} apiVersion: apps/v1beta2 kind: DaemonSet metadata: labels: app: {{ template "kiam.name" . }} chart: {{ template "kiam.chart" . }} component: "{{ .Values.agent.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "kiam.fullname" . }}-agent spec: selector: matchLabels: app: {{ template "kiam.name" . }} component: "{{ .Values.agent.name }}" release: {{ .Release.Name }} {{- if .Values.agent.podLabels }} {{ toYaml .Values.agent.podLabels | indent 6 }} {{- end }} template: metadata: {{- if .Values.agent.podAnnotations }} annotations: {{ toYaml .Values.agent.podAnnotations | indent 8 }} {{- end }} labels: app: {{ template "kiam.name" . }} component: "{{ .Values.agent.name }}" release: {{ .Release.Name }} {{- if .Values.agent.podLabels }} {{ toYaml .Values.agent.podLabels | indent 8 }} {{- end }} spec: hostNetwork: true dnsPolicy: {{ .Values.agent.dnsPolicy }} serviceAccountName: {{ template "kiam.serviceAccountName.agent" . }} {{- if .Values.agent.nodeSelector }} nodeSelector: {{ toYaml .Values.agent.nodeSelector | indent 8 }} {{- end }} tolerations: {{ toYaml .Values.agent.tolerations | indent 8 }} {{- if .Values.agent.affinity }} affinity: {{ toYaml .Values.agent.affinity | indent 10 }} {{- end }} volumes: - name: tls secret: {{- if .Values.agent.tlsSecret }} secretName: {{ .Values.agent.tlsSecret }} {{else}} secretName: {{ template "kiam.fullname" . }}-agent {{- end }} - name: xtables hostPath: path: /run/xtables.lock type: FileOrCreate {{- range .Values.agent.extraHostPathMounts }} - name: {{ .name }} hostPath: path: {{ .hostPath }} {{- end }} {{- if .Values.agent.priorityClassName }} priorityClassName: {{ .Values.agent.priorityClassName | quote }} {{- end }} containers: - name: {{ template "kiam.name" . }}-{{ .Values.agent.name }} {{- if .Values.agent.host.iptables }} securityContext: capabilities: add: ["NET_ADMIN"] {{- end }} image: "{{ .Values.agent.image.repository }}:{{ .Values.agent.image.tag }}" imagePullPolicy: {{ .Values.agent.image.pullPolicy }} command: - /kiam - agent args: {{- if .Values.agent.host.iptables }} - --iptables {{- end }} - --host-interface={{ .Values.agent.host.interface }} {{- if .Values.agent.log.jsonOutput }} - --json-log {{- end }} - --level={{ .Values.agent.log.level }} - --port={{ .Values.agent.host.port }} - --cert=/etc/kiam/tls/{{ .Values.agent.tlsCerts.certFileName }} - --key=/etc/kiam/tls/{{ .Values.agent.tlsCerts.keyFileName }} - --ca=/etc/kiam/tls/{{ .Values.agent.tlsCerts.caFileName }} - --server-address={{ template "kiam.fullname" . }}-server:{{ .Values.server.service.port }} {{- if .Values.agent.prometheus.scrape }} - --prometheus-listen-addr=0.0.0.0:{{ .Values.agent.prometheus.port }} - --prometheus-sync-interval={{ .Values.agent.prometheus.syncInterval }} {{- end }} {{- if .Values.agent.whiteListRouteRegexp }} - --whitelist-route-regexp={{ .Values.agent.whiteListRouteRegexp }} {{- end }} - --gateway-timeout-creation={{ .Values.agent.gatewayTimeoutCreation }} {{- range $key, $value := .Values.agent.extraArgs }} {{- if $value }} - --{{ $key }}={{ $value }} {{- else }} - --{{ $key }} {{- end }} {{- end }} env: - name: HOST_IP valueFrom: fieldRef: fieldPath: status.podIP {{- range $name, $value := .Values.agent.extraEnv }} - name: {{ $name }} value: {{ quote $value }} {{- end }} volumeMounts: - mountPath: /etc/kiam/tls name: tls - mountPath: /var/run/xtables.lock name: xtables {{- range .Values.agent.extraHostPathMounts }} - name: {{ .name }} mountPath: {{ .mountPath }} readOnly: {{ .readOnly }} {{- end }} livenessProbe: httpGet: path: /ping port: {{ .Values.agent.host.port }} initialDelaySeconds: 3 periodSeconds: 3 {{- if .Values.agent.resources }} resources: {{ toYaml .Values.agent.resources | indent 12 }} {{- end }} updateStrategy: type: {{ .Values.agent.updateStrategy }} {{- end }} <|endoftext|> # istio_spire-quickstart.yaml --- apiVersion: v1 kind: Namespace metadata: name: spire --- apiVersion: storage.k8s.io/v1 kind: CSIDriver metadata: name: "csi.spiffe.io" spec: # Only ephemeral, inline volumes are supported. There is no need for a # controller to provision and attach volumes. attachRequired: false # Request the pod information which the CSI driver uses to verify that an # ephemeral mount was requested. podInfoOnMount: true # Don't change ownership on the contents of the mount since the Workload API # Unix Domain Socket is typically open to all (i.e. 0777). fsGroupPolicy: None # Declare support for ephemeral volumes only. volumeLifecycleModes: - Ephemeral --- apiVersion: v1 kind: ServiceAccount metadata: name: spire-server namespace: spire --- # ConfigMap for spire-agent bootstrapping. apiVersion: v1 kind: ConfigMap metadata: name: spire-bundle namespace: spire --- # ClusterRole to allow spire-server to query k8s API server. kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: spire-server-cluster-role rules: # allow TokenReview requests (to verify service account tokens for PSAT # attestation) - apiGroups: ["authentication.k8s.io"] resources: ["tokenreviews"] verbs: ["get", "create"] - apiGroups: [""] resources: ["nodes"] verbs: ["get"] --- # Binds above cluster role to spire-server service account. kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: spire-server-cluster-role-binding subjects: - kind: ServiceAccount name: spire-server namespace: spire roleRef: kind: ClusterRole name: spire-server-cluster-role apiGroup: rbac.authorization.k8s.io --- # Role for the SPIRE server. kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: namespace: spire name: spire-server-role rules: # allow "get" access to pods (to resolve selectors for PSAT attestation) - apiGroups: [""] resources: ["pods"] verbs: ["get"] # allow access to "get" and "patch" the spire-bundle ConfigMap (for SPIRE # agent bootstrapping, see the spire-bundle ConfigMap) - apiGroups: [""] resources: ["configmaps"] resourceNames: ["spire-bundle"] verbs: ["get", "patch"] --- # RoleBinding granting the spire-server-role to the SPIRE server # service account. kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: spire-server-role-binding namespace: spire subjects: - kind: ServiceAccount name: spire-server namespace: spire roleRef: kind: Role name: spire-server-role apiGroup: rbac.authorization.k8s.io --- # ClusterRules for the SPIRE Controller Manager. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: manager-role rules: - apiGroups: [""] resources: ["namespaces"] verbs: ["get", "list", "watch"] - apiGroups: ["admissionregistration.k8s.io"] resources: ["validatingwebhookconfigurations"] verbs: ["get", "list", "patch", "watch"] - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["pods"] verbs: ["get", "list", "watch"] - apiGroups: ["spire.spiffe.io"] resources: ["clusterfederatedtrustdomains"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] - apiGroups: ["spire.spiffe.io"] resources: ["clusterfederatedtrustdomains/finalizers"] verbs: ["update"] - apiGroups: ["spire.spiffe.io"] resources: ["clusterfederatedtrustdomains/status"] verbs: ["get", "patch", "update"] - apiGroups: ["spire.spiffe.io"] resources: ["clusterspiffeids"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] - apiGroups: ["spire.spiffe.io"] resources: ["clusterspiffeids/finalizers"] verbs: ["update"] - apiGroups: ["spire.spiffe.io"] resources: ["clusterspiffeids/status"] verbs: ["get", "patch", "update"] --- # Binds manager-role cluster role to spire-server service account. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: manager-role-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: manager-role subjects: - kind: ServiceAccount name: spire-server namespace: spire --- # Permissions for the SPIRE server to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: leader-election-role namespace: spire rules: - apiGroups: [""] resources: ["configmaps"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] - apiGroups: ["coordination.k8s.io"] resources: ["leases"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] - apiGroups: [""] resources: ["events"] verbs: ["create", "patch"] --- # Binds leader-election-role to spire-server service account. apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: leader-election-role-binding namespace: spire roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: leader-election-role subjects: - kind: ServiceAccount name: spire-server namespace: spire --- # ConfigMap containing the SPIRE server configuration. apiVersion: v1 kind: ConfigMap metadata: name: spire-server namespace: spire data: server.conf: | server { bind_address = "0.0.0.0" bind_port = "8081" trust_domain = "example.org" data_dir = "/run/spire/server/data" log_level = "DEBUG" federation { bundle_endpoint { address = "0.0.0.0" port = 8443 } } } plugins { DataStore "sql" { plugin_data { database_type = "sqlite3" connection_string = "/run/spire/server/data/datastore.sqlite3" } } NodeAttestor "k8s_psat" { plugin_data { clusters = { # NOTE: Change this to your cluster name "demo-cluster" = { service_account_allow_list = ["spire:spire-agent"] } } } } KeyManager "disk" { plugin_data { keys_path = "/run/spire/server/data/keys.json" } } Notifier "k8sbundle" { plugin_data { namespace = "spire" } } } health_checks { listener_enabled = true bind_address = "0.0.0.0" bind_port = "8080" live_path = "/live" ready_path = "/ready" } --- # Configuration for the SPIRE Controller Manager. apiVersion: v1 kind: ConfigMap metadata: name: spire-controller-manager-config namespace: spire data: spire-controller-manager-config.yaml: | apiVersion: spire.spiffe.io/v1alpha1 kind: ControllerManagerConfig metrics: bindAddress: 127.0.0.1:8082 healthProbe: bindAddress: 127.0.0.1:8083 leaderElection: leaderElect: true resourceName: 98c9c988.spiffe.io resourceNamespace: spire clusterName: demo-cluster trustDomain: example.org ignoreNamespaces: - kube-system - kube-public - spire - local-path-storage --- # SPIRE Server Deployment. apiVersion: apps/v1 kind: Deployment metadata: name: spire-server namespace: spire labels: app: spire-server spec: replicas: 1 selector: matchLabels: app: spire-server template: metadata: namespace: spire labels: app: spire-server spec: serviceAccountName: spire-server shareProcessNamespace: true containers: - name: spire-server image: ghcr.io/spiffe/spire-server:1.5.4 imagePullPolicy: IfNotPresent args: - -config - /run/spire/server/config/server.conf livenessProbe: httpGet: path: /live port: 8080 failureThreshold: 2 initialDelaySeconds: 15 periodSeconds: 60 timeoutSeconds: 3 readinessProbe: httpGet: path: /ready port: 8080 initialDelaySeconds: 5 periodSeconds: 5 ports: - containerPort: 8081 volumeMounts: - name: spire-config mountPath: /run/spire/server/config readOnly: true - name: spire-server-socket mountPath: /tmp/spire-server/private readOnly: false - name: spire-controller-manager image: ghcr.io/spiffe/spire-controller-manager:0.2.3 imagePullPolicy: IfNotPresent args: - "--config=spire-controller-manager-config.yaml" ports: - containerPort: 9443 volumeMounts: - name: spire-server-socket mountPath: /spire-server readOnly: true - name: spire-controller-manager-config mountPath: /spire-controller-manager-config.yaml subPath: spire-controller-manager-config.yaml volumes: - name: spire-config configMap: name: spire-server - name: spire-server-socket emptyDir: {} - name: spire-controller-manager-config configMap: name: spire-controller-manager-config --- # Service definition for SPIRE server defining the gRPC port. apiVersion: v1 kind: Service metadata: name: spire-server namespace: spire spec: type: NodePort ports: - name: grpc port: 8081 targetPort: 8081 protocol: TCP selector: app: spire-server --- # Service definition for SPIRE server bundle endpoint. apiVersion: v1 kind: Service metadata: name: spire-server-bundle-endpoint namespace: spire spec: type: NodePort ports: - name: tcp-api port: 8443 protocol: TCP selector: app: spire-server --- # Service definition for SPIRE controller manager webhook. apiVersion: v1 kind: Service metadata: name: spire-controller-manager-webhook-service namespace: spire spec: ports: - name: tcp port: 443 protocol: TCP targetPort: 9443 selector: app: spire-server --- # ClusterFederatedTrustDomains CRD. apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.8.0 creationTimestamp: null name: clusterfederatedtrustdomains.spire.spiffe.io spec: group: spire.spiffe.io names: kind: ClusterFederatedTrustDomain listKind: ClusterFederatedTrustDomainList plural: clusterfederatedtrustdomains singular: clusterfederatedtrustdomain scope: Cluster versions: - additionalPrinterColumns: - jsonPath: .spec.trustDomain name: Trust Domain type: string - jsonPath: .spec.bundleEndpointURL name: Endpoint URL type: string name: v1alpha1 schema: openAPIV3Schema: description: ClusterFederatedTrustDomain is the Schema for the clusterfederatedtrustdomains API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: type: object spec: description: ClusterFederatedTrustDomainSpec defines the desired state of ClusterFederatedTrustDomain properties: bundleEndpointProfile: description: BundleEndpointProfile is the profile for the bundle endpoint. properties: endpointSPIFFEID: description: EndpointSPIFFEID is the SPIFFE ID of the bundle endpoint. It is required for the "https_spiffe" profile. type: string type: description: Type is the type of the bundle endpoint profile. enum: - https_spiffe - https_web type: string required: - type type: object bundleEndpointURL: description: BundleEndpointURL is the URL of the bundle endpoint. It must be an HTTPS URL and cannot contain userinfo (i.e. username/password). type: string trustDomain: description: TrustDomain is the name of the trust domain to federate with (e.g. example.org) pattern: '[a-z0-9._-]{1,255}' type: string trustDomainBundle: description: TrustDomainBundle is the contents of the bundle for the referenced trust domain. This field is optional when the resource is created. type: string required: - bundleEndpointProfile - bundleEndpointURL - trustDomain type: object status: description: ClusterFederatedTrustDomainStatus defines the observed state of ClusterFederatedTrustDomain type: object type: object served: true storage: true subresources: status: {} status: acceptedNames: kind: "" plural: "" conditions: [] storedVersions: [] --- # ClusterSPIFFEID CRD. apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.8.0 creationTimestamp: null name: clusterspiffeids.spire.spiffe.io spec: group: spire.spiffe.io names: kind: ClusterSPIFFEID listKind: ClusterSPIFFEIDList plural: clusterspiffeids singular: clusterspiffeid scope: Cluster versions: - name: v1alpha1 schema: openAPIV3Schema: description: ClusterSPIFFEID is the Schema for the clusterspiffeids API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: type: object spec: description: ClusterSPIFFEIDSpec defines the desired state of ClusterSPIFFEID properties: admin: description: Admin indicates whether or not the SVID can be used to access the SPIRE administrative APIs. Extra care should be taken to only apply this SPIFFE ID to admin workloads. type: boolean dnsNameTemplates: description: DNSNameTemplate represents templates for extra DNS names that are applicable to SVIDs minted for this ClusterSPIFFEID. The node and pod spec are made available to the template under .NodeSpec, .PodSpec respectively. items: type: string type: array downstream: description: Downstream indicates that the entry describes a downstream SPIRE server. type: boolean federatesWith: description: FederatesWith is a list of trust domain names that workloads that obtain this SPIFFE ID will federate with. items: type: string type: array namespaceSelector: description: NamespaceSelector selects the namespaces that are targeted by this CRD. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object podSelector: description: PodSelector selects the pods that are targeted by this CRD. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object spiffeIDTemplate: description: SPIFFEID is the SPIFFE ID template. The node and pod spec are made available to the template under .NodeSpec, .PodSpec respectively. type: string ttl: description: TTL indicates an upper-bound time-to-live for SVIDs minted for this ClusterSPIFFEID. If unset, a default will be chosen. type: string workloadSelectorTemplates: description: WorkloadSelectorTemplates are templates to produce arbitrary workload selectors that apply to a given workload before it will receive this SPIFFE ID. The rendered value is interpreted by SPIRE and are of the form type:value, where the value may, and often does, contain semicolons, .e.g., k8s:container-image:docker/hello-world The node and pod spec are made available to the template under .NodeSpec, .PodSpec respectively. items: type: string type: array required: - spiffeIDTemplate type: object status: description: ClusterSPIFFEIDStatus defines the observed state of ClusterSPIFFEID properties: stats: description: Stats produced by the last entry reconciliation run properties: entriesMasked: description: How many entries were masked by entries for other ClusterSPIFFEIDs. This happens when one or more ClusterSPIFFEIDs produce an entry for the same pod with the same set of workload selectors. type: integer entriesToSet: description: How many entries are to be set for this ClusterSPIFFEID. In nominal conditions, this should reflect the number of pods selected, but not always if there were problems encountered rendering an entry for the pod (RenderFailures) or entries are masked (EntriesMasked). type: integer entryFailures: description: How many entries were unable to be set due to failures to create or update the entries via the SPIRE Server API. type: integer namespacesIgnored: description: How many (selected) namespaces were ignored (based on configuration). type: integer namespacesSelected: description: How many namespaces were selected. type: integer podEntryRenderFailures: description: How many failures were encountered rendering an entry selected pods. This could be due to either a bad template in the ClusterSPIFFEID or Pod metadata that when applied to the template did not produce valid entry values. type: integer podsSelected: description: How many pods were selected out of the namespaces. type: integer type: object type: object type: object served: true storage: true subresources: status: {} status: acceptedNames: kind: "" plural: "" conditions: [] storedVersions: [] --- # ValidatingWebhookConfiguration for validating ClusterSPIFFEID and # ClusterFederatedTrustDomain custom resources. apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: spire-controller-manager-webhook webhooks: - admissionReviewVersions: ["v1"] clientConfig: service: name: spire-controller-manager-webhook-service namespace: spire path: /validate-spire-spiffe-io-v1alpha1-clusterfederatedtrustdomain failurePolicy: Fail name: vclusterfederatedtrustdomain.kb.io rules: - apiGroups: ["spire.spiffe.io"] apiVersions: ["v1alpha1"] operations: ["CREATE", "UPDATE"] resources: ["clusterfederatedtrustdomains"] sideEffects: None - admissionReviewVersions: ["v1"] clientConfig: service: name: spire-controller-manager-webhook-service namespace: spire path: /validate-spire-spiffe-io-v1alpha1-clusterspiffeid failurePolicy: Fail name: vclusterspiffeid.kb.io rules: - apiGroups: ["spire.spiffe.io"] apiVersions: ["v1alpha1"] operations: ["CREATE", "UPDATE"] resources: ["clusterspiffeids"] sideEffects: None --- apiVersion: v1 kind: ServiceAccount metadata: name: spire-agent namespace: spire --- # Required cluster role to allow spire-agent to query k8s API server. kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: spire-agent-cluster-role rules: - apiGroups: [""] resources: ["pods","nodes","nodes/proxy"] verbs: ["get"] --- # Binds above cluster role to spire-agent service account. kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: spire-agent-cluster-role-binding subjects: - kind: ServiceAccount name: spire-agent namespace: spire roleRef: kind: ClusterRole name: spire-agent-cluster-role apiGroup: rbac.authorization.k8s.io --- # ConfigMap for the SPIRE agent featuring: # 1) PSAT node attestation # 2) K8S Workload Attestation over the secure kubelet port apiVersion: v1 kind: ConfigMap metadata: name: spire-agent namespace: spire data: agent.conf: | agent { data_dir = "/run/spire" log_level = "DEBUG" server_address = "spire-server" server_port = "8081" socket_path = "/run/secrets/workload-spiffe-uds/socket" trust_bundle_path = "/run/spire/bundle/bundle.crt" trust_domain = "example.org" } plugins { NodeAttestor "k8s_psat" { plugin_data { # NOTE: Change this to your cluster name cluster = "demo-cluster" } } KeyManager "memory" { plugin_data { } } WorkloadAttestor "k8s" { plugin_data { # Defaults to the secure kubelet port by default. # Minikube does not have a cert in the cluster CA bundle that # can authenticate the kubelet cert, so skip validation. skip_kubelet_verification = true # We need to set disable_container_selectors = true if we make holdApplicationUntilProxyStarts = true in istio # see https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/#ProxyConfig # If true, container selectors are not produced. # This can be used to produce pod selectors when the workload pod is known # but the workload container is not ready at the time of attestation. # disable_container_selectors = true } } WorkloadAttestor "unix" { plugin_data { } } } --- # SPIRE Agent DaemonSet. apiVersion: apps/v1 kind: DaemonSet metadata: name: spire-agent namespace: spire labels: app: spire-agent spec: selector: matchLabels: app: spire-agent template: metadata: namespace: spire labels: app: spire-agent spec: hostPID: true hostNetwork: true dnsPolicy: ClusterFirstWithHostNet serviceAccountName: spire-agent containers: - name: spire-agent image: ghcr.io/spiffe/spire-agent:1.5.4 imagePullPolicy: IfNotPresent args: ["-config", "/run/spire/config/agent.conf"] volumeMounts: - name: spire-config mountPath: /run/spire/config readOnly: true - name: spire-bundle mountPath: /run/spire/bundle readOnly: true - name: spire-agent-socket-dir mountPath: /run/secrets/workload-spiffe-uds - name: spire-token mountPath: /var/run/secrets/tokens # This is the container which runs the SPIFFE CSI driver. - name: spiffe-csi-driver image: ghcr.io/spiffe/spiffe-csi-driver:0.2.0 imagePullPolicy: IfNotPresent args: [ "-workload-api-socket-dir", "/spire-agent-socket", "-csi-socket-path", "/spiffe-csi/csi.sock", ] env: # The CSI driver needs a unique node ID. The node name can be # used for this purpose. - name: MY_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName volumeMounts: # The volume containing the SPIRE agent socket. The SPIFFE CSI # driver will mount this directory into containers. - mountPath: /spire-agent-socket name: spire-agent-socket-dir readOnly: true # The volume that will contain the CSI driver socket shared # with the kubelet and the driver registrar. - mountPath: /spiffe-csi name: spiffe-csi-socket-dir # The volume containing mount points for containers. - mountPath: /var/lib/kubelet/pods mountPropagation: Bidirectional name: mountpoint-dir securityContext: privileged: true # This container runs the CSI Node Driver Registrar which takes care # of all the little details required to register a CSI driver with # the kubelet. - name: node-driver-registrar image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.4.0 imagePullPolicy: IfNotPresent args: [ "-csi-address", "/spiffe-csi/csi.sock", "-kubelet-registration-path", "/var/lib/kubelet/plugins/csi.spiffe.io/csi.sock", ] volumeMounts: # The registrar needs access to the SPIFFE CSI driver socket - mountPath: /spiffe-csi name: spiffe-csi-socket-dir # The registrar needs access to the Kubelet plugin registration # directory - name: kubelet-plugin-registration-dir mountPath: /registration volumes: - name: spire-config configMap: name: spire-agent - name: spire-bundle configMap: name: spire-bundle - name: spire-token projected: sources: - serviceAccountToken: path: spire-agent expirationSeconds: 7200 audience: spire-server # This volume is used to share the workload api socket between the # CSI driver and SPIRE agent - name: spire-agent-socket-dir emptyDir: {} # This volume is where the socket for kubelet->driver communication lives - name: spiffe-csi-socket-dir hostPath: path: /var/lib/kubelet/plugins/csi.spiffe.io type: DirectoryOrCreate # This volume is where the SPIFFE CSI driver mounts volumes - name: mountpoint-dir hostPath: path: /var/lib/kubelet/pods type: Directory # This volume is where the node-driver-registrar registers the plugin # with kubelet - name: kubelet-plugin-registration-dir hostPath: path: /var/lib/kubelet/plugins_registry type: Directory <|endoftext|> # istio_add_trust_domans_san_validator.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - https://github.com/istio/istio/issues/41666 releaseNotes: - | **Added** support for pushing additional federated trust domains from caCertificates to the peer SAN validator. <|endoftext|> # istio_53951.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** errors being raised during cleanup of iptables rules that are conditional on the iptables configuration. <|endoftext|> # grafana_charts_deployment-metrics-generator.yaml {{- if and (.Values.metricsGenerator.enabled) (eq .Values.metricsGenerator.kind "Deployment") }} {{ $dict := dict "ctx" . "component" "metrics-generator" "memberlist" true }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.metricsGenerator.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: minReadySeconds: {{ .Values.metricsGenerator.minReadySeconds }} replicas: {{ .Values.metricsGenerator.replicas }} revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }} selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} template: metadata: labels: {{- include "tempo.podLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} {{- with .Values.tempo.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if or (.Values.metricsGenerator.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.metricsGenerator.priorityClassName .Values.global.priorityClassName }} {{- end }} serviceAccountName: {{ include "tempo.serviceAccountName" . }} {{- with .Values.tempo.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} enableServiceLinks: false {{- include "tempo.metricsGeneratorImagePullSecrets" . | nindent 6 -}} {{- with .Values.metricsGenerator.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: {{- toYaml .Values.metricsGenerator.initContainers | nindent 8 }} containers: - args: - -target=metrics-generator - -config.file=/conf/tempo.yaml {{- with .Values.metricsGenerator.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.imageReference" $dict }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: metrics-generator ports: {{- range .Values.metricsGenerator.ports }} - name: {{ .name | quote }} containerPort: {{ .port }} {{- end }} {{- if or .Values.global.extraEnv .Values.metricsGenerator.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.metricsGenerator.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.metricsGenerator.extraEnvFrom }} envFrom: {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.metricsGenerator.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} livenessProbe: {{- toYaml .Values.tempo.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.tempo.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.metricsGenerator.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config - mountPath: /runtime-config name: runtime-config - mountPath: /var/tempo name: wal {{- if .Values.enterprise.enabled }} - name: license mountPath: /license {{- end }} {{- with .Values.metricsGenerator.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} terminationGracePeriodSeconds: {{ .Values.metricsGenerator.terminationGracePeriodSeconds }} {{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }} {{- with .Values.metricsGenerator.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- with .Values.metricsGenerator.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- include "tempo.configVolume" . | nindent 10 }} - name: runtime-config {{- include "tempo.runtimeVolume" . | nindent 10 }} {{- if .Values.enterprise.enabled }} - name: license secret: secretName: {{ tpl .Values.license.secretName . }} {{- end }} - name: wal emptyDir: {{- toYaml .Values.metricsGenerator.walEmptyDir | nindent 12 }} {{- with .Values.metricsGenerator.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # argocd_examples_catalogue-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: catalogue labels: name: catalogue spec: replicas: 1 selector: matchLabels: name: catalogue template: metadata: labels: name: catalogue spec: containers: - name: catalogue image: weaveworksdemos/catalogue:0.3.5 resources: limits: cpu: 100m memory: 100Mi requests: cpu: 100m memory: 100Mi ports: - containerPort: 80 securityContext: runAsNonRoot: true runAsUser: 10001 capabilities: drop: - all add: - NET_BIND_SERVICE readOnlyRootFilesystem: true livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 300 periodSeconds: 3 readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 180 periodSeconds: 3 nodeSelector: kubernetes.io/os: linux <|endoftext|> # istio_agent-probe-keepalives.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 36390 releaseNotes: - | **Improved** istio-agent health probe rewrite to not re-use connections, mirring Kubernetes' probing behavior. upgradeNotes: - title: Health Probes will no longer re-use connections content: | Health probes using the istio-agent [health probe rewrite](https://istio.io/latest/docs/ops/configuration/mesh/app-health-check/) will now no longer re-use connections for the probe. This behavior was changed to match probing behavior of Kubernetes', and may also improve probe reliability for applications using short idle timeouts. As a result, your application may see more connections (but the same number of HTTP requests) from probes. For most applications, this will not be noticeably different. If you need to revert to the old behavior, the `ENABLE_PROBE_KEEPALIVE_CONNECTION=true` environment variable in the proxy may be set. <|endoftext|> # istio_gauge-empty-metrics.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: [46977] releaseNotes: - | **Fixed** an issue in control plane metrics causing gauge types to emit zero values without labels in addition to the expected metrics. <|endoftext|> # helm_charts_testlink-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "testlink.fullname" . }}-testlink labels: app: "{{ template "testlink.fullname" . }}" chart: "{{ template "testlink.chart" . }}" release: {{ .Release.Name | quote }} heritage: {{ .Release.Name | quote }} spec: accessModes: - {{ .Values.persistence.testlink.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.testlink.size | quote }} {{ include "testlink.storageClass" . }} {{- end -}} <|endoftext|> # helm_charts_k8s-resources-pod.yaml {{- /* Generated from 'k8s-resources-pod' from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/grafana-dashboardDefinitions.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} apiVersion: v1 kind: ConfigMap metadata: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-pod" | trunc 63 | trimSuffix "-" }} annotations: {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} labels: {{- if $.Values.grafana.sidecar.dashboards.label }} {{ $.Values.grafana.sidecar.dashboards.label }}: "1" {{- end }} app: {{ template "prometheus-operator.name" $ }}-grafana {{ include "prometheus-operator.labels" $ | indent 4 }} data: k8s-resources-pod.json: |- { "annotations": { "list": [ ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "hideControls": false, "links": [ ], "refresh": "10s", "rows": [ { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 1, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\", pod_name=\"$pod\", container_name!=\"POD\", cluster=\"$cluster\"}) by (container_name)", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}container_name{{`}}`}}", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Usage", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "CPU Usage", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "styles": [ { "alias": "Time", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "hidden" }, { "alias": "CPU Usage", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #A", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "CPU Requests", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #B", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "CPU Requests %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #C", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "CPU Limits", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #D", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "CPU Limits %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #E", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "Container", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "container", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/.*/", "thresholds": [ ], "type": "string", "unit": "short" } ], "targets": [ { "expr": "sum(label_replace(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name!=\"POD\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "A", "step": 10 }, { "expr": "sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "B", "step": 10 }, { "expr": "sum(label_replace(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container) / sum(kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "C", "step": 10 }, { "expr": "sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "D", "step": 10 }, { "expr": "sum(label_replace(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container) / sum(kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "E", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Quota", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "transform": "table", "type": "table", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "CPU Quota", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 3, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name!=\"POD\", container_name!=\"\"}) by (container_name)", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}container_name{{`}}`}} (RSS)", "legendLink": null, "step": 10 }, { "expr": "sum(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name!=\"POD\", container_name!=\"\"}) by (container_name)", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}container_name{{`}}`}} (Cache)", "legendLink": null, "step": 10 }, { "expr": "sum(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name!=\"POD\", container_name!=\"\"}) by (container_name)", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}container_name{{`}}`}} (Swap)", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Usage", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "bytes", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Memory Usage", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 4, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "styles": [ { "alias": "Time", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "hidden" }, { "alias": "Memory Usage", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #A", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Requests", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #B", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Requests %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #C", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "Memory Limits", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #D", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Limits %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #E", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "Memory Usage (RSS)", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #F", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Usage (Cache)", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #G", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Usage (Swap", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #H", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Container", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "container", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/.*/", "thresholds": [ ], "type": "string", "unit": "short" } ], "targets": [ { "expr": "sum(label_replace(container_memory_usage_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name!=\"POD\", container_name!=\"\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "A", "step": 10 }, { "expr": "sum(kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "B", "step": 10 }, { "expr": "sum(label_replace(container_memory_usage_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\", pod=\"$pod\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "C", "step": 10 }, { "expr": "sum(kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container!=\"\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "D", "step": 10 }, { "expr": "sum(label_replace(container_memory_usage_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name!=\"\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\", pod=\"$pod\"}) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "E", "step": 10 }, { "expr": "sum(label_replace(container_memory_rss{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name != \"\", container_name != \"POD\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "F", "step": 10 }, { "expr": "sum(label_replace(container_memory_cache{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name != \"\", container_name != \"POD\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "G", "step": 10 }, { "expr": "sum(label_replace(container_memory_swap{cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name != \"\", container_name != \"POD\"}, \"container\", \"$1\", \"container_name\", \"(.*)\")) by (container)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "H", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Quota", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "transform": "table", "type": "table", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Memory Quota", "titleSize": "h6" } ], "schemaVersion": 14, "style": "dark", "tags": [ "kubernetes-mixin" ], "templating": { "list": [ { "current": { "text": "Prometheus", "value": "Prometheus" }, "hide": 0, "label": null, "name": "datasource", "options": [ ], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 2, "includeAll": false, "label": "cluster", "multi": false, "name": "cluster", "options": [ ], "query": "label_values(:kube_pod_info_node_count:, cluster)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 0, "includeAll": false, "label": "namespace", "multi": false, "name": "namespace", "options": [ ], "query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 0, "includeAll": false, "label": "pod", "multi": false, "name": "pod", "options": [ ], "query": "label_values(kube_pod_info{cluster=\"$cluster\", namespace=\"$namespace\"}, pod)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "Kubernetes / Compute Resources / Pod", "uid": "6581e46e4e5c7ba40a07646395ef7b23", "version": 0 } {{- end }} <|endoftext|> # k8s_examples_openshift-origin-namespace.yaml kind: Namespace apiVersion: v1 metadata: name: "openshift-origin" labels: name: "openshift-origin" <|endoftext|> # grafana_charts_deployment-table-manager.yaml {{- if .Values.tableManager.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "loki.tableManagerFullname" . }} labels: {{- include "loki.tableManagerLabels" . | nindent 4 }} {{- with .Values.loki.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: replicas: 1 revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} selector: matchLabels: {{- include "loki.tableManagerSelectorLabels" . | nindent 6 }} template: metadata: annotations: {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tableManager.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "loki.tableManagerSelectorLabels" . | nindent 8 }} {{- with .Values.loki.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tableManager.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tableManager.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- include "loki.tableManagerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.tableManager.terminationGracePeriodSeconds }} containers: - name: table-manager image: {{ include "loki.tableManagerImage" . }} imagePullPolicy: {{ .Values.loki.image.pullPolicy }} {{- if or .Values.loki.command .Values.tableManager.command }} command: - {{ coalesce .Values.tableManager.command .Values.loki.command | quote }} {{- end }} args: - -config.file=/etc/loki/config/config.yaml - -target=table-manager {{- with .Values.tableManager.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} ports: - name: http containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP {{- with .Values.tableManager.extraEnv }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.tableManager.extraEnvFrom }} envFrom: {{- toYaml . | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.loki.containerSecurityContext | nindent 12 }} readinessProbe: {{- toYaml .Values.loki.readinessProbe | nindent 12 }} livenessProbe: {{- toYaml .Values.loki.livenessProbe | nindent 12 }} volumeMounts: - name: config mountPath: /etc/loki/config - name: runtime-config mountPath: /var/{{ include "loki.name" . }}-runtime - name: data mountPath: /var/loki {{- with .Values.tableManager.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} resources: {{- toYaml .Values.tableManager.resources | nindent 12 }} {{- if .Values.tableManager.extraContainers }} {{- toYaml .Values.tableManager.extraContainers | nindent 8}} {{- end }} {{- with .Values.tableManager.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.tableManager.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tableManager.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- if .Values.loki.existingSecretForConfig }} secret: secretName: {{ .Values.loki.existingSecretForConfig }} {{- else if .Values.loki.configAsSecret }} secret: secretName: {{ include "loki.fullname" . }}-config {{- else }} configMap: name: {{ include "loki.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "loki.fullname" . }}-runtime - name: data emptyDir: {} {{- with .Values.tableManager.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # helm_charts_service-http.yaml apiVersion: v1 kind: Service metadata: name: {{ template "stellar-core.fullname" . }}-http labels: app: {{ template "stellar-core.name" . }} chart: {{ template "stellar-core.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: {{ .Values.httpService.type }} ports: - port: {{ .Values.httpService.port }} targetPort: http protocol: TCP name: http selector: app: {{ template "stellar-core.name" . }} release: {{ .Release.Name }} <|endoftext|> # istio_59523.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 59523 releaseNotes: - | **Added** an `istioctl analyze` warning (IST0175) when RequestAuthentication resources exist but `BLOCKED_CIDRS_IN_JWKS_URIS` is not configured on istiod. <|endoftext|> # kube_prometheus_prometheus-roleSpecificNamespaces.yaml apiVersion: rbac.authorization.k8s.io/v1 items: - apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: default rules: - apiGroups: - discovery.k8s.io resources: - endpointslices verbs: - get - list - watch - apiGroups: - "" resources: - services - pods verbs: - get - list - watch - apiGroups: - extensions resources: - ingresses verbs: - get - list - watch - apiGroups: - networking.k8s.io resources: - ingresses verbs: - get - list - watch - apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: kube-system rules: - apiGroups: - discovery.k8s.io resources: - endpointslices verbs: - get - list - watch - apiGroups: - "" resources: - services - pods verbs: - get - list - watch - apiGroups: - extensions resources: - ingresses verbs: - get - list - watch - apiGroups: - networking.k8s.io resources: - ingresses verbs: - get - list - watch - apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: monitoring rules: - apiGroups: - discovery.k8s.io resources: - endpointslices verbs: - get - list - watch - apiGroups: - "" resources: - services - pods verbs: - get - list - watch - apiGroups: - extensions resources: - ingresses verbs: - get - list - watch - apiGroups: - networking.k8s.io resources: - ingresses verbs: - get - list - watch kind: RoleList <|endoftext|> # istio_meshctl-bug-report-context-fix.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl # issue is a list of GitHub issues resolved in this note. issue: - https://github.com/istio/istio/issues/35574 releaseNotes: - | **Fixed** an issue in istioctl bug-report where --context and --kubeconfig were not being honored <|endoftext|> # istio_configmap.yaml {{- define "mesh" }} # The trust domain corresponds to the trust root of a system. # Refer to https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE-ID.md#21-trust-domain trustDomain: "cluster.local" # The namespace to treat as the administrative root namespace for Istio configuration. # When processing a leaf namespace Istio will search for declarations in that namespace first # and if none are found it will search in the root namespace. Any matching declaration found in the root namespace # is processed as if it were declared in the leaf namespace. rootNamespace: {{ .Values.meshConfig.rootNamespace | default .Values.global.istioNamespace }} {{ $prom := include "default-prometheus" . | eq "true" }} {{ $sdMetrics := include "default-sd-metrics" . | eq "true" }} {{ $sdLogs := include "default-sd-logs" . | eq "true" }} {{- if or $prom $sdMetrics $sdLogs }} defaultProviders: {{- if or $prom $sdMetrics }} metrics: {{ if $prom }}- prometheus{{ end }} {{ if and $sdMetrics $sdLogs }}- stackdriver{{ end }} {{- end }} {{- if and $sdMetrics $sdLogs }} accessLogging: - stackdriver {{- end }} {{- end }} defaultConfig: {{- if .Values.global.meshID }} meshId: "{{ .Values.global.meshID }}" {{- end }} {{- with (.Values.global.proxy.variant | default .Values.global.variant) }} image: imageType: {{. | quote}} {{- end }} {{- if not (eq .Values.global.proxy.tracer "none") }} tracing: {{- if eq .Values.global.proxy.tracer "lightstep" }} lightstep: # Address of the LightStep Satellite pool address: {{ .Values.global.tracer.lightstep.address }} # Access Token used to communicate with the Satellite pool accessToken: {{ .Values.global.tracer.lightstep.accessToken }} {{- else if eq .Values.global.proxy.tracer "zipkin" }} zipkin: # Address of the Zipkin collector address: {{ ((.Values.global.tracer).zipkin).address | default (print "zipkin." .Values.global.istioNamespace ":9411") }} {{- else if eq .Values.global.proxy.tracer "datadog" }} datadog: # Address of the Datadog Agent address: {{ ((.Values.global.tracer).datadog).address | default "$(HOST_IP):8126" }} {{- else if eq .Values.global.proxy.tracer "stackdriver" }} stackdriver: # enables trace output to stdout. debug: {{ (($.Values.global.tracer).stackdriver).debug | default "false" }} # The global default max number of attributes per span. maxNumberOfAttributes: {{ (($.Values.global.tracer).stackdriver).maxNumberOfAttributes | default "200" }} # The global default max number of annotation events per span. maxNumberOfAnnotations: {{ (($.Values.global.tracer).stackdriver).maxNumberOfAnnotations | default "200" }} # The global default max number of message events per span. maxNumberOfMessageEvents: {{ (($.Values.global.tracer).stackdriver).maxNumberOfMessageEvents | default "200" }} {{- end }} {{- end }} {{- if .Values.global.remotePilotAddress }} {{- if and .Values.istiodRemote.enabled .Values.istiodRemote.enabledLocalInjectorIstiod }} # only primary `istiod` to xds and local `istiod` injection installs. discoveryAddress: {{ printf "istiod-remote.%s.svc" .Release.Namespace }}:15012 {{- else }} discoveryAddress: {{ printf "istiod.%s.svc" .Release.Namespace }}:15012 {{- end }} {{- else }} discoveryAddress: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }}.{{.Release.Namespace}}.svc:15012 {{- end }} {{- end }} {{/* We take the mesh config above, defined with individual values.yaml, and merge with .Values.meshConfig */}} {{/* The intent here is that meshConfig.foo becomes the API, rather than re-inventing the API in values.yaml */}} {{- $originalMesh := include "mesh" . | fromYaml }} {{- $mesh := mergeOverwrite $originalMesh .Values.meshConfig }} {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} {{- if .Values.configMap }} apiVersion: v1 kind: ConfigMap metadata: name: istio{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} namespace: {{ .Release.Namespace }} labels: istio.io/rev: {{ .Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" release: {{ .Release.Name }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} data: # Configuration file for the mesh networks to be used by the Split Horizon EDS. meshNetworks: |- {{- if .Values.global.meshNetworks }} networks: {{ toYaml .Values.global.meshNetworks | trim | indent 6 }} {{- else }} networks: {} {{- end }} mesh: |- {{- if .Values.meshConfig }} {{ $mesh | toYaml | indent 4 }} {{- else }} {{- include "mesh" . }} {{- end }} --- {{- end }} {{- end }} <|endoftext|> # helm_charts_bootnode.deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "ethereum.fullname" . }}-bootnode labels: app: {{ template "ethereum.name" . }} chart: {{ template "ethereum.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: bootnode spec: replicas: 1 selector: matchLabels: app: {{ template "ethereum.name" . }} release: {{ .Release.Name }} component: bootnode template: metadata: labels: app: {{ template "ethereum.name" . }} release: {{ .Release.Name }} component: bootnode spec: containers: - name: bootnode image: {{ .Values.bootnode.image.repository }}:{{ .Values.bootnode.image.tag }} imagePullPolicy: {{ .Values.imagePullPolicy }} command: ["/bin/sh"] args: - "-c" - "bootnode --nodekey=/etc/bootnode/node.key --verbosity=4" volumeMounts: - name: data mountPath: /etc/bootnode ports: - name: discovery containerPort: 30301 protocol: UDP - name: bootnode-server image: {{ .Values.bootnode.image.repository }}:{{ .Values.bootnode.image.tag }} imagePullPolicy: {{.Values.imagePullPolicy}} command: ["/bin/sh"] args: - "-c" - "while [ 1 ]; do echo -e \"HTTP/1.1 200 OK\n\nenode://$(bootnode -writeaddress --nodekey=/etc/bootnode/node.key)@$(POD_IP):30301\" | nc -l -v -p 80 || break; done;" volumeMounts: - name: data mountPath: /etc/bootnode env: - name: POD_IP valueFrom: fieldRef: fieldPath: status.podIP ports: - containerPort: 80 initContainers: - name: genkey image: {{ .Values.bootnode.image.repository }}:{{ .Values.bootnode.image.tag }} imagePullPolicy: {{ .Values.imagePullPolicy }} command: ["/bin/sh"] args: - "-c" - "bootnode --genkey=/etc/bootnode/node.key" volumeMounts: - name: data mountPath: /etc/bootnode volumes: - name: data emptyDir: {} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # k8s_docs_podsecurity-restricted.yaml apiVersion: v1 kind: Namespace metadata: name: my-restricted-namespace labels: pod-security.kubernetes.io/enforce: restricted pod-security.kubernetes.io/enforce-version: latest pod-security.kubernetes.io/warn: restricted pod-security.kubernetes.io/warn-version: latest <|endoftext|> # helm_charts_role-binding-pipeline.yaml {{ if and .Values.rbac.create (or .Values.server.kubernetes.enabled .Values.runner.enabled ) -}} apiVersion: rbac.authorization.k8s.io/{{ required "A valid .Values.rbac.apiVersion entry required!" .Values.rbac.apiVersion }} kind: ClusterRoleBinding metadata: name: {{ template "drone.fullname" . }}-pipeline labels: app: {{ template "drone.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" subjects: - kind: ServiceAccount name: {{ template "drone.pipelineServiceAccount" . }} namespace: {{ default .Release.Namespace .Values.server.kubernetes.namespace }} roleRef: kind: ClusterRole name: {{ template "drone.fullname" . }}-pipeline apiGroup: rbac.authorization.k8s.io {{- end -}} <|endoftext|> # grafana_charts_runtime-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "enterprise-metrics.fullname" . }}-runtime labels: app: {{ template "enterprise-metrics.name" . }} chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: runtime.yaml: | {{ tpl (toYaml .Values.runtimeConfig) . | nindent 4 }} <|endoftext|> # istio_hello-namespace.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello namespace: test spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_docs_cpu-defaults-pod.yaml apiVersion: v1 kind: Pod metadata: name: default-cpu-demo spec: containers: - name: default-cpu-demo-ctr image: nginx <|endoftext|> # argocd_source_external-secret.yaml apiVersion: external-secrets.io/v1alpha1 kind: ExternalSecret metadata: creationTimestamp: '2021-11-16T21:59:33Z' generation: 1 name: test-healthy namespace: argocd resourceVersion: '136487331' selfLink: /apis/external-secrets.io/v1alpha1/namespaces/argocd/externalsecrets/test-healthy uid: 1e754a7e-0781-4d57-932d-4651d5b19586 spec: data: - remoteRef: key: secret/sa/example property: api.address secretKey: url - remoteRef: key: secret/sa/example property: ca.crt secretKey: ca - remoteRef: key: secret/sa/example property: token secretKey: token refreshInterval: 1m secretStoreRef: kind: SecretStore name: example target: creationPolicy: Owner template: data: config: | { "bearerToken": "{{ .token | base64decode | toString }}", "tlsClientConfig": { "insecure": false, "caData": "{{ .ca | toString }}" } } name: cluster-test server: '{{ .url | toString }}' metadata: labels: argocd.argoproj.io/secret-type: cluster status: conditions: - lastTransitionTime: '2021-11-16T21:59:34Z' message: Secret was synced reason: SecretSynced status: 'True' type: Ready refreshTime: '2021-11-29T18:32:24Z' syncedResourceVersion: 1-519a61da0dc68b2575b4f8efada70e42 <|endoftext|> # argocd_source_unknown.yaml apiVersion: pxc.percona.com/v1 kind: PerconaXtraDBCluster metadata: name: quickstart spec: {} status: backup: {} haproxy: {} host: pxc-mysql-pxc logcollector: {} observedGeneration: 1 pmm: {} proxysql: {} pxc: image: '' ready: 1 size: 1 status: dontknow version: 8.0.21-12.1 ready: 1 size: 1 state: dontknow <|endoftext|> # k8s_docs_replicaset-merged.yaml apiVersion: v1 kind: Pod metadata: name: frontend labels: app: guestbook role: frontend annotations: podpreset.admission.kubernetes.io/podpreset-allow-database: "resource version" spec: containers: - name: php-redis image: gcr.io/google_samples/gb-frontend:v3 resources: requests: cpu: 100m memory: 100Mi volumeMounts: - mountPath: /cache name: cache-volume env: - name: GET_HOSTS_FROM value: dns - name: DB_PORT value: "6379" ports: - containerPort: 80 volumes: - name: cache-volume emptyDir: {} <|endoftext|> # argocd_source_reconciling.yaml apiVersion: kafka.banzaicloud.io/v1beta1 kind: KafkaCluster metadata: finalizers: - finalizer.kafkaclusters.kafka.banzaicloud.io - topics.kafkaclusters.kafka.banzaicloud.io - users.kafkaclusters.kafka.banzaicloud.io generation: 4 labels: argocd.argoproj.io/instance: kafka-cluster controller-tools.k8s.io: "1.0" name: kafkacluster namespace: kafka name: kafkacluster namespace: kafka resourceVersion: "31935335" selfLink: /apis/kafka.banzaicloud.io/v1beta1/namespaces/2269-kafka/kafkaclusters/kafkacluster uid: c6affef0-651d-44c7-8bff-638961517c8d spec: {} status: alertCount: 0 brokersState: "0": configurationState: ConfigInSync gracefulActionState: cruiseControlState: GracefulUpscaleSucceeded errorMessage: CruiseControl not yet ready rackAwarenessState: | broker.rack=us-east-1,us-east-1c "1": configurationState: ConfigInSync gracefulActionState: cruiseControlState: GracefulUpscaleSucceeded errorMessage: CruiseControl not yet ready rackAwarenessState: | broker.rack=us-east-1,us-east-1b "2": configurationState: ConfigInSync gracefulActionState: cruiseControlState: GracefulUpscaleSucceeded errorMessage: CruiseControl not yet ready rackAwarenessState: | broker.rack=us-east-1,us-east-1a cruiseControlTopicStatus: CruiseControlTopicNotReady rollingUpgradeStatus: errorCount: 0 lastSuccess: "" state: ClusterReconciling <|endoftext|> # argocd_source_keda-suspended.yaml apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: annotations: finalizers: - finalizer.keda.sh labels: argocd.argoproj.io/instance: keda-default name: keda namespace: keda resourceVersion: '160591442' uid: 73ee438a-f383-43f3-9346-b901d9773f4b spec: maxReplicaCount: 3 minReplicaCount: 0 scaleTargetRef: name: backstage triggers: - metadata: desiredReplicas: '1' end: 00 17 * * 1-5 start: 00 08 * * 1-5 timezone: Europe/Stockholm type: cron status: conditions: - message: ScaledObject is defined correctly and is ready for scaling reason: ScaledObjectReady status: 'True' type: Ready - message: ScaledObject check failed reason: UnknownState status: Unknown type: Active - status: Unknown type: Fallback - message: ScaledObject is paused reason: ScaledObjectPaused status: 'True' type: Paused externalMetricNames: - s0-cron-Europe-Stockholm-0008xx1-5-0019xx1-5 hpaName: keda-hpa-backstage-kambi-standard-chart lastActiveTime: '2023-12-18T17:59:55Z' originalReplicaCount: 1 scaleTargetGVKR: group: apps kind: Deployment resource: deployments version: v1 scaleTargetKind: apps/v1.Deployment <|endoftext|> # helm_charts_secret-aws.yaml {{- if .Values.aws -}} apiVersion: v1 kind: Secret metadata: name: {{ template "atlantis.fullname" . }}-aws labels: app: {{ template "atlantis.name" . }} chart: {{ template "atlantis.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: {{- if .Values.aws.credentials }} credentials: {{ .Values.aws.credentials | b64enc }} {{- end }} config: {{ .Values.aws.config | b64enc }} {{- end -}} <|endoftext|> # istio_invalid-k8s.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: name: istio-operator spec: profile: ambient components: ztunnel: enabled: true k8s: resources: requests: cpu: 100m memory: 100Mi limits: cpu: 200m memory: 200Mi tolerations: - thats: not-a-real-field <|endoftext|> # helm_charts_dashboards-json-configmap.yaml {{- if .Values.dashboards }} {{ $files := .Files }} {{- range $provider, $dashboards := .Values.dashboards }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "grafana.fullname" $ }}-dashboards-{{ $provider }} namespace: {{ template "grafana.namespace" $ }} labels: {{- include "grafana.labels" $ | nindent 4 }} dashboard-provider: {{ $provider }} {{- if $dashboards }} data: {{- $dashboardFound := false }} {{- range $key, $value := $dashboards }} {{- if (or (hasKey $value "json") (hasKey $value "file")) }} {{- $dashboardFound = true }} {{ print $key | indent 2 }}.json: {{- if hasKey $value "json" }} |- {{ $value.json | indent 6 }} {{- end }} {{- if hasKey $value "file" }} {{ toYaml ( $files.Get $value.file ) | indent 4}} {{- end }} {{- end }} {{- end }} {{- if not $dashboardFound }} {} {{- end }} {{- end }} --- {{- end }} {{- end }} <|endoftext|> # helm_charts_controller-hpa.yaml {{- if or (eq .Values.controller.kind "Deployment") (eq .Values.controller.kind "Both") }} {{- if .Values.controller.autoscaling.enabled }} apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.controller.fullname" . }} spec: scaleTargetRef: apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment name: {{ template "nginx-ingress.controller.fullname" . }} minReplicas: {{ .Values.controller.autoscaling.minReplicas }} maxReplicas: {{ .Values.controller.autoscaling.maxReplicas }} metrics: {{- with .Values.controller.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory targetAverageUtilization: {{ . }} {{- end }} {{- with .Values.controller.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu targetAverageUtilization: {{ . }} {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_prometheusrules.yaml {{- if .Values.prometheus.prometheusRule.enabled }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ template "metallb.fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "metallb.chart" . }} app: {{ template "metallb.name" . }} spec: groups: - name: {{ template "metallb.fullname" . }}.rules rules: - alert: MetalLBStaleConfig annotations: message: {{`'{{ $labels.job }} - MetalLB {{ $labels.container_name }} on {{ $labels.instance }} has a stale config for > 1 minute'`}} expr: metallb_k8s_client_config_stale_bool{job="{{ .Values.prometheus.serviceMonitor.jobLabel }}"} == 1 for: 1m labels: severity: warning - alert: MetalLBConfigNotLoaded annotations: message: {{`'{{ $labels.job }} - MetalLB {{ $labels.container_name }} on {{ $labels.instance }} has not loaded for > 1 minute'`}} expr: metallb_k8s_client_config_loaded_bool{job="{{ .Values.prometheus.serviceMonitor.jobLabel }}"} == 0 for: 1m labels: severity: warning {{- end }} <|endoftext|> # kube_prometheus_prometheusAdapter-networkPolicy.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: labels: app.kubernetes.io/component: metrics-adapter app.kubernetes.io/name: prometheus-adapter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.12.0 name: prometheus-adapter namespace: monitoring spec: egress: - {} ingress: - {} podSelector: matchLabels: app.kubernetes.io/component: metrics-adapter app.kubernetes.io/name: prometheus-adapter app.kubernetes.io/part-of: kube-prometheus policyTypes: - Egress - Ingress <|endoftext|> # k8s_docs_storageclass-aws-ebs.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: ebs-sc provisioner: ebs.csi.aws.com volumeBindingMode: WaitForFirstConsumer parameters: csi.storage.k8s.io/fstype: xfs type: io1 iopsPerGB: "50" encrypted: "true" tagSpecification_1: "key1=value1" tagSpecification_2: "key2=value2" allowedTopologies: - matchLabelExpressions: - key: topology.ebs.csi.aws.com/zone values: - us-east-2c <|endoftext|> # istio_45506.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 45506 releaseNotes: - | **Fixed** When using a ServiceEntry with DNS resolution multi-network endpoints will now go through the gateway. <|endoftext|> # k8s_docs_replicalimit-param.yaml apiVersion: rules.example.com/v1 kind: ReplicaLimit metadata: name: "replica-limit-test.example.com" namespace: "default" maxReplicas: 3 <|endoftext|> # istio_28344.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - https://github.com/istio/istio/issues/28040 releaseNotes: - | **Added** Add pprof endpoint to pilot-agent. <|endoftext|> # istio_gateways-with-custom-tags-and-no-labels.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: name: install spec: components: ingressGateways: - name: istio-ingressgateway tag: "special-tag" egressGateways: - enabled: true name: istio-egressgateway tag: "special-tag2" <|endoftext|> # helm_charts_driver-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "cosbench.driver.fullname" . }} labels: app: {{ template "cosbench.name" . }} chart: {{ template "cosbench.chart" . }} component: driver heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: serviceName: {{ template "cosbench.driver.fullname" . }} replicas: {{ .Values.driver.replicaCount }} selector: matchLabels: app: {{ template "cosbench.name" . }} component: driver release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "cosbench.name" . }} component: driver release: "{{ .Release.Name }}" spec: serviceAccountName: {{ template "cosbench.serviceAccountName.driver" . }} containers: - name: {{ template "cosbench.driver.fullname" . }} image: "{{ .Values.driver.image.repository }}:{{ .Values.driver.image.tag }}" imagePullPolicy: {{ .Values.driver.image.pullPolicy }} ports: - name: driver containerPort: 18088 protocol: TCP env: - name: LOG_LEVEL value: "{{ .Values.driver.logLevel }}" args: ['java','-Dcosbench.tomcat.config=conf/driver-tomcat-server.xml','-server','-cp','main/*','org.eclipse.equinox.launcher.Main','-configuration','conf/.driver','-console','18089'] resources: {{ toYaml .Values.driver.resources | indent 12 }} affinity: podAntiAffinity: {{- if eq .Values.driver.antiAffinity "hard" }} requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ template "cosbench.name" . }} component: driver release: {{ .Release.Name | quote }} {{- else if eq .Values.driver.antiAffinity "soft" }} preferredDuringSchedulingIgnoredDuringExecution: - weight: {{ .Values.driver.antiAffinityWeight }} podAffinityTerm: topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ template "cosbench.name" . }} component: driver release: {{ .Release.Name | quote }} {{- end }} {{- if .Values.driver.hostAliases }} hostAliases: {{ toYaml .Values.driver.hostAliases | indent 8 }} {{- end }} <|endoftext|> # argocd_source_statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: creationTimestamp: "2019-09-13T08:52:54Z" generation: 2 labels: app.kubernetes.io/instance: extensions name: statefulset namespace: statefulset resourceVersion: "7471813" selfLink: /apis/apps/v1/namespaces/statefulset/statefulsets/statefulset uid: dfe8fadf-d603-11e9-9e69-42010aa8005f spec: podManagementPolicy: OrderedReady replicas: 3 revisionHistoryLimit: 10 selector: matchLabels: app: statefulset serviceName: statefulset template: metadata: labels: app: statefulset spec: containers: - image: registry.k8s.io/nginx-slim:0.8 imagePullPolicy: IfNotPresent name: nginx resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 updateStrategy: rollingUpdate: partition: 0 type: RollingUpdate status: collisionCount: 0 currentReplicas: 3 currentRevision: statefulset-85b7f767c6 observedGeneration: 2 readyReplicas: 3 replicas: 3 updateRevision: statefulset-85b7f767c6 updatedReplicas: 3 <|endoftext|> # grafana_charts_networkpolicy.yaml {{- if .Values.networkPolicy.enabled }} --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ template "promtail.name" . }}-namespace-only namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} spec: podSelector: {} policyTypes: - Ingress - Egress egress: - to: - podSelector: {} ingress: - from: - podSelector: {} --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ template "promtail.name" . }}-egress-dns namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} spec: podSelector: matchLabels: {{- include "promtail.selectorLabels" . | nindent 6 }} policyTypes: - Egress egress: - ports: - port: 53 protocol: UDP to: - namespaceSelector: {} --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ template "promtail.name" . }}-egress-k8s-api namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} spec: podSelector: matchLabels: {{- include "promtail.selectorLabels" . | nindent 6 }} policyTypes: - Egress egress: - ports: - port: {{ .Values.networkPolicy.k8sApi.port }} protocol: TCP {{- if len .Values.networkPolicy.k8sApi.cidrs }} to: {{- range $cidr := .Values.networkPolicy.k8sApi.cidrs }} - ipBlock: cidr: {{ $cidr }} {{- end }} {{- end }} --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ template "promtail.name" . }}-ingress-metrics namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} spec: podSelector: matchLabels: {{- include "promtail.selectorLabels" . | nindent 6 }} policyTypes: - Ingress ingress: - ports: - port: http-metrics protocol: TCP {{- if len .Values.networkPolicy.metrics.cidrs }} from: {{- range $cidr := .Values.networkPolicy.metrics.cidrs }} - ipBlock: cidr: {{ $cidr }} {{- end }} {{- if .Values.networkPolicy.metrics.namespaceSelector }} - namespaceSelector: {{- toYaml .Values.networkPolicy.metrics.namespaceSelector | nindent 12 }} {{- if .Values.networkPolicy.metrics.podSelector }} podSelector: {{- toYaml .Values.networkPolicy.metrics.podSelector | nindent 12 }} {{- end }} {{- end }} {{- end }} {{- if .Values.extraPorts }} --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ template "promtail.name" . }}-egress-extra-ports namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} spec: podSelector: matchLabels: {{- include "promtail.selectorLabels" . | nindent 6 }} policyTypes: - Egress egress: - ports: {{- range $extraPortConfig := .Values.extraPorts }} - port: {{ $extraPortConfig.containerPort }} protocol: {{ $extraPortConfig.protocol }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_gateways-shared.yaml # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: proxy-service-instance spec: hosts: - example.com ports: - number: 80 name: http protocol: HTTP - number: 443 name: https protocol: HTTPS resolution: STATIC endpoints: - address: 1.1.1.1 labels: istio.io/benchmark: "true" --- apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: gateway namespace: gateway spec: selector: istio.io/benchmark: "true" servers: - port: number: 80 name: http protocol: HTTP hosts: - random-1.host.example - random-2.host.example - random-3.host.example - port: number: 443 name: https protocol: HTTPS hosts: - random-1.host.example - random-2.host.example - random-3.host.example tls: mode: ISTIO_MUTUAL --- {{- range $i := until .Services }} apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: vs-{{$i}} namespace: gateway spec: hosts: - random-1.host.example - random-2.host.example - random-3.host.example gateways: - gateway/gateway http: - match: - uri: prefix: "/route-a-{{$i}}" - uri: prefix: "/route-b-{{$i}}" - uri: prefix: "/route-c-{{$i}}" - uri: prefix: "/route-d-{{$i}}" - uri: prefix: "/route-e-{{$i}}" - uri: prefix: "/route-f-{{$i}}" route: - destination: host: random-{{$i}}.host.example --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-{{$i}} spec: hosts: - random-{{$i}}.host.example ports: - number: 80 name: http protocol: HTTP resolution: STATIC endpoints: - address: 1.2.3.4 --- {{- end }} <|endoftext|> # grafana_charts_overrides-exporter-dep.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: {{- toYaml .Values.overrides_exporter.annotations | nindent 4 }} labels: app: {{ template "enterprise-metrics.name" . }}-overrides-exporter chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "enterprise-metrics.fullname" . }}-overrides-exporter spec: replicas: {{ .Values.overrides_exporter.replicas }} selector: matchLabels: app: {{ template "enterprise-metrics.name" . }}-overrides-exporter release: {{ .Release.Name }} strategy: {{- toYaml .Values.overrides_exporter.strategy | nindent 4 }} template: metadata: labels: app: {{ template "enterprise-metrics.name" . }}-overrides-exporter # The name label is important for cortex-mixin compatibility which expects certain names for services. name: overrides-exporter gossip_ring_member: "true" target: overrides-exporter release: {{ .Release.Name }} {{- with .Values.overrides_exporter.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: {{- if .Values.useExternalConfig }} checksum/config: {{ .Values.externalConfigVersion }} {{- else }} checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- end}} {{- with .Values.overrides_exporter.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ template "enterprise-metrics.serviceAccountName" . }} {{- if .Values.overrides_exporter.priorityClassName }} priorityClassName: {{ .Values.overrides_exporter.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.overrides_exporter.securityContext | nindent 8 }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} {{- with .Values.overrides_exporter.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: {{- toYaml .Values.overrides_exporter.initContainers | nindent 8 }} containers: - name: overrides-exporter image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - "-target=overrides-exporter" - "-config.file=/etc/enterprise-metrics/enterprise-metrics.yaml" {{- if .Values.minio.enabled }} - -admin.client.backend-type=s3 - -admin.client.s3.endpoint={{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000 - -admin.client.s3.bucket-name=enterprise-metrics-admin - -admin.client.s3.access-key-id=enterprise-metrics - -admin.client.s3.secret-access-key=supersecret - -admin.client.s3.insecure=true {{- end }} {{- range $key, $value := .Values.overrides_exporter.extraArgs }} - "-{{ $key }}={{ $value }}" {{- end }} volumeMounts: {{- if .Values.overrides_exporter.extraVolumeMounts }} {{ toYaml .Values.overrides_exporter.extraVolumeMounts | nindent 12}} {{- end }} - name: config mountPath: /etc/enterprise-metrics - name: runtime-config mountPath: /var/enterprise-metrics - name: license mountPath: /license - name: storage mountPath: "/data" subPath: {{ .Values.overrides_exporter.persistence.subPath }} ports: - name: http-metrics containerPort: {{ .Values.config.server.http_listen_port }} protocol: TCP - name: grpc containerPort: {{ .Values.config.server.grpc_listen_port }} protocol: TCP livenessProbe: {{- toYaml .Values.overrides_exporter.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.overrides_exporter.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.overrides_exporter.resources | nindent 12 }} securityContext: readOnlyRootFilesystem: true env: {{- if .Values.overrides_exporter.env }} {{ toYaml .Values.overrides_exporter.env | nindent 12 }} {{- end }} {{- with .Values.overrides_exporter.extraContainers }} {{ toYaml . | nindent 8 }} {{- end }} nodeSelector: {{- toYaml .Values.overrides_exporter.nodeSelector | nindent 8 }} affinity: {{- toYaml .Values.overrides_exporter.affinity | nindent 8 }} tolerations: {{- toYaml .Values.overrides_exporter.tolerations | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.overrides_exporter.terminationGracePeriodSeconds }} volumes: - name: config secret: {{- if .Values.useExternalConfig }} secretName: {{ .Values.externalConfigSecretName }} {{- else }} secretName: {{ template "enterprise-metrics.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "enterprise-metrics.fullname" . }}-runtime {{- if .Values.overrides_exporter.extraVolumes }} {{ toYaml .Values.overrides_exporter.extraVolumes | nindent 8}} {{- end }} - name: license secret: secretName: {{ .Values.license.secretName }} - name: storage emptyDir: {} {{- if .Values.minio.enabled }} - name: minio-configuration projected: sources: - configMap: name: {{ .Release.Name }}-minio - secret: name: {{ .Release.Name }}-minio {{- if .Values.minio.tls.enabled }} - name: cert-secret-volume-mc secret: secretName: {{ .Values.minio.tls.certSecret }} items: - key: {{ .Values.minio.tls.publicCrt }} path: CAs/public.crt {{- end }} {{- end }} <|endoftext|> # istio_49960.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 48126 releaseNotes: - | **Fixed** an issue where telemetry `EnvoyFilter` resources are not correctly pruned during the installation process. <|endoftext|> # istio_peerauthentication-crd.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: peerauthentications.security.istio.io spec: <|endoftext|> # argocd_source_missing-sha-and-not-ready.yaml apiVersion: promoter.argoproj.io/v1alpha1 kind: PromotionStrategy metadata: name: strategy namespace: test spec: activeCommitStatuses: - key: argocd-health environments: - autoMerge: true branch: environments/qal-usw2 - autoMerge: true branch: environments/e2e-usw2 gitRepositoryRef: name: repo status: conditions: - lastTransitionTime: '2025-10-15T16:31:47Z' message: 'ChangeTransferPolicy "strategy-environments-qal-usw2-27894e05" is not Ready because "ReconciliationError": Reconciliation failed: failed to calculate ChangeTransferPolicy status: failed to get SHAs for proposed branch "environments/qal-usw2-next": exit status 128: fatal: ''origin/environments/qal-usw2-next'' is not a commit and a branch ''environments/qal-usw2-next'' cannot be created from it' observedGeneration: 1 reason: ChangeTransferPolicyNotReady status: 'False' type: Ready environments: - active: dry: {} hydrated: {} branch: environments/qal-usw2 proposed: dry: {} hydrated: {} - active: dry: {} hydrated: {} branch: environments/e2e-usw2 proposed: dry: {} hydrated: {} <|endoftext|> # flux_source_podinfo-without-service-result.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo namespace: default spec: minReadySeconds: 3 progressDeadlineSeconds: 60 revisionHistoryLimit: 5 selector: matchLabels: app: podinfo strategy: rollingUpdate: maxUnavailable: 0 type: RollingUpdate template: metadata: annotations: prometheus.io/port: "9797" prometheus.io/scrape: "true" labels: app: podinfo spec: containers: - command: - ./podinfo - --port=9898 - --port-metrics=9797 - --grpc-port=9999 - --grpc-service-name=podinfo - --level=info - --random-delay=false - --random-error=false env: - name: PODINFO_UI_COLOR value: '#34577c' image: ghcr.io/stefanprodan/podinfo:6.0.3 imagePullPolicy: IfNotPresent livenessProbe: exec: command: - podcli - check - http - localhost:9898/healthz initialDelaySeconds: 5 timeoutSeconds: 5 name: podinfod ports: - containerPort: 9898 name: http protocol: TCP - containerPort: 9797 name: http-metrics protocol: TCP - containerPort: 9999 name: grpc protocol: TCP readinessProbe: exec: command: - podcli - check - http - localhost:9898/readyz initialDelaySeconds: 5 timeoutSeconds: 5 resources: limits: cpu: 2000m memory: 512Mi requests: cpu: 100m memory: 64Mi --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo namespace: default spec: maxReplicas: 4 metrics: - resource: name: cpu target: averageUtilization: 99 type: Utilization type: Resource minReplicas: 2 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: podinfo --- <|endoftext|> # k8s_examples_gpu-horizontal-pod-autoscaler.yaml # This HorizontalPodAutoscaler (HPA) targets the vLLM deployment and scales # it based on the average GPU utilization across all pods. It uses the # custom metric 'gpu_utilization_percent', which is provided by the # Prometheus Adapter. apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: gemma-server-gpu-hpa spec: # scaleTargetRef points the HPA to the deployment it needs to scale. scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: vllm-gemma-deployment minReplicas: 1 maxReplicas: 5 metrics: - type: Pods pods: metric: # This is the custom metric that the HPA will query. # IMPORTANT: This name ('gpu_utilization_percent') is not the raw metric # from the DCGM exporter. It is the clean, renamed metric that is # exposed by the Prometheus Adapter. The names must match exactly. name: gpu_utilization_percent target: type: AverageValue # This is the target value for the metric. The HPA will add or remove # pods to keep the average GPU utilization across all pods at 20%. averageValue: 20 behavior: scaleUp: # The stabilizationWindowSeconds is set to 0 to allow for immediate # scaling up. This is a trade-off: # - For highly volatile workloads, immediate scaling is critical to # maintain performance and responsiveness. # - However, this also introduces a risk of over-scaling if the workload # spikes are very brief. A non-zero value would make the scaling # less sensitive to short-lived spikes, but could introduce latency # if the load persists. stabilizationWindowSeconds: 0 policies: - type: Pods value: 4 periodSeconds: 15 - type: Percent value: 100 periodSeconds: 15 selectPolicy: Max scaleDown: # The stabilizationWindowSeconds is set to 30 to prevent the HPA from # scaling down too aggressively. This means the controller will wait for # 30 seconds after a scale-down event before considering another one. # This helps to smooth out the scaling behavior and prevent "flapping" # (rapidly scaling up and down). A larger value will make the scaling # more conservative, which can be useful for workloads with fluctuating # metrics, but it may also result in higher costs if the resources are # not released quickly after a load decrease. stabilizationWindowSeconds: 30 policies: - type: Percent value: 100 periodSeconds: 15 selectPolicy: Max <|endoftext|> # k8s_docs_counter-pod.yaml apiVersion: v1 kind: Pod metadata: name: counter spec: containers: - name: count image: busybox:1.28 args: [/bin/sh, -c, 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done'] <|endoftext|> # istio_rolebindings.yaml {{ $gateway := index .Values "gateways" "istio-egressgateway" }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ $gateway.name }}-sds namespace: {{ .Release.Namespace }} labels: release: {{ .Release.Name }} istio.io/rev: {{ .Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "EgressGateways" app.kubernetes.io/name: "istio-egressgateway" {{- include "istio.labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ $gateway.name }}-sds subjects: - kind: ServiceAccount name: {{ $gateway.name }}-service-account --- <|endoftext|> # helm_charts_hl-composer-cli-deployment.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "hl-composer.fullname" . }}-cli labels: name: {{ include "hl-composer.fullname" . }}-cli {{ include "labels.standard" . | indent 4 }} spec: replicas: 1 selector: matchLabels: app: {{ include "hl-composer.name" . }} release: {{ .Release.Name }} template: metadata: name: {{ include "hl-composer.fullname" . }}-cli labels: name: {{ include "hl-composer.fullname" . }}-cli {{ include "labels.standard" . | indent 8 }} spec: volumes: - name: persistent-volume {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ .Values.persistence.existingClaim | default (include "hl-composer.fullname" .) }} {{- else }} emptyDir: {} {{- end }} {{- if .Values.cli.secrets.blockchainNetwork }} - name: blockchain-network secret: secretName: {{ .Values.cli.secrets.blockchainNetwork }} {{- end }} {{- if .Values.cli.secrets.adminCert }} - name: admin-cert secret: secretName: {{ .Values.cli.secrets.adminCert }} {{- end }} {{- if .Values.cli.secrets.adminKey }} - name: admin-key secret: secretName: {{ .Values.cli.secrets.adminKey }} {{- end }} {{- if .Values.cli.secrets.hlcConnection }} - name: hlc-connection configMap: name: {{ .Values.cli.secrets.hlcConnection }} {{- end }} containers: - name: cli image: "{{ .Values.cli.image.repository }}:{{ .Values.cli.image.tag }}" imagePullPolicy: {{ .Values.cli.image.pullPolicy }} # TODO: Add liveness and readiness probes # Run infinitely command: - sh - -c - | tail -f /dev/null volumeMounts: - mountPath: /home/composer/.composer name: persistent-volume {{- if .Values.cli.secrets.blockchainNetwork }} - mountPath: /hl_config/blockchain_network name: blockchain-network {{- end }} {{- if .Values.cli.secrets.adminCert }} - mountPath: /hl_config/admin/signcerts name: admin-cert {{- end }} {{- if .Values.cli.secrets.adminKey }} - mountPath: /hl_config/admin/keystore name: admin-key {{- end }} {{- if .Values.cli.secrets.hlcConnection }} - mountPath: /hl_config/hlc-connection name: hlc-connection {{- end }} resources: {{ toYaml .Values.cli.resources | indent 12 }} {{- with .Values.cli.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.cli.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.cli.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # istio_36806.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 36805 releaseNotes: - | **Fixed** an issue that if duplicated cipher suites configured in Gateway, it will be pushed to Envoy configuration. With this fix, duplicated cipher suites will be ignored with error log. <|endoftext|> # istio_54721.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - https://github.com/istio/istio/issues/54721 releaseNotes: - | **Added** value `useAppArmorAnnotation` to istio-cni helm chart. Defaults to `true`. When it is `true`, appArmor profile is set with `container.apparmor.security.beta.kubernetes.io` annotation (deprecated in Kubernetes 1.30). Otherwise, `appArmorProfile` field in `securityContext` is used. <|endoftext|> # istio_42852.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: installation # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - https://github.com/istio/istio/issues/42852 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - |- **Added** an input to the Gateway Helm deployment to explicitly set the imagePullPolicy. <|endoftext|> # k8s_docs_update_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.16.1 # update the image ports: - containerPort: 80 <|endoftext|> # grafana_charts_service-memcached.yaml {{- if .Values.memcached.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "memcached") }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "memcached") | nindent 4 }} {{- with .Values.memcached.service.annotations }} annotations: {{- tpl (toYaml . | nindent 4) $ }} {{- end }} spec: ipFamilies: {{ .Values.tempo.service.ipFamilies }} ipFamilyPolicy: {{ .Values.tempo.service.ipFamilyPolicy }} ports: - name: memcached-client port: 11211 targetPort: client - name: http-metrics port: 9150 targetPort: http-metrics selector: {{- include "tempo.selectorLabels" (dict "ctx" . "component" "memcached") | nindent 4 }} {{- end}} <|endoftext|> # istio_fix-istioctl-revision.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** the `istioctl experimental revision list` `REQD-COMPONENTS` column data being incomplete and general output format. <|endoftext|> # istio_49364.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 49364 releaseNotes: - | **Fixed** an bug where VirtualServices containing wildcard hosts that aren't present in the service registry are ignored <|endoftext|> # istio_listenerset-cross-namespace.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: parent-gateway namespace: istio-system spec: allowedListeners: namespaces: from: All addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: foo hostname: foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: ListenerSet metadata: name: single-entry-http namespace: ns1 spec: parentRef: name: parent-gateway namespace: istio-system kind: Gateway group: gateway.networking.k8s.io listeners: - name: first hostname: first.foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: ListenerSet metadata: name: same-ns-cert namespace: ns2 spec: parentRef: name: parent-gateway namespace: istio-system kind: Gateway group: gateway.networking.k8s.io listeners: - name: second hostname: second.foo.com protocol: HTTPS port: 443 tls: mode: Terminate certificateRefs: - kind: Secret group: "" name: ns2-cert --- apiVersion: gateway.networking.k8s.io/v1 kind: ListenerSet metadata: name: cross-ns-cert namespace: ns2 spec: parentRef: name: parent-gateway namespace: istio-system kind: Gateway group: gateway.networking.k8s.io listeners: - name: allowed hostname: allowed.foo.com protocol: HTTPS port: 443 tls: mode: Terminate certificateRefs: - kind: Secret group: "" name: ns3-cert namespace: ns3 - name: denied hostname: denied.foo.com protocol: HTTPS port: 443 tls: mode: Terminate certificateRefs: - kind: Secret group: "" name: ns4-cert namespace: ns4 --- apiVersion: gateway.networking.k8s.io/v1beta1 kind: ReferenceGrant metadata: name: do-not-allow-cert-transitively namespace: ns4 spec: from: - group: gateway.networking.k8s.io kind: Gateway namespace: istio-system to: - group: "" kind: Secret --- apiVersion: gateway.networking.k8s.io/v1beta1 kind: ReferenceGrant metadata: name: allow-listenerset namespace: ns3 spec: from: - group: gateway.networking.k8s.io kind: ListenerSet namespace: ns2 to: - group: "" kind: Secret <|endoftext|> # helm_charts_backup-secret.yaml {{- if .Values.nexusBackup.enabled }} apiVersion: v1 kind: Secret metadata: name: {{ template "nexus.fullname" . }} labels: {{ include "nexus.labels" . | indent 4 }} type: Opaque data: nexus.nexusAdminPassword: {{ printf "%s%s" "Basic " (printf "%s%s" "admin:" .Values.nexusBackup.nexusAdminPassword | b64enc) | cat | b64enc | quote }} {{- end }} <|endoftext|> # argocd_source_configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "minio.fullname" . }} labels: app: {{ template "minio.name" . }} chart: {{ template "minio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: initialize: |- {{ include (print $.Template.BasePath "/_helper_create_bucket.txt") . | indent 4 }} config.json: |- { "version": "26", "credential": { "accessKey": {{ .Values.accessKey | quote }}, "secretKey": {{ .Values.secretKey | quote }} }, "region": {{ .Values.minioConfig.region | quote }}, "browser": {{ .Values.minioConfig.browser | quote }}, "worm": {{ .Values.minioConfig.worm | quote }}, "domain": {{ .Values.minioConfig.domain | quote }}, "storageclass": { "standard": {{ .Values.minioConfig.storageClass.standardStorageClass | quote }}, "rrs": {{ .Values.minioConfig.storageClass.reducedRedundancyStorageClass | quote }} }, "cache": { "drives": {{ .Values.minioConfig.cache.drives }}, "expiry": {{ .Values.minioConfig.cache.expiry | int }}, "maxuse": {{ .Values.minioConfig.cache.maxuse | int }}, "exclude": {{ .Values.minioConfig.cache.exclude }} }, "notify": { "amqp": { "1": { "enable": {{ .Values.minioConfig.aqmp.enable }}, "url": {{ .Values.minioConfig.aqmp.url | quote }}, "exchange": {{ .Values.minioConfig.aqmp.exchange | quote }}, "routingKey": {{ .Values.minioConfig.aqmp.routingKey | quote }}, "exchangeType": {{ .Values.minioConfig.aqmp.exchangeType | quote }}, "deliveryMode": {{ .Values.minioConfig.aqmp.deliveryMode }}, "mandatory": {{ .Values.minioConfig.aqmp.mandatory }}, "immediate": {{ .Values.minioConfig.aqmp.immediate }}, "durable": {{ .Values.minioConfig.aqmp.durable }}, "internal": {{ .Values.minioConfig.aqmp.internal }}, "noWait": {{ .Values.minioConfig.aqmp.noWait }}, "autoDeleted": {{ .Values.minioConfig.aqmp.autoDeleted }} } }, "nats": { "1": { "enable": {{ .Values.minioConfig.nats.enable }}, "address": {{ .Values.minioConfig.nats.address | quote }}, "subject": {{ .Values.minioConfig.nats.subject | quote }}, "username": {{ .Values.minioConfig.nats.username | quote }}, "password": {{ .Values.minioConfig.nats.password | quote }}, "token": {{ .Values.minioConfig.nats.token | quote }}, "secure": {{ .Values.minioConfig.nats.secure }}, "pingInterval": {{ .Values.minioConfig.nats.pingInterval | int64 }}, "streaming": { "enable": {{ .Values.minioConfig.nats.enableStreaming }}, "clusterID": {{ .Values.minioConfig.nats.clusterID | quote }}, "clientID": {{ .Values.minioConfig.nats.clientID | quote }}, "async": {{ .Values.minioConfig.nats.async }}, "maxPubAcksInflight": {{ .Values.minioConfig.nats.maxPubAcksInflight | int }} } } }, "elasticsearch": { "1": { "enable": {{ .Values.minioConfig.elasticsearch.enable }}, "format": {{ .Values.minioConfig.elasticsearch.format | quote }}, "url": {{ .Values.minioConfig.elasticsearch.url | quote }}, "index": {{ .Values.minioConfig.elasticsearch.index | quote }} } }, "redis": { "1": { "enable": {{ .Values.minioConfig.redis.enable }}, "format": {{ .Values.minioConfig.redis.format | quote }}, "address": {{ .Values.minioConfig.redis.address | quote }}, "password": {{ .Values.minioConfig.redis.password | quote }}, "key": {{ .Values.minioConfig.redis.key | quote }} } }, "postgresql": { "1": { "enable": {{ .Values.minioConfig.postgresql.enable }}, "format": {{ .Values.minioConfig.postgresql.format | quote }}, "connectionString": {{ .Values.minioConfig.postgresql.connectionString | quote }}, "table": {{ .Values.minioConfig.postgresql.table | quote }}, "host": {{ .Values.minioConfig.postgresql.host | quote }}, "port": {{ .Values.minioConfig.postgresql.port | quote }}, "user": {{ .Values.minioConfig.postgresql.user | quote }}, "password": {{ .Values.minioConfig.postgresql.password | quote }}, "database": {{ .Values.minioConfig.postgresql.database | quote }} } }, "kafka": { "1": { "enable": {{ .Values.minioConfig.kafka.enable }}, "brokers": {{ .Values.minioConfig.kafka.brokers }}, "topic": {{ .Values.minioConfig.kafka.topic | quote }} } }, "webhook": { "1": { "enable": {{ .Values.minioConfig.webhook.enable }}, "endpoint": {{ .Values.minioConfig.webhook.endpoint | quote }} } }, "mysql": { "1": { "enable": {{ .Values.minioConfig.mysql.enable }}, "format": {{ .Values.minioConfig.mysql.format | quote }}, "dsnString": {{ .Values.minioConfig.mysql.dsnString | quote }}, "table": {{ .Values.minioConfig.mysql.table | quote }}, "host": {{ .Values.minioConfig.mysql.host | quote }}, "port": {{ .Values.minioConfig.mysql.port | quote }}, "user": {{ .Values.minioConfig.mysql.user | quote }}, "password": {{ .Values.minioConfig.mysql.password | quote }}, "database": {{ .Values.minioConfig.mysql.database | quote }} } }, "mqtt": { "1": { "enable": {{ .Values.minioConfig.mqtt.enable }}, "broker": {{ .Values.minioConfig.mqtt.broker | quote }}, "topic": {{ .Values.minioConfig.mqtt.topic | quote }}, "qos": {{ .Values.minioConfig.mqtt.qos | int }}, "clientId": {{ .Values.minioConfig.mqtt.clientId | quote }}, "username": {{ .Values.minioConfig.mqtt.username | quote }}, "password": {{ .Values.minioConfig.mqtt.password | quote }}, "reconnectInterval": {{ .Values.minioConfig.mqtt.reconnectInterval | int }}, "keepAliveInterval": {{ .Values.minioConfig.mqtt.keepAliveInterval | int }} } } } } <|endoftext|> # argocd_examples_pre-sync-job.yaml apiVersion: batch/v1 kind: Job metadata: name: before annotations: argocd.argoproj.io/hook: PreSync argocd.argoproj.io/hook-delete-policy: HookSucceeded spec: template: spec: containers: - name: sleep image: alpine:latest command: ["sleep", "10"] restartPolicy: Never backoffLimit: 0 <|endoftext|> # helm_charts_restore-operator-service.yaml {{- if .Values.deployments.restoreOperator }} --- apiVersion: v1 kind: Service metadata: name: {{ .Values.restoreOperator.name }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: {{ template "etcd-restore-operator.name" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: ports: - protocol: TCP name: http-etcd-restore-port port: {{ .Values.restoreOperator.port }} selector: app: {{ template "etcd-restore-operator.name" . }} release: {{ .Release.Name }} {{- end }} <|endoftext|> # helm_charts_mission-control-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "mission-control.fullname" . }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.missionControl.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: type: {{ .Values.missionControl.service.type }} ports: - name: http port: {{ .Values.missionControl.externalPort }} targetPort: {{ .Values.missionControl.internalPort }} protocol: TCP selector: app: {{ template "mission-control.name" . }} component: {{ .Values.missionControl.name }} release: {{ .Release.Name }} <|endoftext|> # argocd_source_gitops-agent-role.yaml --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: gitops-agent rules: - apiGroups: - '*' resources: - '*' verbs: - '*' <|endoftext|> # istio_37415.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 37415 releaseNotes: - | **Added** a new analyzer for envoy filter patch operations to provide warnings when relative patch operations are used without a priority set which can cause envoyFilters not to be applied correctly. <|endoftext|> # istio_58394.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** `--all-namespaces` flag for `istioctl waypoint status` to display the status of waypoints in all namespaces. <|endoftext|> # helm_charts_endpoints.yaml {{- if .Values.endpoints }} apiVersion: v1 kind: Endpoints metadata: name: {{ template "prometheus-node-exporter.fullname" . }} namespace: {{ template "prometheus-node-exporter.namespace" . }} labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }} subsets: - addresses: {{- range .Values.endpoints }} - ip: {{ . }} {{- end }} ports: - name: metrics port: 9100 protocol: TCP {{- end }} <|endoftext|> # k8s_examples_roles.yaml # restricted-psp-user grants access to use the restricted PSP. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: restricted-psp-user rules: - apiGroups: - policy resources: - podsecuritypolicies resourceNames: - restricted verbs: - use --- # privileged-psp-user grants access to use the privileged PSP. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: privileged-psp-user rules: - apiGroups: - policy resources: - podsecuritypolicies resourceNames: - privileged verbs: - use <|endoftext|> # tf_k8s_provider_decode_manifest_invalid_syntax.yaml # Copyright IBM Corp. 2017, 2026 # SPDX-License-Identifier: MPL-2.0 -- apiVersion: v1 kind: ConfigMap metadata: name: test-configmap labels: test: "test---label" &data: configfile: | --- test: document <|endoftext|> # helm_charts_metrics-servicemonitor.yaml {{- if .Values.serviceMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ template "stolon.fullname" . }} labels: {{- if .Values.serviceMonitor.labels }} {{ toYaml .Values.serviceMonitor.labels | nindent 4 }} {{- else }} app: {{ template "stolon.name" . }} chart: {{ template "stolon.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- end }} {{- if .Values.serviceMonitor.namespace }} namespace: {{ .Values.serviceMonitor.namespace }} {{- end }} spec: endpoints: - targetPort: "metrics" {{- if .Values.serviceMonitor.interval }} interval: {{ .Values.serviceMonitor.interval }} {{- end }} {{- if .Values.serviceMonitor.scrapeTimeout }} scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }} {{- end }} namespaceSelector: matchNames: - {{ .Release.Namespace }} selector: matchLabels: app: {{ template "stolon.name" . }} release: {{ .Release.Name }} component: "all" {{- end }} <|endoftext|> # k8s_examples_dns-backend-rc.yaml apiVersion: v1 kind: ReplicationController metadata: name: dns-backend labels: name: dns-backend spec: replicas: 1 selector: name: dns-backend template: metadata: labels: name: dns-backend spec: containers: - name: dns-backend image: registry.k8s.io/example-dns-backend:v2 ports: - name: backend-port containerPort: 8000 <|endoftext|> # grafana_charts_service-federation-frontend.yaml {{- if .Values.enterprise.enabled -}} apiVersion: v1 kind: Service metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "enterprise-federation-frontend") }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "enterprise-federation-frontend") | nindent 4 }} {{- with .Values.enterpriseFederationFrontend.service.annotations }} annotations: {{- tpl (toYaml . | nindent 4) $ }} {{- end }} spec: type: {{ .Values.enterpriseFederationFrontend.service.type }} ports: - name: http-metrics port: 3200 targetPort: http-metrics {{- if .Values.enterpriseFederationFrontend.service.loadBalancerIP }} loadBalancerIP: {{ .Values.enterpriseFederationFrontend.service.loadBalancerIP }} {{- end }} {{- with .Values.enterpriseFederationFrontend.service.loadBalancerSourceRanges}} loadBalancerSourceRanges: {{ toYaml . | nindent 4 }} {{- end }} selector: {{- include "tempo.selectorLabels" (dict "ctx" . "component" "enterprise-federation-frontend") | nindent 4 }} {{- end }} <|endoftext|> # helm_charts_metric-server-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "metrics-server.fullname" . }} namespace: {{ .Release.Namespace }} labels: app: {{ template "metrics-server.name" . }} chart: {{ template "metrics-server.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.service.labels -}} {{ toYaml . | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.service.annotations | trim | nindent 4 }} spec: ports: - port: {{ .Values.service.port }} protocol: TCP targetPort: https selector: app: {{ template "metrics-server.name" . }} release: {{ .Release.Name }} type: {{ .Values.service.type }} <|endoftext|> # helm_charts_restore-etcd-crd.yaml {{- if .Values.customResources.createRestoreCRD }} --- apiVersion: "etcd.database.coreos.com/v1beta2" kind: "EtcdRestore" metadata: # An EtcdCluster with the same name will be created name: {{ .Values.etcdCluster.name }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: {{ template "etcd-restore-operator.name" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} annotations: "helm.sh/hook": "post-install" "helm.sh/hook-delete-policy": "before-hook-creation" spec: clusterSpec: size: {{ .Values.etcdCluster.size }} baseImage: "{{ .Values.etcdCluster.image.repository }}" version: {{ .Values.etcdCluster.image.tag }} pod: {{ toYaml .Values.etcdCluster.pod | indent 6 }} {{- if .Values.etcdCluster.enableTLS }} TLS: {{ toYaml .Values.etcdCluster.tls | indent 6 }} {{- end }} {{ toYaml .Values.restoreOperator.spec | indent 2 }} {{- end}} <|endoftext|> # istio_deprecate-istio_cni.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 49290 releaseNotes: - | **Deprecated** usage of `values.istio_cni` in favor of `values.pilot.cni` <|endoftext|> # argocd_source_progressing_aggregatedStatus.yaml apiVersion: work.karmada.io/v1alpha2 kind: ClusterResourceBinding metadata: finalizers: - karmada.io/binding-controller generation: 5 labels: clusterpropagationpolicy.karmada.io/name: service-testk4j5t name: test-service namespace: default ownerReferences: - apiVersion: v1 blockOwnerDeletion: true controller: true kind: Service name: test uid: 039b0d1a-05cb-40b4-b43a-438b0de386af resourceVersion: "4106772" uid: 3932ee50-4c2b-4e77-9bfb-45eeb4ec220f spec: clusters: - name: member1 - name: member2 - name: member3 status: aggregatedStatus: - applied: true clusterName: member1 health: Healthy status: availableReplicas: 1 readyReplicas: 1 replicas: 1 updatedReplicas: 1 conditions: - ansibleResult: changed: 1 completion: 2020-06-08T13:41:20.133525 failures: 0 ok: 56 skipped: 82 lastTransitionTime: "2020-06-04T17:47:31Z" message: Reconciling reason: Running status: "True" type: Running <|endoftext|> # istio_47617.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** an issue where sometimes `uninstall` was performed without confirmation when istiod was not available to be connected. <|endoftext|> # k8s_docs_custom-dns.yaml apiVersion: v1 kind: Pod metadata: namespace: default name: dns-example spec: containers: - name: test image: nginx dnsPolicy: "None" dnsConfig: nameservers: - 192.0.2.1 # このIPアドレスは例です searches: - ns1.svc.cluster-domain.example - my.dns.search.suffix options: - name: ndots value: "2" - name: edns0 <|endoftext|> # helm_charts_tiller-serviceaccount.yaml {{- if .Values.tiller.enabled }} apiVersion: v1 kind: ServiceAccount metadata: name: tiller {{- if hasKey .Values "namespace" }} namespace: {{ .Values.namespace }} {{- end }} labels: app: helm name: tiller chart: {{ template "magic-namespace.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- end }} <|endoftext|> # argocd_source_reconciled_helmchart.yaml apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmChart metadata: name: podinfo namespace: default annotations: reconcile.fluxcd.io/requestedAt: 'By Argo CD at: 0001-01-01T00:00:00' spec: interval: 5m0s chart: podinfo reconcileStrategy: ChartVersion sourceRef: kind: HelmRepository name: podinfo version: '5.*' <|endoftext|> # argocd_source_argocd-commit-server-sa.yaml apiVersion: v1 kind: ServiceAccount metadata: labels: app.kubernetes.io/name: argocd-commit-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: commit-server name: argocd-commit-server <|endoftext|> # helm_charts_tlscontext.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: tlscontexts.getambassador.io labels: app.kubernetes.io/name: ambassador annotations: "helm.sh/hook": crd-install spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: tlscontexts singular: tlscontext kind: TLSContext <|endoftext|> # istio_46968.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 46951 releaseNotes: - | **Fixed** an issue where all requests were being denied when the custom external authorization service had an issue. Now only requests that are delegated to the custom external authorization service are denied. <|endoftext|> # istio_29034.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 28970 releaseNotes: - | **Fixed** namespace shorthand flag missing in dashboard subcommand. <|endoftext|> # helm_charts_custom-metrics-apiservice.yaml {{- if or .Values.rules.default .Values.rules.custom }} apiVersion: apiregistration.k8s.io/v1beta1 kind: APIService metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: v1beta1.custom.metrics.k8s.io spec: service: name: {{ template "k8s-prometheus-adapter.fullname" . }} namespace: {{ .Release.Namespace | quote }} {{ if .Values.tls.enable -}} caBundle: {{ b64enc .Values.tls.ca }} {{- end }} group: custom.metrics.k8s.io version: v1beta1 insecureSkipTLSVerify: {{ if .Values.tls.enable }}false{{ else }}true{{ end }} groupPriorityMinimum: 100 versionPriority: 100 {{- end }} <|endoftext|> # kube_prometheus_prometheusOperator-serviceAccount.yaml apiVersion: v1 automountServiceAccountToken: false kind: ServiceAccount metadata: labels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.90.1 name: prometheus-operator namespace: monitoring <|endoftext|> # helm_charts_deployment-coordinator.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "presto.coordinator" . }} labels: app: {{ template "presto.name" . }} chart: {{ template "presto.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: coordinator spec: selector: matchLabels: app: {{ template "presto.name" . }} release: {{ .Release.Name }} component: coordinator template: metadata: labels: app: {{ template "presto.name" . }} release: {{ .Release.Name }} component: coordinator spec: {{- with .Values.image.securityContext }} securityContext: runAsUser: {{ .runAsUser }} runAsGroup: {{ .runAsGroup }} {{- end }} volumes: - name: config-volume configMap: name: {{ template "presto.coordinator" . }} containers: - name: {{ .Chart.Name }}-coordinator image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - mountPath: {{ .Values.server.config.path }} name: config-volume ports: - name: http-coord containerPort: {{ .Values.server.config.http.port }} protocol: TCP livenessProbe: httpGet: path: /v1/cluster port: http-coord readinessProbe: httpGet: path: /v1/cluster port: http-coord resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # grafana_charts_configmap-tempo.yaml {{- if not .Values.useExternalConfig }} apiVersion: v1 {{- if eq .Values.configStorageType "Secret" }} kind: Secret {{- else }} kind: ConfigMap {{- end }} metadata: name: {{ tpl .Values.externalConfigSecretName . }} labels: {{- include "tempo.labels" (dict "ctx" .) | nindent 4 }} namespace: {{ .Release.Namespace | quote }} {{- if eq .Values.configStorageType "Secret" }} data: tempo-query.yaml: {{ tpl .Values.queryFrontend.query.config . | b64enc }} tempo.yaml: {{ include "tempo.calculatedConfig" . | b64enc }} {{- else }} data: tempo-query.yaml: | {{- tpl .Values.queryFrontend.query.config . | nindent 4 }} tempo.yaml: | {{ include "tempo.calculatedConfig" . | nindent 4 }} {{- end -}} {{- end }} <|endoftext|> # argocd_source_deployment-pause.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" creationTimestamp: "2021-09-21T22:35:20Z" name: nginx-deploy namespace: default generation: 2 spec: paused: true progressDeadlineSeconds: 600 replicas: 3 revisionHistoryLimit: 10 selector: matchLabels: app: nginx strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: app: nginx spec: containers: - image: nginx:latest imagePullPolicy: Always name: nginx resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: availableReplicas: 3 conditions: - lastTransitionTime: "2021-09-21T22:35:31Z" lastUpdateTime: "2021-09-21T22:35:31Z" message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: "True" type: Available - lastTransitionTime: "2021-09-21T22:36:25Z" lastUpdateTime: "2021-09-21T22:36:25Z" message: Deployment is paused reason: DeploymentPaused status: Unknown type: Progressing observedGeneration: 2 readyReplicas: 3 replicas: 3 updatedReplicas: 3 <|endoftext|> # grafana_charts_deployment-query-frontend.yaml {{ $dict := dict "ctx" . "component" "query-frontend" }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.queryFrontend.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: minReadySeconds: {{ .Values.queryFrontend.minReadySeconds }} {{- if not .Values.queryFrontend.autoscaling.enabled }} replicas: {{ .Values.queryFrontend.replicas }} {{- end }} revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }} selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} strategy: rollingUpdate: maxSurge: 0 maxUnavailable: 1 template: metadata: labels: {{- include "tempo.podLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryFrontend.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} {{- with .Values.tempo.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryFrontend.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if or (.Values.queryFrontend.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.queryFrontend.priorityClassName .Values.global.priorityClassName }} {{- end }} serviceAccountName: {{ include "tempo.serviceAccountName" . }} {{- with .Values.tempo.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} enableServiceLinks: false {{- include "tempo.queryImagePullSecrets" . | nindent 6 -}} {{- with .Values.queryFrontend.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: {{- toYaml .Values.queryFrontend.initContainers | nindent 8 }} containers: - args: - -target=query-frontend - -config.file=/conf/tempo.yaml {{- with .Values.queryFrontend.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.imageReference" $dict }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: query-frontend ports: - containerPort: 3200 name: http-metrics - containerPort: 9095 name: grpc {{- if or .Values.global.extraEnv .Values.queryFrontend.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.queryFrontend.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.queryFrontend.extraEnvFrom }} envFrom: {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.queryFrontend.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} livenessProbe: {{- toYaml .Values.tempo.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.tempo.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.queryFrontend.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config - mountPath: /runtime-config name: runtime-config - mountPath: /var/tempo name: tempo-queryfrontend-store {{- if .Values.enterprise.enabled }} - name: license mountPath: /license {{- end }} {{- with .Values.queryFrontend.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} {{- if .Values.queryFrontend.query.enabled }} - args: - -config=/conf/tempo.yaml {{- with .Values.queryFrontend.query.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.queryImage" . }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: tempo-query ports: - containerPort: {{ .Values.queryFrontend.service.port }} name: jaeger-ui - containerPort: 16687 name: jaeger-metrics {{- if or .Values.global.extraEnv .Values.queryFrontend.query.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.queryFrontend.query.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.queryFrontend.query.extraEnvFrom }} envFrom: {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.queryFrontend.query.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} resources: {{- toYaml .Values.queryFrontend.query.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config {{- with .Values.queryFrontend.query.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} {{- end}} terminationGracePeriodSeconds: {{ .Values.queryFrontend.terminationGracePeriodSeconds }} {{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }} {{- with .Values.queryFrontend.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- with .Values.queryFrontend.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.queryFrontend.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryFrontend.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- include "tempo.configVolume" . | nindent 10 }} - name: runtime-config {{- include "tempo.runtimeVolume" . | nindent 10 }} - name: tempo-queryfrontend-store emptyDir: {} {{- if .Values.enterprise.enabled }} - name: license secret: secretName: {{ tpl .Values.license.secretName . }} {{- end }} {{- with .Values.queryFrontend.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} <|endoftext|> # argocd_source_merge-clusters-and-list.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: merge-clusters-and-list spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - merge: mergeKeys: - server generators: - clusters: values: kafka: 'true' redis: 'false' # For clusters with a specific label, enable Kafka. - clusters: selector: matchLabels: use-kafka: 'false' values: kafka: 'false' # For a specific cluster, enable Redis. - list: elements: - server: https://some-specific-cluster values.redis: 'true' template: metadata: name: '{{.name}}' spec: project: default source: repoURL: https://github.com/argoproj/argocd-example-apps/ targetRevision: HEAD path: helm-guestbook helm: parameters: - name: kafka value: '{{.values.kafka}}' - name: redis value: '{{.values.redis}}' destination: server: '{{.server}}' namespace: default <|endoftext|> # helm_charts_prometheus-proxy-serviceaccount.yaml {{- if .Values.features.monitoring.enabled }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ .Release.Name }}-prometheus-proxy labels: app: {{ .Release.Name }}-prometheus-proxy namespace: {{ .Release.Namespace }} {{- end }} <|endoftext|> # istio_55567.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 50164 releaseNotes: - | **Fixed** an issue that validation webhook incorrectly report a warning when a ServiceEntry configures `workloadSelector` with DNS resolution. <|endoftext|> # istio_51311.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Improved** Added `.Values.pilot.trustedZtunnelNamespace` to `istiod` chart. Set this if installing ztunnel to a different namespace from `istiod`. Supercedes `.Values.pilot.env.CA_TRUSTED_NODE_ACCOUNTS` (which is still respected if set) <|endoftext|> # istio_mcs-host.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 33949 releaseNotes: - | **Added** experimental support for the Kubernetes Multi-Cluster Services (MCS) host (`clusterset.local`). This feature is off by default, but can be enabled by setting the following flags in Istio: `ENABLE_MCS_HOST` and `ENABLE_MCS_SERVICE_DISCOVERY`. When enabled Istio will include the MCS host as a domain in the service's HTTP route. Additionally, Istio will support the MCS host during a DNS lookup. For now, the MCS host is just an alias for `cluster.local` and resolves to the same service IP. Future work will give the MCS host a separate IP as is defined by the MCS spec. <|endoftext|> # argocd_source_no-applications.yaml apiVersion: promoter.argoproj.io/v1alpha1 kind: ArgoCDCommitStatus metadata: name: test generation: 2 status: conditions: - type: Ready status: True observedGeneration: 2 applicationsSelected: [] <|endoftext|> # istio_authz-invalid.yaml _err: Cannot set serviceAccounts with namespaces or principals apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: service-account-and-namespace spec: rules: - from: - source: serviceAccounts: ["bar/sa"] namespaces: ["bar"] --- _err: Cannot set serviceAccounts with namespaces or principals apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: service-account-and-namespace-principal spec: rules: - from: - source: serviceAccounts: ["baz/sa"] principals: ["bar"] <|endoftext|> # istio_traffic-params-empty-includes.yaml apiVersion: apps/v1 kind: Deployment metadata: name: traffic spec: replicas: 7 selector: matchLabels: app: traffic template: metadata: labels: app: traffic spec: containers: - name: traffic image: "fake.docker.io/google-samples/traffic-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_35111.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - https://github.com/istio/istio/issues/35111 releaseNotes: - | **Added** TLS settings to the sidecar API in order to enable TLS/mTLS termination on the sidecar proxy for requests coming from outside the mesh. docs: - https://docs.google.com/document/d/15Qhr7errbylXEzxxCK7ij_oUpn4E5SFU2uDdl_n2GIc/edit#heading=h.h3lxcxfhqndp securityNotes: - | This feature extends the sidecar API such that the users can provide their certificates and offload the TLS/mTLS termination to the istio-proxy. <|endoftext|> # istio_54357.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 54357 releaseNotes: - | **Fixed** a bug where request mirror filter incorrectly computing the percentage. <|endoftext|> # helm_charts_scheduler-pdb.yaml {{- if .Values.scheduler.podDisruptionBudget.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ include "airflow.fullname" . }}-scheduler labels: app: {{ include "airflow.labels.app" . }} component: scheduler chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: {{- if .Values.scheduler.podDisruptionBudget.maxUnavailable }} maxUnavailable: {{ .Values.scheduler.podDisruptionBudget.maxUnavailable }} {{- end }} {{- if .Values.scheduler.podDisruptionBudget.minAvailable }} minAvailable: {{ .Values.scheduler.podDisruptionBudget.minAvailable }} {{- end }} selector: matchLabels: app: {{ include "airflow.labels.app" . }} component: scheduler release: {{ .Release.Name }} {{- end }} <|endoftext|> # istio_cni-no-sh.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 48746 releaseNotes: - | **Fixed** an issue causing Istio CNI to stop functioning on minimal/locked down nodes (such as no `sh` binary). The new logic runs with no external dependencies, and will attempt to continue if errors are encountered (which could be caused by things like SELinux rules). In particular, this fixes running Istio on Bottlerocket nodes. <|endoftext|> # helm_charts_artifactory-primary-statefulset.yaml apiVersion: apps/v1beta2 kind: StatefulSet metadata: name: {{ template "artifactory-ha.primary.name" . }} labels: app: {{ template "artifactory-ha.name" . }} chart: {{ template "artifactory-ha.chart" . }} component: {{ .Values.artifactory.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: serviceName: {{ template "artifactory-ha.primary.name" . }} replicas: 1 updateStrategy: type: RollingUpdate selector: matchLabels: app: {{ template "artifactory-ha.name" . }} role: {{ template "artifactory-ha.primary.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "artifactory-ha.name" . }} role: {{ template "artifactory-ha.primary.name" . }} component: {{ .Values.artifactory.name }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "artifactory-ha.serviceAccountName" . }} {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} securityContext: runAsUser: {{ .Values.artifactory.uid }} fsGroup: {{ .Values.artifactory.uid }} initContainers: {{- if .Values.artifactory.persistence.enabled }} - name: "remove-lost-found" image: "{{ .Values.initContainerImage }}" imagePullPolicy: {{ .Values.artifactory.image.pullPolicy }} command: - 'sh' - '-c' - 'rm -rfv {{ .Values.artifactory.persistence.mountPath }}/lost+found' volumeMounts: - mountPath: {{ .Values.artifactory.persistence.mountPath | quote }} name: volume {{- end }} - name: "wait-for-db" image: "{{ .Values.initContainerImage }}" command: - 'sh' - '-c' - > {{- if .Values.postgresql.enabled }} until nc -z -w 2 {{ .Release.Name }}-postgresql {{ .Values.postgresql.service.port }} && echo database ok; do {{- else }} until nc -z -w 2 {{ .Values.database.host }} {{ .Values.database.port }} && echo database ok; do {{- end }} sleep 2; done; containers: - name: {{ .Values.artifactory.name }} image: '{{ .Values.artifactory.image.repository }}:{{ default .Chart.AppVersion .Values.artifactory.image.version }}' imagePullPolicy: {{ .Values.artifactory.image.pullPolicy }} securityContext: allowPrivilegeEscalation: false lifecycle: postStart: exec: command: - '/bin/sh' - '-c' - > {{- if .Values.artifactory.configMapName }} cp -Lrfv /bootstrap/* /artifactory_extra_conf/ {{- end }} {{- if .Values.artifactory.replicator.enabled }} mkdir -p {{ .Values.artifactory.persistence.mountPath }}/replicator/etc; cp -fv /tmp/replicator/replicator.yaml {{ .Values.artifactory.persistence.mountPath }}/replicator/etc/replicator.yaml; {{- end }} {{- if .Values.artifactory.distributionCerts }} mkdir -p {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys/trusted; cp -fv /tmp/access/etc/keys/private.key {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys; cp -fv /tmp/access/etc/keys/root.crt {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys; cp -fv /tmp/access/etc/keys/root.crt {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys/trusted; {{- end }} {{- if .Values.artifactory.postStartCommand }} {{ .Values.artifactory.postStartCommand }} {{- end }} env: {{- if .Values.postgresql.enabled }} - name: DB_TYPE value: 'postgresql' - name: DB_HOST value: '{{ .Release.Name }}-postgresql' - name: DB_PORT value: '{{ .Values.postgresql.service.port }}' - name: DB_USER value: '{{ .Values.postgresql.postgresUser }}' - name: DB_PASSWORD valueFrom: secretKeyRef: name: {{ .Release.Name }}-postgresql key: postgres-password {{- else }} - name: DB_TYPE value: '{{ .Values.database.type }}' - name: DB_HOST value: '{{ .Values.database.host }}' - name: DB_PORT value: '{{ .Values.database.port }}' - name: DB_USER value: '{{ .Values.database.user }}' - name: DB_PASSWORD valueFrom: secretKeyRef: name: {{ template "artifactory-ha.fullname" . }} key: db-password {{- end }} - name: EXTRA_JAVA_OPTIONS value: " {{- if .Values.artifactory.javaOpts.other }} {{ .Values.artifactory.javaOpts.other }} {{- end}} {{- if .Values.artifactory.primary.javaOpts.other }} {{ .Values.artifactory.primary.javaOpts.other }} {{- end}} {{- if .Values.artifactory.primary.javaOpts.xms }} -Xms{{ .Values.artifactory.primary.javaOpts.xms }} {{- end}} {{- if .Values.artifactory.primary.javaOpts.xmx }} -Xmx{{ .Values.artifactory.primary.javaOpts.xmx }} {{- end}} {{- if .Values.artifactory.replicator.enabled }} -Dartifactory.releasebundle.feature.enabled=true {{- end }} " {{- if .Values.artifactory.replicator.enabled }} - name: START_LOCAL_REPLICATOR value: "true" {{- end }} - name: ARTIFACTORY_MASTER_KEY valueFrom: secretKeyRef: name: {{ template "artifactory-ha.fullname" . }} key: master-key - name: HA_IS_PRIMARY value: "true" - name: HA_MEMBERSHIP_PORT value: "{{ .Values.artifactory.membershipPort }}" - name: HA_NODE_ID valueFrom: fieldRef: fieldPath: metadata.name {{- if eq .Values.artifactory.persistence.type "nfs" }} - name: HA_DATA_DIR value: "{{ .Values.artifactory.persistence.nfs.dataDir }}" - name: HA_BACKUP_DIR value: "{{ .Values.artifactory.persistence.nfs.backupDir }}" {{- end }} ports: - containerPort: {{ .Values.artifactory.internalPort }} {{- if .Values.artifactory.replicator.enabled }} - containerPort: {{ .Values.artifactory.internalPortReplicator }} {{- end }} volumeMounts: - name: volume mountPath: "{{ .Values.artifactory.persistence.mountPath }}" - name: artifactory-inactiveservercleaner mountPath: "/tmp/plugins/inactiveServerCleaner.groovy" subPath: inactiveServerCleaner.groovy {{- if eq .Values.artifactory.persistence.type "nfs" }} - name: artifactory-ha-data mountPath: "{{ .Values.artifactory.persistence.nfs.dataDir }}" - name: artifactory-ha-backup mountPath: "{{ .Values.artifactory.persistence.nfs.backupDir }}" {{- else }} - name: binarystore-xml mountPath: "/artifactory_extra_conf/binarystore.xml" subPath: binarystore.xml {{- end }} {{- if .Values.artifactory.configMapName }} - name: bootstrap-config mountPath: "/bootstrap/" {{- end }} {{- if .Values.artifactory.license.secret }} - name: artifactory-license mountPath: "/artifactory_extra_conf/artifactory.cluster.license" subPath: {{ .Values.artifactory.license.dataKey }} {{- end }} {{- if .Values.artifactory.distributionCerts }} - name: distribution-certs mountPath: "/tmp/access/etc/keys" {{- end }} {{- if .Values.artifactory.replicator.enabled }} - name: replicator-config mountPath: "/tmp/replicator/replicator.yaml" {{- end }} resources: {{ toYaml .Values.artifactory.primary.resources | indent 10 }} {{- if .Values.artifactory.readinessProbe.enabled }} readinessProbe: httpGet: path: '/artifactory/webapp/#/login' port: 8081 initialDelaySeconds: {{ .Values.artifactory.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.artifactory.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.artifactory.readinessProbe.timeoutSeconds }} failureThreshold: {{ .Values.artifactory.readinessProbe.failureThreshold }} successThreshold: {{ .Values.artifactory.readinessProbe.successThreshold }} {{- end }} {{- if .Values.artifactory.livenessProbe.enabled }} livenessProbe: httpGet: path: '/artifactory/webapp/#/login' port: 8081 initialDelaySeconds: {{ .Values.artifactory.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.artifactory.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.artifactory.livenessProbe.timeoutSeconds }} failureThreshold: {{ .Values.artifactory.livenessProbe.failureThreshold }} successThreshold: {{ .Values.artifactory.livenessProbe.successThreshold }} {{- end }} {{- with .Values.artifactory.primary.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.artifactory.primary.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.artifactory.primary.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: binarystore-xml configMap: name: {{ template "artifactory-ha.fullname" . }}-bs {{- if .Values.artifactory.distributionCerts }} - name: distribution-certs configMap: name: {{ .Values.artifactory.distributionCerts }} {{- end }} {{- if .Values.artifactory.replicator.enabled }} - name: replicator-config configMap: name: {{ template "artifactory-ha.fullname" . }}-replicator-config {{- end }} {{- if .Values.artifactory.configMapName }} - name: bootstrap-config configMap: name: {{ .Values.artifactory.configMapName }} {{- end}} - name: artifactory-inactiveservercleaner configMap: name: {{ template "artifactory-ha.fullname" . }}-isc {{- if .Values.artifactory.license.secret }} - name: artifactory-license secret: secretName: {{ .Values.artifactory.license.secret }} {{- end }} {{- if eq .Values.artifactory.persistence.type "nfs" }} - name: artifactory-ha-data persistentVolumeClaim: claimName: {{ template "artifactory-ha.fullname" . }}-data-pvc - name: artifactory-ha-backup persistentVolumeClaim: claimName: {{ template "artifactory-ha.fullname" . }}-backup-pvc {{- end }} {{- if .Values.artifactory.persistence.local }} - name: volume emptyDir: {} {{- else }} volumeClaimTemplates: - metadata: name: volume spec: {{- if .Values.artifactory.primary.persistence.existingClaim }} selector: matchLabels: app: artifactory-ha-primary {{- else }} {{- if .Values.artifactory.persistence.storageClass }} {{- if (eq "-" .Values.artifactory.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.artifactory.persistence.storageClass }}" {{- end }} {{- end }} accessModes: [ "{{ .Values.artifactory.persistence.accessMode }}" ] resources: requests: storage: {{ .Values.artifactory.persistence.size }} {{- end }} {{- end }} <|endoftext|> # helm_charts_kube-prometheus-general.rules.yaml {{- /* Generated from 'kube-prometheus-general.rules' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.kubePrometheusGeneral }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kube-prometheus-general.rules" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kube-prometheus-general.rules rules: - expr: count without(instance, pod, node) (up == 1) record: count:up1 - expr: count without(instance, pod, node) (up == 0) record: count:up0 {{- end }} <|endoftext|> # helm_charts_nfs-server-service.yaml {{- if .Values.enableExampleNFS }} kind: Service apiVersion: v1 metadata: name: {{ include "nfs.fullname" . }} labels: app.kubernetes.io/name: {{ include "nfs.name" . }} helm.sh/chart: {{ include "nfs.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: ports: - name: nfs port: 2049 - name: mountd port: 20048 - name: rpcbind port: 111 selector: app.kubernetes.io/name: {{ include "nfs.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} <|endoftext|> # istio_56500.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 56465 releaseNotes: - | **Added** support displaying `stack-trace-level` for `istioctl admin log`. <|endoftext|> # istio_serviceentry-invalid.yaml _err: "spec: Required value" apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: no-spec --- _err: "spec.hosts: Required value" apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: missing-host spec: {} --- #_err: "TODO" #apiVersion: networking.istio.io/v1alpha3 #kind: ServiceEntry #metadata: # name: bad-selector-key #spec: # hosts: ["example.com"] # resolution: STATIC # workloadSelector: # labels: # "*": val #--- _err: "wildcard is not supported in selector" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: bad-selector-value spec: hosts: ["example.com"] workloadSelector: labels: "val": "*" --- _err: "only one of WorkloadSelector or Endpoints can be set" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: selector-and-endpoints spec: hosts: ["example.com"] workloadSelector: {} endpoints: - address: "1.2.3.4" --- _err: "hostname cannot be wildcard" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: bad-host-wildcard spec: hosts: ["*"] #--- #_err: "TODO" #apiVersion: networking.istio.io/v1alpha3 #kind: ServiceEntry #metadata: # name: bad-host-wildcard-suffix #spec: # hosts: ["foo*"] #--- #_err: "TODO" #apiVersion: networking.istio.io/v1alpha3 #kind: ServiceEntry #metadata: # name: bad-cidr #spec: # hosts: ["example.com"] # addresses: [1.2.3.4/99] --- _err: "CIDR addresses are allowed only for NONE/STATIC resolution types" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: bad-cidr-resolution spec: hosts: ["example.com"] addresses: [1.2.3.4/16] resolution: DNS --- _err: "Duplicate value" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: duplicate-ports-name spec: hosts: ["example.com"] ports: - name: a number: 1 - name: a number: 12 --- _err: "port number cannot be duplicated" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: duplicate-ports-number spec: hosts: ["example.com"] ports: - name: a number: 1 - name: b number: 1 --- _err: "port must be between 1-65535" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: bad-port spec: hosts: ["example.com"] ports: - name: a number: 99999 --- _err: "port must be between 1-65535" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: bad-port-target spec: hosts: ["example.com"] ports: - name: a number: 1 targetPort: 99999 --- _err: "NONE mode cannot set endpoints" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: none-with-endpoints spec: hosts: ["example.com"] endpoints: - address: "1.2.3.4" resolution: NONE --- _err: "DNS_ROUND_ROBIN mode cannot have multiple endpoints" apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: dns-rr-with-multiple-endpoints spec: hosts: ["example.com"] resolution: DNS_ROUND_ROBIN endpoints: - address: "sub1.example.com" - address: "sub2.example.com" # TODO: # validate cidr # validate port name # validate protocol parsing # Validation of DNS/DNS_RR endpoints # Validate exportTo duplicates (with logic about . and current namespace) <|endoftext|> # helm_charts_ingress-proxy.yaml {{- if .Values.proxy.ingress.enabled -}} {{- $serviceName := include "kong.fullname" . -}} {{- $servicePort := include "kong.ingress.servicePort" .Values.proxy -}} {{- $path := .Values.proxy.ingress.path -}} {{- $hosts_count := len .Values.proxy.ingress.hosts -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ template "kong.fullname" . }}-proxy labels: {{- include "kong.metaLabels" . | nindent 4 }} annotations: {{- range $key, $value := .Values.proxy.ingress.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: {{- if eq $hosts_count 0 }} - http: paths: - path: {{ $path }} backend: serviceName: {{ $serviceName }}-proxy servicePort: {{ $servicePort }} {{ else -}} {{- range $host := .Values.proxy.ingress.hosts }} - host: {{ $host | quote }} http: paths: - path: {{ $path }} backend: serviceName: {{ $serviceName }}-proxy servicePort: {{ $servicePort }} {{- end -}} {{- end -}} {{- if .Values.proxy.ingress.tls }} tls: {{ toYaml .Values.proxy.ingress.tls | indent 4 }} {{- end -}} {{- end -}} <|endoftext|> # helm_charts_appsrv-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "tomcat.fullname" . }} labels: app: {{ template "tomcat.name" . }} chart: {{ template "tomcat.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.externalPort }} targetPort: {{ .Values.service.internalPort }} protocol: TCP name: {{ .Values.service.name }} selector: app: {{ template "tomcat.name" . }} release: {{ .Release.Name }} <|endoftext|> # istio_chiron.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 36231 releaseNotes: - | **Removed** support for the `certificates` field in `MeshConfig`. This was deprecated in 1.15, and does not work on Kubernetes 1.22+ <|endoftext|> # argocd_source_degraded_no_secret.yaml { "apiVersion": "openfaas.com/v1", "kind": "Function", "metadata": { "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"openfaas.com/v1\",\"kind\":\"Function\",\"metadata\":{\"annotations\":{},\"name\":\"env\",\"namespace\":\"openfaas-fn\"},\"spec\":{\"annotations\":{},\"environment\":{\"fprocess\":\"env\",\"test\":\"yes\"},\"image\":\"ghcr.io/openfaas/alpine:latest\",\"labels\":{},\"name\":\"env\",\"secrets\":[\"missing-secret\"]}}\n" }, "creationTimestamp": "2024-04-29T13:42:46Z", "generation": 1, "name": "env", "namespace": "openfaas-fn", "resourceVersion": "580675", "uid": "7a00bc7b-eb01-4f6a-b5f7-7893422ace7d" }, "spec": { "annotations": {}, "environment": { "fprocess": "env", "test": "yes" }, "image": "ghcr.io/openfaas/alpine:latest", "labels": {}, "name": "env", "secrets": [ "missing-secret" ] }, "status": { "conditions": [ { "lastTransitionTime": "2024-04-29T13:42:46Z", "message": "Function queued for creation", "observedGeneration": 1, "reason": "Reconciling", "status": "True", "type": "Reconciling" }, { "lastTransitionTime": "2024-04-29T13:42:46Z", "message": "Secret missing: secrets \"missing-secret\" not found", "observedGeneration": 1, "reason": "SecretMissing", "status": "True", "type": "Stalled" } ] } } <|endoftext|> # istio_52177.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 52177 releaseNotes: - | **Added** add new pattern variable (%SERVICE_NAME%) for stat prefix <|endoftext|> # cert_manager_webhook-mutating-webhook.yaml apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: name: {{ include "webhook.fullname" . }} labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} annotations: cert-manager.io/inject-ca-from-secret: {{ printf "%s/%s-ca" (include "cert-manager.namespace" .) (include "webhook.fullname" .) | quote }} {{- with .Values.webhook.mutatingWebhookConfigurationAnnotations }} {{- toYaml . | nindent 4 }} {{- end }} webhooks: - name: webhook.cert-manager.io {{- with .Values.webhook.mutatingWebhookConfiguration.namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 6 }} {{- end }} rules: - apiGroups: - "cert-manager.io" apiVersions: - "v1" operations: - CREATE resources: - "certificaterequests" admissionReviewVersions: ["v1"] # This webhook only accepts v1 cert-manager resources. # Equivalent matchPolicy ensures that non-v1 resource requests are sent to # this webhook (after the resources have been converted to v1). matchPolicy: Equivalent timeoutSeconds: {{ .Values.webhook.timeoutSeconds }} failurePolicy: Fail # Only include 'sideEffects' field in Kubernetes 1.12+ sideEffects: None clientConfig: {{- if .Values.webhook.url.host }} url: https://{{ .Values.webhook.url.host }}/mutate {{- else }} service: name: {{ template "webhook.fullname" . }} namespace: {{ include "cert-manager.namespace" . }} path: /mutate {{- end }} <|endoftext|> # cert_manager_networkpolicy-cainjector.yaml {{- if .Values.cainjector.networkPolicy.enabled }} --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ template "cainjector.fullname" . }}-allow-ingress namespace: {{ include "cert-manager.namespace" . }} spec: ingress: {{- with .Values.cainjector.networkPolicy.ingress }} {{- toYaml . | nindent 2 }} {{- end }} podSelector: matchLabels: app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" policyTypes: - Ingress --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ template "cainjector.fullname" . }}-allow-egress namespace: {{ include "cert-manager.namespace" . }} spec: egress: {{- with .Values.cainjector.networkPolicy.egress }} {{- toYaml . | nindent 2 }} {{- end }} podSelector: matchLabels: app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" policyTypes: - Egress {{- end }} <|endoftext|> # istio_drop-iop.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Removed** the `istioctl experimental revision` command. Revisions can be inspected by the stable `istioctl tag list` command. - | **Removed** the `installed-state` `IstioOperator` that was created when running `istioctl install`. This previously provided only a snapshot of what was installed. However, it was a common source of confusion (as users would change it and nothing would happen), and did not reliably represent the current state. As there is no `IstioOperator` needed for these usages anymore, `istioctl install` and `helm install` no longer install the `IstioOperator` CRD. Note this only impacts `istioctl install`, not the in-cluster operator. <|endoftext|> # istio_gateway-allowedroutes-fix.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 48044 releaseNotes: - | **Fixed** Gateway API `AllowedRoutes` handling for `NotIn` and `DoesNotExist` label selector match expressions. <|endoftext|> # argocd_source_healthy_no_generation.yaml apiVersion: policy.open-cluster-management.io/v1beta1 kind: OperatorPolicy metadata: name: install-argocd generation: 2 namespace: local-cluster spec: complianceConfig: catalogSourceUnhealthy: Compliant deploymentsUnavailable: NonCompliant upgradesAvailable: Compliant complianceType: musthave remediationAction: enforce removalBehavior: clusterServiceVersions: Delete customResourceDefinitions: Keep operatorGroups: DeleteIfUnused subscriptions: Delete severity: high subscription: channel: alpha name: argocd-operator source: community-operators sourceNamespace: openshift-marketplace upgradeApproval: Automatic versions: [] status: compliant: Compliant conditions: - lastTransitionTime: '2024-07-29T15:20:48Z' message: CatalogSource was found reason: CatalogSourcesFound status: 'False' type: CatalogSourcesUnhealthy - lastTransitionTime: '2024-07-29T15:48:20Z' message: >- Compliant; the policy spec is valid, the policy does not specify an OperatorGroup but one already exists in the namespace - assuming that OperatorGroup is correct, the Subscription matches what is required by the policy, no InstallPlans requiring approval were found, ClusterServiceVersion (argocd-operator.v0.11.0) - install strategy completed with no errors, there are CRDs present for the operator, all operator Deployments have their minimum availability, CatalogSource was found reason: Compliant status: 'True' type: Compliant - lastTransitionTime: '2024-07-29T15:47:45Z' message: the Subscription matches what is required by the policy reason: SubscriptionMatches status: 'True' type: SubscriptionCompliant relatedObjects: - compliant: Compliant object: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: community-operators namespace: openshift-marketplace reason: Resource found as expected - compliant: Compliant object: apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: argocd-operator namespace: openshift-operators properties: createdByPolicy: true uid: f3e6d8a7-eb73-4b29-b804-bf4609d2f7fb reason: Resource found as expected resolvedSubscriptionLabel: argocd-operator.openshift-operators <|endoftext|> # istio_46868.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/46868 releaseNotes: - | **Fixed** SDS fetching timeout when we donot push back invalid certificate to envoy. <|endoftext|> # istio_35884.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Updated** `WorkloadEntry` resources will be read across clusters and no longer need to be manually mirrored to other clusters. These endpoints are now automatically discovered and reachable in both multi-cluster and multi-network meshes. <|endoftext|> # helm_charts_artifactory-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "artifactory.fullname" . }} labels: app: {{ template "artifactory.name" . }} chart: {{ template "artifactory.chart" . }} component: {{ .Values.artifactory.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.artifactory.service.annotations }} annotations: {{ toYaml .Values.artifactory.service.annotations | indent 4 }} {{- end }} spec: type: {{ .Values.artifactory.service.type }} ports: - port: {{ .Values.artifactory.externalPort }} targetPort: {{ .Values.artifactory.internalPort }} protocol: TCP name: {{ .Release.Name }} {{- if .Values.artifactory.replicator.enabled }} - port: {{ .Values.artifactory.externalPortReplicator }} targetPort: {{ .Values.artifactory.internalPortReplicator }} protocol: TCP name: replicator {{- end}} selector: app: {{ template "artifactory.name" . }} component: "{{ .Values.artifactory.name }}" release: {{ .Release.Name }} <|endoftext|> # istio_sidecar_template.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: values: sidecarInjectorWebhook: defaultTemplates: ["sidecar", "credential-volume"] templates: credential-volume: | spec: volumes: - name: application-credentials secret: secretName: secret containers: - name: istio-proxy volumeMounts: - name: application-credentials mountPath: /etc/istio/application-credentials readOnly: true <|endoftext|> # helm_charts_workers-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "sentry.fullname" . }}-worker labels: app: {{ template "sentry.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: selector: matchLabels: app: {{ template "sentry.fullname" . }} release: "{{ .Release.Name }}" role: worker replicas: {{ .Values.worker.replicacount }} template: metadata: annotations: metrics-enabled: {{ .Values.metrics.enabled | quote }} checksum/configYml: {{ .Values.config.configYml | sha256sum }} checksum/sentryConfPy: {{ .Values.config.sentryConfPy | sha256sum }} checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} {{- if .Values.worker.podAnnotations }} {{ toYaml .Values.worker.podAnnotations | indent 8 }} {{- end }} labels: app: {{ template "sentry.fullname" . }} release: "{{ .Release.Name }}" role: worker {{- if .Values.worker.podLabels }} {{ toYaml .Values.worker.podLabels | indent 8 }} {{- end }} spec: serviceAccountName: {{ template "sentry.serviceAccountName" . }} {{- if .Values.worker.affinity }} affinity: {{ toYaml .Values.worker.affinity | indent 8 }} {{- end }} {{- if .Values.worker.nodeSelector }} nodeSelector: {{ toYaml .Values.worker.nodeSelector | indent 8 }} {{- end }} {{- if .Values.worker.tolerations }} tolerations: {{ toYaml .Values.worker.tolerations | indent 8 }} {{- end }} {{- if .Values.worker.schedulerName }} schedulerName: "{{ .Values.worker.schedulerName }}" {{- end }} {{- if .Values.worker.priorityClassName }} priorityClassName: "{{ .Values.worker.priorityClassName }}" {{- end }} {{- if .Values.image.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.image.imagePullSecrets | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }}-workers image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - "run" - "worker" {{- if .Values.worker.concurrency }} - "-c" - "{{ .Values.worker.concurrency }}" {{- end }} ports: - containerPort: {{ .Values.service.internalPort }} env: - name: SENTRY_SECRET_KEY valueFrom: secretKeyRef: name: {{ template "sentry.fullname" . }} key: sentry-secret - name: SENTRY_DB_USER value: {{ default "sentry" .Values.postgresql.postgresqlUsername | quote }} - name: SENTRY_DB_NAME value: {{ default "sentry" .Values.postgresql.postgresqlDatabase | quote }} - name: SENTRY_DB_PASSWORD valueFrom: secretKeyRef: {{- if .Values.postgresql.existingSecret }} name: {{ .Values.postgresql.existingSecret }} {{- else }} name: {{ template "sentry.postgresql.secret" . }} {{- end }} key: {{ template "sentry.postgresql.secretKey" . }} - name: SENTRY_POSTGRES_HOST value: {{ template "sentry.postgresql.host" . }} - name: SENTRY_POSTGRES_PORT value: {{ template "sentry.postgresql.port" . }} {{- if or (.Values.redis.enabled) (.Values.redis.password) (.Values.redis.existingSecret) }} - name: SENTRY_REDIS_PASSWORD valueFrom: secretKeyRef: {{- if .Values.redis.existingSecret }} name: {{ .Values.redis.existingSecret }} {{- else }} name: {{ template "sentry.redis.secret" . }} {{- end }} key: {{ template "sentry.redis.secretKey" . }} {{- end }} - name: SENTRY_REDIS_HOST value: {{ template "sentry.redis.host" . }} - name: SENTRY_REDIS_PORT value: {{ template "sentry.redis.port" . }} - name: SENTRY_EMAIL_HOST value: {{ default "" .Values.email.host | quote }} - name: SENTRY_EMAIL_PORT value: {{ default "" .Values.email.port | quote }} - name: SENTRY_EMAIL_USER value: {{ default "" .Values.email.user | quote }} - name: SENTRY_EMAIL_PASSWORD valueFrom: secretKeyRef: {{- if .Values.email.existingSecret }} name: {{ .Values.email.existingSecret }} {{- else }} name: {{ template "sentry.fullname" . }} {{- end }} key: smtp-password - name: SENTRY_EMAIL_USE_TLS value: {{ .Values.email.use_tls | quote }} - name: SENTRY_SERVER_EMAIL value: {{ .Values.email.from_address | quote }} {{ if eq .Values.filestore.backend "gcs" }} - name: GOOGLE_APPLICATION_CREDENTIALS value: /var/run/secrets/google/{{ .Values.filestore.gcs.credentialsFile }} {{ end }} {{- if eq .Values.filestore.backend "s3" }} - name: AWS_ACCESS_KEY_ID valueFrom: secretKeyRef: {{- if .Values.filestore.s3.existingSecret }} name: {{ .Values.filestore.s3.existingSecret }} {{- else }} name: {{ template "sentry.fullname" . }} {{- end }} key: AWS_ACCESS_KEY_ID - name: AWS_SECRET_ACCESS_KEY valueFrom: secretKeyRef: {{- if .Values.filestore.s3.existingSecret }} name: {{ .Values.filestore.s3.existingSecret }} {{- else }} name: {{ template "sentry.fullname" . }} {{- end }} key: AWS_SECRET_ACCESS_KEY {{- end }} {{- if .Values.worker.env }} {{ toYaml .Values.worker.env | indent 8 }} {{- end }} volumeMounts: - mountPath: /etc/sentry name: config readOnly: true {{- if eq .Values.filestore.backend "gcs" }} - name: sentry-google-cloud-key mountPath: /var/run/secrets/google {{- end }} {{- if eq .Values.filestore.backend "filesystem" }} - mountPath: {{ .Values.filestore.filesystem.path }} name: sentry-data {{- end }} resources: {{ toYaml .Values.worker.resources | indent 12 }} volumes: - name: config configMap: name: {{ template "sentry.fullname" . }} {{- if eq .Values.filestore.backend "gcs" }} - name: sentry-google-cloud-key secret: secretName: {{ .Values.filestore.gcs.secretName }} {{ end }} - name: sentry-data {{- if and (.Values.filestore.filesystem.persistence.enabled) (.Values.filestore.filesystem.persistence.persistentWorkers) }} persistentVolumeClaim: claimName: {{ .Values.filestore.filesystem.persistence.existingClaim | default (include "sentry.fullname" .) }} {{- else }} emptyDir: {} {{ end }} <|endoftext|> # flux_example_ingress-nginx.yaml --- apiVersion: v1 kind: Namespace metadata: name: ingress-nginx labels: toolkit.fluxcd.io/tenant: sre-team --- apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: name: ingress-nginx namespace: ingress-nginx spec: interval: 24h url: https://kubernetes.github.io/ingress-nginx --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: ingress-nginx namespace: ingress-nginx spec: dependsOn: - name: cert-manager namespace: cert-manager interval: 12h install: strategy: name: RetryOnFailure retryInterval: 2m upgrade: strategy: name: RetryOnFailure retryInterval: 3m chart: spec: chart: ingress-nginx version: "*" sourceRef: kind: HelmRepository name: ingress-nginx namespace: ingress-nginx interval: 12h values: controller: admissionWebhooks: certManager: enabled: true service: type: "NodePort" <|endoftext|> # istio_nonroot-gateway.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 23379 releaseNotes: - | **Improved** gateway deployments to run as non-root by default. <|endoftext|> # k8s_docs_redis-follower-service.yaml # SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook apiVersion: v1 kind: Service metadata: name: redis-follower labels: app: redis role: follower tier: backend spec: ports: # the port that this service should serve on - port: 6379 selector: app: redis role: follower tier: backend <|endoftext|> # istio_deployment-con-sec-uid.yaml apiVersion: apps/v1 kind: Deployment metadata: name: deploy-con-sec-uid labels: app: helloworld version: v1 spec: replicas: 1 selector: matchLabels: app: helloworld version: v1 template: metadata: labels: app: helloworld version: v1 spec: securityContext: runAsUser: 1337 containers: - name: helloworld image: registry.istio.io/release/examples-helloworld-v1 securityContext: runAsUser: 1337 resources: requests: cpu: "100m" imagePullPolicy: IfNotPresent #Always ports: - containerPort: 5000 <|endoftext|> # istio_51074.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 50958 releaseNotes: - | **Fixed** Ensure CNI plugin inherits CNI agent log level, simplify CNI logging config <|endoftext|> # argocd_source_workflow.yaml - k8sOperation: create unstructuredObj: apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: labels: workflows.argoproj.io/workflow-template: workflow-template-submittable name: workflow-template-submittable-202306221735 namespace: default ownerReferences: - apiVersion: argoproj.io/v1alpha1 kind: WorkflowTemplate name: workflow-template-submittable spec: workflowTemplateRef: name: workflow-template-submittable <|endoftext|> # helm_charts_udp-configmap.yaml {{- if .Values.udp }} apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.fullname" . }}-udp data: {{ tpl (toYaml .Values.udp) . | indent 2 }} {{- end }} <|endoftext|> # helm_charts_halyard-sa.yaml {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: {{- if .Values.serviceAccount.halyardName }} name: {{ .Values.serviceAccount.halyardName }} {{- else }} name: {{ template "spinnaker.fullname" . }}-halyard {{- end }} namespace: {{ .Release.Namespace }} labels: {{ include "spinnaker.standard-labels" . | indent 4 }} {{- if .Values.serviceAccount.serviceAccountAnnotations }} annotations: {{ toYaml .Values.serviceAccount.serviceAccountAnnotations | indent 4 }} {{- end }} {{- end }} <|endoftext|> # istio_27430.yaml piVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** `--type` for `istioctl experimental create-remote-secret` to allow user specify type for the created secret <|endoftext|> # helm_charts_nginx-config.yaml {{- if .Values.nginx.enabled -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "nextcloud.fullname" . }}-nginxconfig labels: app.kubernetes.io/name: {{ include "nextcloud.name" . }} helm.sh/chart: {{ include "nextcloud.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} data: nginx.conf: |- {{- if .Values.nginx.config.default }} worker_processes auto; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; upstream php-handler { server 127.0.0.1:9000; } server { listen 80; # Add headers to serve security related headers # Before enabling Strict-Transport-Security headers please read into this # topic first. #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; # # WARNING: Only add the preload option once you read about # the consequences in https://hstspreload.org/. This option # will add the domain to a hardcoded list that is shipped # in all major browsers and getting removed from this list # could take several months. add_header Referrer-Policy "no-referrer" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Download-Options "noopen" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Permitted-Cross-Domain-Policies "none" always; add_header X-Robots-Tag "none" always; add_header X-XSS-Protection "1; mode=block" always; # Remove X-Powered-By, which is an information leak fastcgi_hide_header X-Powered-By; # Path to the root of your installation root /var/www/html; location = /robots.txt { allow all; log_not_found off; access_log off; } # The following 2 rules are only needed for the user_webfinger app. # Uncomment it if you're planning to use this app. #rewrite ^/.well-known/host-meta /public.php?service=host-meta last; #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; # The following rule is only needed for the Social app. # Uncomment it if you're planning to use this app. #rewrite ^/.well-known/webfinger /public.php?service=webfinger last; location = /.well-known/carddav { return 301 $scheme://$host:$server_port/remote.php/dav; } location = /.well-known/caldav { return 301 $scheme://$host:$server_port/remote.php/dav; } # set max upload size client_max_body_size 10G; fastcgi_buffers 64 4K; # Enable gzip but do not remove ETag headers gzip on; gzip_vary on; gzip_comp_level 4; gzip_min_length 256; gzip_proxied expired no-cache no-store private no_last_modified no_etag auth; gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; # Uncomment if your server is build with the ngx_pagespeed module # This module is currently not supported. #pagespeed off; location / { rewrite ^ /index.php; } location ~ ^\/(?:build|tests|config|lib|3rdparty|templates|data)\/ { deny all; } location ~ ^\/(?:\.|autotest|occ|issue|indie|db_|console) { deny all; } location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+)\.php(?:$|\/) { fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; set $path_info $fastcgi_path_info; try_files $fastcgi_script_name =404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $path_info; # fastcgi_param HTTPS on; # Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; # Enable pretty urls fastcgi_param front_controller_active true; fastcgi_pass php-handler; fastcgi_intercept_errors on; fastcgi_request_buffering off; } location ~ ^\/(?:updater|oc[ms]-provider)(?:$|\/) { try_files $uri/ =404; index index.php; } # Adding the cache control header for js, css and map files # Make sure it is BELOW the PHP block location ~ \.(?:css|js|woff2?|svg|gif|map)$ { try_files $uri /index.php$request_uri; add_header Cache-Control "public, max-age=15778463"; # Add headers to serve security related headers (It is intended to # have those duplicated to the ones above) # Before enabling Strict-Transport-Security headers please read into # this topic first. #add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always; # # WARNING: Only add the preload option once you read about # the consequences in https://hstspreload.org/. This option # will add the domain to a hardcoded list that is shipped # in all major browsers and getting removed from this list # could take several months. add_header Referrer-Policy "no-referrer" always; add_header X-Content-Type-Options "nosniff" always; add_header X-Download-Options "noopen" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Permitted-Cross-Domain-Policies "none" always; add_header X-Robots-Tag "none" always; add_header X-XSS-Protection "1; mode=block" always; # Optional: Don't log access to assets access_log off; } location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ { try_files $uri /index.php$request_uri; # Optional: Don't log access to other assets access_log off; } } } {{- else }} {{ .Values.nginx.config.custom | indent 4 }} {{- end }} {{- end }} <|endoftext|> # istio_tls-redirect.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 27315 - 27157 releaseNotes: - | **Fixed** issues resulting in missing routes when using `httpsRedirect` in a `Gateway`. <|endoftext|> # grafana_charts_monitoring.grafana.com_metricsinstances.yaml --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: metricsinstances.monitoring.grafana.com spec: group: monitoring.grafana.com names: categories: - agent-operator kind: MetricsInstance listKind: MetricsInstanceList plural: metricsinstances singular: metricsinstance scope: Namespaced versions: - name: v1alpha1 schema: openAPIV3Schema: properties: apiVersion: type: string kind: type: string metadata: type: object spec: properties: additionalScrapeConfigs: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic maxWALTime: type: string minWALTime: type: string podMonitorNamespaceSelector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic podMonitorSelector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic probeNamespaceSelector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic probeSelector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic remoteFlushDeadline: type: string remoteWrite: items: properties: basicAuth: properties: password: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic username: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic type: object bearerToken: type: string bearerTokenFile: type: string headers: additionalProperties: type: string type: object metadataConfig: properties: send: type: boolean sendInterval: type: string type: object name: type: string oauth2: properties: clientId: properties: configMap: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic secret: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic type: object clientSecret: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic endpointParams: additionalProperties: type: string type: object scopes: items: type: string type: array tokenUrl: minLength: 1 type: string required: - clientId - clientSecret - tokenUrl type: object proxyUrl: type: string queueConfig: properties: batchSendDeadline: type: string capacity: type: integer maxBackoff: type: string maxRetries: type: integer maxSamplesPerSend: type: integer maxShards: type: integer minBackoff: type: string minShards: type: integer retryOnRateLimit: type: boolean type: object remoteTimeout: type: string sigv4: properties: accessKey: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic profile: type: string region: type: string roleARN: type: string secretKey: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic type: object tlsConfig: properties: ca: properties: configMap: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic secret: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic type: object caFile: type: string cert: properties: configMap: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic secret: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic type: object certFile: type: string insecureSkipVerify: type: boolean keyFile: type: string keySecret: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic serverName: type: string type: object url: type: string writeRelabelConfigs: items: properties: action: default: replace enum: - replace - Replace - keep - Keep - drop - Drop - hashmod - HashMod - labelmap - LabelMap - labeldrop - LabelDrop - labelkeep - LabelKeep - lowercase - Lowercase - uppercase - Uppercase - keepequal - KeepEqual - dropequal - DropEqual type: string modulus: format: int64 type: integer regex: type: string replacement: type: string separator: type: string sourceLabels: items: pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ type: string type: array targetLabel: type: string type: object type: array required: - url type: object type: array serviceMonitorNamespaceSelector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic serviceMonitorSelector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic walTruncateFrequency: type: string writeStaleOnShutdown: type: boolean type: object type: object served: true storage: true <|endoftext|> # istio_jaeger.yaml apiVersion: apps/v1 kind: Deployment metadata: name: jaeger namespace: istio-system labels: app: jaeger spec: selector: matchLabels: app: jaeger template: metadata: labels: app: jaeger sidecar.istio.io/inject: "false" annotations: prometheus.io/scrape: "true" prometheus.io/port: "8888" spec: containers: - name: jaeger image: "docker.io/jaegertracing/jaeger:2.14.0" args: - "--config" - "/jaeger-configuration/config.yaml" livenessProbe: httpGet: path: /status port: 13133 readinessProbe: httpGet: path: /status port: 13133 volumeMounts: - name: data mountPath: /badger - name: jaeger-configuration mountPath: "/jaeger-configuration" resources: requests: cpu: 10m volumes: - name: data emptyDir: {} - name: jaeger-configuration configMap: name: jaeger --- apiVersion: v1 kind: Service metadata: name: tracing namespace: istio-system labels: app: jaeger spec: type: ClusterIP ports: - name: http-query port: 80 protocol: TCP targetPort: 16686 # Note: Change port name if you add '--query.grpc.tls.enabled=true' - name: grpc-query port: 16685 protocol: TCP targetPort: 16685 selector: app: jaeger --- # Source: kiali-server/templates/configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: jaeger namespace: istio-system labels: app: jaeger data: # Combination of # * https://github.com/jaegertracing/jaeger/blob/v2.13.0/cmd/jaeger/config-badger.yaml # * https://github.com/jaegertracing/jaeger/blob/v2.13.0/cmd/jaeger/internal/all-in-one.yaml config.yaml: | service: extensions: [jaeger_storage, jaeger_query, remote_sampling, healthcheckv2, expvar, zpages] pipelines: traces: receivers: [otlp, jaeger, zipkin] processors: [batch] exporters: [jaeger_storage_exporter] telemetry: resource: service.name: jaeger metrics: level: detailed readers: - pull: exporter: prometheus: host: "0.0.0.0" port: 8888 logs: level: info # TODO Initialize telemetry tracer once OTEL released new feature. # https://github.com/open-telemetry/opentelemetry-collector/issues/10663 extensions: jaeger_query: base_path: /jaeger storage: traces: badger_storage jaeger_storage: backends: badger_storage: badger: ephemeral: false directories: keys: "/badger/key" values: "/badger/data/" remote_sampling: # We can either use file or adaptive sampling strategy in remote_sampling file: path: default_sampling_probability: 1 reload_interval: 1s # adaptive: # sampling_store: some_store # initial_sampling_probability: 0.1 http: endpoint: "0.0.0.0:5778" grpc: endpoint: "0.0.0.0:5779" healthcheckv2: use_v2: true http: endpoint: "0.0.0.0:13133" grpc: expvar: endpoint: "0.0.0.0:27777" zpages: # for some reason the official extension listens on ephemeral port 55679 # so we override it with a normal port endpoint: "0.0.0.0:27778" receivers: otlp: protocols: grpc: endpoint: "0.0.0.0:4317" http: endpoint: "0.0.0.0:4318" jaeger: protocols: grpc: endpoint: "0.0.0.0:14250" thrift_http: endpoint: "0.0.0.0:14268" thrift_binary: endpoint: "0.0.0.0:6832" thrift_compact: endpoint: "0.0.0.0:6831" zipkin: endpoint: "0.0.0.0:9411" processors: batch: exporters: jaeger_storage_exporter: trace_storage: badger_storage --- # Jaeger implements the Zipkin API. To support swapping out the tracing backend, we use a Service named Zipkin. apiVersion: v1 kind: Service metadata: labels: name: zipkin name: zipkin namespace: istio-system spec: ports: - port: 9411 targetPort: 9411 name: http-query selector: app: jaeger --- apiVersion: v1 kind: Service metadata: name: jaeger-collector namespace: istio-system labels: app: jaeger spec: type: ClusterIP ports: - name: jaeger-collector-http port: 14268 targetPort: 14268 protocol: TCP - name: jaeger-collector-grpc port: 14250 targetPort: 14250 protocol: TCP - port: 9411 targetPort: 9411 name: http-zipkin - port: 4317 name: grpc-otel - port: 4318 name: http-otel selector: app: jaeger <|endoftext|> # k8s_docs_pod-multiple-secret-env-variable.yaml apiVersion: v1 kind: Pod metadata: name: envvars-multiple-secrets spec: containers: - name: envars-test-container image: nginx env: - name: BACKEND_USERNAME valueFrom: secretKeyRef: name: backend-user key: backend-username - name: DB_USERNAME valueFrom: secretKeyRef: name: db-user key: db-username <|endoftext|> # argocd_source_crd-v1-terminating-condition-progressing.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: examples.example.io spec: conversion: strategy: None group: example.io names: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example preserveUnknownFields: true scope: Namespaced versions: - additionalPrinterColumns: - description: >- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata jsonPath: .metadata.creationTimestamp name: Age type: date name: v1alpha1 served: true storage: true subresources: {} status: acceptedNames: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example conditions: - lastTransitionTime: '2024-05-19T23:35:28Z' message: no conflicts found reason: NoConflicts status: 'True' type: NamesAccepted - lastTransitionTime: '2024-05-19T23:35:28Z' message: user has deleted the CRD reason: terminating status: 'True' type: Terminating storedVersions: - v1alpha1 <|endoftext|> # kube_prometheus_prometheusOperator-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.90.1 name: prometheus-operator namespace: monitoring spec: clusterIP: None ports: - name: https port: 8443 targetPort: https selector: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus <|endoftext|> # istio_54690.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 53596 releaseNotes: - | **Deprecated** use of `ISTIO_META_DNS_AUTO_ALLOCATE` in proxyMetadata in favor of https://istio.io/latest/docs/ops/configuration/traffic-management/dns-proxy/#dns-auto-allocation-v2. New users of Istio IP auto-allocation should adopt the new status-based controller. Existing users may continue to use the older implementation. <|endoftext|> # istio_56021.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 56022 releaseNotes: - | **Fixed** sidecar with old CLUSTER_ID is now able to connect to istiod with new CLUSTER_ID when `--clusterAliases` command argument is being used. - | **Added** validation for `--clusterAliases` command argument, that it shouldn't have more than one alias per cluster. <|endoftext|> # helm_charts_kubernetes-absent.yaml {{- /* Generated from 'kubernetes-absent' group from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.kubernetesAbsent }} {{- $operatorJob := printf "%s-%s" (include "prometheus-operator.fullname" .) "operator" }} {{- $prometheusJob := printf "%s-%s" (include "prometheus-operator.fullname" .) "prometheus" }} {{- $alertmanagerJob := printf "%s-%s" (include "prometheus-operator.fullname" .) "alertmanager" }} {{- $namespace := printf "%s" (include "prometheus-operator.namespace" .) }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kubernetes-absent" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kubernetes-absent rules: {{- if .Values.alertmanager.enabled }} - alert: AlertmanagerDown annotations: message: Alertmanager has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-alertmanagerdown expr: absent(up{job="{{ $alertmanagerJob }}",namespace="{{ $namespace }}"} == 1) for: 15m labels: severity: critical {{- end }} {{- if .Values.kubeDns.enabled }} - alert: CoreDNSDown annotations: message: CoreDNS has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-corednsdown expr: absent(up{job="kube-dns"} == 1) for: 15m labels: severity: critical {{- end }} {{- if .Values.kubeApiServer.enabled }} - alert: KubeAPIDown annotations: message: KubeAPI has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubeapidown expr: absent(up{job="apiserver"} == 1) for: 15m labels: severity: critical {{- end }} {{- if .Values.kubeControllerManager.enabled }} - alert: KubeControllerManagerDown annotations: message: KubeControllerManager has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubecontrollermanagerdown expr: absent(up{job="kube-controller-manager"} == 1) for: 15m labels: severity: critical {{- end }} {{- if .Values.kubeScheduler.enabled }} - alert: KubeSchedulerDown annotations: message: KubeScheduler has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubeschedulerdown expr: absent(up{job="kube-scheduler"} == 1) for: 15m labels: severity: critical {{- end }} {{- if .Values.kubeStateMetrics.enabled }} - alert: KubeStateMetricsDown annotations: message: KubeStateMetrics has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubestatemetricsdown expr: absent(up{job="kube-state-metrics"} == 1) for: 15m labels: severity: critical {{- end }} {{- if .Values.prometheusOperator.kubeletService.enabled }} - alert: KubeletDown annotations: message: Kubelet has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubeletdown expr: absent(up{job="kubelet"} == 1) for: 15m labels: severity: critical {{- end }} {{- if .Values.nodeExporter.enabled }} - alert: NodeExporterDown annotations: message: NodeExporter has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodeexporterdown expr: absent(up{job="node-exporter"} == 1) for: 15m labels: severity: critical {{- end }} - alert: PrometheusDown annotations: message: Prometheus has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-prometheusdown expr: absent(up{job="{{ $prometheusJob }}",namespace="{{ $namespace }}"} == 1) for: 15m labels: severity: critical {{- if .Values.prometheusOperator.enabled }} - alert: PrometheusOperatorDown annotations: message: PrometheusOperator has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-prometheusoperatordown expr: absent(up{job="{{ $operatorJob }}",namespace="{{ $namespace }}"} == 1) for: 15m labels: severity: critical {{- end }} {{- end }} <|endoftext|> # grafana_charts_service-query-frontend.yaml apiVersion: v1 kind: Service metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "query-frontend") }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "query-frontend") | nindent 4 }} {{- with .Values.queryFrontend.service.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.queryFrontend.service.annotations }} annotations: {{- tpl (toYaml . | nindent 4) $ }} {{- end }} spec: type: {{ .Values.queryFrontend.service.type }} ipFamilies: {{ .Values.tempo.service.ipFamilies }} ipFamilyPolicy: {{ .Values.tempo.service.ipFamilyPolicy }} ports: - name: http-metrics port: {{ .Values.queryFrontend.service.httpMetricsPort }} targetPort: http-metrics - name: grpc port: {{ .Values.queryFrontend.service.grpcPort }} protocol: TCP targetPort: grpc {{- if .Values.queryFrontend.appProtocol.grpc }} appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }} {{- end }} {{- if .Values.queryFrontend.query.enabled }} - name: tempo-query-jaeger-ui port: {{ .Values.queryFrontend.service.port }} targetPort: {{ .Values.queryFrontend.service.port }} - name: tempo-query-metrics port: 16687 targetPort: jaeger-metrics {{- end }} {{- if .Values.queryFrontend.service.loadBalancerIP }} loadBalancerIP: {{ .Values.queryFrontend.service.loadBalancerIP }} {{- end }} {{- with .Values.queryFrontend.service.loadBalancerSourceRanges}} loadBalancerSourceRanges: {{ toYaml . | nindent 4 }} {{- end }} selector: {{- include "tempo.selectorLabels" (dict "ctx" . "component" "query-frontend") | nindent 4 }} <|endoftext|> # argocd_source_runningAnalysisRun.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: name: canary-demo-analysis-template-6c6bb7cf6f-5bpxj namespace: default spec: analysisSpec: metrics: - failureCondition: len(result) == 0 interval: 10 name: memory-usage provider: prometheus: address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' query: > sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) successCondition: len(result) > 0 status: metricResults: - count: 2 measurements: - finishedAt: '2019-10-28T18:22:05Z' startedAt: '2019-10-28T18:22:05Z' phase: Successful value: '[0.9721293199554069]' - finishedAt: '2019-10-28T18:22:15Z' startedAt: '2019-10-28T18:22:15Z' phase: Successful value: '[0.9721293199554069]' name: memory-usage phase: Running successful: 2 phase: Running <|endoftext|> # istio_46651.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 46524 releaseNotes: - | **Removed** support for installing `ambient` profile with in-cluster operator. <|endoftext|> # istio_waypoint-auto-http2.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue causing waypoints to downgrade HTTP2 traffic to HTTP/1.1 if the port was not explicitly declared as `http2`. <|endoftext|> # istio_25746.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 25744 releaseNotes: - | **Added** support for injecting istio-cni into `k8s.v1.cni.cncf.io/networks` annotation with pre-existing value that uses JSON notation. <|endoftext|> # argocd_source_argocd-notifications-controller-network-policy.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: labels: app.kubernetes.io/component: notifications-controller app.kubernetes.io/name: argocd-notifications-controller app.kubernetes.io/part-of: argocd name: argocd-notifications-controller-network-policy spec: podSelector: matchLabels: app.kubernetes.io/name: argocd-notifications-controller ingress: - from: - namespaceSelector: { } ports: - protocol: TCP port: 9001 policyTypes: - Ingress <|endoftext|> # istio_peer-authn-strict-root-permissive-workload-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-mesh namespace: istio-system spec: mtls: mode: STRICT --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: workload namespace: foo spec: selector: matchLabels: app: a portLevelMtls: 9090: mode: PERMISSIVE <|endoftext|> # istio_56687.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 56687 releaseNotes: - | **Fixed** ignoring the `topology.istio.io/network` label on the system namespace when `discoverySelectors` are in use. <|endoftext|> # grafana_charts_statefulset-metrics-generator.yaml {{- if and (.Values.metricsGenerator.enabled) (eq .Values.metricsGenerator.kind "StatefulSet") }} {{ $dict := dict "ctx" . "component" "metrics-generator" "memberlist" true }} {{- $storageClass := .Values.metricsGenerator.persistence.storageClass | default .Values.global.storageClass }} {{- if eq $storageClass "-" }}{{- $storageClass = "" }}{{- end }} apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.metricsGenerator.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: minReadySeconds: {{ .Values.metricsGenerator.minReadySeconds }} replicas: {{ .Values.metricsGenerator.replicas }} podManagementPolicy: Parallel updateStrategy: rollingUpdate: partition: 0 selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} serviceName: metrics-generator template: metadata: labels: {{- include "tempo.podLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} {{- if .Values.metricsGenerator.persistence.enabled }} storage/size: {{ .Values.metricsGenerator.persistence.size | quote }} {{- end }} {{- with .Values.tempo.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if or (.Values.metricsGenerator.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.metricsGenerator.priorityClassName .Values.global.priorityClassName }} {{- end }} serviceAccountName: {{ include "tempo.serviceAccountName" . }} {{- with .Values.tempo.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} enableServiceLinks: false {{- include "tempo.metricsGeneratorImagePullSecrets" . | nindent 6 -}} {{- with .Values.metricsGenerator.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: {{- toYaml .Values.metricsGenerator.initContainers | nindent 8 }} containers: - args: - -target=metrics-generator - -config.file=/conf/tempo.yaml {{- with .Values.metricsGenerator.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.imageReference" $dict }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: metrics-generator ports: {{- range .Values.metricsGenerator.ports }} - name: {{ .name | quote }} containerPort: {{ .port }} {{- end }} {{- if or .Values.global.extraEnv .Values.metricsGenerator.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.metricsGenerator.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.metricsGenerator.extraEnvFrom }} envFrom: {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.metricsGenerator.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} readinessProbe: {{- toYaml .Values.tempo.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.metricsGenerator.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config - mountPath: /runtime-config name: runtime-config - mountPath: /var/tempo name: wal {{- if .Values.enterprise.enabled }} - name: license mountPath: /license {{- end }} {{- with .Values.metricsGenerator.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} terminationGracePeriodSeconds: {{ .Values.metricsGenerator.terminationGracePeriodSeconds }} {{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }} {{- with .Values.metricsGenerator.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- with .Values.metricsGenerator.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.metricsGenerator.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- include "tempo.configVolume" . | nindent 10 }} - name: runtime-config {{- include "tempo.runtimeVolume" . | nindent 10 }} {{- if .Values.enterprise.enabled }} - name: license secret: secretName: {{ tpl .Values.license.secretName . }} {{- end }} {{- with .Values.metricsGenerator.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- if not .Values.metricsGenerator.persistence.enabled }} - name: wal emptyDir: {{- toYaml .Values.metricsGenerator.walEmptyDir | nindent 12 }} {{- else }} {{- if .Values.metricsGenerator.persistentVolumeClaimRetentionPolicy.enabled }} persistentVolumeClaimRetentionPolicy: whenDeleted: {{ .Values.metricsGenerator.persistentVolumeClaimRetentionPolicy.whenDeleted }} whenScaled: {{ .Values.metricsGenerator.persistentVolumeClaimRetentionPolicy.whenScaled }} {{- end }} volumeClaimTemplates: - apiVersion: v1 kind: PersistentVolumeClaim metadata: {{- with .Values.metricsGenerator.persistence.annotations }} annotations: {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.ingester.persistence.labels }} labels: {{- toYaml . | nindent 10 }} {{- end }} name: wal spec: accessModes: - ReadWriteOnce storageClassName: {{ if $storageClass }}{{ $storageClass }}{{ else }}{{- "" }}{{ end }} resources: requests: storage: {{ .Values.metricsGenerator.persistence.size | quote }} {{- end }} {{- end }} <|endoftext|> # istio_hello-host-network-with-ns.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello-host-network namespace: sample spec: replicas: 7 selector: matchLabels: app: hello-host-network tier: backend track: stable template: metadata: labels: app: hello-host-network tier: backend track: stable spec: containers: - name: hello-host-network image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 hostNetwork: true <|endoftext|> # k8s_docs_simple-clusterrolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 # This cluster role binding allows anyone in the "manager" group to read secrets in any namespace. kind: ClusterRoleBinding metadata: name: read-secrets-global subjects: - kind: Group name: manager # Name is case sensitive apiGroup: rbac.authorization.k8s.io roleRef: kind: ClusterRole name: secret-reader apiGroup: rbac.authorization.k8s.io <|endoftext|> # istio_vm-cleanup-iptables.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 29556 releaseNotes: - | **Improved** virtual machine integration to cleanup `iptables` rules when the service is stopped. <|endoftext|> # k8s_examples_es-data-rc.yaml apiVersion: v1 kind: ReplicationController metadata: name: es-data labels: component: elasticsearch role: data spec: replicas: 1 template: metadata: labels: component: elasticsearch role: data spec: serviceAccount: elasticsearch containers: - name: es-data securityContext: capabilities: add: - IPC_LOCK image: quay.io/pires/docker-elasticsearch-kubernetes:1.7.1-4 env: - name: KUBERNETES_CA_CERTIFICATE_FILE value: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt - name: NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: "CLUSTER_NAME" value: "myesdb" - name: NODE_MASTER value: "false" - name: HTTP_ENABLE value: "false" ports: - containerPort: 9300 name: transport protocol: TCP volumeMounts: - mountPath: /data name: storage volumes: - name: storage emptyDir: {} <|endoftext|> # k8s_examples_rbd-with-secret.yaml apiVersion: v1 kind: Pod metadata: name: rbd2 spec: containers: - image: kubernetes/pause name: rbd-rw volumeMounts: - name: rbdpd mountPath: /mnt/rbd volumes: - name: rbdpd rbd: monitors: - '10.16.154.78:6789' - '10.16.154.82:6789' - '10.16.154.83:6789' pool: kube image: foo fsType: ext4 readOnly: true user: admin secretRef: name: ceph-secret <|endoftext|> # istio_grpc-stats.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: - 43908 - 44144 releaseNotes: - | **Fixed** an issue where grpc stats are absent. <|endoftext|> # istio_helm_exposing_waypoint_and_ztunnel_ports.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 45093 releaseNotes: - | **Fixed** an issue preventing the ports of waypoint and ztunnel ports being exposed. Now scrape configs can be created for the Ambient components too. upgradeNotes: [] # docs is a list of related docs to the change. docs: - "https://istio.io/latest/docs/ops/integrations/prometheus/" securityNotes: [] <|endoftext|> # k8s_examples_storageos-pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: pv0001 spec: capacity: storage: 5Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Delete storageClassName: fast storageos: # This volume must already exist within StorageOS volumeName: pv0001 # volumeNamespace is optional, and specifies the volume scope within # StorageOS. Set to `default` or leave blank if you are not using # namespaces. #volumeNamespace: default # The filesystem type to create on the volume, if required. fsType: ext4 # The secret name for API credentials secretName: storageos-secret <|endoftext|> # helm_charts_config-openssl.yaml {{- if and .Values.grpc .Values.certs.grpc.create }} apiVersion: v1 kind: ConfigMap metadata: labels: {{ include "dex.labels" . | indent 4 }} name: {{ template "dex.fullname" . }}-openssl-config data: openssl.conf: | {{ .Files.Get "config/openssl.conf" | indent 4 }} {{- end }} <|endoftext|> # helm_charts_create-cluster-job.yaml {{ if and .Release.IsInstall .Values.job.autoCreateCluster }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "stolon.fullname" . }}-create-cluster labels: app: {{ template "stolon.name" . }} chart: {{ template "stolon.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: "helm.sh/hook": post-install "helm.sh/hook-delete-policy": before-hook-creation spec: template: metadata: labels: app: {{ template "stolon.fullname" . }} release: {{ .Release.Name }} {{- if .Values.job.annotations }} annotations: {{ toYaml .Values.job.annotations | indent 8 }} {{- end }} spec: restartPolicy: OnFailure serviceAccountName: {{ template "stolon.serviceAccountName" . }} {{- if eq .Values.store.backend "etcdv2" "etcdv3" }} initContainers: - name: {{ .Chart.Name }}-etcd-wait image: "{{ .Values.etcdImage.repository }}:{{ .Values.etcdImage.tag }}" imagePullPolicy: {{ .Values.etcdImage.pullPolicy }} command: ["sh", "-c", "while ! etcdctl --endpoints {{ .Values.store.endpoints }} cluster-health; do sleep 1 && echo -n .; done"] {{- end }} containers: - name: {{ template "stolon.fullname" . }}-create-cluster image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: ["/usr/local/bin/stolonctl"] args: - init - --cluster-name={{ template "stolon.clusterName" . }} - --store-backend={{ .Values.store.backend }} {{- if eq .Values.store.backend "kubernetes" }} - --kube-resource-kind={{ .Values.store.kubeResourceKind }} {{- else }} - --store-endpoints={{ .Values.store.endpoints }} {{- end }} - --yes - '{ "initMode": "new", {{- range $key, $value := .Values.clusterSpec }} {{ $key | quote }}: {{ if typeIs "string" $value }} {{ $value | quote }} {{ else }} {{ $value }} {{ end }}, {{- end }} {{ if .Values.tls.enabled }} "pgParameters": {{- $pgParameters := .Values.pgParameters -}}{{ $all_init := set $pgParameters "ssl" "on" }}{{ $all_init := set $all_init "ssl_cert_file" "/certs/serverCrt.crt" }} {{ $all_init := set $all_init "ssl_key_file" "/certs/serverKey.key" }}{{ $all_init := set $all_init "ssl_ca_file" "/certs/rootCa.crt" }}{{ toJson $all_init }}{{ else }}"pgParameters": {{ toJson .Values.pgParameters }} {{ end}} }' {{ end }} <|endoftext|> # istio_add-idle-timeout-to-destination-rule-tcp-settings.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [] releaseNotes: - | **Added** support for setting `idle_timeout` in TcpProxy filters for outbound traffic. <|endoftext|> # argocd_source_successfulExperiment.yaml apiVersion: argoproj.io/v1alpha1 kind: Experiment metadata: name: example-experiment namespace: argo-rollouts spec: duration: 60 templates: - name: baseline selector: matchLabels: app: rollouts-demo color: blue template: metadata: labels: app: rollouts-demo color: blue spec: containers: - image: 'argoproj/rollouts-demo:blue' name: guestbook - name: canary selector: matchLabels: app: rollouts-demo color: yellow template: metadata: labels: app: rollouts-demo color: yellow spec: containers: - image: 'argoproj/rollouts-demo:yellow' name: guestbook status: availableAt: '2019-10-28T20:15:02Z' conditions: - lastTransitionTime: '2019-10-28T20:20:54Z' lastUpdateTime: '2019-10-28T20:20:54Z' message: Experiment "example-experiment" has successfully ran and completed. reason: ExperimentCompleted phase: 'False' type: Progressing phase: Successful templateStatuses: - availableReplicas: 1 lastTransitionTime: '2019-10-28T20:15:02Z' name: baseline readyReplicas: 1 replicas: 1 phase: Successful updatedReplicas: 1 - availableReplicas: 1 lastTransitionTime: '2019-10-28T20:15:01Z' name: canary readyReplicas: 1 replicas: 1 phase: Successful updatedReplicas: 1 <|endoftext|> # k8s_docs_pod-nginx-required-affinity.yaml apiVersion: v1 kind: Pod metadata: name: nginx spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: disktype operator: In values: - ssd containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent <|endoftext|> # istio_revision-tag-default-validation.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** `istioctl tag set default` to control which revision handles Istio resource validation. The revision indicated through the default tag will also win leader elections and assume singleton cluster responsibilities. upgradeNotes: - title: Default revision must be switched when performing a revision-based upgrade. content: | When installing a new Istio control plane revision the previous resource validator will remain unchanged to prevent unintended effects on the existing, stable revision. Once prepared to migrate over to the new control plane revision, cluster operators should switch the default revision. This can be done thorugh `istioctl tag set default --revision `, or if using a Helm-based flow, `helm upgrade istio-base manifests/charts/base -n istio-system --set defaultRevision=`. <|endoftext|> # istio_istioctl-pc-all.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issues: - 28191 releaseNotes: - | **Added** the `istioctl proxy-config all` command to view the full proxy configuration. <|endoftext|> # k8s_examples_vttablet-pod-template.yaml kind: Pod apiVersion: v1 metadata: name: vttablet-{{uid}} labels: component: vttablet keyspace: "{{keyspace}}" shard: "{{shard_label}}" tablet: "{{alias}}" app: vitess spec: containers: - name: vttablet image: vitess/lite:v2.0.0-alpha5 volumeMounts: - name: syslog mountPath: /dev/log - name: vtdataroot mountPath: /vt/vtdataroot - name: certs readOnly: true mountPath: /etc/ssl/certs resources: limits: memory: "1Gi" cpu: "500m" command: - bash - "-c" - >- set -e mysql_socket="$VTDATAROOT/{{tablet_subdir}}/mysql.sock" mkdir -p $VTDATAROOT/tmp chown -R vitess /vt while [ ! -e $mysql_socket ]; do echo "[$(date)] waiting for $mysql_socket" ; sleep 1 ; done su -p -s /bin/bash -c "mysql -u vt_dba -S $mysql_socket -e 'CREATE DATABASE IF NOT EXISTS vt_{{keyspace}}'" vitess su -p -s /bin/bash -c "/vt/bin/vttablet -topo_implementation etcd -etcd_global_addrs http://$ETCD_GLOBAL_SERVICE_HOST:$ETCD_GLOBAL_SERVICE_PORT -log_dir $VTDATAROOT/tmp -alsologtostderr -port {{port}} -grpc_port {{grpc_port}} -service_map 'grpc-queryservice,grpc-tabletmanager,grpc-updatestream' -binlog_player_protocol grpc -tablet-path {{alias}} -tablet_hostname $(hostname -i) -init_keyspace {{keyspace}} -init_shard {{shard}} -target_tablet_type {{tablet_type}} -mysqlctl_socket $VTDATAROOT/mysqlctl.sock -db-config-app-uname vt_app -db-config-app-dbname vt_{{keyspace}} -db-config-app-charset utf8 -db-config-dba-uname vt_dba -db-config-dba-dbname vt_{{keyspace}} -db-config-dba-charset utf8 -db-config-repl-uname vt_repl -db-config-repl-dbname vt_{{keyspace}} -db-config-repl-charset utf8 -db-config-filtered-uname vt_filtered -db-config-filtered-dbname vt_{{keyspace}} -db-config-filtered-charset utf8 -enable-rowcache -rowcache-bin /usr/bin/memcached -rowcache-socket $VTDATAROOT/{{tablet_subdir}}/memcache.sock -health_check_interval 5s -restore_from_backup {{backup_flags}}" vitess - name: mysql image: vitess/lite:v2.0.0-alpha5 volumeMounts: - name: syslog mountPath: /dev/log - name: vtdataroot mountPath: /vt/vtdataroot resources: limits: memory: "1Gi" cpu: "500m" command: - sh - "-c" - >- mkdir -p $VTDATAROOT/tmp && chown -R vitess /vt su -p -c "/vt/bin/mysqlctld -log_dir $VTDATAROOT/tmp -alsologtostderr -tablet_uid {{uid}} -socket_file $VTDATAROOT/mysqlctl.sock -db-config-app-uname vt_app -db-config-app-dbname vt_{{keyspace}} -db-config-app-charset utf8 -db-config-dba-uname vt_dba -db-config-dba-dbname vt_{{keyspace}} -db-config-dba-charset utf8 -db-config-repl-uname vt_repl -db-config-repl-dbname vt_{{keyspace}} -db-config-repl-charset utf8 -db-config-filtered-uname vt_filtered -db-config-filtered-dbname vt_{{keyspace}} -db-config-filtered-charset utf8 -bootstrap_archive mysql-db-dir_10.0.13-MariaDB.tbz" vitess # The bootstrap archive above contains an empty mysql data dir # with user permissions set up as required by Vitess. The archive is # included in the Docker image. env: - name: EXTRA_MY_CNF value: /vt/config/mycnf/master_mariadb.cnf volumes: - name: syslog hostPath: {path: /dev/log} - name: vtdataroot emptyDir: {} - name: certs hostPath: {path: /etc/ssl/certs} <|endoftext|> # istio_fix-45653.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - https://github.com/istio/istio/issues/45653 releaseNotes: - | **Fixed** an issue where `istioctl analyze` reported errors for empty file resource blocks. <|endoftext|> # argocd_source_push-secret-updated.yaml apiVersion: external-secrets.io/v1alpha1 kind: PushSecret metadata: annotations: force-sync: '0001-01-01T00:00:00Z' creationTimestamp: '2023-07-05T20:49:16Z' generation: 1 name: test-healthy namespace: external-secret resourceVersion: '777692391' uid: 88cb613a-07b0-4fb2-8fdb-d5a5a9c2c917 spec: data: - match: remoteRef: property: test remoteKey: remote/path secretKey: test deletionPolicy: None refreshInterval: 5m secretStoreRefs: - kind: ClusterSecretStore name: my-store selector: secret: name: existing-secret status: conditions: - lastTransitionTime: '2023-07-05T20:49:16Z' message: PushSecret synced successfully reason: Synced status: 'True' type: Ready syncedPushSecrets: ClusterSecretStore/my-store: remote/path/test: match: remoteRef: property: test remoteKey: remote/path secretKey: test <|endoftext|> # helm_charts_k8s-node-rsrc-use.yaml {{- /* Generated from 'k8s-node-rsrc-use' from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/grafana-dashboardDefinitions.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} apiVersion: v1 kind: ConfigMap metadata: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-node-rsrc-use" | trunc 63 | trimSuffix "-" }} annotations: {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} labels: {{- if $.Values.grafana.sidecar.dashboards.label }} {{ $.Values.grafana.sidecar.dashboards.label }}: "1" {{- end }} app: {{ template "prometheus-operator.name" $ }}-grafana {{ include "prometheus-operator.labels" $ | indent 4 }} data: k8s-node-rsrc-use.json: |- { "annotations": { "list": [ ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "hideControls": false, "links": [ ], "refresh": "10s", "rows": [ { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 1, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_cpu_utilisation:avg1m{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Utilisation", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Utilisation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_cpu_saturation_load1:{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Saturation", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Saturation (Load1)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "CPU", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 3, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_memory_utilisation:{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Memory", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Utilisation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 4, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_memory_swap_io_bytes:sum_rate{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Swap IO", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Saturation (Swap I/O)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "Bps", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Memory", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 5, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_disk_utilisation:avg_irate{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Utilisation", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Disk IO Utilisation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 6, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_disk_saturation:avg_irate{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Saturation", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Disk IO Saturation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Disk", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 7, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_net_utilisation:sum_irate{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Utilisation", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Net Utilisation (Transmitted)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "Bps", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 8, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_net_saturation:sum_irate{cluster=\"$cluster\", node=\"$node\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "Saturation", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Net Saturation (Dropped)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "Bps", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Net", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 9, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "targets": [ { "expr": "node:node_filesystem_usage:{cluster=\"$cluster\"}\n* on (namespace, pod) group_left (node) node_namespace_pod:kube_pod_info:{cluster=\"$cluster\", node=\"$node\"}\n", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}device{{`}}`}}", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Disk Utilisation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Disk", "titleSize": "h6" } ], "schemaVersion": 14, "style": "dark", "tags": [ "kubernetes-mixin" ], "templating": { "list": [ { "current": { "text": "Prometheus", "value": "Prometheus" }, "hide": 0, "label": null, "name": "datasource", "options": [ ], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 2, "includeAll": false, "label": "cluster", "multi": false, "name": "cluster", "options": [ ], "query": "label_values(:kube_pod_info_node_count:, cluster)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 0, "includeAll": false, "label": "node", "multi": false, "name": "node", "options": [ ], "query": "label_values(kube_node_info{cluster=\"$cluster\"}, node)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "Kubernetes / USE Method / Node", "uid": "4ac4f123aae0ff6dbaf4f4f66120033b", "version": 0 } {{- end }} <|endoftext|> # k8s_examples_guestbook-all-in-one.yaml apiVersion: v1 kind: Service metadata: name: redis-master labels: app: redis tier: backend role: master spec: ports: - port: 6379 targetPort: 6379 selector: app: redis tier: backend role: master --- apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: Deployment metadata: name: redis-master spec: selector: matchLabels: app: redis role: master tier: backend replicas: 1 template: metadata: labels: app: redis role: master tier: backend spec: containers: - name: master image: registry.k8s.io/redis:e2e # or just image: redis resources: requests: cpu: 100m memory: 100Mi ports: - containerPort: 6379 --- apiVersion: v1 kind: Service metadata: name: redis-replica labels: app: redis tier: backend role: replica spec: ports: - port: 6379 selector: app: redis tier: backend role: replica --- apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: Deployment metadata: name: redis-replica spec: selector: matchLabels: app: redis role: replica tier: backend replicas: 2 template: metadata: labels: app: redis role: replica tier: backend spec: containers: - name: replica image: gcr.io/google_samples/gb-redisslave:v1 resources: requests: cpu: 100m memory: 100Mi env: - name: GET_HOSTS_FROM value: dns # If your cluster config does not include a dns service, then to # instead access an environment variable to find the master # service's host, comment out the 'value: dns' line above, and # uncomment the line below: # value: env ports: - containerPort: 6379 --- apiVersion: v1 kind: Service metadata: name: frontend labels: app: guestbook tier: frontend spec: # comment or delete the following line if you want to use a LoadBalancer type: NodePort # if your cluster supports it, uncomment the following to automatically create # an external load-balanced IP for the frontend service. # type: LoadBalancer ports: - port: 80 selector: app: guestbook tier: frontend --- apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: Deployment metadata: name: frontend spec: selector: matchLabels: app: guestbook tier: frontend replicas: 3 template: metadata: labels: app: guestbook tier: frontend spec: containers: - name: php-redis image: gcr.io/google-samples/gb-frontend:v5 resources: requests: cpu: 100m memory: 100Mi env: - name: GET_HOSTS_FROM value: dns # If your cluster config does not include a dns service, then to # instead access environment variables to find service host # info, comment out the 'value: dns' line above, and uncomment the # line below: # value: env ports: - containerPort: 80 <|endoftext|> # k8s_examples_nfs-server-service.yaml kind: Service apiVersion: v1 metadata: name: nfs-server spec: ports: - name: nfs port: 2049 - name: mountd port: 20048 - name: rpcbind port: 111 selector: role: nfs-server <|endoftext|> # helm_charts_external-scripts-cm.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "hubot.fullname" . }}-external-scripts labels: {{ include "hubot.labels" . | indent 4 }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 4 }} {{- end }} data: external-scripts.json: |- [ {{- range .Values.externalScripts }} {{ . | quote }}, {{- end }} "hubot-diagnostics", "hubot-help", "hubot-redis-brain", "hubot-rules", "hubot-health" ] <|endoftext|> # argocd_source_cluster-example-fasttemplate.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: generators: - clusters: {} template: metadata: name: '{{name}}-guestbook' spec: project: "default" source: repoURL: https://github.com/argoproj/argocd-example-apps/ targetRevision: HEAD path: guestbook destination: server: '{{server}}' namespace: guestbook <|endoftext|> # helm_charts_pushgateway-clusterrole.yaml {{- if and .Values.pushgateway.enabled .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: labels: {{- include "prometheus.pushgateway.labels" . | nindent 4 }} name: {{ template "prometheus.pushgateway.fullname" . }} rules: {{- if .Values.podSecurityPolicy.enabled }} - apiGroups: - extensions resources: - podsecuritypolicies verbs: - use resourceNames: - {{ template "prometheus.pushgateway.fullname" . }} {{- else }} [] {{- end }} {{- end }} <|endoftext|> # helm_charts_server-clusterrole.yaml {{- if and .Values.server.enabled .Values.rbac.create (empty .Values.server.useExistingClusterRoleName) -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: labels: {{- include "prometheus.server.labels" . | nindent 4 }} name: {{ template "prometheus.server.fullname" . }} rules: {{- if .Values.podSecurityPolicy.enabled }} - apiGroups: - extensions resources: - podsecuritypolicies verbs: - use resourceNames: - {{ template "prometheus.server.fullname" . }} {{- end }} - apiGroups: - "" resources: - nodes - nodes/proxy - nodes/metrics - services - endpoints - pods - ingresses - configmaps verbs: - get - list - watch - apiGroups: - "extensions" - "networking.k8s.io" resources: - ingresses/status - ingresses verbs: - get - list - watch - nonResourceURLs: - "/metrics" verbs: - get {{- end }} <|endoftext|> # helm_charts_custom-metrics-apiserver-service-account.yaml {{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }} {{- end -}} <|endoftext|> # istio_merge-svc.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a security fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature area: traffic-management # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** checking services' Resolution, LabelSelector in addition to ServiceRegistry and Namespace when merging services during SidecarScope construction. <|endoftext|> # istio_31168.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 31166 releaseNotes: - | **Fixed** an issue where filter chain name is ignored when processing EnvoyFilter match. <|endoftext|> # istio_certificate-parsing-graceful-failures.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: [] releaseNotes: - | **Improved** root certificate parsing to when some certificates are invalid. Istio now filters out malformed certificates instead of rejecting the entire bundle. <|endoftext|> # grafana_charts_podsecuritypolicy.yaml {{- if and (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") .Values.rbac.create .Values.rbac.pspEnabled }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ include "promtail.fullname" . }} labels: {{- include "promtail.labels" . | nindent 4 }} spec: {{- toYaml .Values.podSecurityPolicy | nindent 2 }} {{- end }} <|endoftext|> # argocd_source_pod-running-restart-never.yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: 2018-12-02T09:15:16Z name: my-pod namespace: argocd resourceVersion: "151053" selfLink: /api/v1/namespaces/argocd/pods/my-pod uid: c86e909c-f612-11e8-a057-fe5f49266390 spec: containers: - command: - sh - -c - sleep 10 image: alpine:latest imagePullPolicy: Always name: main resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-f9jvj readOnly: true dnsPolicy: ClusterFirst nodeName: minikube restartPolicy: Never schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - name: default-token-f9jvj secret: defaultMode: 420 secretName: default-token-f9jvj status: conditions: - lastProbeTime: null lastTransitionTime: 2018-12-02T09:15:16Z status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: 2018-12-02T09:15:19Z status: "True" type: Ready - lastProbeTime: null lastTransitionTime: 2018-12-02T09:15:16Z status: "True" type: PodScheduled containerStatuses: - containerID: docker://acfb261d6c1fe8c543438a202de62cb06c137fa93a2d59262d764470e96f3195 image: alpine:latest imageID: docker-pullable://alpine@sha256:621c2f39f8133acb8e64023a94dbdf0d5ca81896102b9e57c0dc184cadaf5528 lastState: {} name: main ready: true restartCount: 0 state: running: startedAt: 2018-12-02T09:15:19Z hostIP: 192.168.64.41 phase: Running podIP: 172.17.0.9 qosClass: BestEffort startTime: 2018-12-02T09:15:16Z <|endoftext|> # grafana_charts_store-gateway-svc.yaml {{- if eq .Values.config.storage.engine "blocks" -}} apiVersion: v1 kind: Service metadata: name: {{ template "enterprise-metrics.fullname" . }}-store-gateway labels: app: {{ template "enterprise-metrics.name" . }}-store-gateway chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.store_gateway.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.store_gateway.annotations | nindent 4 }} spec: type: ClusterIP ports: - port: {{ .Values.config.server.http_listen_port }} protocol: TCP name: http-metrics targetPort: http-metrics - port: {{ .Values.config.server.grpc_listen_port }} protocol: TCP name: grpc targetPort: grpc selector: app: {{ template "enterprise-metrics.name" . }}-store-gateway release: {{ .Release.Name }} {{- end -}} <|endoftext|> # k8s_docs_dapi-volume-resources.yaml apiVersion: v1 kind: Pod metadata: name: kubernetes-downwardapi-volume-example-2 spec: containers: - name: client-container image: registry.k8s.io/busybox:1.24 command: ["sh", "-c"] args: - while true; do echo -en '\n'; if [[ -e /etc/podinfo/cpu_limit ]]; then echo -en '\n'; cat /etc/podinfo/cpu_limit; fi; if [[ -e /etc/podinfo/cpu_request ]]; then echo -en '\n'; cat /etc/podinfo/cpu_request; fi; if [[ -e /etc/podinfo/mem_limit ]]; then echo -en '\n'; cat /etc/podinfo/mem_limit; fi; if [[ -e /etc/podinfo/mem_request ]]; then echo -en '\n'; cat /etc/podinfo/mem_request; fi; sleep 5; done; resources: requests: memory: "32Mi" cpu: "125m" limits: memory: "64Mi" cpu: "250m" volumeMounts: - name: podinfo mountPath: /etc/podinfo volumes: - name: podinfo downwardAPI: items: - path: "cpu_limit" resourceFieldRef: containerName: client-container resource: limits.cpu divisor: 1m - path: "cpu_request" resourceFieldRef: containerName: client-container resource: requests.cpu divisor: 1m - path: "mem_limit" resourceFieldRef: containerName: client-container resource: limits.memory divisor: 1Mi - path: "mem_request" resourceFieldRef: containerName: client-container resource: requests.memory divisor: 1Mi <|endoftext|> # istio_28996.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 28996 releaseNotes: - | **Fixed** configuration of TLS parameters (TLS version, TLS cipher suites, curves, etc.) with `EnvoyFilter`. <|endoftext|> # istio_57656.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: [57656] # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Fixed** an issue where the ambient dataplane did not correctly handle ServiceEntries with resolution set to `NONE`. Previously, The configuration would have a VIP but no endpoints, which would result in a no healthy upstream error. We now configure this as a "PASSTHROUGH" service, meaning the addresses called by the client will be used as the backend. upgradeNotes: - title: 'Ambient data plane behavior changes for ServiceEntries with resolution set to `NONE`' content: | During an upgrade from a previous version to one supporting "PASSTHROUGH" services, old ztunnel images will report a NACK in XDS because they do not support this new service type. This is expected and should not be overly problematic, however it may represent a data plane behavior change when you see the NACK. During the upgrade, a NACK could result in: 1. The data plane configuration was not updated because it could not handle the new service type. This is effectively a noop update. 2. The service is new and configuration was not accepted by the data plane. This will result in behavior where the data plane behaves as if the ServiceEntry doesn't exist. This results in passthrough behavior where ztunnel does not recognize the service and can not determine if a waypoint is required. In both cases, the NACK behavior will resolve once ztunnel is updated to a version that supports the new service type. <|endoftext|> # istio_autoscaling_v2beta1_k8s_and_values.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: ingressGateways: - enabled: true k8s: hpaSpec: metrics: - resource: name: cpu targetAverageUtilization: 70 type: Resource - resource: name: memory targetAverageUtilization: 70 type: Resource name: istio-ingressgateway values: pilot: cpu: targetAverageUtilization: 90 memory: targetAverageUtilization: 90 <|endoftext|> # k8s_examples_javaweb.yaml apiVersion: v1 kind: Pod metadata: name: javaweb spec: initContainers: - image: resouer/sample:v1 name: war command: ["cp", "/sample.war", "/app"] volumeMounts: - mountPath: /app name: app-volume containers: - image: resouer/mytomcat:7.0 name: tomcat command: ["sh", "-c", "/root/apache-tomcat-7.0.42-v2/bin/start.sh"] volumeMounts: - mountPath: /root/apache-tomcat-7.0.42-v2/webapps name: app-volume ports: - containerPort: 8080 hostPort: 8001 volumes: - name: app-volume emptyDir: {} <|endoftext|> # istio_48224.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 48224 releaseNotes: - | **Fixed** an issue where memory leak caused when the remote cluster is deleted or kubeConfig is rotated. <|endoftext|> # istio_reference-policy-tls.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio tls: frontend: default: validation: caCertificateRefs: - group: "" kind: ConfigMap namespace: default name: auth-cert listeners: - name: cross hostname: "cert1.domain.example" port: 443 protocol: HTTPS allowedRoutes: namespaces: from: Selector selector: matchLabels: kubernetes.io/metadata.name: "cert" tls: mode: Terminate certificateRefs: - name: cert namespace: cert --- apiVersion: gateway.networking.k8s.io/v1beta1 kind: ReferenceGrant metadata: name: allow-cert namespace: cert spec: from: - group: gateway.networking.k8s.io kind: Gateway namespace: istio-system to: - group: "" kind: Secret --- apiVersion: gateway.networking.k8s.io/v1beta1 kind: ReferenceGrant metadata: name: allow-cacert namespace: default spec: from: - group: gateway.networking.k8s.io kind: Gateway namespace: istio-system to: - group: "" kind: ConfigMap --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: http namespace: cert spec: parentRefs: - name: gateway namespace: istio-system hostnames: ["cert1.domain.example"] rules: - backendRefs: - name: httpbin port: 80 <|endoftext|> # istio_30838.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 30838 releaseNotes: - | **Fixed** istiod never becoming ready when it fails to read resources from clusters configured via remote secrets. After a timeout configured by `PILOT_REMOTE_CLUSTER_TIMEOUT` (default 30s), istiod will become ready without syncing remote clusters. The stat `remote_cluster_sync_timeouts` will be incremented when this occurs. <|endoftext|> # istio_52850.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 52850 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Fixed** an issue where using HTTPS in slow request scenarios such as high packet loss networks could potentially lead to Envoy memory leak. <|endoftext|> # istio_51936.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [] releaseNotes: - | **Added** SourceNamespaces filters destinations (envoy clusters) for unreachable routes. <|endoftext|> # istio_vs-ineffective-warning.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 31525 releaseNotes: - | **Added** 'istioctl validate' and the webhook now report duplicate or unreachable virtual service matches <|endoftext|> # istio_traffic-annotations-bad-excludeoutboundports.yaml apiVersion: apps/v1 kind: Deployment metadata: name: traffic spec: replicas: 7 selector: matchLabels: app: traffic template: metadata: annotations: traffic.sidecar.istio.io/excludeOutboundPorts: "bad" labels: app: traffic spec: containers: - name: traffic image: "fake.docker.io/google-samples/traffic-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_examples_simple-statefulset.yaml --- apiVersion: v1 kind: Service metadata: name: nginx labels: app: nginx spec: ports: - port: 80 name: web clusterIP: None selector: app: nginx --- apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: StatefulSet metadata: name: web labels: app: nginx spec: serviceName: "nginx" selector: matchLabels: app: nginx replicas: 14 template: metadata: labels: app: nginx spec: containers: - name: nginx image: registry.k8s.io/nginx-slim:0.8 ports: - containerPort: 80 name: web volumeMounts: - name: www mountPath: /usr/share/nginx/html volumeClaimTemplates: - metadata: name: www spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 1Gi storageClassName: thin-disk <|endoftext|> # helm_charts_configmap-variables-pools.yaml {{- if or (.Values.scheduler.variables) (.Values.scheduler.pools) }} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "airflow.fullname" . }}-variables-pools labels: app: {{ include "airflow.labels.app" . }} chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: {{- if .Values.scheduler.variables }} variables.json: | {{- .Values.scheduler.variables | nindent 4 }} {{- end }} {{- if .Values.scheduler.pools }} pools.json: | {{- .Values.scheduler.pools | nindent 4 }} {{- end }} {{- end }} <|endoftext|> # flux_example_artifacts.yaml --- apiVersion: source.extensions.fluxcd.io/v1beta1 kind: ArtifactGenerator metadata: name: flux-system namespace: flux-system spec: sources: - alias: monorepo kind: GitRepository name: flux-system artifacts: - name: infrastructure originRevision: "@monorepo" copy: - from: "@monorepo/infrastructure/**" to: "@artifact/" - name: apps originRevision: "@monorepo" copy: - from: "@monorepo/apps/base/**" to: "@artifact/base/" - from: "@monorepo/apps/staging/**" to: "@artifact/staging/" <|endoftext|> # istio_zipkin-trace-context-option.yaml apiVersion: release-notes/v2 kind: feature area: telemetry # issue is a list of GitHub issues resolved in this note. issue: [] docs: - '[envoy] https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/trace/v3/zipkin.proto#envoy-v3-api-enum-config-trace-v3-zipkinconfig-tracecontextoption' - '[reference] https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/' - '[usage] https://istio.io/latest/docs/tasks/observability/distributed-tracing/' releaseNotes: - | **Added** support for Zipkin TraceContextOption configuration to enable dual B3/W3C header propagation. Configure with `trace_context_option: USE_B3_WITH_W3C_PROPAGATION` in MeshConfig extensionProviders to extract B3 headers preferentially, fall back to W3C traceparent headers, and inject both header types upstream for better tracing interoperability. <|endoftext|> # istio_pilot_env_var_from.golden.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio: pilot istio.io/rev: default operator.istio.io/component: Pilot release: istio name: istiod namespace: istio-system spec: selector: matchLabels: istio: pilot strategy: rollingUpdate: maxSurge: 100% maxUnavailable: 25% template: metadata: annotations: prometheus.io/port: "15014" prometheus.io/scrape: "true" sidecar.istio.io/inject: "false" labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio: pilot istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: Pilot sidecar.istio.io/inject: "false" spec: containers: - args: - discovery - --monitoringAddr=:15014 - --log_output_level=default:info - --domain - cluster.local - --keepaliveMaxServerConnectionAge - 30m env: - name: REVISION value: default - name: PILOT_CERT_PROVIDER value: istiod - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: SERVICE_ACCOUNT valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.serviceAccountName - name: KUBECONFIG value: /var/run/secrets/remote/config - name: CA_TRUSTED_NODE_ACCOUNTS value: istio-system/ztunnel - name: FAKE_ENV_NAME valueFrom: secretKeyRef: key: fake-key name: fake-secret - name: PILOT_TRACE_SAMPLING value: "1" - name: PILOT_ENABLE_ANALYSIS value: "false" - name: CLUSTER_ID value: Kubernetes - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PLATFORM value: "" image: registry.istio.io/testing/pilot:latest name: discovery ports: - containerPort: 8080 name: http-debug protocol: TCP - containerPort: 15010 name: grpc-xds protocol: TCP - containerPort: 15012 name: tls-xds protocol: TCP - containerPort: 15017 name: https-webhooks protocol: TCP - containerPort: 15014 name: http-monitoring protocol: TCP readinessProbe: httpGet: path: /ready port: 8080 initialDelaySeconds: 1 periodSeconds: 3 timeoutSeconds: 5 resources: requests: cpu: 500m memory: 2048Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true volumeMounts: - mountPath: /var/run/secrets/tokens name: istio-token readOnly: true - mountPath: /var/run/secrets/istio-dns name: local-certs - mountPath: /etc/cacerts name: cacerts readOnly: true - mountPath: /var/run/secrets/remote name: istio-kubeconfig readOnly: true - mountPath: /var/run/secrets/istiod/tls name: istio-csr-dns-cert readOnly: true - mountPath: /var/run/secrets/istiod/ca name: istio-csr-ca-configmap readOnly: true serviceAccountName: istiod tolerations: - key: cni.istio.io/not-ready operator: Exists volumes: - emptyDir: medium: Memory name: local-certs - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - name: cacerts secret: optional: true secretName: cacerts - name: istio-kubeconfig secret: optional: true secretName: istio-kubeconfig - name: istio-csr-dns-cert secret: optional: true secretName: istiod-tls - configMap: defaultMode: 420 name: istio-ca-root-cert optional: true name: istio-csr-ca-configmap <|endoftext|> # istio_layer1_2.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: base: enabled: false ingressGateways: - enabled: true label: api: default foo: bar k8s: service: externalTrafficPolicy: Test serviceAnnotations: manifest-generate: testserviceAnnotation name: istio-ingressgateway namespace: istio-system pilot: enabled: true <|endoftext|> # istio_deny-and-allow-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-deny namespace: foo spec: action: DENY rules: - from: - source: principals: ["deny"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-allow namespace: foo spec: action: ALLOW rules: - from: - source: principals: ["allow"] <|endoftext|> # istio_35712.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** the release tar URL by adding the patch version. <|endoftext|> # istio_51044.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 50808 releaseNotes: - | **Removed** Istio Stackdriver metrics from XDS. <|endoftext|> # istio_56090.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 55767 releaseNotes: - | **Fixed** an issue where virtual service routes were ignored when virtual service was configured with hosts containing mixed case letters. <|endoftext|> # grafana_charts_poddisruptionbudget-query-scheduler.yaml {{- if and .Values.queryScheduler.enabled (gt (int .Values.queryScheduler.replicas) 1) }} {{- if kindIs "invalid" .Values.queryScheduler.maxUnavailable }} {{- fail "`.Values.queryScheduler.maxUnavailable` must be set when `.Values.queryScheduler.replicas` is greater than 1." }} {{- else }} apiVersion: {{ include "loki.pdb.apiVersion" . }} kind: PodDisruptionBudget metadata: name: {{ include "loki.querySchedulerFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.querySchedulerLabels" . | nindent 4 }} spec: selector: matchLabels: {{- include "loki.querySchedulerSelectorLabels" . | nindent 6 }} {{- with .Values.queryScheduler.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} {{- with .Values.queryScheduler.minAvailable }} minAvailable: {{ . }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_dedupe-mismatch-output.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Improved** the `istioctl analyze` to output mismatched proxy image messages as IST0158 on namespace level instead of IST0105 on pod level, which is more succinct. <|endoftext|> # istio_fix-stackdriver-install.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** an issue where installing with Stackdriver and having custom configs would lead to Stackdriver not being enabled. <|endoftext|> # argocd_source_argocd-metrics.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/name: argocd-metrics app.kubernetes.io/part-of: argocd app.kubernetes.io/component: metrics name: argocd-metrics spec: ports: - name: metrics protocol: TCP port: 8082 targetPort: 8082 selector: app.kubernetes.io/name: argocd-application-controller <|endoftext|> # argocd_source_initial_kustomization.yaml apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: podinfo namespace: default spec: interval: 10m targetNamespace: default sourceRef: kind: GitRepository name: podinfo path: "./kustomize" prune: true timeout: 1m <|endoftext|> # helm_charts_kubernetes-resources.yaml {{- /* Generated from 'kubernetes-resources' group from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.kubernetesResources }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kubernetes-resources" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kubernetes-resources rules: - alert: KubeCPUOvercommit annotations: message: Cluster has overcommitted CPU resource requests for Pods and cannot tolerate node failure. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubecpuovercommit expr: |- sum(namespace_name:kube_pod_container_resource_requests_cpu_cores:sum) / sum(node:node_num_cpu:sum) > (count(node:node_num_cpu:sum)-1) / count(node:node_num_cpu:sum) for: 5m labels: severity: warning - alert: KubeMemOvercommit annotations: message: Cluster has overcommitted memory resource requests for Pods and cannot tolerate node failure. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubememovercommit expr: |- sum(namespace_name:kube_pod_container_resource_requests_memory_bytes:sum) / sum(node_memory_MemTotal_bytes) > (count(node:node_num_cpu:sum)-1) / count(node:node_num_cpu:sum) for: 5m labels: severity: warning - alert: KubeCPUOvercommit annotations: message: Cluster has overcommitted CPU resource requests for Namespaces. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubecpuovercommit expr: |- sum(kube_resourcequota{job="kube-state-metrics", type="hard", resource="cpu"}) / sum(node:node_num_cpu:sum) > 1.5 for: 5m labels: severity: warning - alert: KubeMemOvercommit annotations: message: Cluster has overcommitted memory resource requests for Namespaces. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubememovercommit expr: |- sum(kube_resourcequota{job="kube-state-metrics", type="hard", resource="memory"}) / sum(node_memory_MemTotal_bytes{job="node-exporter"}) > 1.5 for: 5m labels: severity: warning - alert: KubeQuotaExceeded annotations: message: Namespace {{`{{`}} $labels.namespace {{`}}`}} is using {{`{{`}} printf "%0.0f" $value {{`}}`}}% of its {{`{{`}} $labels.resource {{`}}`}} quota. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubequotaexceeded expr: |- 100 * kube_resourcequota{job="kube-state-metrics", type="used"} / ignoring(instance, job, type) (kube_resourcequota{job="kube-state-metrics", type="hard"} > 0) > 90 for: 15m labels: severity: warning - alert: CPUThrottlingHigh annotations: message: '{{`{{`}} printf "%0.0f" $value {{`}}`}}% throttling of CPU in namespace {{`{{`}} $labels.namespace {{`}}`}} for container {{`{{`}} $labels.container_name {{`}}`}} in pod {{`{{`}} $labels.pod_name {{`}}`}}.' runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-cputhrottlinghigh expr: |- 100 * sum(increase(container_cpu_cfs_throttled_periods_total{container_name!="", }[5m])) by (container_name, pod_name, namespace) / sum(increase(container_cpu_cfs_periods_total{}[5m])) by (container_name, pod_name, namespace) > 25 for: 15m labels: severity: warning {{- end }} <|endoftext|> # istio_rate-limit-service.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################################## # Redis service and deployment # Ratelimit service and deployment # Note: a configmap is needed to make the rate limit deployment work properly, for example: # # apiVersion: v1 # kind: ConfigMap # metadata: # name: ratelimit-config # data: # config.yaml: | # domain: echo-ratelimit # descriptors: # - key: PATH # value: "/" # rate_limit: # unit: minute # requests_per_unit: 1 # - key: PATH # rate_limit: # unit: minute # requests_per_unit: 100 ################################################################################################## apiVersion: v1 kind: Service metadata: name: redis labels: app: redis spec: ports: - name: redis port: 6379 selector: app: redis --- apiVersion: apps/v1 kind: Deployment metadata: name: redis spec: replicas: 1 selector: matchLabels: app: redis template: metadata: labels: app: redis spec: containers: - image: docker.io/redis:alpine imagePullPolicy: IfNotPresent name: redis ports: - name: redis containerPort: 6379 restartPolicy: Always serviceAccountName: "" --- apiVersion: v1 kind: Service metadata: name: ratelimit labels: app: ratelimit spec: ports: - name: http-port port: 8080 targetPort: 8080 protocol: TCP - name: grpc-port port: 8081 targetPort: 8081 protocol: TCP - name: http-debug port: 6070 targetPort: 6070 protocol: TCP selector: app: ratelimit --- apiVersion: apps/v1 kind: Deployment metadata: name: ratelimit spec: replicas: 1 selector: matchLabels: app: ratelimit strategy: type: Recreate template: metadata: labels: app: ratelimit spec: containers: - image: docker.io/envoyproxy/ratelimit:30a4ce1a # 2024/08/01 imagePullPolicy: IfNotPresent name: ratelimit command: ["/bin/ratelimit"] env: - name: LOG_LEVEL value: debug - name: REDIS_SOCKET_TYPE value: tcp - name: REDIS_URL value: redis:6379 - name: USE_STATSD value: "false" - name: RUNTIME_ROOT value: /data - name: RUNTIME_SUBDIRECTORY value: ratelimit - name: RUNTIME_WATCH_ROOT value: "false" - name: RUNTIME_IGNOREDOTFILES value: "true" - name: HOST value: "::" - name: GRPC_HOST value: "::" ports: - containerPort: 8080 - containerPort: 8081 - containerPort: 6070 volumeMounts: - name: config-volume mountPath: /data/ratelimit/config volumes: - name: config-volume configMap: name: ratelimit-config <|endoftext|> # helm_charts_suitecrm-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "suitecrm.fullname" . }}-suitecrm labels: app: {{ template "suitecrm.name" . }} chart: "{{ template "suitecrm.chart" . }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{ include "suitecrm.storageClass" . }} {{- end -}} <|endoftext|> # grafana_charts_deployment-admin-api.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "enterprise-logs.adminApiFullname" . }} labels: {{- include "enterprise-logs.adminApiLabels" . | nindent 4 }} {{- with .Values.adminApi.labels }} {{- toYaml . | nindent 4 }} {{- end }} app.kubernetes.io/part-of: memberlist annotations: {{- with .Values.adminApi.annotations }} {{- toYaml . | nindent 4 }} {{- end }} spec: replicas: {{ .Values.adminApi.replicas }} selector: matchLabels: {{- include "enterprise-logs.adminApiSelectorLabels" . | nindent 6 }} strategy: {{- toYaml .Values.adminApi.strategy | nindent 4 }} template: metadata: labels: {{- include "enterprise-logs.adminApiSelectorLabels" . | nindent 8 }} {{- with .Values.adminApi.labels }} {{- toYaml . | nindent 8 }} {{- end }} app.kubernetes.io/part-of: memberlist annotations: {{- if .Values.useExternalConfig }} checksum/config: {{ .Values.externalConfigVersion }} {{- else }} checksum/config: {{ include (print $.Template.BasePath "/secret-config.yaml") . | sha256sum }} {{- end}} {{- with .Values.adminApi.annotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ template "loki.serviceAccountName" . }} {{- if .Values.adminApi.priorityClassName }} priorityClassName: {{ .Values.adminApi.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.adminApi.podSecurityContext | nindent 8 }} initContainers: # Taken from # https://github.com/minio/charts/blob/a5c84bcbad884728bff5c9c23541f936d57a13b3/minio/templates/post-install-create-bucket-job.yaml {{- if .Values.minio.enabled }} - name: minio-mc image: "{{ .Values.minio.mcImage.repository }}:{{ .Values.minio.mcImage.tag }}" imagePullPolicy: {{ .Values.minio.mcImage.pullPolicy }} command: ["/bin/sh", "/config/initialize"] env: - name: MINIO_ENDPOINT value: {{ .Release.Name }}-minio - name: MINIO_PORT value: {{ .Values.minio.service.port | quote }} volumeMounts: - name: minio-configuration mountPath: /config {{- if .Values.minio.tls.enabled }} - name: cert-secret-volume-mc mountPath: {{ .Values.minio.configPathmc }}certs {{ end }} {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} {{- with .Values.adminApi.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: admin-api image: "{{ template "enterprise-logs.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - -target=admin-api - -config.file=/etc/loki/config/config.yaml {{- if .Values.minio.enabled }} - -admin.client.backend-type=s3 - -admin.client.s3.endpoint={{ template "enterprise-logs.minio" . }} - -admin.client.s3.bucket-name=enterprise-logs-admin - -admin.client.s3.access-key-id={{ .Values.minio.accessKey }} - -admin.client.s3.secret-access-key={{ .Values.minio.secretKey }} - -admin.client.s3.insecure=true {{- end }} {{- range $key, $value := .Values.adminApi.extraArgs }} - "-{{ $key }}={{ $value }}" {{- end }} volumeMounts: - name: config mountPath: /etc/loki/config - name: license mountPath: /etc/enterprise-logs/license - name: storage mountPath: /data subPath: {{ .Values.adminApi.persistence.subPath }} {{- if .Values.adminApi.extraVolumeMounts }} {{ toYaml .Values.adminApi.extraVolumeMounts | nindent 12 }} {{- end }} ports: - name: http-metrics containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP - name: http-memberlist containerPort: 7946 protocol: TCP livenessProbe: {{- toYaml .Values.adminApi.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.adminApi.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.adminApi.resources | nindent 12 }} securityContext: {{- toYaml .Values.adminApi.containerSecurityContext | nindent 12 }} env: {{- if .Values.adminApi.env }} {{ toYaml .Values.adminApi.env | nindent 12 }} {{- end }} {{- with .Values.adminApi.extraContainers }} {{ toYaml . | nindent 8 }} {{- end }} nodeSelector: {{- toYaml .Values.adminApi.nodeSelector | nindent 8 }} affinity: {{- toYaml .Values.adminApi.affinity | nindent 8 }} tolerations: {{- toYaml .Values.adminApi.tolerations | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.adminApi.terminationGracePeriodSeconds }} volumes: - name: config secret: {{- if .Values.useExternalConfig }} secretName: {{ .Values.externalConfigName }} {{- else }} secretName: enterprise-logs-config {{- end }} - name: license secret: {{- if .Values.useExternalLicense }} secretName: {{ .Values.externalLicenseName }} {{- else }} secretName: enterprise-logs-license {{- end }} - name: storage emptyDir: {} {{- if .Values.adminApi.extraVolumes }} {{ toYaml .Values.adminApi.extraVolumes | nindent 8 }} {{- end }} {{- if .Values.minio.enabled }} - name: minio-configuration projected: sources: - configMap: name: {{ .Release.Name }}-minio - secret: name: {{ .Release.Name }}-minio {{- if .Values.minio.tls.enabled }} - name: cert-secret-volume-mc secret: secretName: {{ .Values.minio.tls.certSecret }} items: - key: {{ .Values.minio.tls.publicCrt }} path: CAs/public.crt {{- end }} {{- end }} <|endoftext|> # helm_charts_unlock-cronjob.yaml {{- if .Values.autolock.enabled }} apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ template "kured.fullname" . }}-unlock namespace: {{ .Release.Namespace }} labels: app: {{ template "kured.name" . }} chart: {{ template "kured.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: schedule: {{ .Values.autolock.scheduleUnlock | quote }} jobTemplate: spec: template: metadata: labels: app: {{ template "kured.name" . }} chart: {{ template "kured.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: serviceAccountName: {{ template "kured.serviceAccountName" . }} containers: - name: {{ template "kured.fullname" . }}-unlock image: "{{ .Values.autolock.image.repository }}:{{ .Values.autolock.image.tag }}" command: - kubectl args: - -n - {{ .Release.Namespace }} - annotate - ds - {{ template "kured.fullname" . }} - weave.works/kured-node-lock- restartPolicy: Never backoffLimit: 1 {{- end -}} <|endoftext|> # k8s_docs_policy-with-param.yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: name: "replicalimit-policy.example.com" spec: failurePolicy: Fail paramKind: apiVersion: rules.example.com/v1 kind: ReplicaLimit matchConstraints: resourceRules: - apiGroups: ["apps"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["deployments"] validations: - expression: "object.spec.replicas <= params.maxReplicas" reason: Invalid <|endoftext|> # helm_charts_secret-gcr.yaml {{- if .Values.registryCreds.gcrServiceAccountKey }} apiVersion: v1 kind: Secret metadata: name: {{ template "buildkite.fullname" . }}-gcr labels: app: {{ template "buildkite.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: service-account-key.json: |- {{ .Values.registryCreds.gcrServiceAccountKey }} {{- end }} <|endoftext|> # istio_43775.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/43775 releaseNotes: - | **Fixed** an issue that when there are different Binds specified in the Gateways with the same port and TCP protocol, listeners are not generated correctly. <|endoftext|> # argocd_source_ssd-configmap-live.yaml apiVersion: v1 kind: ConfigMap metadata: name: test-configmap namespace: default uid: 12345678-1234-1234-1234-123456789012 resourceVersion: "1000" managedFields: - manager: argocd-controller operation: Apply apiVersion: v1 time: "2024-01-01T00:00:00Z" fieldsType: FieldsV1 fieldsV1: f:data: f:key1: {} f:key2: {} f:key3: {} data: key1: value1 key2: value2 key3: value3 <|endoftext|> # argocd_source_smd-service-live-with-type.yaml apiVersion: v1 kind: Service metadata: annotations: argocd.argoproj.io/sync-options: ServerSideApply=true kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{"argocd.argoproj.io/sync-options":"ServerSideApply=true"},"name":"multiple-protocol-port-svc","namespace":"default"},"spec":{"ports":[{"name":"rtmpk","port":1986,"protocol":"UDP","targetPort":1986},{"name":"rtmp","port":1935,"protocol":"TCP","targetPort":1935},{"name":"rtmpq","port":1935,"protocol":"UDP","targetPort":1935}]}} creationTimestamp: '2022-06-24T19:37:02Z' labels: app.kubernetes.io/instance: big-crd managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': 'f:argocd.argoproj.io/sync-options': {} 'f:labels': 'f:app.kubernetes.io/instance': {} 'f:spec': 'f:ports': 'k:{"port":1935,"protocol":"TCP"}': .: {} 'f:name': {} 'f:port': {} 'f:targetPort': {} 'k:{"port":1986,"protocol":"UDP"}': .: {} 'f:name': {} 'f:port': {} 'f:protocol': {} 'f:targetPort': {} 'k:{"port":443,"protocol":"TCP"}': .: {} 'f:name': {} 'f:port': {} 'f:targetPort': {} 'f:type': {} manager: argocd-controller operation: Apply time: '2022-06-30T16:28:09Z' - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': .: {} 'f:kubectl.kubernetes.io/last-applied-configuration': {} 'f:spec': 'f:internalTrafficPolicy': {} 'f:ports': .: {} 'k:{"port":1935,"protocol":"TCP"}': .: {} 'f:name': {} 'f:port': {} 'f:protocol': {} 'f:targetPort': {} 'k:{"port":1986,"protocol":"UDP"}': .: {} 'f:name': {} 'f:port': {} 'f:protocol': {} 'f:targetPort': {} 'f:sessionAffinity': {} manager: kubectl-client-side-apply operation: Update time: '2022-06-25T04:18:10Z' - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: 'f:status': 'f:loadBalancer': 'f:ingress': {} manager: kube-vpnkit-forwarder operation: Update subresource: status time: '2022-06-29T12:36:34Z' name: multiple-protocol-port-svc namespace: default resourceVersion: '2138591' uid: af42e800-bd33-4412-bc77-d204d298613d spec: clusterIP: 10.111.193.74 clusterIPs: - 10.111.193.74 externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack ports: - name: rtmpk nodePort: 31648 port: 1986 protocol: UDP targetPort: 1986 - name: rtmp nodePort: 30018 port: 1935 protocol: TCP targetPort: 1935 - name: https nodePort: 31975 port: 443 protocol: TCP targetPort: 443 sessionAffinity: None type: NodePort status: loadBalancer: {} <|endoftext|> # helm_charts_custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}-resource-reader roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "k8s-prometheus-adapter.name" . }}-resource-reader subjects: - kind: ServiceAccount name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # istio_59378.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 59377 releaseNotes: - | **Added** support for `istioctl proxy-status -oyaml/json` to list proxy status of a single namespace. <|endoftext|> # istio_54644.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 54644 releaseNotes: - | **Fixed** excessive iptables info-level log entries for rule checks and deletions. Detailed logging can be re-enabled by switching to debug-level logs if necessary. <|endoftext|> # istio_remove-post-install-webhook.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 29153 releaseNotes: - | **Removed** istioctl experimental post-install webhook command <|endoftext|> # k8s_examples_vsphere-volume-sc-vsancapabilities-with-datastore.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: fast provisioner: kubernetes.io/vsphere-volume parameters: diskformat: zeroedthick datastore: vsanDatastore hostFailuresToTolerate: "2" cachereservation: "20" <|endoftext|> # argocd_source_daemonset-restarted.yaml apiVersion: apps/v1 kind: DaemonSet metadata: annotations: deprecated.daemonset.template.generation: "3" creationTimestamp: "2019-09-13T08:52:50Z" generation: 3 labels: app.kubernetes.io/instance: extensions name: daemonset namespace: statefulset resourceVersion: "7472656" selfLink: /apis/apps/v1/namespaces/statefulset/daemonsets/daemonset uid: de04d075-d603-11e9-9e69-42010aa8005f spec: revisionHistoryLimit: 10 selector: matchLabels: name: daemonset template: metadata: annotations: kubectl.kubernetes.io/restartedAt: "0001-01-01T00:00:00Z" labels: name: daemonset spec: containers: - image: registry.k8s.io/nginx-slim:0.8 imagePullPolicy: IfNotPresent name: nginx resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 updateStrategy: rollingUpdate: maxUnavailable: 1 type: RollingUpdate status: currentNumberScheduled: 4 desiredNumberScheduled: 4 numberAvailable: 4 numberMisscheduled: 0 numberReady: 4 observedGeneration: 3 updatedNumberScheduled: 4 <|endoftext|> # istio_44161.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** injection of `istio.io/rev` annotation to sidecars and gateways for multi-revision observability. <|endoftext|> # istio_35480-ext-authz.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - https://github.com/istio/istio/issues/35480#issuecomment-952420951 releaseNotes: - | **Fixed** a copule of issues in the ext-authz filter affecting the behavior of the gRPC check response API. Please see the [Envoy release note](https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.20.0#bug-fixes) for more details of the bug fixes if you are using authorization policies with the ext-authz gRPC extension provider in Istio. <|endoftext|> # istio_30723.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 30723 releaseNotes: - | **Fixed** Fail correctly when `istioctl x create-remote-secret --secret-name` points to a non-existing secret in the remote cluster. <|endoftext|> # helm_charts_sec-patroni.yaml apiVersion: v1 kind: Secret metadata: name: {{ template "patroni.fullname" . }} labels: app: {{ template "patroni.fullname" . }} chart: {{ template "patroni.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: password-superuser: {{ .Values.credentials.superuser | b64enc }} password-admin: {{ .Values.credentials.admin | b64enc }} password-standby: {{ .Values.credentials.standby | b64enc }} <|endoftext|> # helm_charts_kafka-controller-deployment.yaml {{- if .Values.kafkaTrigger.enabled }} apiVersion: apps/v1beta1 kind: Deployment metadata: labels: kubeless: kafka-trigger-controller name: kafka-trigger-controller namespace: {{ .Release.Namespace }} spec: selector: matchLabels: kubeless: kafka-trigger-controller template: metadata: labels: kubeless: kafka-trigger-controller spec: containers: - image: "{{ .Values.kafkaTrigger.deployment.image.repository }}:{{ .Values.kafkaTrigger.deployment.image.tag }}" imagePullPolicy: {{ .Values.kafkaTrigger.deployment.image.pullPolicy }} name: kafka-trigger-controller env: - name: KAFKA_BROKERS value: {{ .Values.kafkaTrigger.env.kafkaBrokers }} serviceAccountName: controller-acct {{- end }} <|endoftext|> # istio_mutatingwebhooks.yaml {{- define "core" }} - name: {{.Prefix}}sidecar-injector.istio.io clientConfig: {{- if .injectionURL }} url: "{{ .injectionURL }}" {{- else }} service: name: istiod{{- if not (eq .revision "") }}-{{ .revision }}{{- end }} namespace: {{ .Release.Namespace }} path: "{{ .injectionPath }}" {{- end }} sideEffects: None rules: - operations: [ "CREATE" ] apiGroups: [""] apiVersions: ["v1"] resources: ["pods"] failurePolicy: Fail admissionReviewVersions: ["v1"] {{- end }} {{- range $tagName, $tag := $.Values.base.tags }} apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: {{- if eq $.Release.Namespace "istio-system"}} name: istio-revision-tag-{{ $tagName }} {{- else }} name: istio-revision-tag-{{ $tagName }}-{{ $.Release.Namespace }} {{- end }} labels: istio.io/tag: {{ $tagName }} istio.io/rev: {{ $tag.revision | default "default" }} install.operator.istio.io/owning-resource: {{ $.Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" app: sidecar-injector release: {{ $.Release.Name }} webhooks: {{- include "core" (mergeOverwrite (deepCopy $) (deepCopy $tag) (dict "Prefix" "rev.namespace.") ) }} namespaceSelector: matchExpressions: - key: istio.io/rev operator: In values: - "{{ $tagName }}" - key: istio-injection operator: DoesNotExist objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: NotIn values: - "false" {{- include "core" (mergeOverwrite (deepCopy $) (deepCopy $tag) (dict "Prefix" "rev.object.") ) }} namespaceSelector: matchExpressions: - key: istio.io/rev operator: DoesNotExist - key: istio-injection operator: DoesNotExist objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: NotIn values: - "false" - key: istio.io/rev operator: In values: - "{{ $tagName }}" {{- /* When the tag is "default" we want to create webhooks for the default revision */}} {{- /* These webhooks should be kept in sync with istio-discovery/templates/mutatingwebhook.yaml */}} {{- if (eq $tagName "default") }} {{- /* Case 1: Namespace selector enabled, and object selector is not injected */}} {{- include "core" (mergeOverwrite (deepCopy $) (deepCopy $tag) (dict "Prefix" "namespace.") ) }} namespaceSelector: matchExpressions: - key: istio-injection operator: In values: - enabled objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: NotIn values: - "false" {{- /* Case 2: no namespace label, but object selector is enabled (and revision label is not, which has priority) */}} {{- include "core" (mergeOverwrite (deepCopy $) (deepCopy $tag) (dict "Prefix" "object.") ) }} namespaceSelector: matchExpressions: - key: istio-injection operator: DoesNotExist - key: istio.io/rev operator: DoesNotExist objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: In values: - "true" - key: istio.io/rev operator: DoesNotExist {{- end }} --- {{- end }} <|endoftext|> # flux_source_receiver.yaml --- apiVersion: notification.toolkit.fluxcd.io/v1 kind: Receiver metadata: name: flux-system namespace: {{ .fluxns }} spec: events: - ping - push interval: 10m0s resources: - kind: GitRepository name: flux-system namespace: flux-system secretRef: name: webhook-token type: github <|endoftext|> # argocd_source_parent_child.yaml apiVersion: projectcontour.io/v1 kind: HTTPProxy metadata: generation: 1 name: basic spec: virtualhost: fqdn: foo-basic.bar.com includes: - name: unimportant status: conditions: - errors: - message: include unimportant not found reason: IncludeNotFound status: "True" type: IncludeError type: Valid status: "False" observedGeneration: 1 lastTransitionTime: "2025-04-07T10:00:00Z" reason: ErrorPresent message: At least one error present, see Errors for details currentStatus: invalid description: At least one error present, see Errors for details loadBalancer: ingress: - hostname: www.example.com <|endoftext|> # argocd_source_progressing_new.yaml apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleJob metadata: annotations: argocd.argoproj.io/hook: PreSync creationTimestamp: "2023-06-27T20:22:22Z" generateName: prehook-test- generation: 1 labels: app.kubernetes.io/instance: ansible-hooks tower_job_id: "1" name: prehook-test-dfcff01-presync-1687897341 namespace: argocd resourceVersion: "6536518" uid: 09fa0d39-a170-4c37-a3b0-6e140e029868 spec: job_template_name: Demo Job Template tower_auth_secret: toweraccess status: ansibleJobResult: changed: true failed: false started: "2023-06-27T20:22:34.906399Z" status: new url: https://argocd.test.ansiblejob.custom.health.com/#/jobs/playbook/1 <|endoftext|> # grafana_charts_servicemonitor-memcached-index-queries.yaml {{- if .Values.memcachedIndexQueries.enabled }} {{- with .Values.serviceMonitor }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "loki.memcachedIndexQueriesFullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "loki.memcachedIndexQueriesLabels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 4 }} {{- end }} selector: matchLabels: {{- include "loki.memcachedIndexQueriesSelectorLabels" $ | nindent 6 }} {{- with .matchExpressions }} matchExpressions: {{- toYaml . | nindent 6 }} {{- end }} endpoints: - port: http-metrics {{- with .interval }} interval: {{ . }} {{- end }} {{- with .scrapeTimeout }} scrapeTimeout: {{ . }} {{- end }} {{- with .relabelings }} relabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .metricRelabelings }} metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .scheme }} scheme: {{ . }} {{- end }} {{- with .tlsConfig}} tlsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .targetLabels }} targetLabels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # argocd_source_reconciled_bucket.yaml apiVersion: source.toolkit.fluxcd.io/v1beta2 kind: Bucket metadata: name: minio-bucket namespace: default annotations: reconcile.fluxcd.io/requestedAt: 'By Argo CD at: 0001-01-01T00:00:00' spec: interval: 5m0s endpoint: minio.example.com insecure: true secretRef: name: minio-bucket-secret bucketName: example <|endoftext|> # istio_40268.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/40268 releaseNotes: - | **Fixed** an issue that when there is Bind specified in the Gateway with same hosts, listeners are not generated correctly. <|endoftext|> # k8s_docs_deployment-with-configmap-as-envvar.yaml apiVersion: apps/v1 kind: Deployment metadata: name: configmap-env-var labels: app.kubernetes.io/name: configmap-env-var spec: replicas: 3 selector: matchLabels: app.kubernetes.io/name: configmap-env-var template: metadata: labels: app.kubernetes.io/name: configmap-env-var spec: containers: - name: alpine image: alpine:3 env: - name: FRUITS valueFrom: configMapKeyRef: key: fruits name: fruits command: - /bin/sh - -c - while true; do echo "$(date) The basket is full of $FRUITS"; sleep 10; done; ports: - containerPort: 80 <|endoftext|> # istio_30203.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 30203 releaseNotes: - | **Fixed** revision is not applied to the scale target reference of HorizontalPodAutoscaler when helm values for hpa are specified explicitly. <|endoftext|> # istio_install-autoscalingv2.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 32005 releaseNotes: - | **Deprecated** Kubernetes Autoscaling v2beta1 API support for installation. **Added** Kubernetes Autoscaling v2beta2/v2 API support for installation. <|endoftext|> # istio_lrs.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issues: releaseNotes: - | **Added** Provide an option to configure the Envoy to report load stats to the LRS (LoadReportingService) server via LRS. <|endoftext|> # argocd_source_argocd-applicationset-controller-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: applicationset-controller app.kubernetes.io/name: argocd-applicationset-controller app.kubernetes.io/part-of: argocd name: argocd-applicationset-controller spec: ports: - name: webhook port: 7000 protocol: TCP targetPort: webhook - name: metrics port: 8080 protocol: TCP targetPort: metrics selector: app.kubernetes.io/name: argocd-applicationset-controller <|endoftext|> # istio_minimal-revisioned.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: minimal revision: test-rev <|endoftext|> # istio_min-k8-ver-for-1.8.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 28814 releaseNotes: - | **Added** Istio 1.8 supports kubernetes versions 1.16 to 1.19. <|endoftext|> # istio_gateway-gwc-publish-supportedfeatures.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - https://github.com/kubernetes-sigs/gateway-api/issues/2162 releaseNotes: - | **Added** the controller now publishes gateway-api supportedFeatures on Gateway Class Status before accepting the Gateway Class. <|endoftext|> # istio_release-channels.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - https://github.com/istio/enhancements/issues/173 releaseNotes: - | **Added** a new, optional experimental admission policy that only allows stable features/fields to be used in Istio APIs <|endoftext|> # helm_charts_xray-analysis-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "xray-analysis.fullname" . }} labels: app: {{ template "xray-analysis.name" . }} chart: {{ template "xray.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: {{ .Values.analysis.name }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ template "xray.name" . }} release: {{ .Release.Name }} component: {{ .Values.analysis.name }} template: metadata: labels: app: {{ template "xray.name" . }} release: {{ .Release.Name }} component: {{ .Values.analysis.name }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} serviceAccountName: {{ template "xray.serviceAccountName" . }} securityContext: runAsUser: {{ .Values.common.xrayUserId }} fsGroup: {{ .Values.common.xrayGroupId }} initContainers: - name: init-wait image: {{ .Values.initContainerImage | quote }} env: {{- if .Values.mongodb.enabled }} - name: MONGODB_USER value: {{ .Values.mongodb.mongodbUsername }} - name: MONGODB_DATABASE value: {{ .Values.mongodb.mongodbDatabase }} - name: MONGODB_PASSWORD valueFrom: secretKeyRef: name: {{ .Release.Name }}-mongodb key: mongodb-password {{- else }} - name: MONGODB_URL value: {{ .Values.global.mongoUrl }} {{- end }} {{- if .Values.postgresql.enabled }} - name: POSTGRES_USER value: {{ .Values.postgresql.postgresUser }} - name: POSTGRESS_PASSWORD valueFrom: secretKeyRef: name: {{ .Release.Name }}-postgresql key: postgres-password - name: POSTGRESS_DB value: {{ .Values.postgresql.postgresDatabase }} {{- else }} - name: POSTGRESS_URL value: {{ .Values.global.postgresqlUrl }} {{- end }} - name: RABBITMQ_USER value: {{ index .Values "rabbitmq-ha" "rabbitmqUsername" }} - name: RABBITMQ_ERLANG_COOKIE valueFrom: secretKeyRef: name: {{ .Release.Name }}-rabbitmq-ha key: rabbitmq-erlang-cookie - name: RABBITMQ_DEFAULT_PASS valueFrom: secretKeyRef: name: {{ .Release.Name }}-rabbitmq-ha key: rabbitmq-password command: - '/bin/sh' - '-c' - > cp -fv /scripts/setup.sh {{ .Values.common.xrayConfigPath }}; chmod +x {{ .Values.common.xrayConfigPath }}/setup.sh; {{ .Values.common.xrayConfigPath }}/setup.sh; volumeMounts: - name: data-volume mountPath: "{{ .Values.common.xrayConfigPath }}" - name: setup mountPath: "/scripts" containers: - name: {{ .Values.analysis.name }} image: {{ .Values.analysis.image }}:{{ default .Chart.AppVersion .Values.common.xrayVersion }} imagePullPolicy: {{ .Values.imagePullPolicy }} env: - name: XRAYCONFIGPATH value: "{{ .Values.common.xrayConfigPath }}" - name: XRAY_MASTER_KEY valueFrom: secretKeyRef: name: {{ template "xray.fullname" . }}-master-key key: master-key - name: XRAY_HA_NODE_ID valueFrom: fieldRef: fieldPath: metadata.name ports: - containerPort: {{ .Values.analysis.internalPort }} volumeMounts: - name: data-volume mountPath: "{{ .Values.common.xrayConfigPath }}" securityContext: allowPrivilegeEscalation: false resources: {{ toYaml .Values.analysis.resources | indent 10 }} readinessProbe: httpGet: path: /debug/pprof/ port: {{ .Values.analysis.internalPort }} initialDelaySeconds: 60 periodSeconds: 10 failureThreshold: 10 livenessProbe: httpGet: path: /debug/pprof/ port: {{ .Values.analysis.internalPort }} initialDelaySeconds: 90 periodSeconds: 10 volumes: - name: data-volume emptyDir: sizeLimit: {{ .Values.analysis.storage.sizeLimit }} - name: config-volume emptyDir: sizeLimit: 1Gi - name: setup configMap: name: {{ template "xray.fullname" . }}-setup <|endoftext|> # istio_58436.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 58436 releaseNotes: - | **Added** support for `app.kubernetes.io/name` and `service.istio.io/canonical-name` labels when populating `source_app` and `destination_app` metric labels. The priority order is: `app` (for backward compatibility), then `app.kubernetes.io/name`, then `service.istio.io/canonical-name`. This allows users who only have `app.kubernetes.io/name` labels to have their metrics properly populated. <|endoftext|> # istio_injection-image-distroless.yaml # Namespace 'enabled-namespace' has istio injection enabled, so will be enforced. apiVersion: v1 kind: Namespace metadata: labels: istio-injection: enabled name: enabled-namespace --- # Namespace 'enabled-namespace-2' has istio injection enabled, so will be enforced. apiVersion: v1 kind: Namespace metadata: labels: istio-injection: enabled name: enabled-namespace-2 --- # Details-v1-pod-old is out of date and should get a warning. apiVersion: v1 kind: Pod metadata: labels: app: details name: details-v1-pod-old namespace: enabled-namespace spec: containers: - image: registry.istio.io/release/examples-bookinfo-details-v1:1.15.0 name: details - image: registry.istio.io/release/proxyv2:1.3.0 name: istio-proxy --- # details-v1-pod-new is up-to-date and should not get a warning. apiVersion: v1 kind: Pod metadata: labels: app: details name: details-v1-pod-new namespace: enabled-namespace-2 spec: containers: - image: registry.istio.io/release/examples-bookinfo-details-v1:1.15.0 name: details - image: registry.istio.io/release/proxyv2:1.3.1 name: istio-proxy --- # details-v1-pod-new-distroless is up-to-date and should not get a warning. apiVersion: v1 kind: Pod metadata: labels: app: details name: details-v1-pod-new-distroless namespace: enabled-namespace-2 spec: containers: - image: registry.istio.io/release/examples-bookinfo-details-v1:1.15.0 name: details - image: registry.istio.io/release/proxyv2:1.3.1-distroless name: istio-proxy <|endoftext|> # istio_44345.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** an issue where webhook configuration was being modified in dry-run mode when installing Istio with istioctl. <|endoftext|> # flux_source_source-git-provider-generic.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: GitRepository metadata: name: podinfo namespace: flux-system spec: interval: 1m0s provider: generic ref: branch: test url: https://github.com/stefanprodan/podinfo <|endoftext|> # istio_52877.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [52877] releaseNotes: - | **Added** new istiod environment variable `PILOT_DNS_JITTER_DURATION` that sets jitter for periodic DNS resolution. See `dns_jitter` in `https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto`. <|endoftext|> # k8s_examples_pod-uses-managed-ssd.yaml kind: Pod apiVersion: v1 metadata: name: pod-uses-managed-ssd-5g labels: name: storage spec: containers: - image: nginx name: az-c-01 command: - /bin/sh - -c - while true; do echo $(date) >> /mnt/managed/outfile; sleep 1; done volumeMounts: - name: managed01 mountPath: /mnt/managed volumes: - name: managed01 persistentVolumeClaim: claimName: dd-managed-ssd-5g <|endoftext|> # istio_51070.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 50808 releaseNotes: - | **Removed** Istio Stackdriver logs from XDS. <|endoftext|> # helm_charts_elasticsearch-setup-scripts.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "elasticsearch.fullname" . }}-setup-script labels: app: {{ template "elasticsearch.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} data: setup.sh: | #!/bin/bash # Startup script for preparing ElasticSearch pod for running with Mission Control echo "Waiting for ElasticSearch to be ready" until [[ "$(curl -s -o /dev/null -w \"%{http_code}\" ${ELASTIC_SEARCH_URL}/_cluster/health?local=true)" =~ "200" ]]; do echo "Waiting for ElasticSearch availability" sleep 2 done mkdir -p /var/log/elasticsearch bash /scripts/createIndices.sh > /var/log/elasticsearch/createIndices.sh.log 2>&1 createIndices.sh: | #!/bin/bash ELASTIC_SEARCH_LABEL='Elasticsearch' #Print the input with additional formatting to indicate a section/title title () { echo echo "-----------------------------------------------------" printf "| %-50s|\n" "$1" echo "-----------------------------------------------------" } # This function prints the echo with color. #If invoked with a single string, treats it as INFO level #Valid inputs for the second parameter are DEBUG and INFO log() { echo "" echo -e $1 echo "" } # Utility method to display warnings and important information warn() { echo "" echo -e "\033[33m $1 \033[0m" echo "" } errorExit() { echo; echo -e "\033[31mERROR:$1\033[0m"; echo exit 1 } attempt_number=0 elasticSearchIsNotReady(){ #echo "in method isElasticSearchReady" curl "$ELASTIC_SEARCH_URL" > /dev/null 2>&1 if [ $? -ne 0 ]; then if [ $attempt_number -gt 10 ]; then errorExit "Unable to proceed. $ELASTIC_SEARCH_LABEL is not reachable. The command [curl $ELASTIC_SEARCH_URL] is failing. Gave up after $attempt_number attempts" fi let "attempt_number=attempt_number+1" return 0 else return 1 fi } runCommand() { curl_response= local operation=$1 local commandToRun=$2 local request_body=$3 local params=$4 local waitTime=$5 if [[ ! -z "$waitTime" && "$waitTime" != "" ]]; then sleep $waitTime fi commandToRun="\"$ELASTIC_SEARCH_URL/$commandToRun\"" if [[ ! -z "$ELASTIC_SEARCH_USERNAME" && ! -z "$ELASTIC_SEARCH_PASSWORD" ]]; then commandToRun="$commandToRun --user $ELASTIC_SEARCH_USERNAME:$ELASTIC_SEARCH_PASSWORD" fi if [[ ! -z "$params" ]]; then commandToRun="$commandToRun $params" fi if [[ ! -z "$request_body" ]]; then commandToRun="$commandToRun -d '"$request_body"'" fi if [[ "$operation" == "GET" ]]; then commandToRun="curl --silent -XGET $commandToRun" curl_response=$(eval "${commandToRun}") else eval "curl --silent -X $operation ${commandToRun}" || errorExit "could not update Elastic Search" fi } setElasticSearchParams() { log "Waiting for $ELASTIC_SEARCH_LABEL to get ready (using the command: [curl $ELASTIC_SEARCH_URL])" while elasticSearchIsNotReady do sleep 5 echo -n '.' done log "$ELASTIC_SEARCH_LABEL is ready. Executing commands" runCommand "GET" "_template/storage_insight_template" "" "" 10 #echo "$ELASTIC_SEARCH_LABEL curl response: $curl_response" if [[ $curl_response = {} ]]; then migrateToElastic61 runCommand "GET" "_template/active_insight_data" if [[ $curl_response = {} ]]; then log "Creating new template" runCommand "PUT" "_template/storage_insight_template" '{"template":"active_insight_data_*","aliases":{"active_insight_data":{},"search_insight_data":{}},"mappings":{"artifacts_storage":{"properties":{"used_space":{"type":"double"},"timestamp":{"type":"date"},"artifacts_size":{"type":"double"}}}}}' '-H "Content-Type: application/json"' > /dev/null 2>&1 runCommand "PUT" "%3Cactive_insight_data_%7Bnow%2Fd%7D-1%3E" > /dev/null 2>&1 else performUpgrade fi fi runCommand "GET" "_template/build_info_template" "" "" 10 if [[ $curl_response = {} ]]; then log "Create Build Info template" createBuildInfoTemplate fi updateBuildInfoTemplate log "$ELASTIC_SEARCH_LABEL setup is now complete" log "Created build info templates" } performUpgrade(){ log "Performing upgrade" runCommand "DELETE" "_template/active_insight_data" > /dev/null 2>&1 runCommand "PUT" "_template/storage_insight_template" '{"template":"active_insight_data_*","aliases":{"active_insight_data":{},"search_insight_data":{}},"mappings":{"artifacts_storage":{"properties":{"used_space":{"type":"double"},"timestamp":{"type":"date"},"artifacts_size":{"type":"double"}}}}}' '-H "Content-Type: application/json"' > /dev/null 2>&1 log "Created new template" runCommand "GET" "_alias/active_insight_data" if [[ $curl_response = *missing* ]]; then runCommand "PUT" "%3Cactive_insight_data_%7Bnow%2Fd%7D-1%3E" > /dev/null 2>&1 else indexname=$(echo $curl_response |cut -d'"' -f 2) log "Old index $indexname" curl_response=$(runCommand "PUT" "%3Cactive_insight_data_%7Bnow%2Fd%7D-1%3E") if [[ "$curl_response" = *"resource_already_exists_exception"* ]]; then log "Index with same name exists, creating with different name" runCommand "PUT" "%3Cactive_insight_data_%7Bnow%2Fd%7D-2%3E" > /dev/null 2>&1 fi log "Created new index" runCommand "GET" "_alias/active_insight_data" runCommand "POST" "_aliases" '{"actions":[{"remove":{"index":"'$indexname'","alias":"active_insight_data"}}]}' '-H "Content-Type: application/json"' > /dev/null 2>&1 log "Removed the old index from active alias" fi } createBuildInfoTemplate(){ runCommand "PUT" "_template/build_info_template" '{"template":"active_build_data_*","aliases":{"active_build_data":{},"search_build_data":{}},"mappings":{"build_info":{"properties":{"created_time":{"type":"date"},"timestamp":{"type":"date"},"build_name":{"type":"keyword"},"build_number":{"type":"integer"},"build_URL":{"type":"keyword"},"build_created_by":{"type":"keyword"},"project_name":{"type":"keyword"},"project_id":{"type":"keyword"},"service_id":{"type":"keyword"},"access_service_id":{"type":"keyword"},"build_promotion":{"type":"keyword"},"build_status":{"type":"keyword"},"build_duration_seconds":{"type":"integer"},"total_no_of_commits":{"type":"short"},"total_no_of_modules":{"type":"short"},"total_dependency_count":{"type":"short"},"total_artifact_count":{"type":"short"},"total_artifact_count_downloaded":{"type":"short"},"total_artifact_count_not_downloaded":{"type":"short"},"total_artifact_size":{"type":"double"},"total_dependency_size":{"type":"double"},"module_dependency":{"type":"nested","properties":{"module_name":{"type":"keyword"},"dependency_name":{"type":"keyword"},"dependency_type":{"type":"keyword"},"dependency_size":{"type":"double"}}},"module_artifacts":{"type":"nested","properties":{"module_name":{"type":"keyword"},"artifact_name":{"type":"keyword"},"artifact_size":{"type":"double"},"no_of_downloads":{"type":"short"},"last_download_by":{"type":"keyword"}}},"commits":{"type":"nested","properties":{"repo":{"type":"keyword"},"branch":{"type":"keyword"},"commit_message":{"type":"text"},"revision_no":{"type":"keyword"}}},"total_vulnerability":{"properties":{"low":{"type":"short"},"medium":{"type":"short"},"high":{"type":"short"}}},"total_open_source_violoation":{"properties":{"low":{"type":"short"},"medium":{"type":"short"},"high":{"type":"short"}}},"major_xray_issues":{"type":"long"},"minor_xray_issues":{"type":"long"},"unknown_xray_issues":{"type":"long"},"critical_xray_issues":{"type":"long"}}}}}' '-H "Content-Type: application/json"' > /dev/null 2>&1 runCommand "PUT" "%3Cactive_build_data_%7Bnow%2Fd%7D-1%3E" > /dev/null 2>&1 } updateBuildInfoTemplate(){ runCommand "PUT" "active_build*/_mapping/build_info" '{"properties":{"created_time":{"type":"date"},"timestamp":{"type":"date"},"build_name":{"type":"keyword"},"build_number":{"type":"integer"},"build_URL":{"type":"keyword"},"build_created_by":{"type":"keyword"},"project_name":{"type":"keyword"},"project_id":{"type":"keyword"},"service_id":{"type":"keyword"},"access_service_id":{"type":"keyword"},"build_promotion":{"type":"keyword"},"build_status":{"type":"keyword"},"build_duration_seconds":{"type":"integer"},"total_no_of_commits":{"type":"short"},"total_no_of_modules":{"type":"short"},"total_dependency_count":{"type":"short"},"total_artifact_count":{"type":"short"},"total_artifact_count_downloaded":{"type":"short"},"total_artifact_count_not_downloaded":{"type":"short"},"total_artifact_size":{"type":"double"},"total_dependency_size":{"type":"double"},"module_dependency":{"type":"nested","properties":{"module_name":{"type":"keyword"},"dependency_name":{"type":"keyword"},"dependency_type":{"type":"keyword"},"dependency_size":{"type":"double"}}},"module_artifacts":{"type":"nested","properties":{"module_name":{"type":"keyword"},"artifact_name":{"type":"keyword"},"artifact_size":{"type":"double"},"no_of_downloads":{"type":"short"},"last_download_by":{"type":"keyword"}}},"commits":{"type":"nested","properties":{"repo":{"type":"keyword"},"branch":{"type":"keyword"},"commit_message":{"type":"text"},"revision_no":{"type":"keyword"}}},"total_vulnerability":{"properties":{"low":{"type":"short"},"medium":{"type":"short"},"high":{"type":"short"}}},"total_open_source_violoation":{"properties":{"low":{"type":"short"},"medium":{"type":"short"},"high":{"type":"short"}}},"major_xray_issues":{"type":"long"},"minor_xray_issues":{"type":"long"},"unknown_xray_issues":{"type":"long"},"critical_xray_issues":{"type":"long"}}}' '-H "Content-Type: application/json"' > /dev/null 2>&1 log "Updated build info indices" } migrateToElastic61(){ local activeIndexPrefix="active_insight_data" local repoStorageName="migrate-repostorage" local storageSummaryName="migrate-storage" local index="" log "Getting current indices with name : ${activeIndexPrefix}" result=$(curl --silent "$ELASTIC_SEARCH_URL/_cat/indices/${activeIndexPrefix}*") if [[ "$result" = *"${activeIndexPrefix}"* ]]; then echo $result | while read indices ; do index=$(echo $indices | awk -F " " '{print $3}') log "Attempting migrate of index : ${index}" indexDate=$(echo "${index}" | sed -e "s#${activeIndexPrefix}##g") modifiedRepoStorageName=${repoStorageName}${indexDate} modifiedStorageSummaryName=${storageSummaryName}${indexDate} # Reindex from each type runCommand 'POST' '_reindex' '{"source":{"index":"'${index}'","type":"repo_storage_info"},"dest":{"index":"'${modifiedRepoStorageName}'"}}' '-H "Content-Type: application/json"' 2 > /dev/null 2>&1 runCommand 'POST' '_reindex' '{"source":{"index":"'${index}'","type":"storage_summary_info"},"dest":{"index":"'${modifiedStorageSummaryName}'"}}' '-H "Content-Type: application/json"' 2 > /dev/null 2>&1 # Add type field runCommand 'POST' ${modifiedRepoStorageName}'/_update_by_query' '{"script": {"inline": "ctx._source.type = \"repo_storage_info\"","lang": "painless"}}' '-H "Content-Type: application/json"' 2 > /dev/null 2>&1 runCommand 'POST' ${modifiedStorageSummaryName}'/_update_by_query' '{"script": {"inline": "ctx._source.type = \"storage_summary_info\"","lang": "painless"}}' '-H "Content-Type: application/json"' 2 > /dev/null 2>&1 # Add the new indices to search alias runCommand 'POST' '_aliases' '{"actions" : [{ "add" : { "index" : "'${modifiedRepoStorageName}'", "alias" : "search_insight_data" } }]}' '-H "Content-Type: application/json"' 2 > /dev/null 2>&1 runCommand 'POST' '_aliases' '{"actions" : [{ "add" : { "index" : "'${modifiedStorageSummaryName}'", "alias" : "search_insight_data" } }]}' '-H "Content-Type: application/json"' 2 > /dev/null 2>&1 # Delete the old index log "Deleting index : ${index}" runCommand 'DELETE' "${index}" > /dev/null 2>&1 done fi } main() { if [[ -z $ELASTIC_SEARCH_URL ]]; then title "$ELASTIC_SEARCH_LABEL Manual Setup" log "This script will attempt to seed $ELASTIC_SEARCH_LABEL with the templates and indices needed by JFrog Mission Control" warn "Please enter the same details as you entered during installation. If the details are incorrect, you may need to rerun the installation" local DEFAULT_URL="http://docker.for.mac.localhost:9200" read -p "Please enter the $ELASTIC_SEARCH_LABEL URL [$DEFAULT_URL]:" choice : ${choice:=$DEFAULT_URL} ELASTIC_SEARCH_URL=$choice fi echo "Beginning $ELASTIC_SEARCH_LABEL bootstrap" setElasticSearchParams } main <|endoftext|> # istio_47252.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support for setting loggers' levels of istio-proxy in `istioctl proxy-config log` command with `--level ` or `--level level=`. <|endoftext|> # istio_44931.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support for yaml output to `istioctl admin log`. <|endoftext|> # helm_charts_mail-receiver-configmap.yaml {{- if .Values.mailReceiver.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "redmine.fullname" . }} labels: {{- include "redmine.labels" . | nindent 4 }} data: receive.sh: | #!/usr/bin/env bash if [ $REDMINE_MAIL_RECEIVER_DEBUG ]; then set -x fi # Perform basic validation if [ "$REDMINE_MAIL_RECEIVER_HOST" = "" ]; then echo "Envar REDMINE_MAIL_RECEIVER_HOST undefined" exit 1 fi if [ "$REDMINE_MAIL_RECEIVER_PORT" = "" ]; then echo "Envar REDMINE_MAIL_RECEIVER_PORT undefined" exit 1 fi if [ "$REDMINE_MAIL_RECEIVER_USERNAME" = "" ]; then echo "Envar REDMINE_MAIL_RECEIVER_USERNAME undefined" exit 1 fi if [ "$REDMINE_MAIL_RECEIVER_PASSWORD" = "" ]; then echo "Envar REDMINE_MAIL_RECEIVER_PASSWORD undefined" exit 1 fi # Set workdir cd /opt/bitnami/redmine # Configuring Database connection if [ $REDMINE_DB_MYSQL ]; then cat < config/database.yml production: adapter: mysql2 database: <%= ENV["REDMINE_MAIL_RECEIVER_DB_DATABASE"] %> host: <%= ENV["REDMINE_MAIL_RECEIVER_DB_MYSQL"] %> username: <%= ENV["REDMINE_MAIL_RECEIVER_DB_USERNAME"] %> password: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PASSWORD"] %> port: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PORT"] %> encoding: utf8 test: adapter: postgresql database: <%= ENV["REDMINE_MAIL_RECEIVER_DB_DATABASE"] %> host: <%= ENV["REDMINE_MAIL_RECEIVER_DB_POSTGRES"] %> username: <%= ENV["REDMINE_MAIL_RECEIVER_DB_USERNAME"] %> password: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PASSWORD"] %> port: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PORT"] %> encoding: utf8 END elif [ $REDMINE_DB_POSTGRES ]; then cat < config/database.yml test: adapter: mysql2 database: <%= ENV["REDMINE_MAIL_RECEIVER_DB_DATABASE"] %> host: <%= ENV["REDMINE_MAIL_RECEIVER_DB_MYSQL"] %> username: <%= ENV["REDMINE_MAIL_RECEIVER_DB_USERNAME"] %> password: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PASSWORD"] %> port: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PORT"] %> encoding: utf8 production: adapter: postgresql database: <%= ENV["REDMINE_MAIL_RECEIVER_DB_DATABASE"] %> host: <%= ENV["REDMINE_MAIL_RECEIVER_DB_POSTGRES"] %> username: <%= ENV["REDMINE_MAIL_RECEIVER_DB_USERNAME"] %> password: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PASSWORD"] %> port: <%= ENV["REDMINE_MAIL_RECEIVER_DB_PORT"] %> encoding: utf8 END else echo "No database settings given. Exiting" exit 1 fi # Build receiver command COMMAND="" if [ "$REDMINE_MAIL_RECEIVER_PROTOCOL" = "IMAP" ]; then COMMAND="bundle exec rake redmine:email:receive_imap --trace " if [ "$REDMINE_MAIL_RECEIVER_IMAP_FOLDER" != "" ]; then COMMAND="$COMMAND folder=\"$REDMINE_MAIL_RECEIVER_IMAP_FOLDER\" " fi if [ "$REDMINE_MAIL_RECEIVER_IMAP_MOVE_ON_SUCCESS" != "" ]; then COMMAND="$COMMAND move_on_success=\"$REDMINE_MAIL_RECEIVER_IMAP_MOVE_ON_SUCCESS\" " fi if [ "$REDMINE_MAIL_RECEIVER_IMAP_MOVE_ON_FAILURE" != "" ]; then COMMAND="$COMMAND move_on_failure=\"$REDMINE_MAIL_RECEIVER_IMAP_MOVE_ON_FAILURE\" " fi elif [ "$REDMINE_MAIL_RECEIVER_PROTOCOL" = "IMAP" ]; then COMMAND="bundle exec rake redmine:email:receive_pop3 --trace " if [ "$REDMINE_MAIL_RECEIVER_POP3_DELETE_UNPROCESSED" != "" ]; then COMMAND="$COMMAND delete_unprocessed=\"$REDMINE_MAIL_RECEIVER_POP3_DELETE_UNPROCESSED\" " fi else echo "Unsupported mail receive protocol. Exiting" exit 1 fi # Add required values COMMAND="$COMMAND RAILS_ENV='production' \ host=\"$REDMINE_MAIL_RECEIVER_HOST\" \ port=\"$REDMINE_MAIL_RECEIVER_PORT\" \ username=\"$REDMINE_MAIL_RECEIVER_USERNAME\" \ password=\"$REDMINE_MAIL_RECEIVER_PASSWORD\" " # Add optional values if [ "$REDMINE_MAIL_RECEIVER_USE_SSL" ]; then COMMAND="$COMMAND ssl=\"$REDMINE_MAIL_RECEIVER_USE_SSL\" " fi if [ -z "$REDMINE_MAIL_RECEIVER_STARTTLS" -a "$REDMINE_MAIL_RECEIVER_STARTTLS" ]; then COMMAND="$COMMAND starttls=\"$REDMINE_MAIL_RECEIVER_STARTTLS\" " fi if [ "$REDMINE_MAIL_RECEIVER_UNKNOWN_USER_ACTION" != "" ]; then COMMAND="$COMMAND unknown_user=\"$REDMINE_MAIL_RECEIVER_UNKNOWN_USER_ACTION\" " fi if [ "$REDMINE_MAIL_RECEIVER_NO_PERMISSION_CHECK" != "" ]; then COMMAND="$COMMAND no_permission_check=\"$REDMINE_MAIL_RECEIVER_NO_PERMISSION_CHECK\" " fi if [ "$REDMINE_MAIL_RECEIVER_NO_ACCOUNT_NOTICE" != "" ]; then COMMAND="$COMMAND no_account_notice=\"$REDMINE_MAIL_RECEIVER_NO_ACCOUNT_NOTICE\" " fi if [ "$REDMINE_MAIL_RECEIVER_DEFAULT_GROUP" != "" ]; then COMMAND="$COMMAND default_group=\"$REDMINE_MAIL_RECEIVER_DEFAULT_GROUP\" " fi if [ "$REDMINE_MAIL_RECEIVER_PROJECT" != "" ]; then COMMAND="$COMMAND project=\"$REDMINE_MAIL_RECEIVER_PROJECT\" " fi if [ "$REDMINE_MAIL_RECEIVER_PROJECT_FROM_SUBADDRESS" != "" ]; then COMMAND="$COMMAND project_from_subaddress=\"$REDMINE_MAIL_RECEIVER_PROJECT_FROM_SUBADDRESS\" " fi if [ "$REDMINE_MAIL_RECEIVER_STATUS" != "" ]; then COMMAND="$COMMAND status=\"$REDMINE_MAIL_RECEIVER_STATUS\" " fi if [ "$REDMINE_MAIL_RECEIVER_TRACKER" != "" ]; then COMMAND="$COMMAND tracker=\"$REDMINE_MAIL_RECEIVER_TRACKER\" " fi if [ "$REDMINE_MAIL_RECEIVER_CATEGORY" != "" ]; then COMMAND="$COMMAND category=\"$REDMINE_MAIL_RECEIVER_CATEGORY\" " fi if [ "$REDMINE_MAIL_RECEIVER_PRIORITY" != "" ]; then COMMAND="$COMMAND priority=\"$REDMINE_MAIL_RECEIVER_PRIORITY\" " fi if [ "$REDMINE_MAIL_RECEIVER_ASSIGNED_TO" != "" ]; then COMMAND="$COMMAND assigned_to=\"$REDMINE_MAIL_RECEIVER_ASSIGNED_TO\" " fi if [ "$REDMINE_MAIL_RECEIVER_ALLOW_OVERRIDE" != "" ]; then COMMAND="$COMMAND allow_override=\"$REDMINE_MAIL_RECEIVER_ALLOW_OVERRIDE\" " fi if [ $REDMINE_MAIL_RECEIVER_DEBUG ]; then echo "Unsecure printing mail receiving command" echo $COMMAND echo "" fi # Configuring secrets cat < config/secrets.yml development: secret_key_base: test: secret_key_base: production: secret_key_base: <%= ENV["REDMINE_MAIL_RECEIVER_SECRET_KEY_BASE"] %> END echo "Start rake receive email process" # Execute command eval $COMMAND echo "Email receiveing completed" exit 0 {{- end -}} <|endoftext|> # helm_charts_additional-secrets.yaml {{ if .Values.halyard.additionalSecrets.create -}} apiVersion: v1 kind: Secret metadata: name: {{ template "spinnaker.fullname" . }}-additional-secrets labels: {{ include "spinnaker.standard-labels" . | indent 4 }} data: {{- if and .Values.halyard.additionalSecrets.create .Values.halyard.additionalSecrets.data }} {{- range $index, $content := .Values.halyard.additionalSecrets.data }} {{ $index }}: |- {{ $content | indent 4 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_42398.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - https://github.com/istio/istio/issues/43256 releaseNotes: - | **Added** env variables to support modifying grpc keepalive values <|endoftext|> # istio_53852.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Added** an issue that `istioctl install` not working on windows. <|endoftext|> # istio_56306.yaml apiVersion: release-notes/v2 kind: feature area: security issue: [56306] releaseNotes: - | **Added** support for ClusterTrustBundle by migrating from `certificates.k8s.io/v1alpha1` to the stable `v1beta1` API in Kubernetes 1.33+. This improves compatibility and future-proofs Istio’s certificate distribution mechanism. <|endoftext|> # helm_source_dummy.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ .Chart.Name }} data: {{ .Values.defaults | toYaml }} <|endoftext|> # argocd_source_degraded_unadvertiseError.yaml apiVersion: proclaim.dogmatiq.io/v1 kind: DNSSDServiceInstance metadata: creationTimestamp: "2023-03-20T01:47:37Z" finalizers: - proclaim.dogmatiq.io/unadvertise generation: 2 name: test-instance namespace: proclaim resourceVersion: "308914" uid: 991a66a3-9b7e-4515-9a41-f7513e9b7b33 spec: instance: attributes: - baz: qux flag: "" foo: bar - more: attrs domain: example.org name: test-instance serviceType: _proclaim._tcp targets: - host: test.example.org port: 8080 priority: 0 weight: 0 ttl: 1m0s status: conditions: - lastTransitionTime: "2023-03-20T01:47:40Z" message: "" observedGeneration: 2 reason: UnadvertiseError status: "False" type: Advertised <|endoftext|> # istio_min-k8-ver-for-1.9.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 30176 releaseNotes: - | **Added** Istio 1.9 supports Kubernetes versions 1.17 to 1.20. <|endoftext|> # k8s_examples_cassandra-service.yaml apiVersion: v1 kind: Service metadata: labels: app: cassandra name: cassandra spec: clusterIP: None ports: - port: 9042 selector: app: cassandra <|endoftext|> # istio_endpoints-false-negative.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 48373 releaseNotes: - | **Fixed** an issue where new endpoints may not be sent to proxies. <|endoftext|> # helm_charts_kube-state-metrics.yaml {{- /* Generated from 'kube-state-metrics' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeStateMetrics.enabled .Values.defaultRules.rules.kubeStateMetrics }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kube-state-metrics" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kube-state-metrics rules: - alert: KubeStateMetricsListErrors annotations: message: kube-state-metrics is experiencing errors at an elevated rate in list operations. This is likely causing it to not be able to expose metrics about Kubernetes objects correctly or at all. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubestatemetricslisterrors expr: |- (sum(rate(kube_state_metrics_list_total{job="kube-state-metrics",result="error"}[5m])) / sum(rate(kube_state_metrics_list_total{job="kube-state-metrics"}[5m]))) > 0.01 for: 15m labels: severity: critical - alert: KubeStateMetricsWatchErrors annotations: message: kube-state-metrics is experiencing errors at an elevated rate in watch operations. This is likely causing it to not be able to expose metrics about Kubernetes objects correctly or at all. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubestatemetricswatcherrors expr: |- (sum(rate(kube_state_metrics_watch_total{job="kube-state-metrics",result="error"}[5m])) / sum(rate(kube_state_metrics_watch_total{job="kube-state-metrics"}[5m]))) > 0.01 for: 15m labels: severity: critical {{- end }} <|endoftext|> # helm_charts_collector-deployment.yaml {{- if .Values.collector.enabled }} {{- if not .Values.collector.useDaemonset }} apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" . }} helm.sh/chart: {{ template "wavefront.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io.instance: {{ .Release.Name | quote }} app.kubernetes.io/component: collector name: {{ template "wavefront.collector.fullname" . }} spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name : {{ template "wavefront.fullname" .}} app.kubernetes.io/component: collector template: metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" .}} app.kubernetes.io/component: collector spec: serviceAccountName: {{ template "wavefront.collector.serviceAccountName" . }} containers: - name: wavefront-collector image: {{ .Values.collector.image.repository }}:{{ .Values.collector.image.tag }} imagePullPolicy: {{ .Values.collector.image.pullPolicy }} command: - /wavefront-collector - --daemon=false - --config-file=/etc/collector/config.yaml {{- if .Values.collector.maxProcs }} - --max-procs={{ .Values.collector.maxProcs }} {{- end }} {{- if .Values.collector.logLevel }} - --log-level={{ .Values.collector.logLevel }} {{- end }} resources: {{ toYaml .Values.collector.resources | indent 10 }} volumeMounts: - name: config mountPath: /etc/collector/ readOnly: true - name: ssl-certs mountPath: /etc/ssl/certs readOnly: true volumes: - name: config configMap: name: {{ template "wavefront.collector.fullname" . }}-config - name: ssl-certs hostPath: path: /etc/ssl/certs {{- end }} {{- end }} <|endoftext|> # kube_prometheus_kubeStateMetrics-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 2.18.0 name: kube-state-metrics namespace: monitoring spec: replicas: 1 selector: matchLabels: app.kubernetes.io/component: exporter app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/part-of: kube-prometheus template: metadata: annotations: kubectl.kubernetes.io/default-container: kube-state-metrics labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 2.18.0 spec: automountServiceAccountToken: true containers: - args: - --host=127.0.0.1 - --port=8081 - --telemetry-host=127.0.0.1 - --telemetry-port=8082 image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.18.0 name: kube-state-metrics resources: limits: cpu: 100m memory: 250Mi requests: cpu: 10m memory: 190Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsGroup: 65534 runAsNonRoot: true runAsUser: 65534 seccompProfile: type: RuntimeDefault - args: - --secure-listen-address=:8443 - --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - --upstream=http://127.0.0.1:8081/ image: quay.io/brancz/kube-rbac-proxy:v0.21.2 name: kube-rbac-proxy-main ports: - containerPort: 8443 name: https-main resources: limits: cpu: 40m memory: 40Mi requests: cpu: 20m memory: 20Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 seccompProfile: type: RuntimeDefault - args: - --secure-listen-address=:9443 - --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - --upstream=http://127.0.0.1:8082/ image: quay.io/brancz/kube-rbac-proxy:v0.21.2 name: kube-rbac-proxy-self ports: - containerPort: 9443 name: https-self resources: limits: cpu: 20m memory: 40Mi requests: cpu: 10m memory: 20Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 seccompProfile: type: RuntimeDefault nodeSelector: kubernetes.io/os: linux serviceAccountName: kube-state-metrics <|endoftext|> # k8s_docs_commands.yaml apiVersion: v1 kind: Pod metadata: name: command-demo labels: purpose: demonstrate-command spec: containers: - name: command-demo-container image: debian command: ["printenv"] args: ["HOSTNAME", "KUBERNETES_PORT"] restartPolicy: OnFailure <|endoftext|> # helm_charts_keeper-pdb.yaml {{- if .Values.keeper.podDisruptionBudget }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ template "stolon.fullname" . }}-keeper labels: app: {{ template "stolon.name" . }} chart: {{ template "stolon.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: selector: matchLabels: app: {{ template "stolon.name" . }} release: {{ .Release.Name }} component: stolon-keeper {{ toYaml .Values.keeper.podDisruptionBudget | indent 2 }} {{- end }} <|endoftext|> # cert_manager_webhook-config.yaml {{- if .Values.webhook.config -}} {{- $config := .Values.webhook.config -}} {{- $_ := set $config "apiVersion" (default "webhook.config.cert-manager.io/v1alpha1" $config.apiVersion) -}} {{- $_ := set $config "kind" (default "WebhookConfiguration" $config.kind) -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "webhook.fullname" . }} namespace: {{ include "cert-manager.namespace" . }} labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} data: config.yaml: | {{- $config | toYaml | nindent 4 }} {{- end -}} <|endoftext|> # grafana_charts_deployment-distributor.yaml {{ $dict := dict "ctx" . "component" "distributor" "memberlist" true }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.distributor.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: minReadySeconds: {{ .Values.distributor.minReadySeconds }} {{- if not .Values.distributor.autoscaling.enabled }} replicas: {{ .Values.distributor.replicas }} {{- end }} revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }} selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} {{- with .Values.distributor.strategy }} strategy: {{- toYaml . | nindent 4 }} {{- end }} template: metadata: labels: {{- include "tempo.podLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.distributor.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} {{- with .Values.tempo.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.distributor.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if or (.Values.distributor.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.distributor.priorityClassName .Values.global.priorityClassName }} {{- end }} serviceAccountName: {{ include "tempo.serviceAccountName" . }} {{- with .Values.tempo.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} enableServiceLinks: false {{- include "tempo.distributorImagePullSecrets" . | nindent 6 -}} {{- with .Values.distributor.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.distributor.initContainers }} initContainers: {{- toYaml . | nindent 8 }} {{- end }} containers: - args: - -target=distributor - -config.file=/conf/tempo.yaml {{- with .Values.distributor.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.imageReference" $dict }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: distributor ports: - containerPort: {{ include "tempo.memberlistBindPort" . }} name: http-memberlist protocol: TCP - containerPort: 3200 name: http-metrics {{- if .Values.traces.jaeger.thriftCompact.enabled }} - containerPort: 6831 name: jaeger-compact protocol: UDP {{- end }} {{- if .Values.traces.jaeger.thriftBinary.enabled }} - containerPort: 6832 name: jaeger-binary protocol: UDP {{- end }} {{- if .Values.traces.jaeger.thriftHttp.enabled }} - containerPort: 14268 name: jaeger-http protocol: TCP {{- end }} {{- if .Values.traces.jaeger.grpc.enabled }} - containerPort: 14250 name: grpc-jaeger protocol: TCP {{- end }} {{- if .Values.traces.zipkin.enabled }} - containerPort: 9411 name: zipkin protocol: TCP {{- end }} {{- if .Values.traces.otlp.http.enabled }} - containerPort: 4318 name: otlp-http protocol: TCP {{- end }} {{- if .Values.traces.otlp.grpc.enabled }} - containerPort: 4317 name: grpc-otlp protocol: TCP {{- end }} {{- if .Values.traces.opencensus.enabled }} - containerPort: 55678 name: opencensus protocol: TCP {{- end }} {{- if or .Values.global.extraEnv .Values.distributor.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.distributor.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.distributor.extraEnvFrom }} envFrom: {{- with .Values.distributor.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} livenessProbe: {{- toYaml .Values.tempo.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.tempo.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.distributor.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.distributor.lifecycle }} lifecycle: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config - mountPath: /runtime-config name: runtime-config - mountPath: /var/tempo name: tempo-distributor-store {{- if .Values.enterprise.enabled }} - name: license mountPath: /license {{- end }} {{- with .Values.distributor.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.distributor.extraContainers }} {{- toYaml . | nindent 8 }} {{- end }} terminationGracePeriodSeconds: {{ .Values.distributor.terminationGracePeriodSeconds }} {{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }} {{- with .Values.distributor.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- with .Values.distributor.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.distributor.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.distributor.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- include "tempo.configVolume" . | nindent 10 }} - name: runtime-config {{- include "tempo.runtimeVolume" . | nindent 10 }} - name: tempo-distributor-store emptyDir: {} {{- if .Values.enterprise.enabled }} - name: license secret: secretName: {{ tpl .Values.license.secretName . }} {{- end }} {{- with .Values.distributor.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} <|endoftext|> # argocd_source_failure.yaml apiVersion: promoter.argoproj.io/v1alpha1 kind: CommitStatus metadata: name: test generation: 2 status: conditions: - type: Ready status: True observedGeneration: 2 id: test-2 sha: abc1234 phase: failure <|endoftext|> # helm_charts_worker-svc.yaml {{- if .Values.worker.enabled -}} ## A Headless Service is required when using a StatefulSet ## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/ ## apiVersion: v1 kind: Service metadata: name: {{ template "concourse.worker.fullname" . }} labels: app: {{ template "concourse.worker.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: type: ClusterIP clusterIP: None ## We do NOT expose any port as workers will forward connections with the ATC through a TSA reverse-tunnel ## ref: https://concourse-ci.org/architecture.html#architecture-worker ## ports: [] selector: app: {{ template "concourse.worker.fullname" . }} {{- end }} <|endoftext|> # flux_source_view.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: flux-view labels: rbac.authorization.k8s.io/aggregate-to-admin: "true" rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-view: "true" rules: - apiGroups: - notification.toolkit.fluxcd.io - source.toolkit.fluxcd.io - source.extensions.fluxcd.io - helm.toolkit.fluxcd.io - image.toolkit.fluxcd.io - kustomize.toolkit.fluxcd.io resources: ["*"] verbs: - get - list - watch <|endoftext|> # istio_56326-reader-rbac-multicluster-only.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 56326 releaseNotes: - | **Added** `values.global.enableReaderRBAC` (default: `true`) to control installation of `istio-reader-service-account` and its related `istio-reader` ClusterRole/ClusterRoleBinding for multicluster remote-secret workflows. Set it to `false` to disable installing these resources. When installing with Helm, set `global.enableReaderRBAC=false` on both the base and istiod charts, since the ServiceAccount is rendered by the base chart while the related ClusterRole/ClusterRoleBinding are rendered by the istiod chart. <|endoftext|> # istio_status.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: a hostname: "a.example" port: 80 protocol: HTTP - name: b hostname: "b.example" port: 80 protocol: HTTP --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: existing-istio-last namespace: istio-system spec: parentRefs: - name: gateway - name: not-istio rules: - backendRefs: - name: httpbin port: 80 status: parents: - controllerName: example.com/not-istio parentRef: group: gateway.networking.k8s.io kind: Gateway name: not-istio namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy - controllerName: istio.io/gateway-controller parentRef: group: gateway.networking.k8s.io kind: Gateway name: gateway namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: existing-istio-first namespace: istio-system spec: parentRefs: - name: gateway - name: not-istio rules: - backendRefs: - name: httpbin port: 80 status: parents: - controllerName: istio.io/gateway-controller parentRef: group: gateway.networking.k8s.io kind: Gateway name: gateway namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy - controllerName: example.com/not-istio parentRef: group: gateway.networking.k8s.io kind: Gateway name: not-istio namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: stale-istio-reference namespace: istio-system spec: parentRefs: - name: gateway rules: - backendRefs: - name: httpbin port: 80 status: parents: - controllerName: istio.io/gateway-controller parentRef: group: gateway.networking.k8s.io kind: Gateway name: gateway namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy - controllerName: istio.io/gateway-controller # We do own this one so should prune it parentRef: group: gateway.networking.k8s.io kind: Gateway name: not-istio namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: stale-other-reference namespace: istio-system spec: parentRefs: - name: gateway rules: - backendRefs: - name: httpbin port: 80 status: parents: - controllerName: istio.io/gateway-controller parentRef: group: gateway.networking.k8s.io kind: Gateway name: gateway namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy - controllerName: example.com/not-istio # We don't own this one so will leave it parentRef: group: gateway.networking.k8s.io kind: Gateway name: not-istio namespace: istio-system conditions: - lastTransitionTime: 2025-01-01T00:00:00Z message: dummy reason: dummy status: "True" type: dummy <|endoftext|> # argocd_source_degraded_statusPhaseMessage.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: creationTimestamp: "2020-11-13T00:44:55Z" generation: 1 name: basic namespace: argocd-e2e resourceVersion: "182108" selfLink: /apis/argoproj.io/v1alpha1/namespaces/argocd-e2e/rollouts/basic uid: 34e4bbfc-222c-4968-bd60-2b30ae81110d spec: replicas: 1 selector: matchLabels: app: basic strategy: canary: steps: - setWeight: 50 - pause: {} template: metadata: creationTimestamp: null labels: app: basic spec: containers: - image: nginx:1.19-alpine name: basic resources: requests: cpu: 1m memory: 16Mi status: HPAReplicas: 1 availableReplicas: 1 blueGreen: {} canary: {} conditions: {} phase: "Degraded" message: "InvalidSpec" currentPodHash: 754cb84d5 currentStepHash: 757f5f97b currentStepIndex: 2 observedGeneration: "8575574967" ## <---- uses legacy observedGeneration hash which are numbers readyReplicas: 1 replicas: 1 selector: app=basic stableRS: 754cb84d5 updatedReplicas: 1 <|endoftext|> # helm_charts_prometheus-service.yaml {{- if .Values.metrics.prometheus.enabled }} apiVersion: v1 kind: Service metadata: {{- if .Values.metrics.prometheus.service.name }} name: {{ .Values.metrics.prometheus.service.name }} {{- else }} name: {{ template "traefik.fullname" . }}-prometheus {{- end }} labels: app: {{ template "traefik.name" . }} chart: {{ template "traefik.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- with .Values.metrics.prometheus.service.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: {{ .Values.metrics.prometheus.service.type }} {{- if .Values.metrics.prometheus.service.loadBalancerIP }} loadBalancerIP: {{ .Values.metrics.prometheus.service.loadBalancerIP }} {{- end }} {{- if .Values.metrics.prometheus.service.externalIP }} externalIPs: - {{ .Values.metrics.prometheus.service.externalIP }} {{- end }} {{- if .Values.metrics.prometheus.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- range $cidr := .Values.metrics.prometheus.service.loadBalancerSourceRanges }} - {{ $cidr }} {{- end }} {{- end }} {{- if .Values.metrics.prometheus.service.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.metrics.prometheus.service.externalTrafficPolicy }} {{- end }} selector: app: {{ template "traefik.name" . }} release: {{ .Release.Name }} ports: - port: {{ .Values.metrics.prometheus.service.port }} name: metrics targetPort: metrics {{- if (and (eq .Values.metrics.prometheus.service.type "NodePort") (not (empty .Values.metrics.prometheus.service.nodePorts )))}} nodePort: {{ .Values.metrics.prometheus.service.nodePort }} {{- end }} {{- end }} <|endoftext|> # k8s_docs_dual-stack-prefer-ipv6-lb-svc.yaml apiVersion: v1 kind: Service metadata: name: my-service labels: app: MyApp spec: ipFamilyPolicy: PreferDualStack ipFamilies: - IPv6 type: LoadBalancer selector: app: MyApp ports: - protocol: TCP port: 80 <|endoftext|> # helm_charts_ambassador-devportal.yaml {{ if and .Values.pro.enabled .Values.pro.devPortal.enabled }} {{- if .Values.crds.enabled }} --- apiVersion: getambassador.io/v1 kind: Mapping metadata: name: {{ include "ambassador.fullname" . }}-pro-devportal spec: {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} prefix: /docs/ rewrite: "" service: 127.0.0.1:{{ .Values.pro.ports.auth }} --- apiVersion: getambassador.io/v1 kind: Mapping metadata: name: {{ include "ambassador.fullname" . }}-pro-devportal-api spec: {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} prefix: /openapi/ rewrite: "" service: 127.0.0.1:{{ .Values.pro.ports.auth }} {{- end }} --- apiVersion: getambassador.io/v1beta2 kind: FilterPolicy metadata: name: {{ include "ambassador.fullname" . }}-pro-internal-access-control spec: {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} rules: - host: "*" path: "*/.ambassador-internal/*" filters: - name: ambassador-pro-internal-access-control --- apiVersion: getambassador.io/v1beta2 kind: Filter metadata: name: {{ include "ambassador.fullname" . }}-pro-internal-access-control spec: {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} Internal: {} {{ end }} <|endoftext|> # helm_charts_volumesnapshotlocation.yaml {{- if .Values.snapshotsEnabled }} apiVersion: velero.io/v1 kind: VolumeSnapshotLocation metadata: name: default labels: app.kubernetes.io/name: {{ include "velero.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} helm.sh/chart: {{ include "velero.chart" . }} spec: {{- with .Values.configuration }} {{- with .volumeSnapshotLocation }} provider: {{ .name }} {{ with .config }} config: {{- with .region }} region: {{ . }} {{- end }} {{- with .apitimeout }} apiTimeout: {{ . }} {{- end }} {{- with .resourceGroup }} resourceGroup: {{ . }} {{- end }} {{- with .snapshotLocation }} snapshotLocation: {{ . }} {{- end}} {{- with .project }} project: {{ . }} {{- end}} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_gateway-init-containers.golden.yaml apiVersion: apps/v1 kind: Deployment metadata: name: istio-ingress namespace: istio-ingress labels: app.kubernetes.io/name: istio-ingress app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istio-ingress" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: gateway-1.0.0 app: istio-ingress istio: ingress "istio.io/dataplane-mode": "none" annotations: {} spec: selector: matchLabels: app: istio-ingress istio: ingress template: metadata: annotations: inject.istio.io/templates: gateway prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" sidecar.istio.io/inject: "true" labels: sidecar.istio.io/inject: "true" app: istio-ingress istio: ingress app.kubernetes.io/name: istio-ingress app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istio-ingress" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: gateway-1.0.0 "istio.io/dataplane-mode": "none" spec: serviceAccountName: istio-ingress securityContext: # Safe since 1.22: https://github.com/kubernetes/kubernetes/pull/103326 sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" initContainers: - command: - /bin/sh - -c - echo Hello image: init-image:latest name: init-container containers: - name: istio-proxy # "auto" will be populated at runtime by the mutating webhook. See https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#customizing-injection image: auto securityContext: capabilities: drop: - ALL allowPrivilegeEscalation: false privileged: false readOnlyRootFilesystem: true runAsNonRoot: true env: ports: - containerPort: 15090 protocol: TCP name: http-envoy-prom resources: limits: cpu: 2000m memory: 1024Mi requests: cpu: 100m memory: 128Mi terminationGracePeriodSeconds: 30 <|endoftext|> # istio_fix-enable-absolute-fqdn-domain-vhost.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/56007 releaseNotes: - | **Fixed** an issue where Istio's outbound route configuration did not include the absolute/fully qualified domain name (FQDN) variant (with trailing dot) in the domains list for VirtualHost entries. This ensures that requests using absolute FQDNs (ending with a dot, e.g., `my-service.my-ns.svc.cluster.local.`) are properly routed to the intended service instead of falling back to PassthroughCluster. <|endoftext|> # istio_one_container.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 livenessProbe: httpGet: port: http readinessProbe: httpGet: port: 3333 <|endoftext|> # istio_37223.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - https://github.com/istio/istio/issues/37159 releaseNotes: - | **Fixed** `istioctl x describe svc` not evaluating port `appProtocol` properly. <|endoftext|> # kustomize_cron_job.template.yaml # Copyright 2021 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 apiVersion: batch/v1 kind: CronJob metadata: name: hello spec: schedule: "*/1 * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: nginx env: - name: EXISTING value: variable <|endoftext|> # flux_source_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo namespace: default spec: minReadySeconds: 3 revisionHistoryLimit: 5 progressDeadlineSeconds: 60 strategy: rollingUpdate: maxUnavailable: 0 type: RollingUpdate selector: matchLabels: app: podinfo template: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/port: "9797" labels: app: podinfo spec: containers: - name: podinfod image: ghcr.io/stefanprodan/podinfo:6.0.10 imagePullPolicy: IfNotPresent ports: - name: http containerPort: 9898 protocol: TCP - name: http-metrics containerPort: 9797 protocol: TCP - name: grpc containerPort: 9999 protocol: TCP command: - ./podinfo - --port=9898 - --port-metrics=9797 - --grpc-port=9999 - --grpc-service-name=podinfo - --level=info - --random-delay=false - --random-error=false env: - name: PODINFO_UI_COLOR value: "#34577c" livenessProbe: exec: command: - podcli - check - http - localhost:9898/healthz initialDelaySeconds: 5 timeoutSeconds: 5 readinessProbe: exec: command: - podcli - check - http - localhost:9898/readyz initialDelaySeconds: 5 timeoutSeconds: 5 resources: limits: cpu: 2000m memory: 512Mi requests: cpu: 100m memory: 64Mi <|endoftext|> # istio_hello-probes-noProxyHoldApplication-ProxyConfig.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable annotations: proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": false }' spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 livenessProbe: httpGet: port: http readinessProbe: httpGet: port: 3333 - name: world image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 90 livenessProbe: httpGet: port: http readinessProbe: exec: command: - cat - /tmp/healthy <|endoftext|> # istio_45564-virtualHost-Domains-for-dual-stack.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 45557 releaseNotes: - | **Fixed** an issue in dual stack meshes where virtualHost.Domains was missing the second IP address from dual stack services. <|endoftext|> # flux_source_image-policy.yaml --- apiVersion: image.toolkit.fluxcd.io/v1 kind: ImagePolicy metadata: name: flux-system namespace: {{ .fluxns }} spec: digestReflectionPolicy: Never imageRepositoryRef: name: flux-system policy: semver: range: 5.0.x <|endoftext|> # argocd_source_error_provisioned.yaml apiVersion: cluster.x-k8s.io/v1alpha3 kind: Cluster metadata: labels: app.kubernetes.io/managed-by: Helm app.kubernetes.io/version: 0.3.11 argocd.argoproj.io/instance: test cluster.x-k8s.io/cluster-name: test name: test namespace: test spec: clusterNetwork: pods: cidrBlocks: - 10.20.10.0/19 services: cidrBlocks: - 10.10.10.0/19 controlPlaneRef: apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 kind: KubeadmControlPlane infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 kind: VSphereCluster status: conditions: - lastTransitionTime: '2022-12-14T07:45:14Z' message: >- Post "https://tvc01.foo.bar/sdk": host "tvc01.foo.bar:443" thumbprint does not match "0A:21:BD:FC:71:40:BD:96" reason: VCenterUnreachable severity: Error status: 'False' type: Ready - lastTransitionTime: '2022-11-30T12:04:22Z' status: 'True' type: ControlPlaneInitialized - lastTransitionTime: '2022-11-30T12:10:30Z' status: 'True' type: ControlPlaneReady - lastTransitionTime: '2022-12-14T07:45:14Z' message: >- Post "https://tvc01.foo.bar/sdk": host "tvc01.foo.bar:443" thumbprint does not match "0A:21:BD:FC:71:40:BD:96" reason: VCenterUnreachable severity: Error status: 'False' type: InfrastructureReady controlPlaneReady: true infrastructureReady: true observedGeneration: 2 phase: Provisioned <|endoftext|> # k8s_docs_deployment-with-immutable-configmap-as-volume.yaml apiVersion: apps/v1 kind: Deployment metadata: name: immutable-configmap-volume labels: app.kubernetes.io/name: immutable-configmap-volume spec: replicas: 3 selector: matchLabels: app.kubernetes.io/name: immutable-configmap-volume template: metadata: labels: app.kubernetes.io/name: immutable-configmap-volume spec: containers: - name: alpine image: alpine:3 command: - /bin/sh - -c - while true; do echo "$(date) The name of the company is $(cat /etc/config/company_name)"; sleep 10; done; ports: - containerPort: 80 volumeMounts: - name: config-volume mountPath: /etc/config volumes: - name: config-volume configMap: name: company-name-20150801 <|endoftext|> # istio_minimal.yaml # The minimal profile will install just the core control plane apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: ingressGateways: - name: istio-ingressgateway enabled: false <|endoftext|> # istio_infrastructure-labels-annotations.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: fizz: buzz labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: fizz: buzz labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: default template: metadata: annotations: fizz: buzz istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none service.istio.io/canonical-name: default-istio service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc. - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: ISTIO_META_POD_PORTS value: '[]' - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: default-istio - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/default-istio - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: test/proxyv2:test name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: default-istio volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - emptyDir: medium: Memory name: istio-envoy - emptyDir: {} name: istio-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: istio-token --- apiVersion: v1 kind: Service metadata: annotations: fizz: buzz labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: null spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: default type: LoadBalancer --- <|endoftext|> # istio_traffic-annotations-bad-excludeinboundports.yaml apiVersion: apps/v1 kind: Deployment metadata: name: traffic spec: replicas: 7 selector: matchLabels: app: traffic template: metadata: annotations: traffic.sidecar.istio.io/excludeInboundPorts: "*" labels: app: traffic spec: containers: - name: traffic image: "fake.docker.io/google-samples/traffic-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_56738.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 56738 releaseNotes: - | **Fixed** CNI incorrectly handled pod deletion when the pod was not yet marked as enrolled in the mesh. In some cases, this could cause a pod which has been deleted to be included in the zds snapshot and never cleaned up. If this occurs ztunnel will not be able to become ready. <|endoftext|> # helm_charts_pachd_secret.yaml --- apiVersion: v1 kind: Secret metadata: name: pachyderm-storage-secret labels: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" suite: {{ template "fullname" . }} data: {{- if eq .Values.credentials "s3" }} minio-id: {{ .Values.s3.accessKey | b64enc | quote }} minio-secret: {{ .Values.s3.secretKey | b64enc | quote }} minio-bucket: {{ .Values.s3.bucketName | b64enc | quote }} minio-endpoint: {{ .Values.s3.endpoint | b64enc | quote }} minio-secure: {{ toString .Values.s3.secure | b64enc | quote }} minio-signature: {{ toString .Values.s3.signature | b64enc | quote }} {{- else if eq .Values.credentials "google" }} google-bucket: {{ .Values.google.bucketName | b64enc | quote }} google-cred: {{ .Values.google.credentials | b64enc | quote }} {{- else if eq .Values.credentials "amazon" }} amazon-bucket: {{ .Values.amazon.bucketName | b64enc | quote }} {{- if .Values.amazon.distribution }} amazon-distribution: {{ .Values.amazon.distribution | b64enc | quote }} {{- end }} {{- if .Values.amazon.id }} amazon-id: {{ .Values.amazon.id | b64enc | quote }} {{- end }} amazon-region: {{ .Values.amazon.region | b64enc | quote }} {{- if not .Values.amazon.roleArn }} amazon-secret: {{ .Values.amazon.secret | b64enc | quote }} amazon-token: {{ .Values.amazon.token | b64enc | quote }} {{- end }} {{- else if eq .Values.credentials "microsoft" }} microsoft-container: {{ .Values.microsoft.container | b64enc | quote }} microsoft-id: {{ .Values.microsoft.id | b64enc | quote }} microsoft-secret: {{ .Values.microsoft.secret | b64enc | quote }} {{- end }} <|endoftext|> # k8s_examples_nginx.yaml apiVersion: v1 kind: Pod metadata: name: nginx namespace: default spec: containers: - name: nginx image: nginx volumeMounts: - name: test mountPath: /data ports: - containerPort: 80 volumes: - name: test flexVolume: driver: "kubernetes.io/lvm" fsType: "ext4" options: volumeID: "vol1" size: "1000m" volumegroup: "kube_vg" <|endoftext|> # helm_charts_server-psp-rolebinding.yaml {{- if and .Values.server.enabled .Values.psp.create -}} {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app: {{ template "kiam.name" . }} chart: {{ template "kiam.chart" . }} component: "{{ .Values.server.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "kiam.fullname" . }}-server-psp namespace: {{ .Release.Namespace }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "kiam.fullname" . }}-server-psp-use subjects: - kind: ServiceAccount name: {{ template "kiam.serviceAccountName.server" . }} {{- end -}} {{- end }} <|endoftext|> # helm_charts_secret-config.yaml apiVersion: v1 kind: Secret metadata: name: {{ include "mattermost-team-edition.fullname" . }}-config-json labels: app.kubernetes.io/name: {{ include "mattermost-team-edition.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} helm.sh/chart: {{ include "mattermost-team-edition.chart" . }} type: Opaque data: {{- /* Make a deep enough copy of the default config */}} {{- $c := dict }} {{- range $key, $dictVal := .Values.configJSON }} {{- $dictCopy := merge (dict) $dictVal }} {{- $_ := set $c $key $dictCopy }} {{- end }} {{- /* Update the copied default config based on .Values */}} {{- if or .Values.configJSON.SqlSettings.DriverName .Values.configJSON.SqlSettings.DataSource }} {{- $message := "Use 'mysql' or 'externalDB' to instead of using a configuration with:\n\nconfigJSON:\n SqlSettings\n DriverName: ...\n DataSource: ..." }} {{- print "\n\nDIRECT CONFIGURATION NOT SUPPORTED:\n-----------------------------------\n\n" $message | fail }} {{- end }} {{- if .Values.externalDB.enabled }} {{- $_ := set $c.SqlSettings "DriverName" (.Values.externalDB.externalDriverType) }} {{- $_ := set $c.SqlSettings "DataSource" (.Values.externalDB.externalConnectionString) }} {{- else }} {{- $_ := set $c.SqlSettings "DriverName" "mysql" }} {{- $_ := set $c.SqlSettings "DataSource" (print .Values.mysql.mysqlUser ":" .Values.mysql.mysqlPassword "@tcp(" .Release.Name "-mysql:3306)/" .Values.mysql.mysqlDatabase "?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s") }} {{- end }} {{- $_ := set $c.SqlSettings "AtRestEncryptKey" (.Values.configJSON.SqlSettings.AtRestEncryptKey | default (randAlphaNum 32)) }} {{- $_ := set $c.FileSettings "PublicLinkSalt" (.Values.configJSON.FileSettings.PublicLinkSalt | default (randAlphaNum 32)) }} {{- $_ := set $c.EmailSettings "InviteSalt" (.Values.configJSON.EmailSettings.InviteSalt | default (randAlphaNum 32)) }} {{- /* Render the processed config as a JSON string */}} {{- /* NOTE: Mounted at /mattermost/config/config.json on the mattermost pod */}} config.json: {{ $c | toJson | b64enc }} <|endoftext|> # helm_charts_other-values.yaml master: overwritePluginsFromImage: false runAsUser: 0 fsGroup: 1000 JCasC: authorizationStrategy: |- loggedInUsersCanDoAnything: allowAnonymousRead: true securityRealm: |- ldap: configurations: - server: ldap.acme.com rootDN: dc=acme,dc=uk managerPasswordSecret: ${LDAP_PASSWORD} groupMembershipStrategy: fromUserRecord: attributeName: "memberOf" additionalPlugins: - ldap:1.24 scriptApproval: - "method groovy.json.JsonSlurperClassic parseText java.lang.String" - "new groovy.json.JsonSlurperClassic" persistence: enabled: false agent: resources: limits: cpu: "1" memory: "2048Mi" envVars: - name: HOME value: /home/jenkins - name: PATH value: /usr/local/bin nodeSelector: "app.kubernetes.io/component": "{{ .Values.agent.componentName }}" yamlTemplate: |- apiVersion: v1 kind: Pod spec: tolerations: - key: "app.kubernetes.io/component" operator: "Equal" value: "{{ .Values.agent.componentName }}" effect: "NoSchedule" additionalAgents: maven: podName: maven customJenkinsLabels: maven # An example of overriding the jnlp container # sideContainerName: jnlp image: jenkins/jnlp-agent-maven tag: latest python: podName: python customJenkinsLabels: python sideContainerName: python image: python tag: "3" command: "/bin/sh -c" args: "cat" TTYEnabled: true podTemplates: python: | - name: python label: jenkins-python containers: - name: python image: python:3 command: "/bin/sh -c" args: "cat" ttyEnabled: true privileged: true resourceRequestCpu: "400m" resourceRequestMemory: "512Mi" resourceLimitCpu: "1" resourceLimitMemory: "1024Mi" volumes: - type: EmptyDir mountPath: /var/myapp/myemptydir memory: false serviceAccount: annotations: description: "Used by release {{ .Release.Name }} for role-based access control" serviceAccountAgent: create: true annotations: description: "Used by release {{ .Release.Name }} for role-based access control" <|endoftext|> # argocd_source_cr.yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: custom-resource namespace: default spec: destination: namespace: default server: https://kubernetes.default.svc project: default source: path: guestbook repoURL: https://github.com/argoproj/argocd-example-apps.git <|endoftext|> # argocd_source_hpa-v1-progressing.yaml apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: annotations: autoscaling.alpha.kubernetes.io/conditions: '[{"type":"AbleToScale","status":"False","lastTransitionTime":"2020-11-23T19:38:38Z","reason":"SucceededGetScale","message":"the HPA controller was not able to get the target''s current scale"}]' name: sample namespace: argocd spec: maxReplicas: 1 minReplicas: 1 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: sample targetCPUUtilizationPercentage: 2 status: currentReplicas: 1 desiredReplicas: 0 <|endoftext|> # kustomize_mysql-service.resource.yaml # Copyright 2019 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 # apiVersion: v1 kind: Service metadata: name: mysql labels: app: mysql spec: selector: app: mysql ports: - name: mysql port: 3306 clusterIP: None --- apiVersion: v1 kind: Service metadata: name: mysql-read labels: app: mysql spec: selector: app: mysql ports: - name: mysql port: 3306 <|endoftext|> # k8s_docs_simple_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx minReadySeconds: 5 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 <|endoftext|> # k8s_docs_example-conflict-with-limitrange-cpu.yaml apiVersion: v1 kind: Pod metadata: name: example-conflict-with-limitrange-cpu spec: containers: - name: demo image: registry.k8s.io/pause:3.8 resources: requests: cpu: 700m <|endoftext|> # grafana_charts_service-distributor.yaml {{- $dict := dict "ctx" . "component" "distributor" }} apiVersion: v1 kind: Service metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.distributor.service.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.distributor.service.annotations }} annotations: {{- tpl (toYaml . | nindent 4) $ }} {{- end }} spec: internalTrafficPolicy: {{ .Values.distributor.service.internalTrafficPolicy }} type: {{ .Values.distributor.service.type }} ipFamilies: {{ .Values.tempo.service.ipFamilies }} ipFamilyPolicy: {{ .Values.tempo.service.ipFamilyPolicy }} ports: - name: http-metrics port: 3200 targetPort: http-metrics - name: grpc port: 9095 protocol: TCP targetPort: 9095 {{- if .Values.distributor.appProtocol.grpc }} appProtocol: {{ .Values.distributor.appProtocol.grpc }} {{- end }} {{- if .Values.traces.jaeger.thriftCompact.enabled }} - name: distributor-jaeger-thrift-compact port: 6831 protocol: UDP targetPort: jaeger-compact {{- end }} {{- if .Values.traces.jaeger.thriftBinary.enabled }} - name: distributor-jaeger-thrift-binary port: 6832 protocol: UDP targetPort: jaeger-binary {{- end }} {{- if .Values.traces.jaeger.thriftHttp.enabled }} - name: distributor-jaeger-thrift-http port: 14268 protocol: TCP targetPort: jaeger-http {{- end }} {{- if .Values.traces.jaeger.grpc.enabled }} - name: grpc-distributor-jaeger port: 14250 protocol: TCP targetPort: grpc-jaeger {{- if .Values.distributor.appProtocol.grpc }} appProtocol: {{ .Values.distributor.appProtocol.grpc }} {{- end }} {{- end }} {{- if .Values.traces.zipkin.enabled }} - name: distributor-zipkin port: 9411 protocol: TCP targetPort: zipkin {{- end }} {{- if .Values.traces.otlp.http.enabled }} - name: distributor-otlp-http port: 4318 protocol: TCP targetPort: otlp-http {{- end }} {{- if .Values.traces.otlp.grpc.enabled }} - name: grpc-distributor-otlp port: 4317 protocol: TCP targetPort: grpc-otlp {{- if .Values.distributor.appProtocol.grpc }} appProtocol: {{ .Values.distributor.appProtocol.grpc }} {{- end }} - name: distributor-otlp-legacy port: 55680 protocol: TCP targetPort: grpc-otlp {{- if .Values.distributor.appProtocol.grpc }} appProtocol: {{ .Values.distributor.appProtocol.grpc }} {{- end }} {{- end }} {{- if .Values.traces.opencensus.enabled }} - name: distributor-opencensus port: 55678 protocol: TCP targetPort: opencensus {{- end }} {{- if .Values.distributor.service.loadBalancerIP }} loadBalancerIP: {{ .Values.distributor.service.loadBalancerIP }} {{- end }} {{- with .Values.distributor.service.externalTrafficPolicy }} externalTrafficPolicy: {{ . }} {{- end }} {{- with .Values.distributor.service.loadBalancerSourceRanges}} loadBalancerSourceRanges: {{ toYaml . | nindent 4 }} {{- end }} selector: {{- include "tempo.selectorLabels" $dict | nindent 4 }} <|endoftext|> # istio_53572.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** a bug where name table output contains unready endpoints for headless services. <|endoftext|> # istio_file-mounted-crl.yaml apiVersion: release-notes/v2 kind: feature area: security releaseNotes: - | **Added** Certificate Revocation List(CRL) support for peer certificate validation based on file paths specified in ClientTLSSettings in destination rule for Sidecars and in ServerTLSSettings in Gateway for Gateways. <|endoftext|> # k8s_examples_sc-pvc.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvc-sio-small spec: storageClassName: sio-small accessModes: - ReadWriteOnce resources: requests: storage: 10Gi storageClassName: sio-small <|endoftext|> # grafana_charts_zone-aware-pod-disruption-budget-validating-webhook.yaml {{- if .Values.webhooks.enabled -}} apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: zpdb-validation-{{ .Release.Namespace }} labels: grafana.com/inject-rollout-operator-ca: "true" grafana.com/namespace: {{ .Release.Namespace | quote }} {{- include "rollout-operator.labels" . | nindent 4 }} webhooks: - name: zpdb-validation-{{ .Release.Namespace }}.grafana.com clientConfig: service: namespace: {{ .Release.Namespace | quote }} name: {{ include "rollout-operator.fullname" . }} path: /admission/zpdb-validation port: 443 rules: - operations: - CREATE - UPDATE apiGroups: - rollout-operator.grafana.com apiVersions: - v1 resources: - zoneawarepoddisruptionbudgets scope: Namespaced admissionReviewVersions: ["v1"] {{- if not (kindIs "invalid" .Values.namespaceSelector) }} namespaceSelector: {{- if .Values.namespaceSelector.matchLabels }} matchLabels: {{- toYaml .Values.namespaceSelector.matchLabels | nindent 8 }} {{- else }} matchLabels: kubernetes.io/metadata.name: {{ .Release.Namespace | quote }} {{- end }} {{- with .Values.namespaceSelector.matchExpressions }} matchExpressions: {{- toYaml . | nindent 8 }} {{- end }} {{- end }} {{- with .Values.webhooks.objectSelector }} objectSelector: {{- toYaml . | nindent 6 }} {{- end }} sideEffects: None timeoutSeconds: {{.Values.webhooks.timeoutSeconds}} failurePolicy: {{.Values.webhooks.failurePolicy}} {{- end -}} <|endoftext|> # helm_charts_mancenter-pvc.yaml {{- if and (and .Values.mancenter.enabled .Values.mancenter.persistence.enabled (not .Values.mancenter.persistence.existingClaim)) }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "mancenter.fullname" . }} labels: app.kubernetes.io/name: {{ template "hazelcast.name" . }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app.kubernetes.io/instance: "{{ .Release.Name }}" app.kubernetes.io/managed-by: "{{ .Release.Service }}" spec: accessModes: {{- range .Values.mancenter.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.mancenter.persistence.size | quote }} {{- if .Values.mancenter.persistence.storageClass }} {{- if (eq "-" .Values.mancenter.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.mancenter.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_extended-config-configmap.yaml {{- if and (or (.Files.Glob "files/conf.d/*.conf") .Values.postgresqlExtendedConf) (not .Values.extendedConfConfigMap)}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "postgresql.fullname" . }}-extended-configuration labels: app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} data: {{- with .Files.Glob "files/conf.d/*.conf" }} {{ .AsConfig | indent 2 }} {{- end }} {{ with .Values.postgresqlExtendedConf }} override.conf: | {{- range $key, $value := . }} {{ $key | snakecase }}={{ $value }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_pilot-status-too-many-logs.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 42612 releaseNotes: - | **Fixed** pilot status to not log too many errors when PILOT_ENABLE_CONFIG_DISTRIBUTION_TRACKING is not enabled. <|endoftext|> # helm_charts_client-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "nats.fullname" . }}-client labels: app: "{{ template "nats.name" . }}" chart: "{{ template "nats.chart" . }}" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- if .Values.client.service.annotations }} annotations: {{ toYaml .Values.client.service.annotations | indent 4 }} {{- end }} spec: type: {{ .Values.client.service.type }} {{- if and (eq .Values.client.service.type "LoadBalancer") .Values.client.service.loadBalancerIP }} loadBalancerIP: {{ .Values.client.service.loadBalancerIP }} {{- end }} ports: - port: {{ .Values.client.service.port }} targetPort: client name: client {{- if and (eq .Values.client.service.type "NodePort") (not (empty .Values.client.service.nodePort)) }} nodePort: {{ .Values.client.service.nodePort }} {{- end }} selector: app: "{{ template "nats.name" . }}" release: {{ .Release.Name | quote }} <|endoftext|> # helm_charts_worker-deploy.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "locust.worker" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: {{ template "locust.fullname" . }} component: worker spec: replicas: {{ default 2 .Values.worker.replicaCount }} selector: matchLabels: {{- include "locust.selectorLabels" . | nindent 6 }} component: worker strategy: type: RollingUpdate rollingUpdate: maxSurge: {{ default 1 .Values.worker.maxSurge }} maxUnavailable: {{ default 1 .Values.worker.maxUnavailable }} template: metadata: labels: {{- include "locust.selectorLabels" . | nindent 8 }} component: worker spec: {{- if .Values.image.pullSecrets }} imagePullSecrets: {{ toYaml .Values.image.pullSecrets | indent 8 }} {{- end }} containers: - name: locust image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - name: locust-tasks mountPath: /locust-tasks/ {{- if .Values.extraVolumeMounts }} {{ toYaml .Values.extraVolumeMounts | indent 10 }} {{- end }} env: {{- range $key, $value := .Values.worker.config }} - name: {{ $key | upper | replace "-" "_" }} value: {{ $value | quote }} {{- end }} - name: LOCUST_MODE value: "worker" - name: LOCUST_MASTER value: {{ template "locust.master-svc" . }} - name: LOCUST_MASTER_WEB value: "{{ .Values.service.internalPort }}" - name: TARGET_HOST value: {{ index .Values.master.config "target-host" | quote }} {{- if .Values.extraEnvs }} {{ toYaml .Values.extraEnvs | indent 8 }} {{- end }} resources: {{ toYaml .Values.worker.resources | indent 10 }} restartPolicy: Always volumes: - name: "locust-tasks" configMap: name: {{ template "locust.worker-configmap" . }} {{- if .Values.extraVolumes }} {{ toYaml .Values.extraVolumes | indent 8 }} {{- end }} {{- with .Values.worker.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.worker.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.worker.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # k8s_docs_quota-mem-cpu.yaml apiVersion: v1 kind: ResourceQuota metadata: name: mem-cpu-demo spec: hard: requests.cpu: "1" requests.memory: 1Gi limits.cpu: "2" limits.memory: 2Gi <|endoftext|> # istio_53450.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support for filtering resources by namespace to `istioctl experimental injector list`. <|endoftext|> # helm_charts_jenkins-backup-cronjob.yaml {{- if .Values.backup.enabled }} apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ template "jenkins.fullname" . }}-backup namespace: {{ template "jenkins.namespace" . }} labels: "app.kubernetes.io/name": '{{ template "jenkins.name" .}}' "helm.sh/chart": "{{ .Chart.Name }}-{{ .Chart.Version }}" "app.kubernetes.io/managed-by": "{{ .Release.Service }}" "app.kubernetes.io/instance": "{{ .Release.Name }}" "app.kubernetes.io/component": "{{ .Values.backup.componentName }}" spec: schedule: {{ .Values.backup.schedule | quote }} concurrencyPolicy: Forbid startingDeadlineSeconds: 120 jobTemplate: spec: template: metadata: {{- if .Values.backup.labels }} labels: {{ toYaml .Values.backup.labels | trim | indent 12 }} {{- end }} {{- if .Values.backup.annotations }} annotations: {{ toYaml .Values.backup.annotations | trim | indent 12 }} {{- end }} spec: restartPolicy: OnFailure serviceAccountName: {{ template "jenkins.fullname" . }}-backup containers: - name: jenkins-backup image: "{{ .Values.backup.image.repository }}:{{ .Values.backup.image.tag }}" command: ["kube-tasks"] args: - simple-backup - -n - {{ template "jenkins.namespace" . }} - -l - app.kubernetes.io/instance={{ .Release.Name }} - --container - jenkins - --path - {{ .Values.master.jenkinsHome }} - --dst - {{ .Values.backup.destination }} {{- with .Values.backup.extraArgs }} {{ toYaml . | indent 12 }} {{- end }} env: {{- with .Values.backup.env }} {{ toYaml . | trim | indent 12 }} {{- end }} {{- if .Values.backup.existingSecret }} {{- range $key,$value := .Values.backup.existingSecret }} {{- if $value.awsaccesskey }} - name: AWS_ACCESS_KEY_ID valueFrom: secretKeyRef: name: {{ $key }} key: {{ $value.awsaccesskey | quote }} {{- end }} {{- if $value.awssecretkey }} - name: AWS_SECRET_ACCESS_KEY valueFrom: secretKeyRef: name: {{ $key }} key: {{ $value.awssecretkey | quote}} {{- end }} {{- if $value.gcpcredentials }} - name: GOOGLE_APPLICATION_CREDENTIALS value: "/var/run/secrets/{{ $key }}/{{ $value.gcpcredentials }}" {{- end }} {{- end }} {{- end }} {{- with .Values.backup.resources }} resources: {{ toYaml . | trim | indent 14 }} {{- end }} volumeMounts: {{- if .Values.backup.existingSecret }} {{- range $key,$value := .Values.backup.existingSecret }} {{- if $value.gcpcredentials }} - mountPath: /var/run/secrets/{{ $key }} name: {{ $key }} {{- end }} {{- end }} {{- end }} volumes: {{- if .Values.backup.existingSecret }} {{- range $key,$value := .Values.backup.existingSecret }} {{- if $value.gcpcredentials }} - name: {{ $key }} secret: secretName: {{ $key }} {{- end }} {{- end }} {{- end }} affinity: podAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: topologyKey: "kubernetes.io/hostname" labelSelector: matchExpressions: - key: app operator: In values: - {{ template "jenkins.fullname" . }} - key: release operator: In values: - {{ .Release.Name }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 10 }} {{- end }} {{- end }} <|endoftext|> # grafana_charts_provisioner-serviceaccount.yaml {{- if and .Values.provisioner.enabled .Values.enterprise.enabled -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "provisioner") }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "provisioner") | nindent 4 }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # istio_40778.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** `kube-inject` crashes when the pod annotation `proxy.istio.io/config` is set. <|endoftext|> # k8s_examples_redis-controller.yaml apiVersion: v1 kind: ReplicationController metadata: name: redis spec: replicas: 1 selector: name: redis template: metadata: labels: name: redis role: master spec: containers: - name: redis image: registry.k8s.io/redis:v1 ports: - containerPort: 6379 resources: limits: cpu: "0.1" volumeMounts: - mountPath: /redis-master-data name: data volumes: - name: data <|endoftext|> # helm_charts_jenkins-master-networkpolicy.yaml {{- if .Values.networkPolicy.enabled }} kind: NetworkPolicy apiVersion: {{ .Values.networkPolicy.apiVersion }} metadata: name: "{{ .Release.Name }}-{{ .Values.master.componentName }}" namespace: {{ template "jenkins.namespace" . }} labels: "app.kubernetes.io/name": '{{ template "jenkins.name" .}}' "helm.sh/chart": "{{ .Chart.Name }}-{{ .Chart.Version }}" "app.kubernetes.io/managed-by": "{{ .Release.Service }}" "app.kubernetes.io/instance": "{{ .Release.Name }}" "app.kubernetes.io/component": "{{ .Values.master.componentName }}" spec: podSelector: matchLabels: "app.kubernetes.io/component": "{{ .Values.master.componentName }}" "app.kubernetes.io/instance": "{{ .Release.Name }}" ingress: # Allow web access to the UI - ports: - port: {{ .Values.master.targetPort }} # Allow inbound connections from slave - from: {{- if .Values.networkPolicy.internalAgents.allowed }} - podSelector: matchLabels: "jenkins/{{ .Release.Name }}-{{ .Values.agent.componentName }}": "true" {{- range $k,$v:= .Values.networkPolicy.internalAgents.podLabels }} {{ $k }}: {{ $v }} {{- end }} {{- if .Values.networkPolicy.internalAgents.namespaceLabels }} namespaceSelector: matchLabels: {{- range $k,$v:= .Values.networkPolicy.internalAgents.namespaceLabels }} {{ $k }}: {{ $v }} {{- end }} {{- end }} {{- end }} {{- if .Values.networkPolicy.externalAgents }} - ipBlock: cidr: {{ required "ipCIDR is required if you wish to allow external agents to connect to Master." .Values.networkPolicy.externalAgents.ipCIDR }} {{- if .Values.networkPolicy.externalAgents.except }} except: {{- range .Values.networkPolicy.externalAgents.except }} - {{ . }} {{- end }} {{- end }} {{- end }} ports: - port: {{ .Values.master.slaveListenerPort }} {{- if .Values.agent.enabled }} --- kind: NetworkPolicy apiVersion: {{ .Values.networkPolicy.apiVersion }} metadata: name: "{{ .Release.Name }}-{{ .Values.agent.componentName }}" namespace: {{ template "jenkins.namespace" . }} labels: "app.kubernetes.io/name": '{{ template "jenkins.name" .}}' "helm.sh/chart": "{{ .Chart.Name }}-{{ .Chart.Version }}" "app.kubernetes.io/managed-by": "{{ .Release.Service }}" "app.kubernetes.io/instance": "{{ .Release.Name }}" "app.kubernetes.io/component": "{{ .Values.master.componentName }}" spec: podSelector: matchLabels: # DefaultDeny "jenkins/{{ .Release.Name }}-{{ .Values.agent.componentName }}": "true" {{- end }} {{- end }} <|endoftext|> # helm_charts_hotrod-sa.yaml {{- if and .Values.hotrod.enabled .Values.serviceAccounts.hotrod.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "jaeger.hotrod.serviceAccountName" . }} labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} helm.sh/chart: {{ include "jaeger.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: hotrod {{- end -}} <|endoftext|> # kube_prometheus_prometheus-clusterRoleBinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: prometheus-k8s subjects: - kind: ServiceAccount name: prometheus-k8s namespace: monitoring <|endoftext|> # helm_charts_hdfs-nn-pvc.yaml {{- if .Values.persistence.nameNode.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ include "hadoop.fullname" . }}-hdfs-nn labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: hdfs-nn spec: accessModes: - {{ .Values.persistence.nameNode.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.nameNode.size | quote }} {{- if .Values.persistence.nameNode.storageClass }} {{- if (eq "-" .Values.persistence.nameNode.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.nameNode.storageClass }}" {{- end }} {{- end }} {{- end -}} <|endoftext|> # helm_charts_k8s-resources-workloads-namespace.yaml {{- /* Generated from 'k8s-resources-workloads-namespace' from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/grafana-dashboardDefinitions.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} apiVersion: v1 kind: ConfigMap metadata: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-resources-workloads-namespace" | trunc 63 | trimSuffix "-" }} annotations: {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} labels: {{- if $.Values.grafana.sidecar.dashboards.label }} {{ $.Values.grafana.sidecar.dashboards.label }}: "1" {{- end }} app: {{ template "prometheus-operator.name" $ }}-grafana {{ include "prometheus-operator.labels" $ | indent 4 }} data: k8s-resources-workloads-namespace.json: |- { "annotations": { "list": [ ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "hideControls": false, "links": [ ], "refresh": "10s", "rows": [ { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 1, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum(\n label_replace(\n namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}workload{{`}}`}} - {{`{{`}}workload_type{{`}}`}}", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Usage", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "CPU Usage", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "styles": [ { "alias": "Time", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "hidden" }, { "alias": "Running Pods", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 0, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #A", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "CPU Usage", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #B", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "CPU Requests", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #C", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "CPU Requests %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #D", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "CPU Limits", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #E", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "CPU Limits %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #F", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "Workload", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": true, "linkTooltip": "Drill down", "linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2", "pattern": "workload", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "Workload Type", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "workload_type", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/.*/", "thresholds": [ ], "type": "string", "unit": "short" } ], "targets": [ { "expr": "count(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}) by (workload, workload_type)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "A", "step": 10 }, { "expr": "sum(\n label_replace(\n namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "B", "step": 10 }, { "expr": "sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "C", "step": 10 }, { "expr": "sum(\n label_replace(\n namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_requests_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "D", "step": 10 }, { "expr": "sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "E", "step": 10 }, { "expr": "sum(\n label_replace(\n namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{cluster=\"$cluster\", namespace=\"$namespace\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_limits_cpu_cores{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "F", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Quota", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "transform": "table", "type": "table", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "CPU Quota", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 3, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum(\n label_replace(\n container_memory_usage_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container_name!=\"\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n ) by (workload, workload_type)\n", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}workload{{`}}`}} - {{`{{`}}workload_type{{`}}`}}", "legendLink": null, "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Usage", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "bytes", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Memory Usage", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "id": 4, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "styles": [ { "alias": "Time", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "hidden" }, { "alias": "Running Pods", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 0, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #A", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "Memory Usage", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #B", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Requests", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #C", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Requests %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #D", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "Memory Limits", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #E", "thresholds": [ ], "type": "number", "unit": "bytes" }, { "alias": "Memory Limits %", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "Value #F", "thresholds": [ ], "type": "number", "unit": "percentunit" }, { "alias": "Workload", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": true, "linkTooltip": "Drill down", "linkUrl": "./d/a164a7f0339f99e89cea5cb47e9be617/k8s-resources-workload?var-datasource=$datasource&var-cluster=$cluster&var-namespace=$namespace&var-workload=$__cell&var-type=$__cell_2", "pattern": "workload", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "Workload Type", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "link": false, "linkTooltip": "Drill down", "linkUrl": "", "pattern": "workload_type", "thresholds": [ ], "type": "number", "unit": "short" }, { "alias": "", "colorMode": null, "colors": [ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "pattern": "/.*/", "thresholds": [ ], "type": "string", "unit": "short" } ], "targets": [ { "expr": "count(mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}) by (workload, workload_type)", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "A", "step": 10 }, { "expr": "sum(\n label_replace(\n container_memory_usage_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container_name!=\"\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n ) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "B", "step": 10 }, { "expr": "sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "C", "step": 10 }, { "expr": "sum(\n label_replace(\n container_memory_usage_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container_name!=\"\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n ) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_requests_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "D", "step": 10 }, { "expr": "sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "E", "step": 10 }, { "expr": "sum(\n label_replace(\n container_memory_usage_bytes{cluster=\"$cluster\", namespace=\"$namespace\", container_name!=\"\"},\n \"pod\", \"$1\", \"pod_name\", \"(.*)\"\n ) * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n ) by (workload, workload_type)\n/sum(\n kube_pod_container_resource_limits_memory_bytes{cluster=\"$cluster\", namespace=\"$namespace\"}\n * on(namespace,pod) group_left(workload, workload_type) mixin_pod_workload{cluster=\"$cluster\", namespace=\"$namespace\"}\n) by (workload, workload_type)\n", "format": "table", "instant": true, "intervalFactor": 2, "legendFormat": "", "refId": "F", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Quota", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "transform": "table", "type": "table", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Memory Quota", "titleSize": "h6" } ], "schemaVersion": 14, "style": "dark", "tags": [ "kubernetes-mixin" ], "templating": { "list": [ { "current": { "text": "Prometheus", "value": "Prometheus" }, "hide": 0, "label": null, "name": "datasource", "options": [ ], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 2, "includeAll": false, "label": "cluster", "multi": false, "name": "cluster", "options": [ ], "query": "label_values(:kube_pod_info_node_count:, cluster)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 0, "includeAll": false, "label": "namespace", "multi": false, "name": "namespace", "options": [ ], "query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "Kubernetes / Compute Resources / Namespace (Workloads)", "uid": "a87fb0d919ec0ea5f6543124e16c42a5", "version": 0 } {{- end }} <|endoftext|> # istio_tcp-echo-20-v2.yaml # Copyright 2018 Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: tcp-echo spec: hosts: - "*" gateways: - tcp-echo-gateway tcp: - match: - port: 31400 route: - destination: host: tcp-echo port: number: 9000 subset: v1 weight: 80 - destination: host: tcp-echo port: number: 9000 subset: v2 weight: 20 <|endoftext|> # argocd_source_suspended_helmrelease.yaml apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: podinfo namespace: default spec: interval: 10m timeout: 5m chart: spec: chart: podinfo version: '6.5.*' sourceRef: kind: HelmRepository name: podinfo interval: 5m releaseName: podinfo install: remediation: retries: 3 upgrade: remediation: retries: 3 test: enable: true suspend: true driftDetection: mode: enabled ignore: - paths: ["/spec/replicas"] target: kind: Deployment values: replicaCount: 2 <|endoftext|> # istio_disable-fs-group-injection.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** default value of the feature flag `ENABLE_LEGACY_FSGROUP_INJECTION` to false. This may cause issues with sidecars when installing on Helm on Kubernetes versions prior to 1.19. <|endoftext|> # argocd_source_crd-v1-not-established-degraded.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: examples.example.io spec: conversion: strategy: None group: example.io names: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example preserveUnknownFields: true scope: Namespaced versions: - additionalPrinterColumns: - description: >- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata jsonPath: .metadata.creationTimestamp name: Age type: date name: v1alpha1 served: true storage: true subresources: {} status: acceptedNames: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example conditions: - lastTransitionTime: '2024-05-19T23:35:28Z' message: no conflicts found reason: NoConflicts status: 'True' type: NamesAccepted - lastTransitionTime: '2024-05-19T23:35:28Z' message: the initial names have not been accepted reason: InitialNamesAccepted status: 'False' type: Established storedVersions: - v1alpha1 <|endoftext|> # helm_charts_webhook-service.yaml {{ if .Values.enableWebhook }} kind: Service apiVersion: v1 metadata: name: {{ .Release.Name }}-webhook namespace: {{ .Release.Namespace }} labels: app.kubernetes.io/name: {{ include "sparkoperator.name" . }} helm.sh/chart: {{ include "sparkoperator.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: ports: - port: 443 targetPort: {{ .Values.webhookPort }} name: webhook selector: app.kubernetes.io/name: {{ include "sparkoperator.name" . }} app.kubernetes.io/version: {{ .Values.operatorVersion }} {{ end }} <|endoftext|> # helm_charts_general.rules.yaml {{- /* Generated from 'general.rules' group from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.general }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "general.rules" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: general.rules rules: - alert: TargetDown annotations: message: '{{`{{`}} $value {{`}}`}}% of the {{`{{`}} $labels.job {{`}}`}} targets are down.' expr: 100 * (count(up == 0) BY (job) / count(up) BY (job)) > 10 for: 10m labels: severity: warning - alert: Watchdog annotations: message: 'This is an alert meant to ensure that the entire alerting pipeline is functional. This alert is always firing, therefore it should always be firing in Alertmanager and always fire against a receiver. There are integrations with various notification mechanisms that send a notification when this alert is not firing. For example the "DeadMansSnitch" integration in PagerDuty. ' expr: vector(1) labels: severity: none {{- end }} <|endoftext|> # istio_59018.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | - **Fixed** properly parse Gateway API Cors origin when wildcard is used, and ignore unmatched preflights. <|endoftext|> # istio_56454.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 56453 releaseNotes: - | **Added** support for customizing the timeout of `istioctl waypoint status` and `istioctl waypoint apply`. <|endoftext|> # k8s_docs_pv-volume.yaml kind: PersistentVolume apiVersion: v1 metadata: name: task-pv-volume labels: type: local spec: storageClassName: manual capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: "/mnt/data" <|endoftext|> # argocd_source_rollout-disable-force-promote.yaml apiVersion: numaplane.numaproj.io/v1alpha1 kind: PipelineRollout metadata: creationTimestamp: "2025-02-21T19:43:43Z" finalizers: - numaplane.numaproj.io/numaplane-controller generation: 3 name: another-pipeline-rollout namespace: numaplane-system resourceVersion: "6904" uid: 8365e0f1-18fe-47ed-a26e-cfa2963cced6 spec: strategy: progressive: assessmentSchedule: 60,60,10 forcePromote: true pipeline: metadata: {} spec: edges: - conditions: null from: in to: out interStepBufferServiceName: test-isbservice-rollout lifecycle: desiredPhase: Running vertices: - name: in scale: max: 3 min: 3 zeroReplicaSleepSeconds: 15 source: generator: duration: 1s rpu: 5 updateStrategy: {} - name: out scale: max: 3 min: 3 zeroReplicaSleepSeconds: 15 sink: log: {} retryStrategy: {} updateStrategy: {} watermark: {} status: conditions: - lastTransitionTime: "2025-02-21T19:43:43Z" message: Successful observedGeneration: 3 reason: Successful status: "True" type: ChildResourceDeployed - lastTransitionTime: "2025-02-21T19:55:22Z" message: Successful observedGeneration: 3 reason: Successful status: "True" type: ChildResourcesHealthy - lastTransitionTime: "2025-02-21T19:48:13Z" message: Pipeline unpaused observedGeneration: 3 reason: Unpaused status: "False" type: PipelinePausingOrPaused - lastTransitionTime: "2025-02-21T19:57:20Z" message: New Child Object numaplane-system/another-pipeline-rollout-2 Failed observedGeneration: 3 reason: Failed status: "False" type: ProgressiveUpgradeSucceeded lastFailureTime: null message: Progressing nameCount: 3 observedGeneration: 3 pauseStatus: lastPauseBeginTime: "2025-02-21T19:47:53Z" lastPauseEndTime: "2025-02-21T19:48:13Z" lastPausePhaseChangeTime: "2025-02-21T19:47:54Z" phase: Pending progressiveStatus: promotedPipelineStatus: name: another-pipeline-rollout-1 scaleValuesRestoredToOriginal: true upgradingPipelineStatus: assessmentEndTime: "2025-02-21T19:58:20Z" assessmentResult: Failure assessmentStartTime: "2025-02-21T19:57:19Z" interStepBufferServiceName: test-isbservice-rollout-2 name: another-pipeline-rollout-2 upgradeInProgress: Progressive <|endoftext|> # kustomize_example.yaml # Copyright 2019 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 apiVersion: v1 kind: ConfigMap metadata: name: the-map data: altGreeting: "Good Morning!" enableRisky: "false" --- apiVersion: apps/v1 kind: Deployment metadata: name: the-deployment spec: replicas: 3 template: metadata: labels: deployment: hello spec: containers: - name: the-container image: monopole/hello:1 command: ["/hello", "--port=8080", "--enableRiskyFeature=$(ENABLE_RISKY)"] ports: - containerPort: 8080 env: - name: ALT_GREETING valueFrom: configMapKeyRef: name: the-map key: altGreeting - name: ENABLE_RISKY valueFrom: configMapKeyRef: name: the-map key: enableRisky --- kind: Service apiVersion: v1 metadata: name: the-service spec: selector: deployment: hello type: LoadBalancer ports: - protocol: TCP port: 8666 targetPort: 8080 <|endoftext|> # helm_charts_configmaps-datasources.yaml {{- if and .Values.grafana.enabled .Values.grafana.sidecar.datasources.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "prometheus-operator.fullname" . }}-grafana-datasource namespace: {{ template "prometheus-operator.namespace" . }} {{- if .Values.grafana.sidecar.datasources.annotations }} annotations: {{ toYaml .Values.grafana.sidecar.datasources.annotations | indent 4 }} {{- end }} labels: {{ $.Values.grafana.sidecar.datasources.label }}: "1" app: {{ template "prometheus-operator.name" $ }}-grafana {{ include "prometheus-operator.labels" $ | indent 4 }} data: datasource.yaml: |- apiVersion: 1 datasources: {{- if .Values.grafana.sidecar.datasources.defaultDatasourceEnabled }} - name: Prometheus type: prometheus url: http://{{ template "prometheus-operator.fullname" . }}-prometheus:{{ .Values.prometheus.service.port }}/{{ trimPrefix "/" .Values.prometheus.prometheusSpec.routePrefix }} access: proxy isDefault: true {{- if .Values.grafana.sidecar.datasources.createPrometheusReplicasDatasources }} {{- range until (int .Values.prometheus.prometheusSpec.replicas) }} - name: Prometheus-{{ . }} type: prometheus url: http://prometheus-{{ template "prometheus-operator.fullname" $ }}-prometheus-{{ . }}.prometheus-operated:9090/{{ trimPrefix "/" $.Values.prometheus.prometheusSpec.routePrefix }} access: proxy isDefault: false {{- end }} {{- end }} {{- end }} {{- if .Values.grafana.additionalDataSources }} {{ tpl (toYaml .Values.grafana.additionalDataSources | indent 4) . }} {{- end }} {{- end }} <|endoftext|> # helm_charts_distributor-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "distributor.fullname" . }} labels: app: {{ template "distribution.name" . }} chart: {{ template "distribution.chart" . }} component: {{ .Values.distributor.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.distributor.replicaCount }} selector: matchLabels: app: {{ template "distribution.name" . }} release: {{ .Release.Name }} component: {{ .Values.distributor.name }} template: metadata: labels: app: {{ template "distribution.name" . }} component: {{ .Values.distributor.name }} release: {{ .Release.Name }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: "prepare-data" image: "{{ .Values.initContainerImage }}" imagePullPolicy: {{ .Values.distributor.image.pullPolicy }} command: - '/bin/sh' - '-c' - > until nc -z -w 2 {{ .Release.Name }}-redis {{ .Values.redis.master.port }} && echo {{ .Release.Name }}-redis ok; do sleep 2; done; {{- if .Values.distributor.token }} mkdir -pv {{ .Values.distributor.persistence.mountPath }}/etc/security; cp -fv /tmp/security/token {{ .Values.distributor.persistence.mountPath }}/etc/security/token; chmod 400 {{ .Values.distributor.persistence.mountPath }}/etc/security/token; {{- end }} chown -R 1020:1020 {{ .Values.distributor.persistence.mountPath }} volumeMounts: - name: distributor-data mountPath: {{ .Values.distributor.persistence.mountPath | quote }} {{- if .Values.distributor.token }} - name: distributor-token mountPath: "/tmp/security/token" subPath: token {{- end }} containers: - name: {{ .Values.distributor.name }} image: '{{ .Values.distributor.image.repository }}:{{ .Values.distributor.image.version }}' imagePullPolicy: {{ .Values.distributor.image.imagePullPolicy }} env: - name: DEFAULT_JAVA_OPTS value: '-Ddistribution.home={{ .Values.distributor.persistence.mountPath }} -Dfile.encoding=UTF8 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Duser.timezone=UTC {{- if .Values.distributor.javaOpts.xms }} -Xms{{ .Values.distributor.javaOpts.xms }} {{- end}} {{- if .Values.distributor.javaOpts.xmx }} -Xmx{{ .Values.distributor.javaOpts.xmx }} {{- end}} -Dspring.profiles.active=production' - name: redis_connectionString valueFrom: secretKeyRef: name: {{ template "distribution.fullname" . }}-redis-connection key: redis_connectionString - name: BT_SERVER_URL value: 'http://{{ include "distribution.fullname" . }}:{{ .Values.distribution.internalPort }}' volumeMounts: - name: distributor-data mountPath: {{ .Values.distributor.persistence.mountPath | quote }} resources: {{ toYaml .Values.distributor.resources | indent 10 }} volumes: {{- if .Values.distributor.token }} - name: distributor-token configMap: name: {{ template "distributor.fullname" . }}-token {{- end }} - name: distributor-data {{- if .Values.distributor.persistence.enabled }} persistentVolumeClaim: claimName: {{ if .Values.distributor.persistence.existingClaim }}{{ .Values.distributor.persistence.existingClaim }}{{- else }}{{ template "distributor.fullname" . }}{{- end }} {{- else }} emptyDir: {} {{- end -}} <|endoftext|> # istio_fix-null-resource-limits.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 58805 releaseNotes: - | **Fixed** an issue where setting resource limits or requests to `null` would cause validation errors (`cpu request must be less than or equal to cpu limit of 0`). This affected proxy injection, gateway generation, and Helm chart deployments. <|endoftext|> # istio_51967.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 51747 - 30282 releaseNotes: - | **Fixed** matching multiple service VIPs in ServiceEntry. <|endoftext|> # istio_55139.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 55139 releaseNotes: - | **Fixed** an issue in `istio-cni` where if a pod being enrolled in ambient has more than one network namespace, we (incorrectly) selected the netns belonging to the newest PID, rather than the oldest PID. <|endoftext|> # helm_charts_service-secrets.yaml {{- if and (not .Values.server.kubernetes.enabled) .Values.runner.enabled .Values.secrets.enabled .Values.runner.enabled -}} apiVersion: v1 kind: Service metadata: name: {{ template "drone.fullname" . }}-secrets {{- if .Values.secrets.service.annotations }} annotations: {{- range $key, $value := .Values.secrets.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} labels: app: {{ template "drone.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: type: ClusterIP ports: - name: http port: {{ .Values.secrets.service.httpPort }} targetPort: {{ .Values.secrets.httpPort }} selector: app: {{ template "drone.name" . }} release: {{ .Release.Name | quote }} component: secrets {{- end -}} <|endoftext|> # flux_source_allow-egress.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-egress spec: policyTypes: - Ingress - Egress ingress: - from: - podSelector: {} egress: - {} podSelector: {} <|endoftext|> # istio_ingress-routes.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/35033 releaseNotes: - | **Fixed** an issue where the route precedence logic of istio ingress is different from kubernetes ingress doc. - | **Added** a feature flag `PILOT_LEGACY_INGRESS_BEHAVIOR`, default to false. If this is set to true, istio ingress will perform the legacy behavior, which does not meet https://kubernetes.io/docs/concepts/services-networking/ingress/#multiple-matches. <|endoftext|> # argocd_source_pull-request-example.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: myapp spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - pullRequest: github: # The GitHub organization or user. owner: myorg # The Github repository repo: myrepo # For GitHub Enterprise. (optional) api: https://git.example.com/ # Reference to a Secret containing an access token. (optional) tokenRef: secretName: github-token key: token # Labels is used to filter the PRs that you want to target. (optional) labels: - preview template: metadata: name: 'myapp-{{ .branch }}-{{ .number }}' labels: key1: '{{ index .labels 0 }}' spec: source: repoURL: 'https://github.com/myorg/myrepo.git' targetRevision: '{{ .head_sha }}' path: helm-guestbook helm: parameters: - name: "image.tag" value: "pull-{{ .head_sha }}" project: default destination: server: https://kubernetes.default.svc namespace: "{{ .branch }}-{{ .number }}" syncPolicy: syncOptions: - CreateNamespace=true <|endoftext|> # helm_charts_service-ps.yaml apiVersion: v1 kind: Service metadata: name: {{ template "distributed-tensorflow.fullname" . }}-ps labels: app: {{ template "distributed-tensorflow.name" . }} chart: {{ template "distributed-tensorflow.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: clusterIP: None ports: - port: {{ .Values.ps.port }} targetPort: {{ .Values.ps.port }} protocol: TCP name: ps selector: app: {{ template "distributed-tensorflow.name" . }} release: {{ .Release.Name }} role: ps <|endoftext|> # helm_charts_rethinkdb-cluster-stateful-set.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: "{{ template "rethinkdb.fullname" . }}-cluster" labels: app: "{{ template "rethinkdb.name" . }}-cluster" chart: {{ template "rethinkdb.chart" . }} heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} spec: serviceName: "{{ template "rethinkdb.fullname" . }}-cluster" replicas: {{ .Values.cluster.replicas }} selector: matchLabels: app: "{{ template "rethinkdb.name" . }}-cluster" heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "rethinkdb.chart" . }} template: metadata: name: "{{ template "rethinkdb.fullname" . }}-cluster" labels: app: "{{ template "rethinkdb.name" . }}-cluster" heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "rethinkdb.chart" . }} annotations: {{- if .Values.cluster.podAnnotations }} {{ toYaml .Values.cluster.podAnnotations | indent 8 }} {{- end }} spec: serviceAccountName: {{ template "rethinkdb.serviceAccountName" . }} containers: - name: {{ template "rethinkdb.name" . }}-cluster image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" imagePullPolicy: "{{ .Values.image.pullPolicy }}" ports: - name: cluster containerPort: {{ .Values.ports.cluster }} args: - "--directory" - "/data/db" - "--bind" - "all" - "--no-http-admin" - "--cache-size" - {{ .Values.cluster.rethinkCacheSize | quote }} volumeMounts: - name: "datadir" mountPath: "/data" env: - name: RETHINK_CLUSTER_SERVICE value: "{{ template "rethinkdb.fullname" . }}-cluster" - name: RETHINKDB_PASSWORD valueFrom: secretKeyRef: name: {{ template "rethinkdb.fullname" . }} key: rethinkdb-password - name: POD_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name livenessProbe: {{ toYaml .Values.cluster.livenessProbe | indent 12 }} readinessProbe: {{ toYaml .Values.cluster.readinessProbe | indent 12 }} exec: command: - /rethinkdb-probe failureThreshold: 3 initialDelaySeconds: 15 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 resources: {{ toYaml .Values.cluster.resources | indent 12 }} {{- if .Values.cluster.persistentVolume.enabled }} volumeClaimTemplates: - metadata: name: datadir annotations: {{- if .Values.cluster.storageClass.enabled }} volume.beta.kubernetes.io/storage-class: {{ template "rethinkdb.fullname" . }} {{- end }} {{- range $key, $value := .Values.cluster.persistentVolume.annotations }} {{ $key }}: {{ $value }} {{- end }} spec: accessModes: {{- range .Values.cluster.persistentVolume.accessModes }} - {{ . | quote }} {{- end }} {{- if .Values.cluster.persistentVolume.storageClass }} {{- if (eq "-" .Values.cluster.persistentVolume.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.cluster.persistentVolume.storageClass }}" {{- end }} {{- end }} resources: requests: storage: {{ .Values.cluster.persistentVolume.size | quote }} {{- else }} volumes: - name: datadir emptyDir: {} {{- end }} <|endoftext|> # argocd_source_job.yaml - k8sOperation: create unstructuredObj: apiVersion: batch/v1 kind: Job metadata: ownerReferences: - apiVersion: batch/v1 blockOwnerDeletion: true controller: true kind: CronJob name: hello uid: '123' name: hello-00000000000 namespace: test-ns labels: my: label annotations: cronjob.kubernetes.io/instantiate: manual my: annotation spec: ttlSecondsAfterFinished: 100 template: metadata: labels: pod: label annotations: pod: annotation spec: containers: - name: hello image: busybox:1.28 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure <|endoftext|> # argocd_source_pod-deletion.yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: 2018-12-02T10:16:04Z name: image-pull-backoff namespace: argocd resourceVersion: "155333" selfLink: /api/v1/namespaces/argocd/pods/image-pull-backoff uid: 46c1e8de-f61b-11e8-a057-fe5f49266390 deletionTimestamp: 2018-12-03T10:16:04Z spec: containers: - image: does-not-exist imagePullPolicy: Always name: main resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-f9jvj readOnly: true dnsPolicy: ClusterFirst nodeName: minikube restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - name: default-token-f9jvj secret: defaultMode: 420 secretName: default-token-f9jvj status: conditions: - lastProbeTime: null lastTransitionTime: 2018-12-02T10:16:04Z status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: 2018-12-02T10:16:04Z message: 'containers with unready status: [main]' reason: ContainersNotReady status: "False" type: Ready - lastProbeTime: null lastTransitionTime: 2018-12-02T10:16:04Z status: "True" type: PodScheduled containerStatuses: - image: does-not-exist imageID: "" lastState: {} name: main ready: false restartCount: 0 state: waiting: reason: PodInitializing hostIP: 192.168.64.41 phase: Pending podIP: 172.17.0.9 qosClass: BestEffort startTime: 2018-12-02T10:16:04Z <|endoftext|> # istio_44017.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 44017 docs: [] releaseNotes: - | **Added** the ability for the user to specify the `IPFamilyPolicy` and `ipFamilies` setting in Istio Service resources either via the operator API or the helm charts. <|endoftext|> # istio_kiali-update-v1.60.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** Kiali addon to version v1.60.0. <|endoftext|> # argocd_source_configMap.yaml # To generate a Status.Decisions from this CRD, requires https://github.com/open-cluster-management/multicloud-operators-placementrule be deployed --- apiVersion: v1 kind: ConfigMap metadata: name: ocm-placement data: apiVersion: apps.open-cluster-management.io/v1 kind: placementrules statusListKey: decisions matchKey: clusterName <|endoftext|> # grafana_charts_ingester-dep.yaml {{- if not .Values.ingester.statefulSet.enabled -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "enterprise-metrics.fullname" . }}-ingester labels: app: {{ template "enterprise-metrics.name" . }}-ingester chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: {{- toYaml .Values.ingester.annotations | nindent 4 }} spec: replicas: {{ .Values.ingester.replicas }} selector: matchLabels: app: {{ template "enterprise-metrics.name" . }}-ingester release: {{ .Release.Name }} strategy: {{- toYaml .Values.ingester.strategy | nindent 4 }} template: metadata: labels: app: {{ template "enterprise-metrics.name" . }}-ingester # The name label is important for cortex-mixin compatibility which expects certain names for services. name: ingester target: ingester release: {{ .Release.Name }} {{- with .Values.ingester.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: {{- if .Values.useExternalConfig }} checksum/config: {{ .Values.externalConfigVersion }} {{- else }} checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- end}} {{- with .Values.ingester.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ template "enterprise-metrics.serviceAccountName" . }} {{- if .Values.ingester.priorityClassName }} priorityClassName: {{ .Values.ingester.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.ingester.securityContext | nindent 8 }} initContainers: {{- toYaml .Values.ingester.initContainers | nindent 8 }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} {{- with .Values.ingester.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: ingester image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - "-target=ingester" - "-config.file=/etc/enterprise-metrics/enterprise-metrics.yaml" {{- if .Values.minio.enabled }} - -admin.client.backend-type=s3 - -admin.client.s3.endpoint={{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000 - -admin.client.s3.bucket-name=enterprise-metrics-admin - -admin.client.s3.access-key-id=enterprise-metrics - -admin.client.s3.secret-access-key=supersecret - -admin.client.s3.insecure=true - -blocks-storage.s3.endpoint={{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000 - -blocks-storage.s3.bucket-name=enterprise-metrics-tsdb - -blocks-storage.s3.access-key-id=enterprise-metrics - -blocks-storage.s3.secret-access-key=supersecret - -blocks-storage.s3.insecure=true {{- end }} {{- range $key, $value := .Values.ingester.extraArgs }} - "-{{ $key }}={{ $value }}" {{- end }} volumeMounts: {{- if .Values.ingester.extraVolumeMounts }} {{ toYaml .Values.ingester.extraVolumeMounts | nindent 12}} {{- end }} - name: config mountPath: /etc/enterprise-metrics - name: license mountPath: /license - name: storage mountPath: "/data" {{- if .Values.ingester.persistentVolume.subPath }} subPath: {{ .Values.ingester.persistentVolume.subPath }} {{- else }} {{- end }} ports: - name: http-metrics containerPort: {{ .Values.config.server.http_listen_port }} protocol: TCP - name: grpc containerPort: {{ .Values.config.server.grpc_listen_port }} protocol: TCP livenessProbe: {{- toYaml .Values.ingester.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.ingester.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.ingester.resources | nindent 12 }} securityContext: readOnlyRootFilesystem: true env: {{- if .Values.ingester.env }} {{ toYaml .Values.ingester.env | nindent 12 }} {{- end }} {{- with .Values.ingester.extraContainers }} {{ toYaml . | nindent 8 }} {{- end }} nodeSelector: {{- toYaml .Values.ingester.nodeSelector | nindent 8 }} affinity: {{- toYaml .Values.ingester.affinity | nindent 8 }} tolerations: {{- toYaml .Values.ingester.tolerations | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.ingester.terminationGracePeriodSeconds }} volumes: - name: config secret: {{- if .Values.useExternalConfig }} secretName: {{ .Values.externalConfigSecretName }} {{- else }} secretName: {{ template "enterprise-metrics.fullname" . }} {{- end }} {{- if .Values.ingester.extraVolumes }} {{ toYaml .Values.ingester.extraVolumes | nindent 8}} {{- end }} - name: license secret: secretName: {{ .Values.license.secretName }} - name: storage emptyDir: {} {{- end -}} <|endoftext|> # helm_source_testing-relative-index.yaml apiVersion: v1 entries: foo: - name: foo description: Foo Chart With Relative Path home: https://helm.sh/helm keywords: [] maintainers: [] sources: - https://github.com/helm/charts urls: - charts/foo-1.2.3.tgz version: 1.2.3 checksum: 0e6661f193211d7a5206918d42f5c2a9470b737d apiVersion: v2 bar: - name: bar description: Bar Chart With Relative Path home: https://helm.sh/helm keywords: [] maintainers: [] sources: - https://github.com/helm/charts urls: - bar-1.2.3.tgz version: 1.2.3 checksum: 0e6661f193211d7a5206918d42f5c2a9470b737d apiVersion: v2 baz: - name: baz description: Baz Chart With Absolute Path home: https://helm.sh/helm keywords: [] maintainers: [] sources: - https://github.com/helm/charts urls: - /path/to/baz-1.2.3.tgz version: 1.2.3 checksum: 0e6661f193211d7a5206918d42f5c2a9470b737d apiVersion: v2 <|endoftext|> # helm_charts_deprecation.yaml {{- if .Values.checkDeprecation }} {{- if .Values.Master }} {{- if .Values.Master.Name }} {{ fail "`Master.Name` does no longer exist. It has been renamed to `master.componentName`" }} {{- end }} {{- if .Values.Master.Image }} {{ fail "`Master.Image` does no longer exist. It has been renamed to `master.image`" }} {{- end }} {{- if .Values.Master.ImageTag }} {{ fail "`Master.ImageTag` does no longer exist. It has been renamed to `master.tag`" }} {{- end }} {{- if .Values.Master.ImagePullPolicy }} {{ fail "`Master.ImagePullPolicy` does no longer exist. It has been renamed to `master.imagePullPolicy`" }} {{- end }} {{- if .Values.Master.ImagePullSecret }} {{ fail "`Master.ImagePullPolicy` does no longer exist. It has been renamed to `master.imagePullSecretName`" }} {{- end }} {{- if .Values.Master.Component }} {{ fail "`Master.Component` does no longer exist. It has been renamed to `master.componentName`" }} {{- end }} {{- if .Values.Master.NumExecutors }} {{ fail "`Master.NumExecutors` does no longer exist. It has been renamed to `master.numExecutors`" }} {{- end }} {{- if .Values.Master.UseSecurity }} {{ fail "`Master.UseSecurity` does no longer exist. It has been renamed to `master.useSecurity`" }} {{- end }} {{- if .Values.Master.SecurityRealm }} {{ fail "`Master.SecurityRealm` does no longer exist. It has been renamed to `master.securityRealm`" }} {{- end }} {{- if .Values.Master.AuthorizationStrategy }} {{ fail "`Master.AuthorizationStrategy` does no longer exist. It has been renamed to `master.authorizationStrategy`" }} {{- end }} {{- if .Values.Master.DeploymentLabels }} {{ fail "`Master.DeploymentLabels` does no longer exist. It has been renamed to `master.deploymentLabels`" }} {{- end }} {{- if .Values.Master.ServiceLabels }} {{ fail "`Master.ServiceLabels` does no longer exist. It has been renamed to `master.serviceLabels`" }} {{- end }} {{- if .Values.Master.PodLabels }} {{ fail "`Master.PodLabels` does no longer exist. It has been renamed to `master.podLabels`" }} {{- end }} {{- if .Values.Master.AdminUser }} {{ fail "`Master.AdminUser` does no longer exist. It has been renamed to `master.adminUser`" }} {{- end }} {{- if .Values.Master.AdminPassword }} {{ fail "`Master.AdminPassword` does no longer exist. It has been renamed to `master.adminPassword`" }} {{- end }} {{- if .Values.Master.JenkinsAdminEmail }} {{ fail "`Master.JenkinsAdminEmail` does no longer exist. It has been renamed to `master.jenkinsAdminEmail`" }} {{- end }} {{- if .Values.Master.JenkinsAdminEmail }} {{ fail "`Master.JenkinsAdminEmail` does no longer exist. It has been renamed to `master.jenkinsAdminEmail`" }} {{- end }} {{- if .Values.Master.InitContainerEnv }} {{ fail "`Master.InitContainerEnv` does no longer exist. It has been renamed to `master.initContainerEnv`" }} {{- end }} {{- if .Values.Master.ContainerEnv }} {{ fail "`Master.ContainerEnv` does no longer exist. It has been renamed to `master.containerEnv`" }} {{- end }} {{- if .Values.Master.UsePodSecurityContext }} {{ fail "`Master.UsePodSecurityContext` does no longer exist. It has been renamed to `master.usePodSecurityContext`" }} {{- end }} {{- if .Values.Master.RunAsUser }} {{ fail "`Master.RunAsUser` does no longer exist. It has been renamed to `master.runAsUser`" }} {{- end }} {{- if .Values.Master.FsGroup }} {{ fail "`Master.FsGroup` does no longer exist. It has been renamed to `master.fsGroup`" }} {{- end }} {{- if .Values.Master.HostAliases }} {{ fail "`Master.HostAliases` does no longer exist. It has been renamed to `master.hostAliases`" }} {{- end }} {{- if .Values.Master.ServiceAnnotations }} {{ fail "`Master.ServiceAnnotations` does no longer exist. It has been renamed to `master.serviceAnnotations`" }} {{- end }} {{- if .Values.Master.ServiceType }} {{ fail "`Master.ServiceType` does no longer exist. It has been renamed to `master.serviceType`" }} {{- end }} {{- if .Values.Master.ServicePort }} {{ fail "`Master.ServicePort` does no longer exist. It has been renamed to `master.servicePort`" }} {{- end }} {{- if .Values.Master.NodePort }} {{ fail "`Master.NodePort` does no longer exist. It has been renamed to `master.nodePort`" }} {{- end }} {{- if .Values.Master.HealthProbes }} {{ fail "`Master.HealthProbes` does no longer exist. It has been renamed to `master.healthProbes`" }} {{- end }} {{- if .Values.Master.HealthProbesLivenessTimeout }} {{ fail "`Master.HealthProbesLivenessTimeout` does no longer exist. It has been renamed to `master.healthProbesLivenessTimeout`" }} {{- end }} {{- if .Values.Master.HealthProbesReadinessTimeout }} {{ fail "`Master.HealthProbesReadinessTimeout` does no longer exist. It has been renamed to `master.healthProbesReadinessTimeout`" }} {{- end }} {{- if .Values.Master.HealthProbeReadinessPeriodSeconds }} {{ fail "`Master.HealthProbeReadinessPeriodSeconds` does no longer exist. It has been renamed to `master.healthProbeReadinessPeriodSeconds`" }} {{- end }} {{- if .Values.Master.HealthProbeLivenessFailureThreshold }} {{ fail "`Master.HealthProbeLivenessFailureThreshold` does no longer exist. It has been renamed to `master.healthProbeLivenessFailureThreshold`" }} {{- end }} {{- if .Values.Master.ServiceAnnotations }} {{ fail "`Master.ServiceAnnotations` does no longer exist. It has been renamed to `master.serviceAnnotations`" }} {{- end }} {{- if .Values.Master.SlaveListenerPort }} {{ fail "`Master.SlaveListenerPort` does no longer exist. It has been renamed to `master.slaveListenerPort`" }} {{- end }} {{- if .Values.Master.SlaveHostPort }} {{ fail "`Master.SlaveHostPort` does no longer exist. It has been renamed to `master.slaveHostPort`" }} {{- end }} {{- if .Values.Master.DisabledAgentProtocols }} {{ fail "`Master.DisabledAgentProtocols` does no longer exist. It has been renamed to `master.disabledAgentProtocols`" }} {{- end }} {{- if .Values.Master.CSRF }} {{- if .Values.Master.CSRF.DefaultCrumbIssuer.Enabled }} {{ fail "`Master.CSRF.DefaultCrumbIssuer.Enabled` does no longer exist. It has been renamed to `master.csrf.defaultCrumbIssuer.enabled`" }} {{- end }} {{- if .Values.Master.CSRF.DefaultCrumbIssuer.ProxyCompatability }} {{ fail "`Master.CSRF.DefaultCrumbIssuer.ProxyCompatability` does no longer exist. It has been renamed to `master.csrf.defaultCrumbIssuer.proxyCompatability`" }} {{- end }} {{- end }} {{- if .Values.Master.CLI }} {{ fail "`Master.CLI` does no longer exist. It has been renamed to `master.cli`" }} {{- end }} {{- if .Values.Master.LoadBalancerSourceRanges }} {{ fail "`Master.LoadBalancerSourceRanges` does no longer exist. It has been renamed to `master.loadBalancerSourceRanges`" }} {{- end }} {{- if .Values.Master.LoadBalancerIP }} {{ fail "`Master.LoadBalancerIP` does no longer exist. It has been renamed to `master.loadBalancerIP`" }} {{- end }} {{- if .Values.Master.JMXPort }} {{ fail "`Master.JMXPort` does no longer exist. It has been renamed to `master.jmxPort`" }} {{- end }} {{- if .Values.Master.ExtraPorts }} {{ fail "`Master.ExtraPorts` does no longer exist. It has been renamed to `master.extraPorts`" }} {{- end }} {{- if .Values.Master.OverwriteConfig }} {{ fail "`Master.OverwriteConfig` does no longer exist. It has been renamed to `master.overwriteConfig`" }} {{- end }} {{- if .Values.JCasC }} {{- if .Values.JCasC.ConfigScripts }} {{ fail "`Master.JCasC.ConfigScripts` does no longer exist. It has been renamed to `master.JCasC.configScripts`" }} {{- end }} {{- end }} {{- if .Values.Master.Sidecars }} {{- if .Values.Master.Sidecars.configAutoReload }} {{ fail "`Master.Sidecars.configAutoReload` does no longer exist. It has been renamed to `master.sidecars.configAutoReload`" }} {{- end }} {{- end }} {{- if .Values.Master.InitScripts }} {{ fail "`Master.InitScripts` does no longer exist. It has been renamed to `master.initScripts`" }} {{- end }} {{- if .Values.Master.CredentialsXmlSecret }} {{ fail "`Master.CredentialsXmlSecret` does no longer exist. It has been renamed to `master.credentialsXmlSecret`" }} {{- end }} {{- if .Values.Master.SecretsFilesSecret }} {{ fail "`Master.SecretsFilesSecret` does no longer exist. It has been renamed to `master.secretsFilesSecret`" }} {{- end }} {{- if .Values.Master.CredentialsXmlSecret }} {{ fail "`Master.CredentialsXmlSecret` does no longer exist. It has been renamed to `master.credentialsXmlSecret`" }} {{- end }} {{- if .Values.Master.Jobs }} {{ fail "`Master.Jobs` does no longer exist. It has been renamed to `master.jobs`" }} {{- end }} {{- if .Values.Master.InstallPlugins }} {{ fail "`Master.InstallPlugins` does no longer exist. It has been renamed to `master.installPlugins`" }} {{- end }} {{- if .Values.Master.OverwritePlugins }} {{ fail "`Master.OverwritePlugins` does no longer exist. It has been renamed to `master.overwritePlugins`" }} {{- end }} {{- if .Values.Master.EnableRawHtmlMarkupFormatter }} {{ fail "`Master.EnableRawHtmlMarkupFormatter` does no longer exist. It has been renamed to `master.enableRawHtmlMarkupFormatter`" }} {{- end }} {{- if .Values.Master.ScriptApproval }} {{ fail "`Master.ScriptApproval` does no longer exist. It has been renamed to `master.scriptApproval`" }} {{- end }} {{- if .Values.Master.NodeSelector }} {{ fail "`Master.NodeSelector` does no longer exist. It has been renamed to `master.nodeSelector`" }} {{- end }} {{- if .Values.Master.Affinity }} {{ fail "`Master.Affinity` does no longer exist. It has been renamed to `master.affinity`" }} {{- end }} {{- if .Values.Master.PodAnnotations }} {{ fail "`Master.PodAnnotations` does no longer exist. It has been renamed to `master.podAnnotations`" }} {{- end }} {{- if .Values.Master.CustomConfigMap }} {{ fail "`Master.CustomConfigMap` does no longer exist. It has been renamed to `master.customConfigMap`" }} {{- end }} {{- if .Values.Master.JenkinsUriPrefix }} {{ fail "`Master.JenkinsUriPrefix` does no longer exist. It has been renamed to `master.jenkinsUriPrefix`" }} {{- end }} {{- if .Values.Master.PriorityClassName }} {{ fail "`Master.PriorityClassName` does no longer exist. It has been renamed to `master.priorityClassName`" }} {{- end }} {{ fail "Master.* values have been renamed, please check the documentation" }} {{- end }} {{- if .Values.NetworkPolicy }} {{- if .Values.NetworkPolicy.Enabled }} {{ fail "`NetworkPolicy.Enabled` does no longer exist. It has been renamed to `networkPolicy.enabled`" }} {{- end }} {{- if .Values.NetworkPolicy.ApiVersion }} {{ fail "`NetworkPolicy.ApiVersion` does no longer exist. It has been renamed to `networkPolicy.apiVersion`" }} {{- end }} {{ fail "NetworkPolicy.* values have been renamed, please check the documentation" }} {{- end }} {{- if .Values.rbac.install }} {{ fail "`rbac.install` does no longer exist. It has been renamed to `rbac.create` and is enabled by default!" }} {{- end }} {{- if .Values.rbac.serviceAccountName }} {{ fail "`rbac.serviceAccountName` does no longer exist. It has been renamed to `serviceAccount.name`" }} {{- end }} {{- if .Values.rbac.serviceAccountAnnotations }} {{ fail "`rbac.serviceAccountAnnotations` does no longer exist. It has been renamed to `serviceAccount.annotations`" }} {{- end }} {{- if .Values.rbac.roleRef }} {{ fail "`rbac.roleRef` does no longer exist. RBAC roles are now generated, please check the documentation" }} {{- end }} {{- if .Values.rbac.roleKind }} {{ fail "`rbac.roleKind` does no longer exist. RBAC roles are now generated, please check the documentation" }} {{- end }} {{- if .Values.rbac.roleBindingKind }} {{ fail "`rbac.roleBindingKind` does no longer exist. RBAC roles are now generated, please check the documentation" }} {{- end }} {{- if .Values.Agent }} {{- if .Values.Agent.AlwaysPullImage }} {{ fail "`Agent.AlwaysPullImage` does no longer exist. It has been renamed to `agent.alwaysPullImage`" }} {{- end }} {{- if .Values.Agent.CustomJenkinsLabels }} {{ fail "`Agent.CustomJenkinsLabels` does no longer exist. It has been renamed to `agent.customJenkinsLabels`" }} {{- end }} {{- if .Values.Agent.Enabled }} {{ fail "`Agent.Enabled` does no longer exist. It has been renamed to `agent.enabled`" }} {{- end }} {{- if .Values.Agent.Image }} {{ fail "`Agent.Image` does no longer exist. It has been renamed to `agent.image`" }} {{- end }} {{- if .Values.Agent.ImagePullSecret }} {{ fail "`Agent.ImagePullSecret` does no longer exist. It has been renamed to `agent.imagePullSecret`" }} {{- end }} {{- if .Values.Agent.ImageTag }} {{ fail "`Agent.ImageTag` does no longer exist. It has been renamed to `agent.imageTag`" }} {{- end }} {{- if .Values.Agent.Privileged }} {{ fail "`Agent.Privileged` does no longer exist. It has been renamed to `agent.privileged`" }} {{- end }} {{- if .Values.Agent.Command }} {{ fail "`Agent.Command` does no longer exist. It has been renamed to `agent.command`" }} {{- end }} {{- if .Values.Agent.Args }} {{ fail "`Agent.Args` does no longer exist. It has been renamed to `agent.args`" }} {{- end }} {{- if .Values.Agent.SideContainerName }} {{ fail "`Agent.SideContainerName` does no longer exist. It has been renamed to `agent.sideContainerName`" }} {{- end }} {{- if .Values.Agent.ContainerCap }} {{ fail "`Agent.ContainerCap` does no longer exist. It has been renamed to `agent.containerCap`" }} {{- end }} {{- if .Values.Agent.PodName }} {{ fail "`Agent.PodName` does no longer exist. It has been renamed to `agent.podName`" }} {{- end }} {{ fail "Agent.* values have been renamed, please check the documentation" }} {{- end }} {{- if .Values.Persistence }} {{ fail "Persistence.* values have been renamed, please check the documentation" }} {{- end }} {{- if .Values.master.JCasC.pluginVersion }} {{ fail "master.JCasC.pluginVersion has been deprecated, please use master.installPlugins instead" }} {{- end }} {{- end }} <|endoftext|> # flux_source_source-git-provider-github.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: GitRepository metadata: name: podinfo namespace: flux-system spec: interval: 1m0s provider: github ref: branch: test secretRef: name: appinfo url: https://github.com/stefanprodan/podinfo <|endoftext|> # helm_charts_service-metrics.yaml {{- if .Values.prometheus.service.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "coredns.fullname" . }}-metrics labels: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" {{- if .Values.isClusterService }} k8s-app: {{ .Chart.Name | quote }} kubernetes.io/cluster-service: "true" kubernetes.io/name: "CoreDNS" {{- end }} app.kubernetes.io/name: {{ template "coredns.name" . }} app.kubernetes.io/component: metrics {{- if .Values.customLabels }} {{ toYaml .Values.customLabels | indent 4 }} {{- end }} annotations: {{ toYaml .Values.prometheus.service.annotations | indent 4 }} spec: selector: app.kubernetes.io/instance: {{ .Release.Name | quote }} {{- if .Values.isClusterService }} k8s-app: {{ .Chart.Name | quote }} {{- end }} app.kubernetes.io/name: {{ template "coredns.name" . }} ports: - name: metrics port: 9153 targetPort: 9153 {{- end }} <|endoftext|> # kube_prometheus_prometheus-roleBindingSpecificNamespaces.yaml apiVersion: rbac.authorization.k8s.io/v1 items: - apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: default roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: prometheus-k8s subjects: - kind: ServiceAccount name: prometheus-k8s namespace: monitoring - apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: kube-system roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: prometheus-k8s subjects: - kind: ServiceAccount name: prometheus-k8s namespace: monitoring - apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: monitoring roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: prometheus-k8s subjects: - kind: ServiceAccount name: prometheus-k8s namespace: monitoring kind: RoleBindingList <|endoftext|> # flux_source_tenant-with-cluster-role.yaml --- apiVersion: v1 kind: Namespace metadata: labels: toolkit.fluxcd.io/tenant: dev-team name: apps --- apiVersion: v1 kind: ServiceAccount metadata: labels: toolkit.fluxcd.io/tenant: dev-team name: dev-team namespace: apps --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: toolkit.fluxcd.io/tenant: dev-team name: dev-team-reconciler namespace: apps roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: custom-role subjects: - apiGroup: rbac.authorization.k8s.io kind: User name: gotk:apps:reconciler - kind: ServiceAccount name: dev-team namespace: apps <|endoftext|> # istio_pilot_merge_meshconfig.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: empty hub: registry.istio.io/release tag: 1.1.4 meshConfig: enablePrometheusMerge: true rootNamespace: istio-control outboundTrafficPolicy: mode: REGISTRY_ONLY defaultConfig: discoveryAddress: my-discovery:123 drainDuration: 12s controlPlaneAuthPolicy: NONE accessLogFormat: | { "key": "val" } components: pilot: enabled: true <|endoftext|> # helm_charts_readreplicas-configmap.yaml # This ConfigMap gets passed to all core cluster members to configure them. # Take note that some networking settings like internal hostname still get configured # when the pod starts, but most non-networking specific configs can be tailored here. apiVersion: v1 kind: ConfigMap metadata: name: {{ template "neo4j.replicaConfig.fullname" . }} data: NEO4J_ACCEPT_LICENSE_AGREEMENT: "{{ .Values.acceptLicenseAgreement }}" NEO4J_dbms_mode: READ_REPLICA NUMBER_OF_CORES: "{{ .Values.core.numberOfServers }}" AUTH_ENABLED: "{{ .Values.authEnabled }}" NEO4J_dbms_default__database: "{{ .Values.defaultDatabase }}" NEO4J_dbms_connector_bolt_listen__address: 0.0.0.0:7687 NEO4J_dbms_connector_http_listen__address: 0.0.0.0:7474 NEO4J_dbms_connector_https_listen__address: 0.0.0.0:7473 NEO4J_causal__clustering_discovery__type: LIST NEO4J_causal__clustering_initial__discovery__members: "{{ template "neo4j.fullname" . }}-core-0.{{ template "neo4j.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:5000,{{ template "neo4j.fullname" . }}-core-1.{{ template "neo4j.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:5000,{{ template "neo4j.fullname" . }}-core-2.{{ template "neo4j.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:5000" NEO4J_causal__clustering_minimum__core__cluster__size__at__formation: "3" NEO4J_causal__clustering_minimum__core__cluster__size__at__runtime: "2" NEO4J_dbms_jvm_additional: "-XX:+ExitOnOutOfMemoryError" {{- if .Values.useAPOC }} NEO4JLABS_PLUGINS: "[\"apoc\"]" NEO4J_apoc_import_file_use__neo4j__config: "true" NEO4J_dbms_security_procedures_unrestricted: "apoc.*" {{- end }} <|endoftext|> # istio_envoyfilter-listenerfilter-merge.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for merge operation when applying to `LISTENER_FILTER` in EnvoyFilter. <|endoftext|> # grafana_charts_role.yaml {{- if and (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") .Values.rbac.create .Values.rbac.pspEnabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "promtail.fullname" . }}-psp namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} rules: - apiGroups: - policy resources: - podsecuritypolicies verbs: - use resourceNames: - {{ include "promtail.fullname" . }} {{- end }} <|endoftext|> # istio_58525.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue where Envoy proxies that to Waypoint proxies would in rare cases either get extraraneous XDS updates or miss some updates entirely. <|endoftext|> # k8s_examples_vsphere-volume-pvcsc.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvcsc001 spec: accessModes: - ReadWriteOnce resources: requests: storage: 2Gi storageClassName: fast <|endoftext|> # istio_56110.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: [55141] releaseNotes: - | **Fixed** an issue where secrets references in the env of `istio/gateway` Helm chart incorrectly rendered as a string, instead of injected correctly. <|endoftext|> # helm_charts_statefulset-patroni.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "patroni.fullname" . }} labels: app: {{ template "patroni.fullname" . }} chart: {{ template "patroni.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: serviceName: {{ template "patroni.fullname" . }} replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ template "patroni.fullname" . }} release: {{ .Release.Name }} template: metadata: name: {{ template "patroni.fullname" . }} labels: app: {{ template "patroni.fullname" . }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "patroni.serviceAccountName" . }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: PGPASSWORD_SUPERUSER valueFrom: secretKeyRef: name: {{ template "patroni.fullname" . }} key: password-superuser - name: PGPASSWORD_ADMIN valueFrom: secretKeyRef: name: {{ template "patroni.fullname" . }} key: password-admin - name: PGPASSWORD_STANDBY valueFrom: secretKeyRef: name: {{ template "patroni.fullname" . }} key: password-standby {{- if .Values.kubernetes.dcs.enable }} - name: DCS_ENABLE_KUBERNETES_API value: "true" - name: KUBERNETES_LABELS value: {{ (printf "{ \"app\": \"%s\", \"release\": \"%s\" }" (include "patroni.fullname" .) .Release.Name) | quote }} - name: KUBERNETES_SCOPE_LABEL value: "app" {{- if .Values.kubernetes.configmaps.enable }} - name: KUBERNETES_USE_CONFIGMAPS value: "true" {{- end }} {{- end }} {{- if .Values.etcd.enable }} {{- if .Values.etcd.deployChart }} - name: ETCD_DISCOVERY_DOMAIN value: {{default (printf "%s-etcd" .Release.Name | trunc 63) .Values.etcd.discovery }} {{- else }} - name: ETCD_HOST value: {{ .Values.etcd.host | quote }} {{- end }} {{- else if .Values.zookeeper.enable }} {{- if .Values.zookeeper.deployChart }} - name: ZOOKEEPER_HOSTS value: {{(printf "'%s-zookeeper-headless:2181'" .Release.Name | trunc 63)}} {{- else }} - name: ZOOKEEPER_HOSTS value: {{ .Values.zookeeper.hosts | quote }} {{- end }} {{- else if .Values.consul.enable }} {{- if .Values.consul.deployChart }} - name: PATRONI_CONSUL_HOST value: {{(printf "'%s-consul'" .Release.Name | trunc 63)}} {{- else }} - name: PATRONI_CONSUL_HOST value: {{ .Values.consul.host | quote }} {{- end }} {{- end }} - name: SCOPE value: {{ template "patroni.fullname" . }} {{- if .Values.walE.enable }} - name: USE_WALE value: {{ .Values.walE.enable | quote }} {{- if .Values.walE.scheduleCronJob }} - name: BACKUP_SCHEDULE value: {{ .Values.walE.scheduleCronJob | quote}} {{- end }} {{- if .Values.walE.retainBackups }} - name: BACKUP_NUM_TO_RETAIN value: {{ .Values.walE.retainBackups | quote}} {{- end }} {{- if .Values.walE.s3Bucket }} - name: WAL_S3_BUCKET value: {{ .Values.walE.s3Bucket | quote }} {{else if .Values.walE.gcsBucket }} - name: WAL_GCS_BUCKET value: {{ .Values.walE.gcsBucket | quote }} {{- if .Values.walE.kubernetesSecret }} - name: GOOGLE_APPLICATION_CREDENTIALS value: "/etc/credentials/{{.Values.walE.kubernetesSecret}}.json" {{- end }} {{- end }} {{- if .Values.walE.backupThresholdMegabytes }} - name: WALE_BACKUP_THRESHOLD_MEGABYTES value: {{ .Values.walE.backupThresholdMegabytes | quote }} {{- end }} {{- if .Values.walE.backupThresholdPercentage }} - name: WALE_BACKUP_THRESHOLD_PERCENTAGE value: {{ .Values.walE.backupThresholdPercentage | quote }} {{- end }} {{- else }} - name: USE_WALE value: "" {{- end }} - name: PGROOT value: "{{ .Values.persistentVolume.mountPath }}/pgroot" - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace {{- if .Values.env }} {{- range $key, $val := .Values.env }} - name: {{ $key | quote | upper }} value: {{ $val | quote }} {{- end }} {{- end }} ports: - containerPort: 8008 - containerPort: 5432 volumeMounts: - name: storage-volume mountPath: "{{ .Values.persistentVolume.mountPath }}" subPath: "{{ .Values.persistentVolume.subPath }}" - mountPath: /etc/patroni name: patroni-config readOnly: true {{- if .Values.walE.enable }} {{- if .Values.walE.kubernetesSecret }} - name: {{ .Values.walE.kubernetesSecret }} mountPath: /etc/credentials readOnly: true {{- end }} {{- end }} resources: {{ toYaml .Values.resources | indent 10 }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- if .Values.schedulerName }} schedulerName: {{ .Values.schedulerName }} {{- end }} {{- if .Values.affinity }} affinity: {{ .Values.affinity | toYaml | indent 8 }} {{- else if .Values.affinityTemplate }} affinity: {{ tpl .Values.affinityTemplate . | indent 8 }} {{- end }} volumes: - name: patroni-config secret: secretName: {{ template "patroni.fullname" . }} {{- if .Values.walE.enable }} {{- if .Values.walE.kubernetesSecret }} - name: {{ .Values.walE.kubernetesSecret }} secret: secretName: {{ .Values.walE.kubernetesSecret }} {{- end }} {{- end }} {{- if not .Values.persistentVolume.enabled }} - name: storage-volume emptyDir: {} {{- end }} {{- if .Values.persistentVolume.enabled }} volumeClaimTemplates: - metadata: name: storage-volume annotations: {{- if .Values.persistentVolume.annotations }} {{ toYaml .Values.persistentVolume.annotations | indent 8 }} {{- end }} labels: app: {{ template "patroni.fullname" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: accessModes: {{ toYaml .Values.persistentVolume.accessModes | indent 8 }} resources: requests: storage: "{{ .Values.persistentVolume.size }}" {{- if .Values.persistentVolume.storageClass }} {{- if (eq "-" .Values.persistentVolume.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistentVolume.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_zipkin-datadog-host-ip-interpretation.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: - 27911 releaseNotes: - | **Fixed** interpretation of $(HOST_IP) in Zipkin and Datadog tracer address. <|endoftext|> # istio_36181-gateway-rsa-ecdsa.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - https://github.com/istio/istio/issues/36181 releaseNotes: - | **Added** Add support for multiple server certificates in gateway (istio & gateway api) upgradeNotes: - title: Multiple certificate types support in Gateway content: | Istio now supports configuring multiple certificate types (such as RSA and ECDSA) simultaneously in Gateway resources. This allows clients to choose the most appropriate certificate type based on their capabilities. <|endoftext|> # helm_charts_artifactory-role.yaml {{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app: {{ template "artifactory.name" . }} chart: {{ template "artifactory.chart" . }} component: {{ .Values.artifactory.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "artifactory.fullname" . }} rules: {{ toYaml .Values.rbac.role.rules }} {{- end }} <|endoftext|> # k8s_docs_konnectivity-rbac.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: system:konnectivity-server labels: kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - apiGroup: rbac.authorization.k8s.io kind: User name: system:konnectivity-server --- apiVersion: v1 kind: ServiceAccount metadata: name: konnectivity-agent namespace: kube-system labels: kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile <|endoftext|> # helm_charts_psp-rolebinding.yaml {{- if and .Values.alertmanager.enabled .Values.global.rbac.create .Values.global.rbac.pspEnabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ template "prometheus-operator.fullname" . }}-alertmanager namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }}-alertmanager {{ include "prometheus-operator.labels" . | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "prometheus-operator.fullname" . }}-alertmanager subjects: - kind: ServiceAccount name: {{ template "prometheus-operator.alertmanager.serviceAccountName" . }} namespace: {{ template "prometheus-operator.namespace" . }} {{- end }} <|endoftext|> # argocd_examples_payment-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: payment labels: name: payment spec: replicas: 1 selector: matchLabels: name: payment template: metadata: labels: name: payment spec: containers: - name: payment image: weaveworksdemos/payment:0.4.3 resources: limits: cpu: 100m memory: 100Mi requests: cpu: 99m memory: 100Mi ports: - containerPort: 80 securityContext: runAsNonRoot: true runAsUser: 10001 capabilities: drop: - all add: - NET_BIND_SERVICE readOnlyRootFilesystem: true livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 300 periodSeconds: 3 readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 180 periodSeconds: 3 nodeSelector: kubernetes.io/os: linux <|endoftext|> # istio_36946.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 36946 releaseNotes: - | **Fixed** Helm chart generates invalid manifest when given boolean or numeric value for environment variables. <|endoftext|> # istio_auto-san-validation.yaml apiVersion: release-notes/v2 kind: bug-fix area: security releaseNotes: - | **Fixed** an issue where auto-san-validation was enabled even when sni was explicitly set in the DestinationRule. <|endoftext|> # helm_charts_geth-account.secret.yaml apiVersion: v1 kind: Secret metadata: name: {{ template "ethereum.fullname" . }}-geth-account labels: app: {{ template "ethereum.name" . }} chart: {{ template "ethereum.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: {{- if .Values.geth.account.privateKey }} accountPrivateKey: {{ .Values.geth.account.privateKey | b64enc | quote }} {{- end }} {{- if .Values.geth.account.secret }} accountSecret: {{ .Values.geth.account.secret | b64enc | quote }} {{- end }} <|endoftext|> # istio_proxy-config-image-type.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/38959 releaseNotes: - | **Fixed** an issue where ProxyConfig image type not taking effect <|endoftext|> # istio_52367.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: [] releaseNotes: - | **Fixed** Support clusterLocal host exclusions for multi-cluster. <|endoftext|> # istio_59295.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 59295 releaseNotes: - | **Fixed** cni agent behavior to respect excludeNamespaces config so that behavior is consistent between the plugin and agent. upgradeNotes: - title: CNI Agent respects excludeNamespaces configuration content: | Previously, only the CNI Plugin respected the excludeNamespaces config by skipping the processing of excluded namespace's pods, while the CNI Agent would still reconcile and add ambient-labeled Pods in an excluded namespace to the mesh. Now, the CNI Agent respects excluded namespaces, which means existing, enrolled pods in an excluded namespace will be un-enrolled, and new, ambient-labeled pods in an excluded namespace will not be enrolled. <|endoftext|> # helm_charts_node-time.yaml {{- /* Generated from 'node-time' group from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.time }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "node-time" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: node-time rules: - alert: ClockSkewDetected annotations: message: Clock skew detected on node-exporter {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.pod {{`}}`}}. Ensure NTP is configured correctly on this host. expr: abs(node_timex_offset_seconds{job="node-exporter"}) > 0.03 for: 2m labels: severity: warning {{- end }} <|endoftext|> # helm_charts_podvolumebackups.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: podvolumebackups.velero.io labels: app.kubernetes.io/name: "velero" annotations: "helm.sh/hook": crd-install "helm.sh/hook-delete-policy": "before-hook-creation" spec: group: velero.io version: v1 scope: Namespaced names: plural: podvolumebackups kind: PodVolumeBackup <|endoftext|> # istio_filter-order.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Improved** the ordering of HTTP and TCP envoy filters to improve consistency upgradeNotes: - title: "Envoy filter ordering" content: | This change impacts internal implementation of how Envoy "filters" are ordered. These filters run in order to implement various functionality. The ordering is now consistent across inbound, outbound and gateway proxy modes, as well as HTTP and TCP protocols: * Metadata Exchange * CUSTOM Authz * WASM Authn * Authn * WASM Authz * Authz * WASM Stats * Stats * WASM unspecified This changes the following areas: * Inbound TCP filters now place Metadata Exchange before Authn. * Gateway TCP filters now place stats after Authz, and CUSTOM Authz before Authn. <|endoftext|> # helm_charts_controller-service-internal.yaml {{- if and .Values.controller.service.enabled .Values.controller.service.internal.enabled .Values.controller.service.internal.annotations}} apiVersion: v1 kind: Service metadata: annotations: {{- range $key, $value := .Values.controller.service.internal.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} labels: {{- if .Values.controller.service.labels }} {{ toYaml .Values.controller.service.labels | indent 4 }} {{- end }} app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.controller.fullname" . }}-internal spec: ports: {{- $setNodePorts := (or (eq .Values.controller.service.type "NodePort") (eq .Values.controller.service.type "LoadBalancer")) }} {{- if .Values.controller.service.enableHttp }} - name: http port: {{ .Values.controller.service.ports.http }} protocol: TCP targetPort: {{ .Values.controller.service.targetPorts.http }} {{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.http))) }} nodePort: {{ .Values.controller.service.nodePorts.http }} {{- end }} {{- end }} {{- if .Values.controller.service.enableHttps }} - name: https port: {{ .Values.controller.service.ports.https }} protocol: TCP targetPort: {{ .Values.controller.service.targetPorts.https }} {{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.https))) }} nodePort: {{ .Values.controller.service.nodePorts.https }} {{- end }} {{- end }} selector: app: {{ template "nginx-ingress.name" . }} release: {{ template "nginx-ingress.releaseLabel" . }} {{ .Values.controller.componentLabelKeyOverride | default "app.kubernetes.io/component" }}: controller type: "{{ .Values.controller.service.type }}" {{- end }} <|endoftext|> # helm_charts_basic-acls.yaml {{- if .Values.acl.enabled}} apiVersion: batch/v1 kind: Job metadata: name: "configure-basic-acls" annotations: "helm.sh/hook": post-install "helm.sh/hook-delete-policy": hook-succeeded labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" spec: template: metadata: name: "configure-basic-acls" labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" spec: restartPolicy: Never containers: - name: "add-agent-acl" image: appropriate/curl:latest args: - -X - PUT - --header - 'X-Consul-Token: {{ .Values.acl.masterToken }}' - --data - '{ "Name": "Agent Token", "Type": "client", "Rules": "node \"\" { policy = \"write\" } service \"\" { policy = \"read\" } key \"_rexec\" { policy = \"write\" }", "ID": "{{ .Values.acl.agentToken }}"}' - 'http://{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.HttpPort }}/v1/acl/create' - name: "modify-anonymous-acl" image: appropriate/curl:latest args: - -X - PUT - --header - 'X-Consul-Token: {{ .Values.acl.masterToken }}' - --data - '{ "Name": "Anonymous Token", "Type": "client", "Rules": "node \"\" { policy = \"read\" }", "ID": "anonymous"}' - 'http://{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.HttpPort }}/v1/acl/create' {{- end }} <|endoftext|> # istio_peer-authn-disable-port-mtls-strict-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: disable-strict-mtls spec: selector: matchLabels: app: a mtls: mode: DISABLE portLevelMtls: 9090: mode: STRICT <|endoftext|> # istio_fix-eks-ipv6.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 36961 releaseNotes: - | **Fixed** IPv6 detection on clusters with IPv4 NAT implementation, such as Amazon EKS, by excluding link-local addresses from detection. <|endoftext|> # argocd_source_pre_v0.6_not_paused_rollout.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: clusterName: "" creationTimestamp: 2019-03-22T21:04:31Z generation: 1 labels: app.kubernetes.io/instance: guestbook-bluegreen name: guestbook-bluegreen namespace: default resourceVersion: "888906" selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/guestbook-bluegreen uid: 16a1edf0-4ce6-11e9-994f-025000000001 spec: minReadySeconds: 30 replicas: 1 revisionHistoryLimit: 2 selector: matchLabels: app: guestbook-bluegreen strategy: blueGreen: activeService: guestbook-bluegreen-active previewService: guestbook-bluegreen-preview template: metadata: labels: app: guestbook-bluegreen spec: containers: - image: quay.io/argoprojlabs/argocd-e2e-container:0.2 name: guestbook-bluegreen ports: - containerPort: 80 paused: false status: availableReplicas: 1 blueGreen: activeSelector: 6c767bd46c conditions: - lastTransitionTime: 2019-04-01T22:31:44Z lastUpdateTime: 2019-04-01T22:31:44Z message: Rollout is serving traffic from the active service. reason: Available status: "True" type: Available currentPodHash: 6c767bd46c observedGeneration: 869957df4b pauseStartTime: 2019-03-26T05:47:32Z readyReplicas: 1 replicas: 1 updatedReplicas: 1 <|endoftext|> # istio_54562.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 54562 releaseNotes: - | **Fixed** an issue in the sidecar injection template, which would remove any existing init container, if both traffic intercepting and native sidecar are disabled. <|endoftext|> # istio_39050.yaml apiVersion: release-notes/v2 kind: feature area: extensibility issue: [] releaseNotes: - | **Added** the wasm cache related parameters are now configurable with the env var of istio-agent: WASM_MODULE_EXPIRY, WASM_PURGE_INTERVAL, WASM_HTTP_REQUEST_TIMEOUT, WASM_HTTP_REQUEST_MAX_RETRIES <|endoftext|> # cert_manager_cainjector-poddisruptionbudget.yaml {{- if .Values.cainjector.podDisruptionBudget.enabled }} apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "cainjector.fullname" . }} namespace: {{ include "cert-manager.namespace" . }} labels: app: {{ include "cainjector.name" . }} app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" {{- include "labels" . | nindent 4 }} spec: selector: matchLabels: app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" {{- if not (or (hasKey .Values.cainjector.podDisruptionBudget "minAvailable") (hasKey .Values.cainjector.podDisruptionBudget "maxUnavailable")) }} minAvailable: 1 # Default value because minAvailable and maxUnavailable are not set {{- end }} {{- if hasKey .Values.cainjector.podDisruptionBudget "minAvailable" }} minAvailable: {{ .Values.cainjector.podDisruptionBudget.minAvailable }} {{- end }} {{- if hasKey .Values.cainjector.podDisruptionBudget "maxUnavailable" }} maxUnavailable: {{ .Values.cainjector.podDisruptionBudget.maxUnavailable }} {{- end }} {{- with .Values.cainjector.podDisruptionBudget.unhealthyPodEvictionPolicy }} unhealthyPodEvictionPolicy: {{ . }} {{- end }} {{- end }} <|endoftext|> # k8s_docs_pod-with-affinity-anti-affinity.yaml apiVersion: v1 kind: Pod metadata: name: with-affinity-anti-affinity spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/os operator: In values: - linux preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 preference: matchExpressions: - key: label-1 operator: In values: - key-1 - weight: 50 preference: matchExpressions: - key: label-2 operator: In values: - key-2 containers: - name: with-node-affinity image: registry.k8s.io/pause:2.0 <|endoftext|> # istio_57373.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 57372 releaseNotes: - | **Added** flags to support list debug types for `istioctl experimental internal-debug` <|endoftext|> # helm_charts_query-svc.yaml {{- if .Values.query.enabled -}} apiVersion: v1 kind: Service metadata: name: {{ template "jaeger.query.name" . }} labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} helm.sh/chart: {{ include "jaeger.chart" . }} app.kubernetes.io/component: query app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} {{- if .Values.query.service.annotations }} annotations: {{ toYaml .Values.query.service.annotations | indent 4 }} {{- end }} spec: ports: - name: query port: {{ .Values.query.service.port }} protocol: TCP targetPort: query selector: app.kubernetes.io/name: {{ include "jaeger.name" . }} app.kubernetes.io/component: query app.kubernetes.io/instance: {{ .Release.Name }} type: {{ .Values.query.service.type }} {{- template "loadBalancerSourceRanges" .Values.query }} {{- end -}} <|endoftext|> # argocd_source_red.yaml apiVersion: logstash.k8s.elastic.co/v1alpha1 kind: Logstash metadata: name: quickstart status: health: red <|endoftext|> # kustomize_transf.yaml apiVersion: examples.config.kubernetes.io/v1beta1 kind: tshirt metadata: name: tshirt annotations: config.kubernetes.io/function: |- exec: path: ./tshirt <|endoftext|> # argocd_source_healthy_modelmesh.yaml apiVersion: serving.kserve.io/v1beta1 kind: InferenceService metadata: name: helloworld namespace: default spec: {} status: conditions: - lastTransitionTime: '2024-05-30T22:43:16Z' status: 'True' type: PredictorReady - lastTransitionTime: '2024-05-30T22:43:16Z' status: 'True' type: Ready modelStatus: transitionStatus: UpToDate <|endoftext|> # helm_charts_jcasc-config.yaml {{- $root := . }} {{- if and (.Values.master.JCasC.enabled) (.Values.master.sidecars.configAutoReload.enabled) }} {{- range $key, $val := .Values.master.JCasC.configScripts }} --- apiVersion: v1 kind: ConfigMap metadata: name: {{ template "jenkins.fullname" $root }}-jenkins-config-{{ $key }} namespace: {{ template "jenkins.namespace" $root }} labels: "app.kubernetes.io/name": {{ template "jenkins.name" $root}} "helm.sh/chart": {{ $.Chart.Name }}-{{ $.Chart.Version }} "app.kubernetes.io/managed-by": "{{ $.Release.Service }}" "app.kubernetes.io/instance": "{{ $.Release.Name }}" "app.kubernetes.io/component": "{{ $.Values.master.componentName }}" {{ template "jenkins.fullname" $root }}-jenkins-config: "true" data: {{ $key }}.yaml: |- {{ tpl $val $| indent 4 }} {{- end }} {{- if .Values.master.JCasC.defaultConfig }} --- apiVersion: v1 kind: ConfigMap metadata: name: {{ template "jenkins.fullname" $root }}-jenkins-jcasc-config namespace: {{ template "jenkins.namespace" $root }} labels: "app.kubernetes.io/name": {{ template "jenkins.name" $root}} "helm.sh/chart": {{ $.Chart.Name }}-{{ $.Chart.Version }} "app.kubernetes.io/managed-by": "{{ $.Release.Service }}" "app.kubernetes.io/instance": "{{ $.Release.Name }}" "app.kubernetes.io/component": "{{ $.Values.master.componentName }}" {{ template "jenkins.fullname" $root }}-jenkins-config: "true" data: jcasc-default-config.yaml: |- {{- include "jenkins.casc.defaults" . |nindent 4 }} {{- end}} {{- end }} <|endoftext|> # grafana_charts_servicemonitor-table-manager.yaml {{- if .Values.tableManager.enabled }} {{- with .Values.serviceMonitor }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "loki.tableManagerFullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "loki.tableManagerLabels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 4 }} {{- end }} selector: matchLabels: {{- include "loki.tableManagerSelectorLabels" $ | nindent 6 }} {{- with .matchExpressions }} matchExpressions: {{- toYaml . | nindent 6 }} {{- end }} endpoints: - port: http {{- with .interval }} interval: {{ . }} {{- end }} {{- with .scrapeTimeout }} scrapeTimeout: {{ . }} {{- end }} {{- with .relabelings }} relabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .metricRelabelings }} metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .scheme }} scheme: {{ . }} {{- end }} {{- with .tlsConfig }} tlsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .targetLabels }} targetLabels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_gateway-with-infrerencepool-extproc-infra-label.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: fizz: buzz labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none istio.io/enable-inference-extproc: "true" name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: fizz: buzz labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none istio.io/enable-inference-extproc: "true" name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: default template: metadata: annotations: fizz: buzz istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none istio.io/enable-inference-extproc: "true" service.istio.io/canonical-name: default-istio service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc. - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: ISTIO_META_POD_PORTS value: '[]' - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: default-istio - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/default-istio - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: test/proxyv2:test name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: default-istio volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - emptyDir: medium: Memory name: istio-envoy - emptyDir: {} name: istio-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: istio-token --- apiVersion: v1 kind: Service metadata: annotations: fizz: buzz labels: foo: bar gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none istio.io/enable-inference-extproc: "true" name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: null spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: default type: LoadBalancer --- <|endoftext|> # istio_30705.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 28798 releaseNotes: - | **Fixed** When using PeerAuthentication to turn off mTLS while using multi-network, non-mtls endpoints will be removed from the cross-network load-balancing endpoints to prevent 500 errors. <|endoftext|> # grafana_charts_monitoring.grafana.com_integrations.yaml --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: integrations.monitoring.grafana.com spec: group: monitoring.grafana.com names: categories: - agent-operator kind: Integration listKind: IntegrationList plural: integrations singular: integration scope: Namespaced versions: - name: v1alpha1 schema: openAPIV3Schema: properties: apiVersion: type: string kind: type: string metadata: type: object spec: properties: config: type: object x-kubernetes-preserve-unknown-fields: true configMaps: items: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic type: array name: type: string secrets: items: properties: key: type: string name: type: string optional: type: boolean required: - key type: object x-kubernetes-map-type: atomic type: array type: properties: allNodes: type: boolean unique: type: boolean type: object volumeMounts: items: properties: mountPath: type: string mountPropagation: type: string name: type: string readOnly: type: boolean subPath: type: string subPathExpr: type: string required: - mountPath - name type: object type: array volumes: items: properties: awsElasticBlockStore: properties: fsType: type: string partition: format: int32 type: integer readOnly: type: boolean volumeID: type: string required: - volumeID type: object azureDisk: properties: cachingMode: type: string diskName: type: string diskURI: type: string fsType: type: string kind: type: string readOnly: type: boolean required: - diskName - diskURI type: object azureFile: properties: readOnly: type: boolean secretName: type: string shareName: type: string required: - secretName - shareName type: object cephfs: properties: monitors: items: type: string type: array path: type: string readOnly: type: boolean secretFile: type: string secretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic user: type: string required: - monitors type: object cinder: properties: fsType: type: string readOnly: type: boolean secretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic volumeID: type: string required: - volumeID type: object configMap: properties: defaultMode: format: int32 type: integer items: items: properties: key: type: string mode: format: int32 type: integer path: type: string required: - key - path type: object type: array name: type: string optional: type: boolean type: object x-kubernetes-map-type: atomic csi: properties: driver: type: string fsType: type: string nodePublishSecretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic readOnly: type: boolean volumeAttributes: additionalProperties: type: string type: object required: - driver type: object downwardAPI: properties: defaultMode: format: int32 type: integer items: items: properties: fieldRef: properties: apiVersion: type: string fieldPath: type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: format: int32 type: integer path: type: string resourceFieldRef: properties: containerName: type: string divisor: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: type: string required: - resource type: object x-kubernetes-map-type: atomic required: - path type: object type: array type: object emptyDir: properties: medium: type: string sizeLimit: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true type: object ephemeral: properties: volumeClaimTemplate: properties: metadata: type: object spec: properties: accessModes: items: type: string type: array dataSource: properties: apiGroup: type: string kind: type: string name: type: string required: - kind - name type: object x-kubernetes-map-type: atomic dataSourceRef: properties: apiGroup: type: string kind: type: string name: type: string namespace: type: string required: - kind - name type: object resources: properties: claims: items: properties: name: type: string required: - name type: object type: array x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map limits: additionalProperties: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true type: object requests: additionalProperties: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true type: object type: object selector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic storageClassName: type: string volumeMode: type: string volumeName: type: string type: object required: - spec type: object type: object fc: properties: fsType: type: string lun: format: int32 type: integer readOnly: type: boolean targetWWNs: items: type: string type: array wwids: items: type: string type: array type: object flexVolume: properties: driver: type: string fsType: type: string options: additionalProperties: type: string type: object readOnly: type: boolean secretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic required: - driver type: object flocker: properties: datasetName: type: string datasetUUID: type: string type: object gcePersistentDisk: properties: fsType: type: string partition: format: int32 type: integer pdName: type: string readOnly: type: boolean required: - pdName type: object gitRepo: properties: directory: type: string repository: type: string revision: type: string required: - repository type: object glusterfs: properties: endpoints: type: string path: type: string readOnly: type: boolean required: - endpoints - path type: object hostPath: properties: path: type: string type: type: string required: - path type: object iscsi: properties: chapAuthDiscovery: type: boolean chapAuthSession: type: boolean fsType: type: string initiatorName: type: string iqn: type: string iscsiInterface: type: string lun: format: int32 type: integer portals: items: type: string type: array readOnly: type: boolean secretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic targetPortal: type: string required: - iqn - lun - targetPortal type: object name: type: string nfs: properties: path: type: string readOnly: type: boolean server: type: string required: - path - server type: object persistentVolumeClaim: properties: claimName: type: string readOnly: type: boolean required: - claimName type: object photonPersistentDisk: properties: fsType: type: string pdID: type: string required: - pdID type: object portworxVolume: properties: fsType: type: string readOnly: type: boolean volumeID: type: string required: - volumeID type: object projected: properties: defaultMode: format: int32 type: integer sources: items: properties: configMap: properties: items: items: properties: key: type: string mode: format: int32 type: integer path: type: string required: - key - path type: object type: array name: type: string optional: type: boolean type: object x-kubernetes-map-type: atomic downwardAPI: properties: items: items: properties: fieldRef: properties: apiVersion: type: string fieldPath: type: string required: - fieldPath type: object x-kubernetes-map-type: atomic mode: format: int32 type: integer path: type: string resourceFieldRef: properties: containerName: type: string divisor: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true resource: type: string required: - resource type: object x-kubernetes-map-type: atomic required: - path type: object type: array type: object secret: properties: items: items: properties: key: type: string mode: format: int32 type: integer path: type: string required: - key - path type: object type: array name: type: string optional: type: boolean type: object x-kubernetes-map-type: atomic serviceAccountToken: properties: audience: type: string expirationSeconds: format: int64 type: integer path: type: string required: - path type: object type: object type: array type: object quobyte: properties: group: type: string readOnly: type: boolean registry: type: string tenant: type: string user: type: string volume: type: string required: - registry - volume type: object rbd: properties: fsType: type: string image: type: string keyring: type: string monitors: items: type: string type: array pool: type: string readOnly: type: boolean secretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic user: type: string required: - image - monitors type: object scaleIO: properties: fsType: type: string gateway: type: string protectionDomain: type: string readOnly: type: boolean secretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic sslEnabled: type: boolean storageMode: type: string storagePool: type: string system: type: string volumeName: type: string required: - gateway - secretRef - system type: object secret: properties: defaultMode: format: int32 type: integer items: items: properties: key: type: string mode: format: int32 type: integer path: type: string required: - key - path type: object type: array optional: type: boolean secretName: type: string type: object storageos: properties: fsType: type: string readOnly: type: boolean secretRef: properties: name: type: string type: object x-kubernetes-map-type: atomic volumeName: type: string volumeNamespace: type: string type: object vsphereVolume: properties: fsType: type: string storagePolicyID: type: string storagePolicyName: type: string volumePath: type: string required: - volumePath type: object required: - name type: object type: array required: - config - name - type type: object type: object served: true storage: true <|endoftext|> # argocd_source_pending-upgrade-in-progress.yaml apiVersion: numaplane.numaproj.io/v1alpha1 kind: MonoVertexRollout metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"numaplane.numaproj.io/v1alpha1","kind":"MonoVertexRollout","metadata":{"annotations":{},"labels":{"argocd.argoproj.io/instance":"demo-app"},"name":"my-monovertex","namespace":"example-namespace"},"spec":{"monoVertex":{"spec":{"sink":{"udsink":{"container":{"image":"quay.io/numaio/numaflow-java/simple-sink:stable"}}},"source":{"transformer":{"container":{"image":"quay.io/numaio/numaflow-rs/source-transformer-now:stable"}},"udsource":{"container":{"image":"quay.io/numaio/numaflow-java/source-simple-source:stable"}}}}}}} creationTimestamp: '2024-08-21T20:44:18Z' finalizers: - numaplane.numaproj.io/numaplane-controller generation: 1 labels: argocd.argoproj.io/instance: demo-app name: my-monovertex namespace: example-namespace resourceVersion: '947414' uid: a63f377e-1500-437e-9267-579f4a790518 spec: monoVertex: spec: sink: udsink: container: image: 'quay.io/numaio/numaflow-java/simple-sink:stable' source: transformer: container: image: 'quay.io/numaio/numaflow-rs/source-transformer-now:stable' udsource: container: image: 'quay.io/numaio/numaflow-java/source-simple-source:stable' status: upgradeInProgress: progressive conditions: - lastTransitionTime: '2024-08-21T20:44:18Z' message: Successful observedGeneration: 1 reason: Successful status: 'True' type: ChildResourceDeployed - lastTransitionTime: '2024-08-22T21:10:23Z' message: Successful observedGeneration: 1 reason: Successful status: 'True' type: ChildResourcesHealthy observedGeneration: 1 phase: Pending <|endoftext|> # helm_charts_ingressThanosSidecar.yaml {{- if and .Values.prometheus.enabled .Values.prometheus.thanosIngress.enabled }} {{- $serviceName := printf "%s-%s" (include "prometheus-operator.fullname" .) "prometheus" }} {{- $thanosPort := .Values.prometheus.thanosIngress.servicePort -}} {{- $routePrefix := list .Values.prometheus.prometheusSpec.routePrefix }} {{- $paths := .Values.prometheus.thanosIngress.paths | default $routePrefix -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: {{- if .Values.prometheus.thanosIngress.annotations }} annotations: {{ toYaml .Values.prometheus.thanosIngress.annotations | indent 4 }} {{- end }} name: {{ template "prometheus-operator.fullname" . }}-thanos-gateway labels: app: {{ template "prometheus-operator.name" . }}-prometheus {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.prometheus.thanosIngress.labels }} {{ toYaml .Values.prometheus.thanosIngress.labels | indent 4 }} {{- end }} spec: rules: {{- if .Values.prometheus.thanosIngress.hosts }} {{- range $host := .Values.prometheus.thanosIngress.hosts }} - host: {{ tpl $host $ }} http: paths: {{- range $p := $paths }} - path: {{ tpl $p $ }} backend: serviceName: {{ $serviceName }} servicePort: {{ $thanosPort }} {{- end -}} {{- end -}} {{- else }} - http: paths: {{- range $p := $paths }} - path: {{ tpl $p $ }} backend: serviceName: {{ $serviceName }} servicePort: {{ $thanosPort }} {{- end -}} {{- end -}} {{- if .Values.prometheus.thanosIngress.tls }} tls: {{ toYaml .Values.prometheus.thanosIngress.tls | indent 4 }} {{- end -}} {{- end -}} <|endoftext|> # argocd_source_progressing_ocp.yaml apiVersion: serving.kserve.io/v1beta1 kind: InferenceService metadata: name: helloworld namespace: default spec: {} status: conditions: - lastTransitionTime: '2024-05-30T22:29:46Z' reason: PredictorConfigurationReady not ready severity: Info status: Unknown type: LatestDeploymentReady - lastTransitionTime: '2024-05-30T22:29:46Z' severity: Info status: Unknown type: PredictorConfigurationReady - lastTransitionTime: '2024-05-30T22:29:46Z' message: Configuration "helloworld-predictor" is waiting for a Revision to become ready. reason: RevisionMissing status: Unknown type: PredictorReady - lastTransitionTime: '2024-05-30T22:29:46Z' message: Configuration "helloworld-predictor" is waiting for a Revision to become ready. reason: RevisionMissing severity: Info status: Unknown type: PredictorRouteReady - lastTransitionTime: '2024-05-30T22:29:46Z' message: Configuration "helloworld-predictor" is waiting for a Revision to become ready. reason: RevisionMissing status: Unknown type: Ready - lastTransitionTime: '2024-05-30T22:29:46Z' reason: PredictorRouteReady not ready severity: Info status: Unknown type: RoutesReady modelStatus: transitionStatus: InProgress <|endoftext|> # argocd_source_argocd-server-role.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app.kubernetes.io/name: argocd-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: server name: argocd-server rules: - apiGroups: - "" resources: - secrets - configmaps verbs: - create - get - list - watch - update - patch - delete - apiGroups: - argoproj.io resources: - applications - appprojects - applicationsets verbs: - create - get - list - watch - update - delete - patch - apiGroups: - "" resources: - events verbs: - create - list <|endoftext|> # grafana_charts_servicemonitor-memcached-chunks.yaml {{- if .Values.memcachedChunks.enabled }} {{- with .Values.serviceMonitor }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "loki.memcachedChunksFullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "loki.memcachedChunksLabels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 4 }} {{- end }} selector: matchLabels: {{- include "loki.memcachedChunksSelectorLabels" $ | nindent 6 }} {{- with .matchExpressions }} matchExpressions: {{- toYaml . | nindent 6 }} {{- end }} endpoints: - port: http-metrics {{- with .interval }} interval: {{ . }} {{- end }} {{- with .scrapeTimeout }} scrapeTimeout: {{ . }} {{- end }} {{- with .relabelings }} relabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .metricRelabelings }} metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .scheme }} scheme: {{ . }} {{- end }} {{- with .tlsConfig}} tlsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .targetLabels }} targetLabels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_daemonset-ndm.yaml {{- if .Values.ndm.enabled }} apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ template "openebs.fullname" . }}-ndm labels: app: {{ template "openebs.name" . }} chart: {{ template "openebs.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: ndm openebs.io/component-name: ndm openebs.io/version: {{ .Values.release.version }} spec: updateStrategy: type: "RollingUpdate" selector: matchLabels: app: {{ template "openebs.name" . }} release: {{ .Release.Name }} component: ndm template: metadata: labels: app: {{ template "openebs.name" . }} release: {{ .Release.Name }} component: ndm openebs.io/component-name: ndm name: openebs-ndm openebs.io/version: {{ .Values.release.version }} spec: serviceAccountName: {{ template "openebs.serviceAccountName" . }} hostNetwork: true containers: - name: {{ template "openebs.name" . }}-ndm image: "{{ .Values.image.repository }}{{ .Values.ndm.image }}:{{ .Values.ndm.imageTag }}" args: - -v=4 {{- if .Values.featureGates.enabled }} {{- if .Values.featureGates.GPTBasedUUID.enabled }} - --feature-gates={{ .Values.featureGates.GPTBasedUUID.featureGateFlag }} {{- end}} {{- end}} imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: privileged: true env: # namespace in which NDM is installed will be passed to NDM Daemonset # as environment variable - name: NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace # pass hostname as env variable using downward API to the NDM container - name: NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName {{- if .Values.ndm.sparse }} {{- if .Values.ndm.sparse.path }} # specify the directory where the sparse files need to be created. # if not specified, then sparse files will not be created. - name: SPARSE_FILE_DIR value: "{{ .Values.ndm.sparse.path }}" {{- end }} {{- if .Values.ndm.sparse.size }} # Size(bytes) of the sparse file to be created. - name: SPARSE_FILE_SIZE value: "{{ .Values.ndm.sparse.size }}" {{- end }} {{- if .Values.ndm.sparse.count }} # Specify the number of sparse files to be created - name: SPARSE_FILE_COUNT value: "{{ .Values.ndm.sparse.count }}" {{- end }} {{- end }} # Process name used for matching is limited to the 15 characters # present in the pgrep output. # So fullname can be used here with pgrep (cmd is < 15 chars). livenessProbe: exec: command: - pgrep - "ndm" initialDelaySeconds: {{ .Values.ndm.healthCheck.initialDelaySeconds }} periodSeconds: {{ .Values.ndm.healthCheck.periodSeconds }} volumeMounts: - name: config mountPath: /host/node-disk-manager.config subPath: node-disk-manager.config readOnly: true - name: udev mountPath: /run/udev - name: procmount mountPath: /host/proc readOnly: true - name: basepath mountPath: /var/openebs/ndm {{- if .Values.ndm.sparse }} {{- if .Values.ndm.sparse.path }} - name: sparsepath mountPath: {{ .Values.ndm.sparse.path }} {{- end }} {{- end }} volumes: - name: config configMap: name: {{ template "openebs.fullname" . }}-ndm-config - name: udev hostPath: path: /run/udev type: Directory # mount /proc (to access mount file of process 1 of host) inside container # to read mount-point of disks and partitions - name: procmount hostPath: path: /proc type: Directory - name: basepath hostPath: path: "{{ .Values.varDirectoryPath.baseDir }}/ndm" type: DirectoryOrCreate {{- if .Values.ndm.sparse }} {{- if .Values.ndm.sparse.path }} - name: sparsepath hostPath: path: {{ .Values.ndm.sparse.path }} {{- end }} {{- end }} # By default the node-disk-manager will be run on all kubernetes nodes # If you would like to limit this to only some nodes, say the nodes # that have storage attached, you could label those node and use # nodeSelector. # # e.g. label the storage nodes with - "openebs.io/nodegroup"="storage-node" # kubectl label node "openebs.io/nodegroup"="storage-node" #nodeSelector: # "openebs.io/nodegroup": "storage-node" {{- if .Values.ndm.nodeSelector }} nodeSelector: {{ toYaml .Values.ndm.nodeSelector | indent 8 }} {{- end }} {{- if .Values.ndm.tolerations }} tolerations: {{ toYaml .Values.ndm.tolerations | indent 8 }} {{- end }} {{- end }} <|endoftext|> # argocd_source_argocd-application-controller-clusterrolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app.kubernetes.io/name: argocd-application-controller app.kubernetes.io/part-of: argocd app.kubernetes.io/component: application-controller name: argocd-application-controller roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: argocd-application-controller subjects: - kind: ServiceAccount name: argocd-application-controller namespace: argocd <|endoftext|> # istio_27696.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 27696 releaseNotes: - | **Added** `holdApplicationUntilProxyStarts` can now be set in ProxyConfig, allowing it to be set at the pod level. Should not be used in conjunction with the deprecated `values.global.proxy.holdApplicationUntilProxyStarts` value. <|endoftext|> # istio_cni-rolling-max-available.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** rolling update max unavailable to CNI Helm chart to speed up deploys. <|endoftext|> # istio_28346.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 28346 releaseNotes: - | **Added** `enableIstioConfigCRDs` to `base` to allow user specify whether the istio crds will be installed. <|endoftext|> # istio_kube-gateway-ambient-redirect.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: ambient name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: ambient name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: default template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: ambient service.istio.io/canonical-name: default-istio service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc. - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: ISTIO_META_POD_PORTS value: '[]' - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: default-istio - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/default-istio - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: test/proxyv2:test name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: default-istio volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - emptyDir: medium: Memory name: istio-envoy - emptyDir: {} name: istio-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: istio-token --- apiVersion: v1 kind: Service metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: ambient name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: null spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: default type: LoadBalancer --- <|endoftext|> # istio_custom-template.iop.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: namespace: istio-system name: example-istiocontrolplane spec: values: sidecarInjectorWebhook: templates: custom: | metadata: annotations: # Disable the built-in transformations. In the future we may want a template-level API prometheus.istio.io/merge-metrics: "false" sidecar.istio.io/rewriteAppHTTPProbers: "false" foo: bar spec: containers: {{- range $index, $container := .Spec.Containers }} - name: {{ $container.Name }} env: - name: SOME_ENV value: "true" - name: SOME_FILE value: /var/lib/data/foo.json volumeMounts: - mountPath: /var/lib/data/foo.json subPath: foo.json name: some-injected-file {{- end}} volumes: - name: some-injected-file downwardAPI: items: - path: foo.json fieldRef: fieldPath: "metadata.annotations['foo']" <|endoftext|> # istio_mix-backend-policy.yaml apiVersion: gateway.networking.k8s.io/v1 kind: BackendTLSPolicy metadata: name: tls-upstream-echo namespace: default spec: targetRefs: - kind: Service name: echo group: "" validation: caCertificateRefs: - kind: ConfigMap name: auth-cert group: "" hostname: auth.example.com --- # A redundant policy for the same service apiVersion: gateway.networking.k8s.io/v1 kind: BackendTLSPolicy metadata: name: tls-upstream-echo-extra namespace: default spec: targetRefs: - kind: Service name: echo group: "" validation: subjectAltNames: - type: Hostname hostname: "extra.com" caCertificateRefs: - kind: ConfigMap name: auth-cert group: "" hostname: auth-extra.example.com --- apiVersion: gateway.networking.x-k8s.io/v1alpha1 kind: XBackendTrafficPolicy metadata: name: lb-policy namespace: default spec: targetRefs: - kind: Service name: echo group: "" sessionPersistence: sessionName: foo absoluteTimeout: 1h type: Cookie cookieConfig: lifetimeType: Permanent <|endoftext|> # helm_charts_metrics-service.yaml {{- if .Values.metrics.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "hazelcast-jet.fullname" . }}-metrics labels: app.kubernetes.io/name: {{ template "hazelcast-jet.name" . }} helm.sh/chart: {{ template "hazelcast-jet.chart" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" app.kubernetes.io/managed-by: "{{ .Release.Service }}" annotations: {{ toYaml .Values.metrics.service.annotations | indent 4 }} spec: type: {{ .Values.metrics.service.type }} selector: app.kubernetes.io/name: {{ template "hazelcast-jet.name" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" ports: - protocol: TCP port: {{ .Values.metrics.service.port }} targetPort: metrics name: metrics {{- end }} <|endoftext|> # istio_exit-if-sds-socket-not-found.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 45534 releaseNotes: - | **Added** support for a flag called USE_EXTERNAL_WORKLOAD_SDS, when set to true, it will require an external SDS workload socket and it will prevent the istio-proxy from starting if the workload SDS socket is not found. <|endoftext|> # argocd_source_argocd-commit-server-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/name: argocd-commit-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: commit-server name: argocd-commit-server spec: ports: - name: server protocol: TCP port: 8086 targetPort: 8086 - name: metrics protocol: TCP port: 8087 targetPort: 8087 selector: app.kubernetes.io/name: argocd-commit-server <|endoftext|> # argocd_source_argocd-manager-sa-token.yaml apiVersion: v1 data: ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM1ekNDQWMrZ0F3SUJBZ0lCQVRBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwdGFXNXAKYTNWaVpVTkJNQjRYRFRFNE1USXdOakF4TXpnME1Gb1hEVEk0TVRJd05EQXhNemcwTUZvd0ZURVRNQkVHQTFVRQpBeE1LYldsdWFXdDFZbVZEUVRDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBS2RICkxWSGkwSnh4M1dYVkpueVdJck15djJZUThPWll5YzJpSHBSSVZ4eHlGdENnTVJqVEo1T3IxcTVoUG9XeGhrb1YKeFduUThWWFBGdlpNNUtTcS9Ocis5UGJ2WHlrdFdBaDZaYkVrM2s3S29taXorQk9CSjhMdkh6OHNicDRMQ2VnZwpHLzZ4aGRNWlNUL1VhNlFYbjhTQzBoRFBTSE4vdVpDb1dxWHlqdE5sdnJCeU81di9LZ3dXWjkvcGFnbmtmck1sCk5Qemh5Q2taK0pHSTR5THBtc3VBMnBYMTQrRXdhY2N1OGZmWUhOYitkMnJnZWltSTFmNytPaGRHRUtlTG5lamEKQm90NTZodnpYRWNoTjRJNS9nOU1CbXZOenhabndPbmVrUllOVDQvTHlwaUJEZU5UR1JlZWhybHlzaUVBcldJQgpPb3U0ZFBYbE5RblVmYTBPVVprQ0F3RUFBYU5DTUVBd0RnWURWUjBQQVFIL0JBUURBZ0trTUIwR0ExVWRKUVFXCk1CUUdDQ3NHQVFVRkJ3TUNCZ2dyQmdFRkJRY0RBVEFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQTBHQ1NxR1NJYjMKRFFFQkN3VUFBNElCQVFBTldRcUE1Q2UrR1N4WVVmNTg4bm91ZzNhZVJZZnBLZXIvSnlvazM4TzFKeFlLK2IydApxWGtIdFU0VmpRWFdGNEp6RG9sMlo1bDRSYzRVUWl5QlVUQk1ieS8vY2NGUnVYcER5R3ROQTNnU1hURG9YMjkzCk5SUUlPZndDTlFDUEJjbEpCN3d5YzRqZlZLWWxheXpkOGRuN0V6LzhNNmJXYUlIRWwxcEd0L21XZXZMZXoxUjQKdEhzbXA2RlY5d1lIckFaQyttaFMzOUVFc1lBRjBBdlVtUkFseU5GN1J4ZVdzRG14ZVVDUG9iQnd2Z0ppeGdJWQpqakZiWEk1ang1cEVlSnZnTVcvQmFMRHNpQlVWVnMvZnYzRGdjZkwzMm0zR1hiUHVzRHN0OGs1ZmYvWjV1UkdVCkJaVGtFeUxuUG9vM1pVRDhXZmI5T2x1MXhNSklnYlY5d3NuYwotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg== namespace: a3ViZS1zeXN0ZW0= token: ZXlKaGJHY2lPaUpTVXpJMU5pSXNJbXRwWkNJNklpSjkuZXlKcGMzTWlPaUpyZFdKbGNtNWxkR1Z6TDNObGNuWnBZMlZoWTJOdmRXNTBJaXdpYTNWaVpYSnVaWFJsY3k1cGJ5OXpaWEoyYVdObFlXTmpiM1Z1ZEM5dVlXMWxjM0JoWTJVaU9pSnJkV0psTFhONWMzUmxiU0lzSW10MVltVnlibVYwWlhNdWFXOHZjMlZ5ZG1salpXRmpZMjkxYm5RdmMyVmpjbVYwTG01aGJXVWlPaUpoY21kdlkyUXRiV0Z1WVdkbGNpMTBiMnRsYmkxMGFqYzVjaUlzSW10MVltVnlibVYwWlhNdWFXOHZjMlZ5ZG1salpXRmpZMjkxYm5RdmMyVnlkbWxqWlMxaFkyTnZkVzUwTG01aGJXVWlPaUpoY21kdlkyUXRiV0Z1WVdkbGNpSXNJbXQxWW1WeWJtVjBaWE11YVc4dmMyVnlkbWxqWldGalkyOTFiblF2YzJWeWRtbGpaUzFoWTJOdmRXNTBMblZwWkNJNklqa3haR1F6TjJObUxUaGtPVEl0TVRGbE9TMWhNRGt4TFdRMk5XWXlZV1UzWm1FNFpDSXNJbk4xWWlJNkluTjVjM1JsYlRwelpYSjJhV05sWVdOamIzVnVkRHByZFdKbExYTjVjM1JsYlRwaGNtZHZZMlF0YldGdVlXZGxjaUo5Lnl0Wmp0MnBEVjgtQTdEQk1SMDZ6UTN3dDljdVZFZnEyNjJUUXc3c2RyYS1LUnBEcE1QbnppTWhjOGJrd3ZnVy1MR2hUV1VoNWl1MXktMVFoRXg2bXRiQ3Q3dlFBcmxCUnhmdk01eXM2Q2xGa3BsenE1YzJUdFo3RXpHU0QwVXA3dGR4dUc5ZHZSNlRHWFlkZkZjRzc3OXlDZFpvMkg0OHN6NU9TSmZkRXJpZHVNRVkxaUw1c3VaZDNlYk9vVmkxZkdmbG1xRkVrWlg2U3Z4a29Bcmw1bXROUDZUdloxZVRjbjY0eGg0d3MxNTJoeGlvNDJFLWVTbmxfQ0VUNHRwQjV2Z1A1QlZsU0tXMnhCN3cyR0p4cWRFVEE1TEpSSV9PaWxZNzdkVE9wOGNNcl9DazNFT2VkYTN6SGZoNE9rZmxnOHJaRkVlQXVKWWFoUU5lQUlMTGtjQQ== kind: Secret metadata: annotations: kubernetes.io/service-account.name: argocd-manager kubernetes.io/service-account.uid: 91dd37cf-8d92-11e9-a091-d65f2ae7fa8d creationTimestamp: "2019-06-13T04:30:24Z" name: argocd-manager-long-lived-token namespace: kube-system resourceVersion: "133010" selfLink: /api/v1/namespaces/kube-system/secrets/argocd-manager-token-tj79r uid: f657d67e-8d93-11e9-a091-d65f2ae7fa8d type: kubernetes.io/service-account-token <|endoftext|> # kube_prometheus_blackboxExporter-clusterRole.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.28.0 name: blackbox-exporter rules: - apiGroups: - authentication.k8s.io resources: - tokenreviews verbs: - create - apiGroups: - authorization.k8s.io resources: - subjectaccessreviews verbs: - create <|endoftext|> # istio_backend-lb-policy.yaml apiVersion: gateway.networking.x-k8s.io/v1alpha1 kind: XBackendTrafficPolicy metadata: name: lb-policy namespace: default spec: targetRefs: - group: "" kind: Service name: echo retryConstraint: minRetryRate: interval: "1s" count: 5 budget: percent: 30 interval: "10s" sessionPersistence: sessionName: foo absoluteTimeout: 1h type: Cookie cookieConfig: lifetimeType: Permanent <|endoftext|> # istio_45734.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 44985 releaseNotes: - | **Added** support for K8s controller queue metrics, enabled by setting env variable `ISTIO_ENABLE_CONTROLLER_QUEUE_METRICS` as `true`. <|endoftext|> # k8s_examples_redis-master.yaml apiVersion: v1 kind: Pod metadata: labels: name: redis redis-sentinel: "true" role: master name: redis-master spec: containers: - name: master image: registry.k8s.io/redis:v1 env: - name: MASTER value: "true" ports: - containerPort: 6379 resources: limits: cpu: "0.1" volumeMounts: - mountPath: /redis-master-data name: data - name: sentinel image: registry.k8s.io/redis:v1 env: - name: SENTINEL value: "true" ports: - containerPort: 26379 volumes: - name: data emptyDir: {} <|endoftext|> # istio_53998.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 53949 releaseNotes: - | **Fixed** DNS traffic (UDP and TCP) is now affected by traffic annotations like `traffic.sidecar.istio.io/excludeOutboundIPRanges` and `traffic.sidecar.istio.io/excludeOutboundPorts`. Before, UDP/DNS traffic would uniquely ignore these traffic annotations, even if a DNS port was specified, because of the rule structure. The behavior change actually happened in the 1.23 release series, but was left out of the release notes for 1.23. upgradeNotes: - title: DNS traffic (TCP and UDP) now respects traffic exclusion annotations content: | DNS traffic (UDP and TCP) now respects pod-level traffic annotations like `traffic.sidecar.istio.io/excludeOutboundIPRanges` and `traffic.sidecar.istio.io/excludeOutboundPorts`. Before, UDP/DNS traffic would uniquely ignore these traffic annotations, even if a DNS port was specified, because of the rule structure. The behavior change actually happened in the 1.23 release series, but was left out of the release notes for 1.23. <|endoftext|> # istio_kubernetes-ingress-prefix.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** a bug in Kubernetes Ingress causing paths with prefixes of the form `/foo` to match the route `/foo/` but not the route `/foo`. <|endoftext|> # istio_rolebinding.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} # Created if this is not a remote istiod, OR if it is and is also a config cluster {{- if or (not .Values.istiodRemote.enabled) (and .Values.istiodRemote.enabled (or .Values.global.configCluster .Values.istiodRemote.enabledLocalInjectorIstiod)) }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: istiod{{- if not (eq .Values.revision "")}}-{{ .Values.revision }}{{- end }} namespace: {{ .Values.global.istioNamespace }} labels: app: istiod release: {{ .Release.Name }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: istiod{{- if not (eq .Values.revision "")}}-{{ .Values.revision }}{{- end }} subjects: - kind: ServiceAccount name: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} namespace: {{ .Values.global.istioNamespace }} {{- end }} {{- end }} <|endoftext|> # istio_53120.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 53120 releaseNotes: - | **Added** Add initContainers to the istio-discovery helm chart <|endoftext|> # helm_charts_master-statefulset.yaml apiVersion: {{ template "mariadb.statefulset.apiVersion" . }} kind: StatefulSet metadata: name: {{ template "master.fullname" . }} labels: app: {{ template "mariadb.name" . }} chart: {{ template "mariadb.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: master spec: selector: matchLabels: app: {{ template "mariadb.name" . }} release: {{ .Release.Name }} component: master serviceName: {{ template "master.fullname" . }} replicas: 1 updateStrategy: type: {{ .Values.master.updateStrategy.type }} {{- if (eq "Recreate" .Values.master.updateStrategy.type) }} rollingUpdate: null {{- end }} template: metadata: {{- with .Values.master.annotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} labels: app: {{ template "mariadb.name" . }} chart: {{ template "mariadb.chart" . }} release: {{ .Release.Name }} component: master spec: {{- if .Values.schedulerName }} schedulerName: {{ .Values.schedulerName | quote }} {{- end }} serviceAccountName: {{ template "mariadb.serviceAccountName" . }} {{- if .Values.securityContext.enabled }} securityContext: fsGroup: {{ .Values.securityContext.fsGroup }} runAsUser: {{ .Values.securityContext.runAsUser }} {{- end }} {{- if eq .Values.master.antiAffinity "hard" }} affinity: {{- with .Values.master.affinity }} {{ toYaml . | indent 8 }} {{- end }} podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ template "mariadb.name" . }} release: {{ .Release.Name }} {{- else if eq .Values.master.antiAffinity "soft" }} affinity: {{- with .Values.master.affinity }} {{ toYaml . | indent 8 }} {{- end }} podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 podAffinityTerm: topologyKey: kubernetes.io/hostname labelSelector: matchLabels: app: {{ template "mariadb.name" . }} release: {{ .Release.Name }} {{- else}} {{- with .Values.master.affinity }} affinity: {{ toYaml . | nindent 8 }} {{- end }} {{- end }} {{- if .Values.master.nodeSelector }} nodeSelector: {{ toYaml .Values.master.nodeSelector | nindent 8 }} {{- end -}} {{- with .Values.master.tolerations }} tolerations: {{ toYaml . | nindent 8 }} {{- end }} {{- include "mariadb.imagePullSecrets" . | indent 6 }} initContainers: {{- if .Values.master.extraInitContainers }} {{ tpl .Values.master.extraInitContainers . | indent 8 }} {{- end }} {{- if and .Values.volumePermissions.enabled .Values.master.persistence.enabled }} - name: volume-permissions image: {{ template "mariadb.volumePermissions.image" . }} imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} command: ["chown", "-R", "{{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }}", "{{ .Values.master.persistence.mountPath }}"] securityContext: runAsUser: 0 resources: {{ toYaml .Values.volumePermissions.resources | nindent 12 }} volumeMounts: - name: data mountPath: {{ .Values.master.persistence.mountPath }} {{- end }} containers: - name: "mariadb" image: {{ template "mariadb.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: {{- if .Values.image.debug}} - name: BITNAMI_DEBUG value: "true" {{- end }} {{- if .Values.master.extraFlags }} - name: MARIADB_EXTRA_FLAGS value: "{{ .Values.master.extraFlags }}" {{- end }} {{- if .Values.rootUser.injectSecretsAsVolume }} - name: MARIADB_ROOT_PASSWORD_FILE value: "/opt/bitnami/mariadb/secrets/mariadb-root-password" {{- else }} - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.secretName" . }} key: mariadb-root-password {{- end }} {{- if not (empty .Values.db.user) }} - name: MARIADB_USER value: "{{ .Values.db.user }}" {{- if .Values.db.injectSecretsAsVolume }} - name: MARIADB_PASSWORD_FILE value: "/opt/bitnami/mariadb/secrets/mariadb-password" {{- else }} - name: MARIADB_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.secretName" . }} key: mariadb-password {{- end }} {{- end }} - name: MARIADB_DATABASE value: "{{ .Values.db.name }}" {{- if .Values.replication.enabled }} - name: MARIADB_REPLICATION_MODE value: "master" - name: MARIADB_REPLICATION_USER value: "{{ .Values.replication.user }}" {{- if .Values.replication.injectSecretsAsVolume }} - name: MARIADB_REPLICATION_PASSWORD_FILE value: "/opt/bitnami/mariadb/secrets/mariadb-replication-password" {{- else }} - name: MARIADB_REPLICATION_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.secretName" . }} key: mariadb-replication-password {{- end }} {{- end }} {{- if .Values.master.extraEnvVars }} {{- tpl (toYaml .Values.master.extraEnvVars) $ | nindent 12 }} {{- end }} ports: - name: mysql containerPort: 3306 {{- if .Values.master.livenessProbe.enabled }} livenessProbe: exec: command: - sh - -c - | password_aux="${MARIADB_ROOT_PASSWORD:-}" if [ -f "${MARIADB_ROOT_PASSWORD_FILE:-}" ]; then password_aux=$(cat $MARIADB_ROOT_PASSWORD_FILE) fi mysqladmin status -uroot -p$password_aux initialDelaySeconds: {{ .Values.master.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.master.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.master.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.master.livenessProbe.successThreshold }} failureThreshold: {{ .Values.master.livenessProbe.failureThreshold }} {{- end }} {{- if .Values.master.readinessProbe.enabled }} readinessProbe: exec: command: - sh - -c - | password_aux="${MARIADB_ROOT_PASSWORD:-}" if [ -f "${MARIADB_ROOT_PASSWORD_FILE:-}" ]; then password_aux=$(cat $MARIADB_ROOT_PASSWORD_FILE) fi mysqladmin status -uroot -p$password_aux initialDelaySeconds: {{ .Values.master.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.master.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.master.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.master.readinessProbe.successThreshold }} failureThreshold: {{ .Values.master.readinessProbe.failureThreshold }} {{- end }} {{- if .Values.master.resources }} resources: {{ toYaml .Values.master.resources | nindent 12 }} {{- end }} volumeMounts: - name: data mountPath: {{ .Values.master.persistence.mountPath }} {{- if .Values.master.persistence.subPath }} subPath: {{ .Values.master.persistence.subPath }} {{- end }} {{- if or (.Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql,sql.gz}") .Values.initdbScriptsConfigMap .Values.initdbScripts }} - name: custom-init-scripts mountPath: /docker-entrypoint-initdb.d {{- end }} {{- if .Values.master.config }} - name: config mountPath: /opt/bitnami/mariadb/conf/my.cnf subPath: my.cnf {{- end }} {{- if or .Values.rootUser.injectSecretsAsVolume .Values.db.injectSecretsAsVolume .Values.replication.injectSecretsAsVolume }} - name: mariadb-credentials mountPath: /opt/bitnami/mariadb/secrets/ {{- end }} {{- if .Values.metrics.enabled }} - name: metrics image: {{ template "mariadb.metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} env: {{- if .Values.rootUser.injectSecretsAsVolume }} - name: MARIADB_ROOT_PASSWORD_FILE value: "/opt/bitnami/mysqld-exporter/secrets/mariadb-root-password" {{- else }} - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.secretName" . }} key: mariadb-root-password {{- end }} command: - sh - -c - | password_aux="${MARIADB_ROOT_PASSWORD:-}" if [ -f "${MARIADB_ROOT_PASSWORD_FILE:-}" ]; then password_aux=$(cat $MARIADB_ROOT_PASSWORD_FILE) fi DATA_SOURCE_NAME="root:${password_aux}@(localhost:3306)/" /bin/mysqld_exporter {{- range .Values.metrics.extraArgs.master }} {{ . }} {{- end }} ports: - name: metrics containerPort: 9104 {{- if .Values.metrics.livenessProbe.enabled }} livenessProbe: httpGet: path: /metrics port: metrics initialDelaySeconds: {{ .Values.metrics.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.metrics.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.metrics.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.metrics.livenessProbe.successThreshold }} failureThreshold: {{ .Values.metrics.livenessProbe.failureThreshold }} {{- end }} {{- if .Values.metrics.readinessProbe.enabled }} readinessProbe: httpGet: path: /metrics port: metrics initialDelaySeconds: {{ .Values.metrics.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.metrics.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.metrics.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.metrics.readinessProbe.successThreshold }} failureThreshold: {{ .Values.metrics.readinessProbe.failureThreshold }} {{- end }} {{- if .Values.metrics.resources }} resources: {{ toYaml .Values.metrics.resources | nindent 12 }} {{- end }} {{- if .Values.rootUser.injectSecretsAsVolume }} volumeMounts: - name: mariadb-credentials mountPath: /opt/bitnami/mysqld-exporter/secrets/ {{- end }} {{- end }} volumes: {{- if .Values.master.config }} - name: config configMap: name: {{ template "master.fullname" . }} {{- end }} {{- if or (.Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql,sql.gz}") .Values.initdbScriptsConfigMap .Values.initdbScripts }} - name: custom-init-scripts configMap: name: {{ template "mariadb.initdbScriptsCM" . }} {{- end }} {{- if or .Values.rootUser.injectSecretsAsVolume .Values.db.injectSecretsAsVolume .Values.replication.injectSecretsAsVolume }} - name: mariadb-credentials secret: secretName: {{ template "mariadb.fullname" . }} items: {{- if .Values.rootUser.injectSecretsAsVolume }} - key: mariadb-root-password path: mariadb-root-password {{- end }} {{- if .Values.db.injectSecretsAsVolume }} - key: mariadb-password path: mariadb-password {{- end }} {{- if and .Values.replication.enabled .Values.replication.injectSecretsAsVolume }} - key: mariadb-replication-password path: mariadb-replication-password {{- end }} {{- end }} {{- if and .Values.master.persistence.enabled .Values.master.persistence.existingClaim }} - name: data persistentVolumeClaim: claimName: {{ .Values.master.persistence.existingClaim }} {{- else if not .Values.master.persistence.enabled }} - name: data emptyDir: {} {{- else if and .Values.master.persistence.enabled (not .Values.master.persistence.existingClaim) }} volumeClaimTemplates: - metadata: name: data labels: app: "{{ template "mariadb.name" . }}" component: "master" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: accessModes: {{- range .Values.master.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.master.persistence.size | quote }} {{ include "mariadb.master.storageClass" . }} {{- end }} <|endoftext|> # istio_bookinfo-ratings-v2.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-ratings-v2 --- apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v2 labels: app: ratings version: v2 spec: replicas: 1 selector: matchLabels: app: ratings version: v2 template: metadata: labels: app: ratings version: v2 spec: serviceAccountName: bookinfo-ratings-v2 containers: - name: ratings image: registry.istio.io/release/examples-bookinfo-ratings-v2:1.20.3 imagePullPolicy: IfNotPresent env: # ratings-v2 will use mongodb as the default db backend. # if you would like to use mysqldb then set DB_TYPE = 'mysql', set # the rest of the parameters shown here and also create the # mysqldb service using bookinfo-mysql.yaml # - name: DB_TYPE #default to # value: "mysql" # - name: MYSQL_DB_HOST # value: mysqldb # - name: MYSQL_DB_PORT # value: "3306" # - name: MYSQL_DB_USER # value: root # - name: MYSQL_DB_PASSWORD # value: password - name: MONGO_DB_URL value: mongodb://mongodb:27017/test ports: - containerPort: 9080 --- <|endoftext|> # istio_57878.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 57878 releaseNotes: - | **Fixed** the issue when sidecars try to route requests to ambient E/W gateways incorrectly. <|endoftext|> # helm_charts_engine_configmap.yaml kind: ConfigMap apiVersion: v1 metadata: name: {{ template "anchore-engine.fullname" . }} labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} data: config.yaml: | # Anchore Service Configuration File from ConfigMap service_dir: {{ .Values.anchoreGlobal.serviceDir }} tmp_dir: {{ .Values.anchoreGlobal.scratchVolume.mountPath }} log_level: {{ .Values.anchoreGlobal.logLevel }} image_analyze_timeout_seconds: {{ .Values.anchoreGlobal.imageAnalyzeTimeoutSeconds }} cleanup_images: {{ .Values.anchoreGlobal.cleanupImages }} allow_awsecr_iam_auto: {{ .Values.anchoreGlobal.allowECRUseIAMRole }} host_id: "${ANCHORE_POD_NAME}" internal_ssl_verify: {{ .Values.anchoreGlobal.internalServicesSsl.verifyCerts }} auto_restart_services: false {{- if .Values.anchoreEnterpriseGlobal.enabled }} license_file: /home/anchore/license.yaml {{- end }} global_client_connect_timeout: {{ default 0 .Values.anchoreGlobal.clientConnectTimeout }} global_client_read_timeout: {{ default 0 .Values.anchoreGlobal.clientReadTimeout }} metrics: enabled: {{ .Values.anchoreGlobal.enableMetrics }} auth_disabled: {{ .Values.anchoreGlobal.metricsAuthDisabled }} {{ if .Values.anchoreGlobal.webhooksEnabled }} webhooks: {{- toYaml .Values.anchoreGlobal.webhooks | nindent 6 }} {{ end }} # Configure what feeds to sync. # The sync will hit http://ancho.re/feeds, if any outbound firewall config needs to be set in your environment. feeds: sync_enabled: true selective_sync: # If enabled only sync specific feeds instead of all that are found. enabled: true feeds: {{- if not .Values.anchoreEnterpriseGlobal.enabled }} github: {{ default "true" .Values.anchoreGlobal.syncGithub }} {{- end }} # Vulnerabilities feed is the feed for distro cve sources (redhat, debian, ubuntu, oracle, alpine....) vulnerabilities: {{ default "true" .Values.anchoreGlobal.syncVulnerabilites }} # NVD Data is used for non-distro CVEs (jars, npm, etc) that are not packaged and released by distros as rpms, debs, etc nvdv2: {{ default "true" .Values.anchoreGlobal.syncNvd }} # Warning: enabling the package sync causes the service to require much # more memory to do process the significant data volume. We recommend at least 4GB available for the container {{- if and (and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseFeeds.enabled) (or .Values.anchoreEnterpriseFeeds.gemDriverEnabled .Values.anchoreEnterpriseFeeds.npmDriverEnabled) }} packages: true {{- else }} packages: {{ default "false" .Values.anchoreGlobal.syncPackages }} {{- end }} # Enabling vulndb syncs vulndb vulnerability data from an on-premise anchore enterprise feeds service. Please contact # anchore support for finding out more about this service {{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseFeeds.enabled }} vulndb: {{ default "true" .Values.anchoreEnterpriseFeeds.vulndbDriverEnabled }} # Enabling microsoft syncs MSRC data from an on-premise anchore enterprise feeds service. Please contact # anchore support for finding out more about this service microsoft: {{ .Values.anchoreEnterpriseFeeds.msrcDriverEnabled }} {{- else }} vulndb: false microsoft: false {{- end }} # Sync github data if available for GHSA matches github: {{ default "true" .Values.anchoreGlobal.syncGithub }} {{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseFeeds.enabled }} {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} url: "https://{{- template "anchore-engine.enterprise-feeds.fullname" . }}:{{- .Values.anchoreEnterpriseFeeds.service.port }}/v1/feeds" {{- else }} url: "http://{{- template "anchore-engine.enterprise-feeds.fullname" . }}:{{- .Values.anchoreEnterpriseFeeds.service.port }}/v1/feeds" {{- end }} ssl_verify: {{ .Values.anchoreGlobal.internalServicesSsl.verifyCerts }} client_url: token_url: {{- else }} client_url: "https://ancho.re/v1/account/users" token_url: "https://ancho.re/oauth/token" anonymous_user_username: anon@ancho.re anonymous_user_password: pbiU2RYZ2XrmYQ {{- end }} connection_timeout_seconds: {{ default 3 .Values.anchoreGlobal.feedsConnectionTimeout }} read_timeout_seconds: {{ default 180 .Values.anchoreGlobal.feedsReadTimeout }} default_admin_password: ${ANCHORE_ADMIN_PASSWORD} default_admin_email: {{ .Values.anchoreGlobal.defaultAdminEmail }} # Locations for keys used for signing and encryption. Only one of 'secret' or 'public_key_path'/'private_key_path' needs to be set. If all are set then the keys take precedence over the secret value # Secret is for a shared secret and if set, all components in anchore should have the exact same value in their configs. keys: secret: {{ .Values.anchoreGlobal.saml.secret }} {{- with .Values.anchoreGlobal.saml.publicKeyName }} public_key_path: /home/anchore/certs/{{- . }} {{- end }} {{- with .Values.anchoreGlobal.saml.privateKeyName }} private_key_path: /home/anchore/certs/{{- . }} {{- end }} # Configuring supported user authentication and credential management user_authentication: oauth: enabled: {{ .Values.anchoreGlobal.oauthEnabled }} default_token_expiration_seconds: {{ .Values.anchoreGlobal.oauthTokenExpirationSeconds }} # Set this to True to enable storing user passwords only as secure hashes in the db. This can dramatically increase CPU usage if you # don't also use oauth and tokens for internal communications (which requires keys/secret to be configured as well) # WARNING: you should not change this after a system has been initialized as it may cause a mismatch in existing passwords hashed_passwords: {{ .Values.anchoreGlobal.hashedPasswords }} credentials: database: {{- if .Values.anchoreGlobal.dbConfig.ssl }} db_connect: "postgresql://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME}?sslmode={{- .Values.anchoreGlobal.dbConfig.sslMode -}}&sslrootcert=/home/anchore/certs/{{- .Values.anchoreGlobal.dbConfig.sslRootCertName -}}" {{- else }} db_connect: "postgresql://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME}" {{- end }} db_connect_args: timeout: {{ .Values.anchoreGlobal.dbConfig.timeout }} ssl: false db_pool_size: {{ .Values.anchoreGlobal.dbConfig.connectionPoolSize }} db_pool_max_overflow: {{ .Values.anchoreGlobal.dbConfig.connectionPoolMaxOverflow }} services: apiext: enabled: true require_auth: true endpoint_hostname: {{ template "anchore-engine.api.fullname" . }} listen: 0.0.0.0 port: {{ .Values.anchoreApi.service.port }} {{- if .Values.anchoreApi.external }} {{- if .Values.anchoreApi.external.use_tls }} external_tls: {{ .Values.anchoreApi.external.use_tls }} {{- end }} {{- if .Values.anchoreApi.external.hostname }} external_hostname: {{ .Values.anchoreApi.external.hostname }} {{- end }} external_port: {{ .Values.anchoreApi.external.port | default "null" }} {{- end }} {{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseRbac.enabled }} authorization_handler: external authorization_handler_config: endpoint: "http://localhost:{{- .Values.anchoreEnterpriseRbac.service.authPort }}" {{- end }} {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_enable: {{ .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_cert: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}" ssl_key: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}" {{- end }} analyzer: enabled: true require_auth: true endpoint_hostname: {{ template "anchore-engine.analyzer.fullname" . }} listen: 0.0.0.0 port: {{ .Values.anchoreAnalyzer.containerPort }} cycle_timer_seconds: 1 cycle_timers: {{- toYaml .Values.anchoreAnalyzer.cycleTimers | nindent 10 }} max_threads: {{ .Values.anchoreAnalyzer.concurrentTasksPerWorker }} analyzer_driver: 'nodocker' {{- if gt .Values.anchoreAnalyzer.layerCacheMaxGigabytes 0.0 }} layer_cache_enable: true {{- else }} layer_cache_enable: false {{- end }} layer_cache_max_gigabytes: {{ .Values.anchoreAnalyzer.layerCacheMaxGigabytes }} {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_enable: {{ .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_cert: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}" ssl_key: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}" {{- end }} catalog: enabled: true require_auth: true endpoint_hostname: {{ template "anchore-engine.catalog.fullname" . }} listen: 0.0.0.0 port: {{ .Values.anchoreCatalog.service.port }} cycle_timer_seconds: 1 cycle_timers: # Interval to check for an update to a tag image_watcher: {{ .Values.anchoreCatalog.cycleTimers.image_watcher }} # Interval to run a policy evaluation on images with the policy_eval subscription activated. policy_eval: {{ .Values.anchoreCatalog.cycleTimers.policy_eval }} # Interval to run a vulnerability scan on images with the vuln_update subscription activated. vulnerability_scan: {{ .Values.anchoreCatalog.cycleTimers.vulnerability_scan }} # Interval at which the catalog looks for new work to put on the image analysis queue. analyzer_queue: {{ .Values.anchoreCatalog.cycleTimers.analyzer_queue }} # Interval notifications will be processed for state changes {{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseNotifications.enabled }} notifications: 0 {{- else }} notifications: {{ .Values.anchoreCatalog.cycleTimers.notifications }} {{- end }} # Intervals service state updates are polled for the system status service_watcher: {{ .Values.anchoreCatalog.cycleTimers.service_watcher }} # Interval between checks to repo for new tags repo_watcher: {{ .Values.anchoreCatalog.cycleTimers.repo_watcher }} event_log: {{- toYaml .Values.anchoreCatalog.events | nindent 10 }} archive: {{- toYaml .Values.anchoreCatalog.archive | nindent 10 }} {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_enable: {{ .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_cert: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}" ssl_key: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}" {{- end }} simplequeue: enabled: true require_auth: true endpoint_hostname: {{ template "anchore-engine.simplequeue.fullname" . }} listen: 0.0.0.0 port: {{ .Values.anchoreSimpleQueue.service.port }} {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_enable: {{ .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_cert: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}" ssl_key: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}" {{- end }} policy_engine: enabled: true require_auth: true endpoint_hostname: {{ template "anchore-engine.policy-engine.fullname" . }} listen: 0.0.0.0 port: {{ .Values.anchorePolicyEngine.service.port }} cycle_timer_seconds: 1 cycle_timers: {{- toYaml .Values.anchorePolicyEngine.cycleTimers | nindent 10 }} {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_enable: {{ .Values.anchoreGlobal.internalServicesSsl.enabled }} ssl_cert: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}" ssl_key: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretKeyName }}" {{- end }} <|endoftext|> # istio_hello-probes.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 livenessProbe: httpGet: port: http readinessProbe: httpGet: port: 3333 lifecycle: preStop: httpGet: port: 91 postStart: tcpSocket: port: 93 - name: world image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 90 livenessProbe: httpGet: port: http readinessProbe: exec: command: - cat - /tmp/healthy <|endoftext|> # istio_pq-memory-leak.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue causing memory to not be freed after XDS clients disconnect. <|endoftext|> # istio_injector-selectors.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 30013 releaseNotes: - | **Improved** the sidecar injector to better utilize pod labels to determine if injection is required. upgradeNotes: - title: Sidecar Injector Changes content: | The logic to determine if a pod requires sideacr injection or not has been updated to make use of new Kubernetes features. Previously, the webhook was triggered at a coarse grain level, selecting any pods in a namespace with a matching `istio-injection=enabled` label. This has two limitations: * Opting out individual pods with the `sidecar.istio.io/inject` label would still trigger the webhook, only to be filtered out by Istio. This can have the unexpected impact of adding a dependency on Istio when one is not expected. * There is no way to opt-in an individual pod, with `sidecar.istio.io/inject`, without enabling injection for the entire namespace. These limitations have both been resolved. As a result, additional pods may be injected that were not in previous versions, if they exist in a namespace without an `istio-injection` label set but have the `sidecar.istio.io/inject` label set on the pod. This is expected to be an uncommon case, so for most users there will be no behavioral changes to existing pods. If this behavior is not desired, it can be temporarily disabled with `--set values.sidecarInjectorWebhook.useLegacySelectors=true`. This option will be removed in future releases. See the updated [Automatic sidecar injection](/docs/setup/additional-setup/sidecar-injection/) documentation for more information. <|endoftext|> # grafana_charts_tokengen-job.yaml {{ if .Values.tokengenJob.enable }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "enterprise-metrics.fullname" . }}-tokengen labels: app: {{ template "enterprise-metrics.name" . }}-tokengen chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: {{- if .Values.tokengenJob.annotations }} {{- toYaml .Values.tokengenJob.annotations | nindent 4 }} {{- end }} "helm.sh/hook": post-install spec: backoffLimit: 6 completions: 1 parallelism: 1 selector: template: metadata: labels: app: {{ template "enterprise-metrics.name" . }}-tokengen # The name label is important for cortex-mixin compatibility which expects certain names for services. name: tokengen target: tokengen release: {{ .Release.Name }} spec: serviceAccountName: {{ template "enterprise-metrics.serviceAccountName" . }} {{- if .Values.tokengenJob.priorityClassName }} priorityClassName: {{ .Values.tokengenJob.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.tokengenJob.securityContext | nindent 8 }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} {{- with .Values.tokengenJob.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: {{- toYaml .Values.tokengenJob.initContainers | nindent 8 }} containers: - name: tokengen image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - "-target=tokengen" - "-config.file=/etc/enterprise-metrics/enterprise-metrics.yaml" {{- if .Values.minio.enabled }} - -admin.client.backend-type=s3 - -admin.client.s3.endpoint={{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000 - -admin.client.s3.bucket-name=enterprise-metrics-admin - -admin.client.s3.access-key-id=enterprise-metrics - -admin.client.s3.secret-access-key=supersecret - -admin.client.s3.insecure=true {{- end }} {{- range $key, $value := .Values.tokengenJob.extraArgs }} - "-{{ $key }}={{ $value }}" {{- end }} volumeMounts: {{- if .Values.tokengenJob.extraVolumeMounts }} {{ toYaml .Values.tokengenJob.extraVolumeMounts | nindent 12 }} {{- end }} - name: config mountPath: /etc/enterprise-metrics - name: license mountPath: /license env: {{- if .Values.tokengenJob.env }} {{ toYaml .Values.tokengenJob.env | nindent 12 }} {{- end }} restartPolicy: OnFailure volumes: - name: config secret: {{- if .Values.useExternalConfig }} secretName: {{ .Values.externalConfigSecretName }} {{- else }} secretName: {{ template "enterprise-metrics.fullname" . }} {{- end }} {{- if .Values.tokengenJob.extraVolumes }} {{ toYaml .Values.tokengenJob.extraVolumes | nindent 8 }} {{- end }} - name: license secret: secretName: {{ .Values.license.secretName }} - name: storage emptyDir: {} {{- end }} <|endoftext|> # argocd_source_list-and-list.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: list-and-list namespace: argocd spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - matrix: generators: - list: elements: - cluster: engineering-dev url: https://kubernetes.default.svc values: project: default - cluster: engineering-prod url: https://kubernetes.default.svc values: project: default - list: elements: - values: suffix: '1' - values: suffix: '2' template: metadata: name: '{{.cluster}}-{{.values.suffix}}' spec: project: '{{.values.project}}' source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: '{{.path.path}}' destination: server: '{{.url}}' namespace: '{{.path.basename}}' <|endoftext|> # argocd_source_healthyApplicationSet.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-git namespace: argocd spec: generators: - merge: generators: - clusters: values: kafka: "true" redis: "false" - clusters: selector: matchLabels: use-kafka: "false" values: kafka: "false" - list: elements: - name: minikube values.redis: "true" mergeKeys: - name template: metadata: name: '{{name}}' spec: destination: namespace: default server: '{{server}}' project: default source: helm: parameters: - name: kafka value: '{{values.kafka}}' - name: redis value: '{{values.redis}}' path: helm-guestbook repoURL: https://github.com/argoproj/argocd-example-apps/ targetRevision: HEAD status: conditions: - lastTransitionTime: "2021-11-12T18:40:00Z" message: Successfully generated parameters for all Applications reason: ApplicationSetUpToDate status: "False" type: ErrorOccurred - lastTransitionTime: "2021-11-12T18:40:00Z" message: Successfully generated parameters for all Applications reason: ParametersGenerated status: "True" type: ParametersGenerated - lastTransitionTime: "2021-11-12T18:40:00Z" message: ApplicationSet up to date reason: ApplicationSetUpToDate status: "True" type: ResourcesUpToDate <|endoftext|> # k8s_examples_web-controller-demo.yaml apiVersion: v1 kind: ReplicationController metadata: labels: name: web name: web-controller spec: replicas: 2 selector: name: web template: metadata: labels: name: web spec: containers: - image: node:0.10.40 command: ['/bin/sh', '-c'] args: ['cd /home && git clone https://github.com/ijason/NodeJS-Sample-App.git demo && cd demo/EmployeeDB/ && npm install && sed -i -- ''s/localhost/mongo/g'' app.js && node app.js'] name: web ports: - containerPort: 3000 name: http-server <|endoftext|> # kube_prometheus_alertmanager-podDisruptionBudget.yaml apiVersion: policy/v1 kind: PodDisruptionBudget metadata: labels: app.kubernetes.io/component: alert-router app.kubernetes.io/instance: main app.kubernetes.io/name: alertmanager app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.31.1 name: alertmanager-main namespace: monitoring spec: maxUnavailable: 1 selector: matchLabels: app.kubernetes.io/component: alert-router app.kubernetes.io/instance: main app.kubernetes.io/name: alertmanager app.kubernetes.io/part-of: kube-prometheus <|endoftext|> # argocd_source_configurationrevision_healthy.yaml apiVersion: pkg.crossplane.io/v1 kind: ConfigurationRevision metadata: annotations: meta.crossplane.io/license: Apache-2.0 meta.crossplane.io/maintainer: Upbound meta.crossplane.io/source: github.com/upbound/configuration-getting-started name: upbound-configuration-getting-started-869bca254eb1 spec: desiredState: Active ignoreCrossplaneConstraints: false image: xpkg.upbound.io/upbound/configuration-getting-started:v0.3.0 packagePullPolicy: IfNotPresent revision: 1 skipDependencyResolution: false status: conditions: - lastTransitionTime: "2025-09-29T18:06:40Z" observedGeneration: 1 reason: HealthyPackageRevision status: "True" type: RevisionHealthy <|endoftext|> # istio_push-cds-on-auto-passthrough-gateway-change.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** returning 503 errors by auto-passthrough gateways created after enabling mTLS. <|endoftext|> # helm_charts_api-secrets.yaml apiVersion: v1 kind: Secret metadata: name: {{ template "cloudserver.fullname" . }} labels: app: {{ template "cloudserver.name" . }} chart: {{ template "cloudserver.chart" . }} component: api heritage: {{ .Release.Service }} release: {{ .Release.Name }} type: Opaque data: accessKey: {{ .Values.api.credentials.accessKey | b64enc }} secretKey: {{ .Values.api.credentials.secretKey | b64enc }} <|endoftext|> # helm_charts_hdfs-dn-pvc.yaml {{- if .Values.persistence.dataNode.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ include "hadoop.fullname" . }}-hdfs-dn labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: hdfs-dn spec: accessModes: - {{ .Values.persistence.dataNode.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.dataNode.size | quote }} {{- if .Values.persistence.dataNode.storageClass }} {{- if (eq "-" .Values.persistence.dataNode.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.dataNode.storageClass }}" {{- end }} {{- end }} {{- end -}} <|endoftext|> # argocd_source_healthy_noSteps.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"argoproj.io/v1alpha1","kind":"Rollout","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"guestbook-canary","ksonnet.io/component":"guestbook-ui"},"name":"guestbook-canary","namespace":"default"},"spec":{"minReadySeconds":10,"replicas":5,"selector":{"matchLabels":{"app":"guestbook-canary"}},"strategy":{"canary":{"maxSurge":1,"maxUnavailable":0,"steps":[{"setWeight":20},{"pause":{"duration":30}},{"setWeight":40},{"pause":{}}]}},"template":{"metadata":{"labels":{"app":"guestbook-canary"}},"spec":{"containers":[{"image":"quay.io/argoprojlabs/argocd-e2e-container:0.1","name":"guestbook-canary","ports":[{"containerPort":80}]}]}}}} rollout.argoproj.io/revision: '2' clusterName: '' creationTimestamp: '2019-05-01T21:55:30Z' generation: 1 labels: app.kubernetes.io/instance: guestbook-canary ksonnet.io/component: guestbook-ui name: guestbook-canary namespace: default resourceVersion: '956205' selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/guestbook-canary uid: d6105ccd-6c5b-11e9-b8d7-025000000001 spec: minReadySeconds: 10 replicas: 5 selector: matchLabels: app: guestbook-canary strategy: canary: maxSurge: 1 maxUnavailable: 0 template: metadata: creationTimestamp: null labels: app: guestbook-canary spec: containers: - image: 'quay.io/argoprojlabs/argocd-e2e-container:0.2' name: guestbook-canary ports: - containerPort: 80 resources: {} status: HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: stableRS: 567dd56d89 conditions: - lastTransitionTime: '2019-05-01T22:00:16Z' lastUpdateTime: '2019-05-01T22:00:16Z' message: Rollout has minimum availability reason: AvailableReason status: 'True' type: Available - lastTransitionTime: '2019-05-01T21:55:30Z' lastUpdateTime: '2019-05-01T22:00:16Z' message: ReplicaSet "guestbook-canary-567dd56d89" has successfully progressed. reason: NewReplicaSetAvailable status: 'True' type: Progressing currentPodHash: 567dd56d89 currentStepHash: 6c9545789c observedGeneration: 6886f85bff readyReplicas: 5 replicas: 5 selector: app=guestbook-canary updatedReplicas: 5 <|endoftext|> # tf_k8s_provider_kubeconfig-template.yaml # Copyright IBM Corp. 2017, 2026 # SPDX-License-Identifier: MPL-2.0 apiVersion: v1 kind: Config preferences: colors: true current-context: tf-k8s-gcp-test contexts: - context: cluster: ${cluster_name} namespace: default user: ${user_name} name: tf-k8s-gcp-test clusters: - cluster: server: https://${endpoint} certificate-authority-data: ${cluster_ca} name: ${cluster_name} users: - name: ${user_name} user: password: ${user_password} username: ${user_name} client-certificate-data: ${client_cert} client-key-data: ${client_cert_key} <|endoftext|> # k8s_examples_nfs-web-deployment.yaml # This pod mounts the nfs volume claim into /usr/share/nginx/html and # serves a simple web page. apiVersion: apps/v1 kind: Deployment metadata: name: nfs-web spec: replicas: 2 selector: matchLabels: role: web-frontend template: metadata: labels: role: web-frontend spec: containers: - name: web image: nginx ports: - name: web containerPort: 80 volumeMounts: # name must match the volume name below - name: nfs mountPath: "/usr/share/nginx/html" volumes: - name: nfs persistentVolumeClaim: claimName: nfs <|endoftext|> # helm_charts_secret-redis-password.yaml apiVersion: v1 kind: Secret metadata: name: airflow-cluster1-redis-password namespace: airflow-cluster1 stringData: redis-password: "XXXXXXXXXXXXXXXXXXXXXXX" <|endoftext|> # helm_charts_secret--db.yaml {{- if .Values.externalDatabase.type }} apiVersion: v1 kind: Secret metadata: name: {{ include "hlf-ca.fullname" . }}--db labels: {{ include "labels.standard" . | indent 4 }} type: Opaque data: db-password: {{ .Values.externalDatabase.password | b64enc | quote }} {{- end }} <|endoftext|> # helm_charts_configmap-authenticated-emails-file.yaml {{- if .Values.authenticatedEmailsFile.enabled }} {{- if .Values.authenticatedEmailsFile.restricted_access }} apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "oauth2-proxy.name" . }} chart: {{ template "oauth2-proxy.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "oauth2-proxy.fullname" . }}-accesslist data: restricted_user_access: {{ .Values.authenticatedEmailsFile.restricted_access | quote }} {{- end }} {{- end }} <|endoftext|> # argocd_source_healthy_created.yaml apiVersion: policy.open-cluster-management.io/v1 kind: ConfigurationPolicy metadata: name: policy-namespace generation: 3 namespace: local-cluster spec: object-templates: - complianceType: musthave objectDefinition: apiVersion: v1 kind: Namespace metadata: name: argo-example recreateOption: None - complianceType: musthave objectDefinition: apiVersion: v1 kind: Namespace metadata: name: argo-example-2 recreateOption: None pruneObjectBehavior: None remediationAction: enforce severity: low status: compliancyDetails: - Compliant: Compliant Validity: {} conditions: - lastTransitionTime: '2024-07-29T16:58:50Z' message: 'namespaces [argo-example] was created successfully' reason: K8s creation success status: 'True' type: notification - Compliant: Compliant Validity: {} conditions: - lastTransitionTime: '2024-07-29T16:58:50Z' message: 'namespaces [argo-example-2] was created successfully' reason: K8s creation success status: 'True' type: notification compliant: Compliant lastEvaluated: '2024-07-29T16:58:50Z' lastEvaluatedGeneration: 3 relatedObjects: - compliant: Compliant object: apiVersion: v1 kind: Namespace metadata: name: argo-example properties: createdByPolicy: true uid: 782f50ee-4fa9-41d6-900e-66d9eaf8b111 reason: K8s creation success - compliant: Compliant object: apiVersion: v1 kind: Namespace metadata: name: argo-example-2 properties: createdByPolicy: true uid: ce34051f-a0dc-4db2-9f8f-64cc9223d4d7 reason: K8s creation success <|endoftext|> # istio_cni.yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: istio-cni namespace: argocd finalizers: - resources-finalizer.argocd.argoproj.io spec: project: default destination: name: ambient-cluster namespace: kube-system syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true sources: - repoURL: 'https://istio-release.storage.googleapis.com/charts' targetRevision: 1.18.5 helm: valuesObject: revision: rapid cni: cniBinDir: "/home/kubernetes/bin" valueFiles: - >- $values/manifests/charts/istio-cni/ambient-values.yaml chart: cni - repoURL: 'https://github.com/istio/istio.git' targetRevision: HEAD ref: values <|endoftext|> # argocd_source_statefulset-scaled.yaml apiVersion: apps/v1 kind: StatefulSet metadata: creationTimestamp: "2019-09-13T08:52:54Z" generation: 2 labels: app.kubernetes.io/instance: extensions name: statefulset namespace: statefulset resourceVersion: "7471813" selfLink: /apis/apps/v1/namespaces/statefulset/statefulsets/statefulset uid: dfe8fadf-d603-11e9-9e69-42010aa8005f spec: podManagementPolicy: OrderedReady replicas: 6 revisionHistoryLimit: 10 selector: matchLabels: app: statefulset serviceName: statefulset template: metadata: labels: app: statefulset spec: containers: - image: registry.k8s.io/nginx-slim:0.8 imagePullPolicy: IfNotPresent name: nginx resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 updateStrategy: rollingUpdate: partition: 0 type: RollingUpdate status: collisionCount: 0 currentReplicas: 3 currentRevision: statefulset-85b7f767c6 observedGeneration: 2 readyReplicas: 3 replicas: 3 updateRevision: statefulset-85b7f767c6 updatedReplicas: 3 <|endoftext|> # istio_allow-only-http-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-deny namespace: foo spec: action: ALLOW rules: - from: - source: requestPrincipals: ["id-1"] to: - operation: methods: ["GET"] - from: - source: namespaces: ["ns-1"] to: - operation: hosts: ["example.com"] <|endoftext|> # helm_charts_insight-executor-pvc.yaml {{- if and .Values.insightExecutor.persistence.enabled (not .Values.insightExecutor.persistence.existingClaim) }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ template "insight-executor.fullname" . }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: accessModes: - {{ .Values.insightExecutor.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.insightExecutor.persistence.size }} {{- if .Values.insightExecutor.persistence.storageClass }} {{- if (eq "-" .Values.insightExecutor.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.insightExecutor.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_pqc.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 56330 releaseNotes: - | **Added** `pqc` (post-quantum cryptography) option to `COMPLIANCE_POLICY`. This policy enforces TLS v1.3, cipher suites `TLS_AES_128_GCM_SHA256` and `TLS_AES_256_GCM_SHA384`, and post-quantum-safe key exchange `X25519MLKEM768`. To enable this compliance policy in ambient mode, it must be set in pilot and ztunnel containers. This policy applies to the following data paths: * mTLS communication between Envoy proxies and ztunnels; * regular TLS on the downstream and the upstream of Envoy proxies (e.g. gateway); * Istiod xDS server. <|endoftext|> # argocd_source_suspended_userPause.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: name: example-rollout-canary namespace: default spec: paused: true replicas: 5 selector: matchLabels: app: guestbook strategy: canary: steps: - setWeight: 20 - pause: {} template: metadata: labels: app: guestbook spec: containers: - image: quay.io/argoprojlabs/argocd-e2e-container:0.2 name: guestbook status: HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: stableRS: df986d68 conditions: - lastTransitionTime: 2019-04-26T20:18:38Z lastUpdateTime: 2019-04-26T20:18:38Z message: Rollout is paused reason: RolloutPaused status: Unknown type: Progressing currentPodHash: 6b566f47b7 currentStepHash: 6567fc959c currentStepIndex: 1 observedGeneration: 5c788f4484 pauseStartTime: 2019-04-26T20:18:38Z readyReplicas: 5 replicas: 5 selector: app=guestbook updatedReplicas: 1 <|endoftext|> # istio_47269.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 47269 releaseNotes: - | **Added** An analyzer for showing warning messages about incorrect/missing information related to Istio installations using an External Control Plane <|endoftext|> # flux_source_helm-chart.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmChart metadata: name: flux-system namespace: {{ .fluxns }} spec: chart: podinfo interval: 1m0s reconcileStrategy: ChartVersion sourceRef: kind: HelmRepository name: podinfo version: '*' <|endoftext|> # istio_35385.yaml apiVersion: release-notes/v2 kind: feature area: security # issue is a list of GitHub issues resolved in this note. issue: - https://github.com/istio/istio/issues/35385 releaseNotes: - | **Added** the support of integrating with GKE workload certificates. <|endoftext|> # k8s_docs_memory-defaults-pod-3.yaml apiVersion: v1 kind: Pod metadata: name: default-mem-demo-3 spec: containers: - name: default-mem-demo-3-ctr image: nginx resources: requests: memory: "128Mi" <|endoftext|> # istio_44388.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 44385 releaseNotes: - | **Fixed** an issue where `Istio Gateway` (Envoy) would crash due to a duplicate `istio_authn` network filter in the Envoy filter chain. <|endoftext|> # istio_webhook-analyzer.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** a new analyzer for invalid webhook configurations. <|endoftext|> # helm_charts_configmap-customldif.yaml # # A ConfigMap spec for openldap slapd that map directly to files under # /container/service/slapd/assets/config/bootstrap/ldif/custom # {{- if .Values.customLdifFiles }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "openldap.fullname" . }}-customldif labels: app: {{ template "openldap.name" . }} chart: {{ template "openldap.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 4 }} {{- end }} data: {{- range $key, $val := .Values.customLdifFiles }} {{ $key }}: |- {{ $val | indent 4}} {{- end }} {{- end }} <|endoftext|> # istio_52612.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 52609 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Fixed** an issue where controller-assigned IPs did not respect per-proxy DNS capture the same way that ephemeral auto-allocated IPs did. <|endoftext|> # istio_pypi.yaml # This ServiceEntry exposes the hosts needed for Python `pip`. # After applying this file, Istio-enabled pods will be able to execute # `pip search istio`. # HTTP and TLS, the host must be specified # See https://istio.io/docs/tasks/traffic-management/egress/ apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: python-https spec: hosts: - pypi.python.org ports: - number: 443 name: https protocol: HTTPS --- # pypi.python.org may 301 redirect to pypi.org, so we need this too. apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: pypi-https spec: hosts: - pypi.org ports: - number: 443 name: https protocol: HTTPS --- # pip install may fetch files from files.pythonhosted.org apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: pythonhosted-https spec: hosts: - files.pythonhosted.org ports: - number: 443 name: https protocol: HTTPS <|endoftext|> # flux_source_secret-ca-crt.yaml --- apiVersion: v1 kind: Secret metadata: name: ca-crt namespace: my-namespace stringData: ca.crt: ca-data password: my-password username: my-username <|endoftext|> # istio_18152.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 18152 releaseNotes: - | **Fixed** listeners to balance between Envoy worker threads. Fixes (#18152)[https://github.com/istio/istio/issues/18152). <|endoftext|> # argocd_source_non-namespaced-gloo-rejected.yaml apiVersion: gloo.solo.io/v1 kind: UpstreamGroup status: reason: "message that will describe all the reasons for rejection" reportedBy: gateway state: 2 subresourceStatuses: '*v1.Proxy.gateway-proxy_gloo-system': reportedBy: gloo state: 1 '*v1.Proxy.internal-proxy_gloo-system': reportedBy: gloo state: 2 <|endoftext|> # istio_48017.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 47964 releaseNotes: - | **Fixed** an issue where the IST0158 message was incorrectly reported when the `imageType` field was set to `distroless` in mesh config. <|endoftext|> # k8s_docs_egress-selector-configuration.yaml apiVersion: apiserver.k8s.io/v1beta1 kind: EgressSelectorConfiguration egressSelections: # Since we want to control the egress traffic to the cluster, we use the # "cluster" as the name. Other supported values are "etcd", and "controlplane". - name: cluster connection: # This controls the protocol between the API Server and the Konnectivity # server. Supported values are "GRPC" and "HTTPConnect". There is no # end user visible difference between the two modes. You need to set the # Konnectivity server to work in the same mode. proxyProtocol: GRPC transport: # This controls what transport the API Server uses to communicate with the # Konnectivity server. UDS is recommended if the Konnectivity server # locates on the same machine as the API Server. You need to configure the # Konnectivity server to listen on the same UDS socket. # The other supported transport is "tcp". You will need to set up TLS # config to secure the TCP transport. uds: udsName: /etc/kubernetes/konnectivity-server/konnectivity-server.socket <|endoftext|> # istio_56468-49870-cookie-attributes.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 56468 - 49870 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** Support for cookie attributes in consistent hash load balancing. You can now specify additional attributes (such as `SameSite`, `Secure`, `HttpOnly`) for HTTP cookies used in consistent hash load balancing policies. This allows for more secure and compliant cookie handling in load balancing scenarios. <|endoftext|> # argocd_source_degraded_rolesMaxLimitReached.yaml apiVersion: iammanager.keikoproj.io/v1alpha1 kind: Iamrole metadata: finalizers: - iamrole.finalizers.iammanager.keikoproj.io name: iamrole namespace: test spec: PolicyDocument: Statement: - Action: - ec2:* Effect: Deny Resource: - '*' - Action: - iam:* Effect: Deny Resource: - '*' status: errorDescription: maximum number of allowed roles reached. You must delete any existing role before proceeding further lastUpdatedTimestamp: "2023-10-10T19:25:26Z" retryCount: 0 roleName: k8s-test state: RolesMaxLimitReached <|endoftext|> # istio_openshift.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: cni: enabled: true namespace: kube-system values: global: platform: openshift <|endoftext|> # helm_charts_custom-metrics-apiserver-service.yaml apiVersion: v1 kind: Service metadata: annotations: {{ toYaml .Values.service.annotations | indent 4 }} labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.fullname" . }} spec: ports: - port: {{ .Values.service.port }} protocol: TCP targetPort: https selector: app: {{ template "k8s-prometheus-adapter.name" . }} release: {{ .Release.Name }} type: {{ .Values.service.type }} <|endoftext|> # argocd_source_progressing_registered.yaml apiVersion: karpenter.sh/v1 kind: NodeClaim metadata: name: default-xxxx spec: nodeClassRef: group: karpenter.k8s.aws kind: EC2NodeClass name: default requirements: - key: karpenter.k8s.aws/instance-family operator: In values: - m5 status: nodeName: ip-10-0-1-100.ec2.internal providerID: aws:///us-east-1a/i-0abc123def456789 conditions: - message: "" reason: Launched status: "True" type: Launched - message: "" reason: Registered status: "True" type: Registered <|endoftext|> # istio_wasm-fail-reload.yaml apiVersion: release-notes/v2 kind: feature area: extensibility releaseNotes: - | **Added** an option to reload the wasm VM on new requests if the VM has failed. <|endoftext|> # helm_charts_server-config-rabbit.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "scdf.fullname" . }}-server labels: app: {{ template "scdf.name" . }} component: server chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" data: application.yaml: |- security: basic: enabled: true realm: Spring Cloud Data Flow spring: cloud: dataflow: security: authentication: file: enabled: true users: {{ .Values.dataflowAdminUsername }}: ${data-flow-admin-password}, {{ .Values.dataflowAdminRoles }} {{ .Values.dataflowUsername }}: ${data-flow-password}, {{ .Values.dataflowRoles }} deployer: kubernetes: environmentVariables: 'SPRING_RABBITMQ_HOST=${{ printf "{" }}{{ template "scdf.envrelease" . }}_RABBITMQ_SERVICE_HOST},SPRING_RABBITMQ_PORT=${{ printf "{" }}{{ template "scdf.envrelease" . }}_RABBITMQ_SERVICE_PORT_AMQP},SPRING_RABBITMQ_USERNAME={{ .Values.rabbitmq.rabbitmqUsername }},SPRING_RABBITMQ_PASSWORD=${rabbitmq-password},SPRING_REDIS_HOST=${{ printf "{" }}{{ template "scdf.envrelease" . }}_REDIS_SERVICE_HOST},SPRING_REDIS_PORT=${{ printf "{" }}{{ template "scdf.envrelease" . }}_REDIS_SERVICE_PORT},SPRING_REDIS_PASSWORD=${redis-password}' datasource: url: 'jdbc:mysql://${{ printf "{" }}{{ template "scdf.envrelease" . }}_MYSQL_SERVICE_HOST}:3306/dataflow' driverClassName: org.mariadb.jdbc.Driver username: root password: ${mysql-root-password} testOnBorrow: true validationQuery: "SELECT 1" redis: host: ${{ printf "{" }}{{ template "scdf.envrelease" . }}_REDIS_SERVICE_HOST} port: ${{ printf "{" }}{{ template "scdf.envrelease" . }}_REDIS_SERVICE_PORT} password: ${redis-password} <|endoftext|> # helm_charts_api-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "cloudserver.fullname" . }} labels: app: {{ template "cloudserver.name" . }} chart: {{ template "cloudserver.chart" . }} component: api release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: {{- if not .Values.api.autoscaling.enabled }} replicas: {{ .Values.api.replicaCount }} {{- end }} selector: matchLabels: app: {{ template "cloudserver.name" . }} component: api release: {{ .Release.Name }} template: metadata: annotations: checksum/config: {{ include (print $.Template.BasePath "/api-configmap.yaml") . | sha256sum }} labels: app: {{ template "cloudserver.name" . }} component: api release: {{ .Release.Name }} spec: serviceAccountName: {{ template "cloudserver.serviceAccountName.api" . }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} terminationMessagePolicy: FallbackToLogsOnError ports: - name: http containerPort: 8000 env: - name: REMOTE_MANAGEMENT_DISABLE value: "1" {{- range $key, $value := .Values.env }} - name: {{ $key | upper | replace "." "_" }} value: {{ $value | quote }} {{- end }} - name: S3METADATA value: "mongodb" - name: MONGODB_HOSTS value: "{{ template "mongodb-replicaset.url" . }}" - name: MONGODB_RS value: "{{ default "rs0" (index .Values "mongodb-replicaset" "replicaSet") }}" - name: S3_LOCATION_FILE value: "/etc/config/locationConfig.json" - name: DATA_HOST value: {{ template "cloudserver.localdata.fullname" . }} - name: REDIS_HOST value: "{{- printf "%s-%s" .Release.Name "redis-ha" | trunc 63 | trimSuffix "-" -}}" - name: REDIS_PORT value: "6379" - name: REDIS_SENTINELS value: "{{ template "redis-ha.url" . }}" - name: REDIS_HA_NAME value: "{{ index .Values "redis-ha" "redis" "masterGroupName" }}" - name: LOG_LEVEL value: {{ .Values.api.logLevel }} - name: ENDPOINT value: "{{ template "cloudserver.fullname" . }},{{ .Values.api.endpoint }}" - name: HEALTHCHECKS_ALLOWFROM value: "0.0.0.0/0" {{- if .Values.api.proxy.http }} - name: http_proxy value: "{{ .Values.api.proxy.http }}" - name: HTTP_PROXY value: "{{ .Values.api.proxy.http }}" - name: https_proxy value: "{{- if .Values.api.proxy.https }}{{ .Values.api.proxy.https }}{{- else }}{{ .Values.api.proxy.http }}{{- end }}" - name: HTTPS_PROXY value: "{{- if .Values.api.proxy.https }}{{ .Values.api.proxy.https }}{{- else }}{{ .Values.api.proxy.http }}{{- end }}" {{- else if .Values.api.proxy.https }} - name: https_proxy value: "{{ .Values.api.proxy.https }}" - name: HTTPS_PROXY value: "{{ .Values.api.proxy.https }}" {{- end }} {{- if .Values.api.proxy.caCert }} - name: NODE_EXTRA_CA_CERTS value: "/ssl/ca.crt" {{- end }} {{- if .Values.api.proxy.no_proxy }} - name: no_proxy value: "{{ .Values.api.proxy.no_proxy }}" - name: NO_PROXY value: "{{ .Values.api.proxy.no_proxy }}" {{- end }} - name: SCALITY_ACCESS_KEY_ID valueFrom: secretKeyRef: name: {{ template "cloudserver.fullname" . }} key: accessKey - name: SCALITY_SECRET_ACCESS_KEY valueFrom: secretKeyRef: name: {{ template "cloudserver.fullname" . }} key: secretKey args: ['npm', 'run', 'start_s3server'] livenessProbe: httpGet: path: /_/healthcheck port: http initialDelaySeconds: 60 volumeMounts: - name: location-config mountPath: /etc/config {{- if .Values.api.proxy.caCert }} - name: proxy-cert mountPath: "/ssl" readOnly: true {{- end }} resources: {{ toYaml .Values.api.resources | indent 12 }} {{- with .Values.api.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- if .Values.api.affinity }} affinity: {{ toYaml .Values.api.affinity | indent 8 }} {{- end }} {{- with .Values.api.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: location-config configMap: name: {{ template "cloudserver.fullname" . }} {{- if .Values.api.proxy.caCert }} - name: proxy-cert secret: secretName: {{ template "cloudserver.fullname" . }}-cacert {{- end }} <|endoftext|> # argocd_source_rollout-step1-after-skip-current-step.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: name: rollouts-demo namespace: rollout-test-custom-actions spec: replicas: 5 restartAt: "2025-05-15T14:13:44Z" revisionHistoryLimit: 2 selector: matchLabels: app: rollouts-demo strategy: canary: steps: - pause: {} - pause: {} template: metadata: labels: app: rollouts-demo spec: containers: - image: argoproj/rollouts-demo:blue name: rollouts-demo ports: - containerPort: 8080 name: http protocol: TCP resources: requests: cpu: 5m memory: 32Mi status: HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: {} conditions: - lastTransitionTime: "2025-05-15T14:15:48Z" lastUpdateTime: "2025-05-15T14:15:48Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available - lastTransitionTime: "2025-05-15T14:16:58Z" lastUpdateTime: "2025-05-15T14:16:58Z" message: Rollout is not healthy reason: RolloutHealthy status: "False" type: Healthy - lastTransitionTime: "2025-05-15T14:16:58Z" lastUpdateTime: "2025-05-15T14:16:58Z" message: RolloutCompleted reason: RolloutCompleted status: "False" type: Completed - lastTransitionTime: "2025-05-15T14:16:58Z" lastUpdateTime: "2025-05-15T14:16:58Z" message: Rollout is paused reason: RolloutPaused status: Unknown type: Progressing - lastTransitionTime: "2025-05-15T14:16:58Z" lastUpdateTime: "2025-05-15T14:16:58Z" message: Rollout is paused reason: RolloutPaused status: "True" type: Paused controllerPause: true currentPodHash: 687d76d795 currentStepHash: 79c9b9f6bf currentStepIndex: 1 message: CanaryPauseStep observedGeneration: "20" phase: Paused readyReplicas: 5 replicas: 5 restartedAt: "2025-05-15T14:13:44Z" selector: app=rollouts-demo stableRS: 6cf78c66c5 <|endoftext|> # kube_prometheus_namespace.yaml apiVersion: v1 kind: Namespace metadata: labels: pod-security.kubernetes.io/warn: privileged pod-security.kubernetes.io/warn-version: latest name: monitoring <|endoftext|> # k8s_docs_dual-stack-ipv6-lb-svc.yaml apiVersion: v1 kind: Service metadata: name: my-service labels: app: MyApp spec: ipFamily: IPv6 type: LoadBalancer selector: app: MyApp ports: - protocol: TCP port: 80 targetPort: 9376 <|endoftext|> # helm_charts_xray-setup-conf.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "xray.fullname" . }}-setup labels: app: {{ template "xray.name" . }} chart: {{ template "xray.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} data: setup.sh: | #!/bin/sh # Setup script for Xray microservice SCRIPTS_DIR=/scripts XRAYCONFIGPATH={{ .Values.common.xrayConfigPath }} XRAY_CONFIG_DIR=${XRAYCONFIGPATH}/config XRAY_CONFIG_FILE=${XRAY_CONFIG_DIR}/xray_config.yaml echo "Creating directories" mkdir -pv ${XRAY_CONFIG_DIR} # Wait for DBs to be ready echo "Waiting for DBs..." {{- if .Values.mongodb.enabled }} until nc -z -w 2 {{ .Release.Name }}-postgresql {{ .Values.postgresql.service.port }} && echo postgresql ok; do sleep 2; done; {{- end }} {{- if .Values.postgresql.enabled }} until nc -z -w 2 {{ .Release.Name }}-mongodb 27017 && echo mongodb ok; do sleep 2; done; {{- end }} until nc -z -w 2 {{ .Release.Name }}-rabbitmq-ha {{ index .Values "rabbitmq-ha" "rabbitmqNodePort" }} && echo rabbitmq ok; do sleep 2; done; # Prepare Xray config echo "Preparing Xray config (${XRAY_CONFIG_FILE})" if [ -f ${XRAY_CONFIG_FILE} ]; then echo "Config exist. Backing it up..." cp -vf ${XRAY_CONFIG_FILE} ${XRAY_CONFIG_FILE}-$(date +%Y%m%d-%H%M%S) fi # Creating Mongodb URL {{- if .Values.mongodb.enabled }} MONGODB_URL="mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@{{ .Release.Name }}-mongodb:27017/?authSource=${MONGODB_DATABASE}\&authMechanism=SCRAM-SHA-1" {{- else }} MONGODB_URL="${MONGODB_URL}" {{- end }} # Creating PostgreSQL URL {{- if .Values.postgresql.enabled }} POSTGRESS_URL="postgres://${POSTGRES_USER}:${POSTGRESS_PASSWORD}@{{ .Release.Name }}-postgresql:{{ .Values.postgresql.service.port }}/${POSTGRESS_DB}?sslmode=disable" {{- else }} POSTGRESS_URL="${POSTGRESS_URL}" {{- end }} # Creating Rabbitmq-Ha URL RABBITMQ_URL="amqp://${RABBITMQ_USER}:${RABBITMQ_DEFAULT_PASS}@{{ .Release.Name }}-rabbitmq-ha:{{ index .Values "rabbitmq-ha" "rabbitmqNodePort" }}/" cp -vf ${SCRIPTS_DIR}/xray_config.yaml ${XRAY_CONFIG_FILE} # Preparing xray_config.yaml sed -i "s RABBITMQ_URL ${RABBITMQ_URL} " ${XRAY_CONFIG_FILE} sed -i "s MONGODB_URL ${MONGODB_URL} " ${XRAY_CONFIG_FILE} sed -i "s POSTGRESS_URL ${POSTGRESS_URL} " ${XRAY_CONFIG_FILE} xray_config.yaml: | # Generated Xray config --- ver: 1.0 XrayServerPort: "{{ .Values.server.internalPort }}" mqBaseUrl: "RABBITMQ_URL" mongoUrl: "MONGODB_URL" postgresqlUrl: "POSTGRESS_URL" stdOutEnabled: {{ .Values.common.stdOutEnabled }} skipEntLicCheckForCloud: true # End generated config <|endoftext|> # istio_custom-gw-classname.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** an environment variable for istiod `PILOT_GATEWAY_API_DEFAULT_GATEWAYCLASS_NAME` that allows overriding the name of the default `GatewayClass` Gateway API resource. The default value is `istio`. **Added** an environment variable for istiod `PILOT_GATEWAY_API_CONTROLLER_NAME` that allows overriding the name of the Istio Gateway API controller as exposed in the `spec.controllerName` field in the `GatewayClass` resource. The default value is `istio.io/gateway-controller`. <|endoftext|> # istio_service.yaml {{- if not (eq .Values.service.type "None") }} apiVersion: v1 kind: Service metadata: name: {{ include "gateway.name" . }} namespace: {{ .Release.Namespace }} labels: app.kubernetes.io/name: {{ include "gateway.name" . }} {{- include "istio.labels" . | nindent 4}} {{- include "gateway.labels" . | nindent 4 }} {{- with .Values.networkGateway }} topology.istio.io/network: "{{.}}" {{- end }} annotations: {{- merge (deepCopy .Values.service.annotations) .Values.annotations | toYaml | nindent 4 }} spec: {{- with .Values.service.loadBalancerIP }} loadBalancerIP: "{{ . }}" {{- end }} {{- if eq .Values.service.type "LoadBalancer" }} {{- if hasKey .Values.service "allocateLoadBalancerNodePorts" }} allocateLoadBalancerNodePorts: {{ .Values.service.allocateLoadBalancerNodePorts }} {{- end }} {{- if hasKey .Values.service "loadBalancerClass" }} loadBalancerClass: {{ .Values.service.loadBalancerClass }} {{- end }} {{- end }} {{- if .Values.service.ipFamilyPolicy }} ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }} {{- end }} {{- if .Values.service.ipFamilies }} ipFamilies: {{- range .Values.service.ipFamilies }} - {{ . }} {{- end }} {{- end }} {{- with .Values.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{ toYaml . | indent 4 }} {{- end }} {{- with .Values.service.externalTrafficPolicy }} externalTrafficPolicy: "{{ . }}" {{- end }} {{- with .Values.service.internalTrafficPolicy }} internalTrafficPolicy: "{{ . }}" {{- end }} type: {{ .Values.service.type }} {{- if not (eq .Values.service.clusterIP "") }} clusterIP: {{ .Values.service.clusterIP }} {{- end }} ports: {{- if .Values.networkGateway }} - name: status-port port: 15021 targetPort: 15021 - name: tls port: 15443 targetPort: 15443 - name: tls-istiod port: 15012 targetPort: 15012 - name: tls-webhook port: 15017 targetPort: 15017 {{- else }} {{ .Values.service.ports | toYaml | indent 4 }} {{- end }} {{- if .Values.service.externalIPs }} externalIPs: {{- range .Values.service.externalIPs }} - {{.}} {{- end }} {{- end }} selector: {{- include "gateway.selectorLabels" . | nindent 4 }} {{- with .Values.service.selectorLabels }} {{- toYaml . | nindent 4 }} {{- end }} {{- end }} <|endoftext|> # helm_charts_mission-control-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "mission-control.fullname" . }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.missionControl.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.missionControl.replicaCount }} selector: matchLabels: app: {{ template "mission-control.name" . }} component: {{ .Values.missionControl.name }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "mission-control.name" . }} component: {{ .Values.missionControl.name }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "mission-control.serviceAccountName" . }} {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: init-data image: "{{ .Values.initContainerImage }}" command: - 'sh' - '-c' - > until nc -z -w 2 {{ .Release.Name }}-mongodb 27017 && echo mongodb ok && \ nc -z -w 2 {{ .Release.Name }}-elasticsearch 9200 && echo elasticsearch ok; do sleep 2; done containers: - name: {{ .Values.missionControl.name }} image: {{ .Values.missionControl.image }}:{{ default .Chart.AppVersion .Values.missionControl.version }} imagePullPolicy: {{ .Values.imagePullPolicy }} env: - name: SPRING_DATA_MONGODB_HOST value: '{{ .Release.Name }}-mongodb' - name: SPRING_DATA_MONGODB_PORT value: '27017' - name: SPRING_DATA_MONGODB_USERNAME value: '{{ .Values.mongodb.db.mcUser }}' - name: SPRING_DATA_MONGODB_PASSWORD valueFrom: secretKeyRef: name: {{ template "mission-control.fullname" . }}-mongodb-cred key: mcPassword - name: INSIGHT_URL value: "http://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpPort }}" - name: INSIGHT_SSL_URL value: "https://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpsPort }}" - name: POD_RESTART_TIME value: "{{ .Values.podRestartTime }}" - name: SERVER_INTERNAL_SSL_KEY_STORE_PASSWORD value: "18f85c331f5e3cd4" - name: SERVER_INTERNAL_SSL_TRUST_STORE_PASSWORD value: "18f85c331f5e3cd4" - name: ARTIFACTORY_CLIENT_CONNECTIONTIMEOUT value: '20' - name: XRAY_CLIENT_CONNECTIONTIMEOUT value: '20' - name: JENKINS_CLIENT_CONNECTIONTIMEOUT value: '20' - name: GIT_CLIENT_CONNECTIONTIMEOUT value: '20' - name: INSIGHT_CLIENT_CONNECTIONTIMEOUT value: '20' - name: MC_URL value: "{{ .Values.missionControl.missionControlUrl }}" - name: JAVA_OPTIONS value: "{{ .Values.missionControl.javaOpts.other }} {{- if .Values.missionControl.javaOpts.xms }}-Xms{{ .Values.missionControl.javaOpts.xms }}{{- end }} {{- if .Values.missionControl.javaOpts.xmx }}-Xmx{{ .Values.missionControl.javaOpts.xmx }} {{- end }}" ports: - containerPort: {{ .Values.missionControl.internalPort }} protocol: TCP volumeMounts: - name: mission-control-data mountPath: {{ .Values.missionControl.persistence.mountPath | quote }} - name: mission-control-certs mountPath: /tmp/jfmc-keystore.jks-b64 subPath: jfmc-keystore.jks-b64 - name: mission-control-certs mountPath: /tmp/jfmc-truststore.jks-b64 subPath: jfmc-truststore.jks-b64 lifecycle: postStart: exec: command: - '/bin/sh' - '-c' - > until [ -f /tmp/jfmc-keystore.jks-b64 ] && [ -f /tmp/jfmc-truststore.jks-b64 ]; do sleep 1; done; mkdir -p /var/opt/jfrog/mission-control/etc/security; base64 -d /tmp/jfmc-keystore.jks-b64 > /var/opt/jfrog/mission-control/etc/security/jfmc-keystore.jks; base64 -d /tmp/jfmc-truststore.jks-b64 > /var/opt/jfrog/mission-control/etc/security/jfmc-truststore.jks resources: {{ toYaml .Values.missionControl.resources | indent 10 }} livenessProbe: httpGet: path: /api/v3/ping port: 8080 periodSeconds: 10 initialDelaySeconds: 240 readinessProbe: httpGet: path: /api/v3/ping port: 8080 periodSeconds: 10 initialDelaySeconds: 240 {{- with .Values.missionControl.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.missionControl.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.missionControl.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: mission-control-data {{- if .Values.missionControl.persistence.enabled }} persistentVolumeClaim: claimName: {{ if .Values.missionControl.persistence.existingClaim }}{{ .Values.missionControl.persistence.existingClaim }}{{ else }}{{ template "mission-control.fullname" . }}{{ end }} {{- else }} emptyDir: {} {{- end }} - name: mission-control-certs secret: {{- if .Values.existingCertsSecret }} secretName: {{ .Values.existingCertsSecret }} {{- else }} secretName: {{ template "mission-control.fullname" . }}-certs {{- end }} <|endoftext|> # k8s_examples_pod-uses-account-hdd.yaml kind: Pod apiVersion: v1 metadata: name: pod-uses-account-hdd-5g labels: name: storage spec: containers: - image: nginx name: az-c-01 command: - /bin/sh - -c - while true; do echo $(date) >> /mnt/blobdisk/outfile; sleep 1; done volumeMounts: - name: blobdisk01 mountPath: /mnt/blobdisk volumes: - name: blobdisk01 persistentVolumeClaim: claimName: pv-dd-account-hdd-5g <|endoftext|> # helm_charts_tcp-service.yaml {{- if .Values.graylog.input.tcp }} apiVersion: v1 kind: Service metadata: {{- if .Values.graylog.input.tcp.service.annotations }} annotations: {{ toYaml .Values.graylog.input.tcp.service.annotations | indent 4 }} {{- end }} name: {{ template "graylog.fullname" . }}-tcp labels: {{ include "graylog.metadataLabels" . | indent 4 }} app.kubernetes.io/component: "TCP" spec: ports: {{- range .Values.graylog.input.tcp.ports }} - name: {{ .name }} port: {{ .port }} protocol: TCP targetPort: {{ .port }} {{- if eq "NodePort" $.Values.graylog.input.tcp.service.type }} {{- if .nodePort }} nodePort: {{ .nodePort }} {{- end }} {{- end }} {{- end }} {{- if .Values.graylog.input.tcp.service.externalIPs }} externalIPs: {{ toYaml .Values.graylog.input.tcp.service.externalIPs | indent 4 }} {{- end }} {{- if eq "ClusterIP" .Values.graylog.input.tcp.service.type }} {{- if .Values.graylog.input.tcp.service.clusterIP }} clusterIP: {{ .Values.graylog.input.tcp.service.clusterIP }} {{- end }} {{- end }} selector: app.kubernetes.io/name: {{ template "graylog.name" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" type: "{{ .Values.graylog.input.tcp.service.type }}" {{- if eq "LoadBalancer" .Values.graylog.input.tcp.service.type }} externalTrafficPolicy: {{ .Values.graylog.input.tcp.service.externalTrafficPolicy | default "Cluster" }} {{- if .Values.graylog.input.tcp.service.loadBalancerIP }} loadBalancerIP: {{ .Values.graylog.input.tcp.service.loadBalancerIP }} {{- end -}} {{- if .Values.graylog.input.tcp.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- range .Values.graylog.input.tcp.service.loadBalancerSourceRanges }} - {{ . }} {{- end }} {{- end -}} {{- end -}} {{- end }} <|endoftext|> # argocd_source_health.yaml apiVersion: work.karmada.io/v1alpha2 kind: ClusterResourceBinding metadata: finalizers: - karmada.io/binding-controller generation: 5 labels: clusterpropagationpolicy.karmada.io/name: service-testk4j5t name: test-service namespace: default ownerReferences: - apiVersion: v1 blockOwnerDeletion: true controller: true kind: Service name: test uid: 039b0d1a-05cb-40b4-b43a-438b0de386af resourceVersion: "4106772" uid: 3932ee50-4c2b-4e77-9bfb-45eeb4ec220f spec: clusters: - name: member1 - name: member2 - name: member3 replicaRequirements: nodeClaim: tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 resourceRequest: cpu: 250m memory: 512Mi replicas: 1 resource: apiVersion: apps/v1 kind: Deployment name: test1 namespace: default resourceVersion: "3663243" uid: 58ccb955-4da6-4167-9b65-dddadcef569e status: aggregatedStatus: - applied: true clusterName: member1 health: Healthy status: availableReplicas: 1 readyReplicas: 1 replicas: 1 updatedReplicas: 1 - applied: true clusterName: member2 health: Healthy status: replicas: 1 unavailableReplicas: 1 updatedReplicas: 1 - applied: true clusterName: member3 health: Healthy status: availableReplicas: 1 readyReplicas: 1 replicas: 1 updatedReplicas: 1 conditions: - lastTransitionTime: "2022-11-02T02:49:06Z" message: All works have been successfully applied reason: FullyAppliedSuccess status: "True" type: FullyApplied - lastTransitionTime: "2022-10-28T09:56:31Z" message: Binding has been scheduled reason: BindingScheduled status: "True" type: Scheduled schedulerObservedGeneration: 7 <|endoftext|> # argocd_source_not_reconciled.yaml apiVersion: projectcontour.io/v1 kind: HTTPProxy metadata: generation: 1 name: basic spec: virtualhost: fqdn: foo-basic.bar.com routes: - conditions: - prefix: / services: - name: s1 port: 80 status: currentStatus: NotReconciled description: Waiting for controller <|endoftext|> # istio_tcp-echo-ipv4.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################ # tcp-echo service ################################################################################ apiVersion: v1 kind: Service metadata: name: tcp-echo labels: app: tcp-echo service: tcp-echo spec: ipFamilyPolicy: SingleStack ipFamilies: - IPv4 ports: - name: tcp port: 9000 - name: tcp-other port: 9001 # Port 9002 is omitted intentionally for testing the pass through filter chain. selector: app: tcp-echo --- apiVersion: apps/v1 kind: Deployment metadata: name: tcp-echo spec: replicas: 1 selector: matchLabels: app: tcp-echo version: v1 template: metadata: labels: app: tcp-echo version: v1 spec: containers: - name: tcp-echo image: registry.istio.io/release/tcp-echo-server:1.3 imagePullPolicy: IfNotPresent args: [ "9000,9001,9002", "hello" ] ports: - containerPort: 9000 - containerPort: 9001 <|endoftext|> # argocd_source_keda-degraded-1.yaml apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: annotations: finalizers: - finalizer.keda.sh labels: argocd.argoproj.io/instance: keda-default name: keda namespace: keda resourceVersion: '160591442' uid: 73ee438a-f383-43f3-9346-b901d9773f4b spec: maxReplicaCount: 3 minReplicaCount: 0 scaleTargetRef: name: keda triggers: - metadata: desiredReplicas: '1' end: 00 17 * * 1-5 start: 00 08 * * 1-5 timezone: Europe/Stockholm type: cron status: conditions: - message: >- ScaledObject doesn't have correct Idle/Min/Max Replica Counts specification reason: ScaledObjectCheckFailed status: 'False' type: Ready - message: ScaledObject check failed reason: UnknownState status: Unknown type: Active - message: No fallbacks are active on this scaled object reason: NoFallbackFound status: 'False' type: Fallback - status: Unknown type: Paused externalMetricNames: - s0-cron-Europe-Stockholm-0008xx1-5-0019xx1-5 hpaName: keda-hpa lastActiveTime: '2023-12-18T17:59:55Z' originalReplicaCount: 1 scaleTargetGVKR: group: apps kind: Deployment resource: deployments version: v1 scaleTargetKind: apps/v1.Deployment <|endoftext|> # k8s_examples_rbd-storage-class.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: slow provisioner: kubernetes.io/rbd parameters: monitors: 127.0.0.1:6789 adminId: admin adminSecretName: ceph-secret-admin adminSecretNamespace: "kube-system" pool: kube userId: kube userSecretName: ceph-secret-user <|endoftext|> # istio_cipher_suites_mesh_to_mesh.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - https://github.com/istio/istio/issues/28996 releaseNotes: - | **Added** cipher_suites support for mesh to mesh traffic through MeshConfig API. <|endoftext|> # helm_source_pod.yaml apiVersion: v1 kind: Pod metadata: name: signtest spec: restartPolicy: Never containers: - name: waiter image: "alpine:3.3" command: ["/bin/sleep","9000"] <|endoftext|> # istio_54292.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 53931 releaseNotes: - | **Fixed** `istioctl proxyconfig` performance issue. <|endoftext|> # k8s_docs_job-backoff-limit-per-index-failindex.yaml apiVersion: batch/v1 kind: Job metadata: name: job-backoff-limit-per-index-failindex spec: completions: 4 parallelism: 2 completionMode: Indexed backoffLimitPerIndex: 1 template: spec: restartPolicy: Never containers: - name: main image: docker.io/library/python:3 command: # The script: # - fails the Pod with index 0 with exit code 1, which results in one retry; # - fails the Pod with index 1 with exit code 42 which results # in failing the index without retry. # - succeeds Pods with any other index. - python3 - -c - | import os, sys index = int(os.environ.get("JOB_COMPLETION_INDEX")) if index == 0: sys.exit(1) elif index == 1: sys.exit(42) else: sys.exit(0) backoffLimit: 6 podFailurePolicy: rules: - action: FailIndex onExitCodes: containerName: main operator: In values: [42] <|endoftext|> # istio_59238.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: [] releaseNotes: - | **Added** the ability to specify authorized namespaces for debug endpoints when `ENABLE_DEBUG_ENDPOINT_AUTH=true`. Enable by setting `DEBUG_ENDPOINT_AUTH_ALLOWED_NAMESPACES` to a comma separated list of authorized namespaces. The system namespace (typically `istio-system`) is always authorized. <|endoftext|> # istio_31403.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 31403 releaseNotes: - | **Updated** istio-proxy drain notification strategy to immediate from gradual. <|endoftext|> # argocd_source_progressing_initialized.yaml apiVersion: karpenter.sh/v1 kind: NodeClaim metadata: name: default-xxxx generation: 1 spec: nodeClassRef: group: karpenter.k8s.aws kind: EC2NodeClass name: default requirements: - key: karpenter.k8s.aws/instance-family operator: In values: - m5 status: observedGeneration: 1 nodeName: ip-10-0-1-100.ec2.internal providerID: aws:///us-east-1a/i-0abc123def456789 conditions: - message: "" reason: Launched status: "True" type: Launched - message: "" reason: Registered status: "True" type: Registered - message: "" reason: Initialized status: "True" type: Initialized - message: "" reason: Ready status: "Unknown" type: Ready <|endoftext|> # kube_prometheus_application.yaml --- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: kube-prometheus namespace: argocd annotations: recipients.argocd-notifications.argoproj.io: "slack:jenkins" spec: destination: namespace: monitoring server: https://kubernetes.default.svc project: monitoring source: directory: jsonnet: libs: - vendored recurse: true path: examples/continuous-delivery/argocd/kube-prometheus repoURL: git@github.com:prometheus-operator/kube-prometheus.git targetRevision: HEAD syncPolicy: automated: {} --- <|endoftext|> # istio_pilot_env_var_from.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: empty components: pilot: enabled: true values: pilot: envVarFrom: - name: "FAKE_ENV_NAME" valueFrom: secretKeyRef: name: fake-secret key: fake-key <|endoftext|> # istio_tracing-canonical-service.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 28801 releaseNotes: - | **Added** canonical service tags to Envoy-generated trace spans. upgradeNotes: - title: Service Tags added to trace spans content: | Istio now configures Envoy to include tags identifying the canonical service for a workload in generated trace spans. This will lead to a small increase in storage per span for tracing backends. To disable these additional tags, modify the 'istiod' deployment to set an environment variable of `PILOT_ENABLE_ISTIO_TAGS=false`. <|endoftext|> # k8s_docs_indexed-job.yaml apiVersion: batch/v1 kind: Job metadata: name: 'indexed-job' spec: completions: 5 parallelism: 3 completionMode: Indexed template: spec: restartPolicy: Never initContainers: - name: 'input' image: 'docker.io/library/bash' command: - "bash" - "-c" - | items=(foo bar baz qux xyz) echo ${items[$JOB_COMPLETION_INDEX]} > /input/data.txt volumeMounts: - mountPath: /input name: input containers: - name: 'worker' image: 'docker.io/library/busybox' command: - "rev" - "/input/data.txt" volumeMounts: - mountPath: /input name: input volumes: - name: input emptyDir: {} <|endoftext|> # kustomize_configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ include "issue4905.fullname" . }} data: config.yaml: |- {{- .Values.config | toYaml | nindent 4 }} <|endoftext|> # istio_48985.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management # issue is a list of GitHub issues resolved in this note. issue: - 48985 releaseNotes: - | **Added** endpoints acked generation to the proxy distribution report available through the pilot debug api (/debug/config_distribution). <|endoftext|> # istio_48253.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 48212 releaseNotes: - | **Upgraded** Ambient traffic capture and redirection compatibility by switching to an in-pod mechanism. <|endoftext|> # helm_charts_configmap-scripts-git.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ include "airflow.fullname" . }}-scripts-git labels: app: {{ include "airflow.labels.app" . }} chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: git-clone.sh: | #!/bin/sh -e REPO=$1 REF=$2 DIR=$3 REPO_HOST=$4 REPO_PORT=$5 PRIVATE_KEY=$6 mkdir -p ~/.ssh/ {{- if .Values.dags.git.sshKeyscan }} ssh-keyscan -p $REPO_PORT $REPO_HOST >> ~/.ssh/known_hosts {{- end }} {{- if .Values.dags.git.secret }} cp -rL /keys/* ~/.ssh/ chmod 600 ~/.ssh/* echo -e "Host $REPO_HOST\n Port $REPO_PORT\n IdentityFile ~/.ssh/$PRIVATE_KEY" > ~/.ssh/config {{- end }} # ensure the git directory is empty, so we can safely clone if [ -d "$DIR" ]; then rm -rf $( find $DIR -mindepth 1 ) fi git clone $REPO -b $REF $DIR git-sync.sh: | #!/bin/sh -e REPO=$1 REF=$2 DIR=$3 REPO_HOST=$4 REPO_PORT=$5 PRIVATE_KEY=$6 SYNC_TIME=$7 mkdir -p ~/.ssh/ {{- if .Values.dags.git.sshKeyscan }} ssh-keyscan -p $REPO_PORT $REPO_HOST >> ~/.ssh/known_hosts {{- end }} {{- if .Values.dags.git.secret }} cp -rL /keys/* ~/.ssh/ chmod 600 ~/.ssh/* echo -e "Host $REPO_HOST\n Port $REPO_PORT\n IdentityFile ~/.ssh/$PRIVATE_KEY" > ~/.ssh/config {{- end }} {{- if and (.Values.dags.git.gitSync.enabled) (not .Values.dags.initContainer.enabled) }} if [ -d "$DIR" ]; then rm -rf $( find $DIR -mindepth 1 ) fi git clone $REPO -b $REF $DIR {{- end }} # to break the infinite loop when we receive SIGTERM trap "exit 0" SIGTERM cd $DIR while true; do git fetch origin $REF; git reset --hard origin/$REF; git clean -fd; date; sleep $SYNC_TIME; done <|endoftext|> # istio_50452.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue that CORS filter forwarded preflight request if the origin is not allowed. <|endoftext|> # helm_charts_poddisruptionbudget-arbiter-rs.yaml {{- if and .Values.replicaSet.enabled .Values.replicaSet.pdb.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: labels: app: {{ template "mongodb.name" . }} chart: {{ template "mongodb.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "mongodb.fullname" . }}-arbiter spec: {{- if .Values.replicaSet.pdb.minAvailable }} {{- if .Values.replicaSet.pdb.minAvailable.arbiter }} minAvailable: {{ .Values.replicaSet.pdb.minAvailable.arbiter }} {{- end }} {{- end }} {{- if .Values.replicaSet.pdb.maxUnavailable }} {{- if .Values.replicaSet.pdb.maxUnavailable.arbiter }} maxUnavailable: {{ .Values.replicaSet.pdb.maxUnavailable.arbiter }} {{- end }} {{- end }} selector: matchLabels: app: {{ template "mongodb.name" . }} release: {{ .Release.Name }} component: arbiter {{- end }} <|endoftext|> # istio_ztunnel-chart-termgrace.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: [] releaseNotes: - | **Added** Allow setting terminationGracePeriodSeconds for ztunnel pod via Helm chart. <|endoftext|> # helm_charts_deamonset-webhook-and-psp-values.yaml controller: kind: DaemonSet admissionWebhooks: enabled: true podSecurityPolicy: enabled: true <|endoftext|> # helm_charts_kafka-controller-cluster-role.yaml {{- if .Values.kafkaTrigger.enabled }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: name: kafka-controller-deployer rules: - apiGroups: - "" resources: - services - configmaps verbs: - get - list - apiGroups: - kubeless.io resources: - functions - kafkatriggers verbs: - get - list - watch - update - delete {{- end }} <|endoftext|> # helm_charts_gocd-ea-service-account.yaml {{ if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "gocd.serviceAccountName" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: "{{ template "gocd.name" . }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" {{ end }} <|endoftext|> # k8s_docs_dockercfg-secret.yaml apiVersion: v1 kind: Secret metadata: name: secret-dockercfg type: kubernetes.io/dockercfg data: .dockercfg: | eyJhdXRocyI6eyJodHRwczovL2V4YW1wbGUvdjEvIjp7ImF1dGgiOiJvcGVuc2VzYW1lIn19fQo= <|endoftext|> # istio_peer-authn-strict-and-permissive-port-mtls-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: strict-and-permissive-mtls spec: selector: matchLabels: app: a mtls: mode: STRICT portLevelMtls: 9090: mode: PERMISSIVE <|endoftext|> # istio_bds-removal.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Removed** using BOOTSTRAP_XDS_AGENT experimental feature to apply BOOTSTRAP EnvoyFilter patches at the startup. <|endoftext|> # helm_charts_prestashop-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "prestashop.fullname" . }}-prestashop labels: app: "{{ template "prestashop.name" . }}" chart: "{{ template "prestashop.chart" . }}" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{ include "prestashop.storageClass" . }} {{- end -}} <|endoftext|> # istio_58577.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 58546 releaseNotes: - | **Fixed** an issue where setting `ambient.istio.io/bypass-inbound-capture: "true"` causes inbound HBONE traffic to timeout because the iptables rule for tracking the ztunnel mark on connections was not applied. This PR allows inbound HBONE connections to function normally while preserving the expected bypass behavior for inbound "passthrough" connections. <|endoftext|> # istio_bookinfo-versions.yaml apiVersion: v1 kind: Service metadata: name: reviews-v1 spec: ports: - port: 9080 name: http selector: app: reviews version: v1 --- apiVersion: v1 kind: Service metadata: name: reviews-v2 spec: ports: - port: 9080 name: http selector: app: reviews version: v2 --- apiVersion: v1 kind: Service metadata: name: reviews-v3 spec: ports: - port: 9080 name: http selector: app: reviews version: v3 --- apiVersion: v1 kind: Service metadata: name: productpage-v1 spec: ports: - port: 9080 name: http selector: app: productpage version: v1 --- apiVersion: v1 kind: Service metadata: name: ratings-v1 spec: ports: - port: 9080 name: http selector: app: ratings version: v1 --- apiVersion: v1 kind: Service metadata: name: details-v1 spec: ports: - port: 9080 name: http selector: app: details version: v1 --- <|endoftext|> # argocd_source_progressive-failed.yaml apiVersion: numaplane.numaproj.io/v1alpha1 kind: MonoVertexRollout metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"numaplane.numaproj.io/v1alpha1","kind":"MonoVertexRollout","metadata":{"annotations":{},"labels":{"argocd.argoproj.io/instance":"demo-app"},"name":"my-monovertex","namespace":"example-namespace"},"spec":{"monoVertex":{"spec":{"sink":{"udsink":{"container":{"image":"quay.io/numaio/numaflow-go/sink-log:stable"}}},"source":{"udsource":{"container":{"image":"quay.io/numaio/numaflow-go/bad-image:stable"}}}}}}} creationTimestamp: "2025-01-26T05:38:04Z" finalizers: - numaplane.numaproj.io/numaplane-controller generation: 3 labels: argocd.argoproj.io/instance: demo-app name: my-monovertex namespace: example-namespace resourceVersion: "669046" uid: ffc093d1-0019-4b14-bcb2-bdbaa30b2834 spec: monoVertex: metadata: {} spec: sink: udsink: container: image: quay.io/numaio/numaflow-go/sink-log:stable source: udsource: container: image: quay.io/numaio/numaflow-go/bad-image:stable status: conditions: - lastTransitionTime: "2025-01-26T05:38:04Z" message: Successful observedGeneration: 3 reason: Successful status: "True" type: ChildResourceDeployed - lastTransitionTime: "2025-01-26T06:36:41Z" message: Successful observedGeneration: 3 reason: Successful status: "True" type: ChildResourcesHealthy - lastTransitionTime: "2025-01-26T05:38:04Z" message: MonoVertex unpaused observedGeneration: 3 reason: Unpaused status: "False" type: MonoVertexPausingOrPaused - lastTransitionTime: "2025-01-26T06:34:50Z" message: New Child Object example-namespace/my-monovertex-1 Failed observedGeneration: 3 reason: Failed status: "False" type: ProgressiveUpgradeSucceeded message: Deployed nameCount: 2 observedGeneration: 3 phase: Deployed progressiveStatus: upgradingChildStatus: assessmentResult: Failure name: my-monovertex-1 nextAssessmentTime: "2025-01-26T06:34:21Z" <|endoftext|> # istio_mesh.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: default hostname: "*.example.com" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: echo namespace: default spec: parentRefs: - group: "" kind: Service name: echo rules: - backendRefs: - name: echo port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: dual # applies to mesh and explicit gateway namespace: default spec: parentRefs: - group: "" kind: Service name: example - name: gateway namespace: istio-system hostnames: ["foo.example.com"] rules: - backendRefs: - name: example port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: header namespace: default spec: parentRefs: - group: "" kind: Service name: echo rules: - matches: - path: type: PathPrefix value: /path filters: - type: RequestHeaderModifier requestHeaderModifier: add: - name: my-added-header value: added-value backendRefs: - name: echo port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: echo-port namespace: default spec: parentRefs: - group: "" kind: Service name: echo-port port: 80 rules: - backendRefs: - name: echo port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: multi-service namespace: default spec: parentRefs: - group: "" kind: Service name: echo-1 port: 80 - group: "" kind: Service name: echo-1 port: 8080 - group: "" kind: Service name: echo-2 rules: - backendRefs: - name: echo port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: consumer-override namespace: default spec: parentRefs: - group: "" kind: Service name: httpbin-apple namespace: apple port: 80 rules: - backendRefs: - name: httpbin-apple namespace: apple port: 80 --- apiVersion: gateway.networking.k8s.io/v1alpha2 kind: TCPRoute metadata: name: tcp namespace: default spec: parentRefs: - group: "" kind: Service name: echo-1 rules: - backendRefs: - name: echo port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: TLSRoute metadata: name: tls namespace: default spec: parentRefs: - group: "" kind: Service name: echo-1 hostnames: - "*.example.com" rules: - backendRefs: - name: echo port: 80 --- <|endoftext|> # helm_charts_insight-scheduler-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "insight-scheduler.fullname" . }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.insightScheduler.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.insightScheduler.replicaCount }} selector: matchLabels: app: {{ template "mission-control.name" . }} component: {{ .Values.insightScheduler.name }} release: {{ .Release.Name }} template: metadata: name: {{ .Values.insightScheduler.name }} labels: app: {{ template "mission-control.name" . }} component: {{ .Values.insightScheduler.name }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "mission-control.serviceAccountName" . }} {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: init-data image: "{{ .Values.initContainerImage }}" command: - 'sh' - '-c' - > until nc -z -w 2 {{ .Release.Name }}-mongodb 27017 && echo mongodb ok; do sleep 2; done; sleep 10 containers: - name: {{ .Values.insightScheduler.name }} image: {{ .Values.insightScheduler.image }}:{{ default .Chart.AppVersion .Values.insightScheduler.version }} imagePullPolicy: {{ .Values.imagePullPolicy }} env: - name: CORE_URL value: 'http://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpPort }}' - name: JFI_HOME value: '/var/cloudbox' - name: JFI_HOME_SCHEDULER value: '/var/cloudbox/scheduler' - name: MONGO_URL value: '{{ .Release.Name }}-mongodb:27017' - name: MONGODB_USERNAME value: '{{ .Values.mongodb.db.insightUser }}' - name: MONGODB_PASSWORD valueFrom: secretKeyRef: name: {{ template "mission-control.fullname" . }}-mongodb-cred key: insightPassword - name: MONGODB_ADMIN_USERNAME value: '{{ .Values.mongodb.db.adminUser }}' - name: MONGODB_ADMIN_PASSWORD valueFrom: secretKeyRef: name: {{ template "mission-control.fullname" . }}-mongodb-cred key: adminPassword - name: JFMC_SCHEDULER_MONGO_DB value: '{{ .Values.mongodb.db.insightSchedulerDb }}' ports: - containerPort: {{ .Values.insightScheduler.internalPort }} protocol: TCP livenessProbe: httpGet: path: /schedulerservice/api/status port: 8080 initialDelaySeconds: 120 periodSeconds: 10 readinessProbe: httpGet: path: /schedulerservice/api/status port: 8080 initialDelaySeconds: 120 periodSeconds: 10 resources: {{ toYaml .Values.insightScheduler.resources | indent 10 }} {{- with .Values.insightScheduler.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.insightScheduler.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.insightScheduler.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # istio_deployment-multi-service.yaml apiVersion: v1 kind: Namespace metadata: name: bookinfo labels: istio-injection: "enabled" spec: {} --- # Deployment should generate a warning: two services using that deployment # using the same port but different protocol. apiVersion: apps/v1 kind: Deployment metadata: name: multiple-svc-multiple-prot namespace: bookinfo labels: app: details version: v1 spec: replicas: 1 selector: matchLabels: app: details version: v1 template: metadata: labels: app: details version: v1 spec: serviceAccountName: bookinfo-details containers: - name: details image: registry.istio.io/release/examples-bookinfo-details-v1:1.15.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 --- apiVersion: v1 kind: Service metadata: name: details-tcp-v1 namespace: bookinfo labels: app: details service: details spec: ports: - port: 9080 name: tcp protocol: TCP selector: app: details --- apiVersion: v1 kind: Service metadata: name: details-http-v1 namespace: bookinfo labels: app: details service: details spec: ports: - port: 9080 name: http protocol: HTTP selector: app: details --- # Deployment should generate a warning: two services using that deployment # using the same port but different protocol. apiVersion: apps/v1 kind: Deployment metadata: name: conflicting-ports namespace: bookinfo labels: app: conflicting-ports version: v1 spec: replicas: 1 selector: matchLabels: app: conflicting-ports version: v1 template: metadata: labels: app: conflicting-ports version: v1 spec: serviceAccountName: bookinfo-details containers: - name: details image: registry.istio.io/release/examples-bookinfo-details-v1:1.15.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 --- apiVersion: v1 kind: Service metadata: name: conflicting-ports-1 namespace: bookinfo labels: app: conflicting-ports spec: ports: - port: 9080 name: tcp targetPort: 9080 protocol: TCP selector: app: conflicting-ports --- apiVersion: v1 kind: Service metadata: name: conflicting-ports-2 namespace: bookinfo labels: app: conflicting-ports spec: ports: - port: 9090 name: http targetPort: 9080 protocol: HTTP selector: app: conflicting-ports --- # Deployment has two ports exposed, there are two services pointing to different ports. # It shouldn't generate a warning. apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v2 namespace: bookinfo labels: app: reviews version: v2 spec: replicas: 1 selector: matchLabels: app: reviews version: v2 template: metadata: labels: app: reviews version: v2 spec: serviceAccountName: bookinfo-reviews containers: - name: reviews image: registry.istio.io/release/examples-bookinfo-reviews-v2:1.15.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 - name: reviews-2 image: registry.istio.io/release/examples-bookinfo-reviews-v2:1.15.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9090 --- apiVersion: v1 kind: Service metadata: name: reviews-http-9080 namespace: bookinfo labels: app: reviews service: reviews spec: ports: - port: 9080 name: http protocol: HTTP selector: app: reviews --- apiVersion: v1 kind: Service metadata: name: reviews-http-9090 namespace: bookinfo labels: app: reviews service: reviews spec: ports: - port: 9090 name: http protocol: HTTP selector: app: reviews --- # Deployment has no service attached. It should generate a warning. apiVersion: apps/v1 kind: Deployment metadata: name: no-services namespace: bookinfo labels: app: ratings version: v1 spec: replicas: 1 selector: matchLabels: app: ratings version: v1 template: metadata: labels: app: ratings version: v1 spec: serviceAccountName: bookinfo-ratings containers: - name: ratings image: registry.istio.io/release/examples-bookinfo-ratings-v1:1.15.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 --- # Deployment doesn't have any container port specified and has two services using same port but different protocol. # It should generate a warning. apiVersion: apps/v1 kind: Deployment metadata: name: multiple-without-port namespace: bookinfo labels: app: productpage version: v1 spec: replicas: 1 selector: matchLabels: app: productpage version: v1 template: metadata: labels: app: productpage version: v1 spec: serviceAccountName: bookinfo-productpage containers: - name: productpage image: registry.istio.io/release/examples-bookinfo-productpage-v1:1.15.0 imagePullPolicy: IfNotPresent --- apiVersion: v1 kind: Service metadata: name: productpage-tcp-v1 namespace: bookinfo labels: app: productpage service: productpage spec: ports: - port: 9080 name: tcp protocol: TCP selector: app: productpage --- apiVersion: v1 kind: Service metadata: name: productpage-http-v1 namespace: bookinfo labels: app: productpage service: productpage spec: ports: - port: 9080 name: http protocol: HTTP selector: app: productpage --- # Deployment has no services attached but also is not in the service mesh. # It shouldn't generate a warning. apiVersion: apps/v1 kind: Deployment metadata: name: deployment-out-mesh namespace: bookinfo labels: app: productpage version: v1 spec: replicas: 1 selector: matchLabels: app: productpage version: v1 template: metadata: annotations: sidecar.istio.io/inject: "false" labels: app: productpage version: v1 spec: serviceAccountName: bookinfo-productpage containers: - name: productpage image: registry.istio.io/release/examples-bookinfo-productpage-v1:1.15.0 imagePullPolicy: IfNotPresent --- apiVersion: v1 kind: Namespace metadata: name: injection-disabled-ns spec: {} --- # Deployment has multiple service attached but using same port but different protocol. # Sidecar is enabled although the namespaced doesn't have automatic injection. # It should generate a warning. apiVersion: apps/v1 kind: Deployment metadata: name: ann-enabled-ns-disabled namespace: injection-disabled-ns labels: app: ratings version: v1 spec: replicas: 1 selector: matchLabels: app: ratings version: v1 template: metadata: annotations: sidecar.istio.io/inject: "true" labels: app: ratings version: v1 spec: serviceAccountName: bookinfo-ratings containers: - name: ratings image: registry.istio.io/release/examples-bookinfo-ratings-v1:1.15.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 --- # Deployment has no services attached, has the istio-proxy image, but is waypoint deployment. # It shouldn't generate a warning since it's controlled by Istio. apiVersion: apps/v1 kind: Deployment metadata: name: test-waypoint namespace: bookinfo labels: gateway.istio.io/managed: istio.io-mesh-controller spec: replicas: 1 selector: matchLabels: gateway.networking.k8s.io/gateway-name: productpage template: metadata: labels: sidecar.istio.io/inject: "false" gateway.networking.k8s.io/gateway-name: productpage spec: serviceAccountName: productpage-istio-waypoint containers: - name: istio-proxy image: registry.istio.io/release/proxyv2:1.20.0-dev1 imagePullPolicy: IfNotPresent <|endoftext|> # istio_54064.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 54056 releaseNotes: - | **Fixed** `istioctl waypoint delete --all` deletes gateway resources that are not waypoints. <|endoftext|> # argocd_source_ssd-service-config.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/instance: httpbin name: httpbin-svc namespace: httpbin spec: ports: - name: http-port port: 7777 targetPort: 80 - name: test port: 333 selector: app: httpbin <|endoftext|> # argocd_source_update_in_progress.yaml apiVersion: sql.cnrm.cloud.google.com/v1beta1 kind: SQLInstance metadata: generation: 1 status: observedGeneration: 1 conditions: - lastTransitionTime: '2022-07-01T12:56:21Z' message: Update in progress reason: Updating status: 'False' type: Ready <|endoftext|> # istio_ip-allocation-v2-default.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 53596 releaseNotes: - | **Promoted** the `PILOT_ENABLE_IP_AUTOALLOCATE` value to default to `true`. This enables the new iteration of [IP auto-allocation](/docs/ops/configuration/traffic-management/dns-proxy/#address-auto-allocation), fixing long-standing issues around allocation instability, ambient support, and increased visibility. `ServiceEntry` objects without `spec.address` set will now see a new field, `status.addresses`, automatically set. Note these will not be used unless proxies are configured to do DNS proxying, which remains off-by-default. <|endoftext|> # k8s_docs_limit-mem-cpu-pod.yaml apiVersion: v1 kind: LimitRange metadata: name: limit-mem-cpu-per-pod spec: limits: - max: cpu: "2" memory: "2Gi" type: Pod <|endoftext|> # argocd_source_mariadb_error.yaml apiVersion: k8s.mariadb.com/v1alpha1 kind: MariaDB metadata: name: mariadb-server spec: rootPasswordSecretKeyRef: name: mariadb key: root-password image: repository: mariadb tag: "10.7.4" pullPolicy: IfNotPresent port: 3306 volumeClaimTemplate: resources: requests: storage: 100Mi storageClassName: standard accessModes: - ReadWriteOnce status: conditions: - lastTransitionTime: '2023-04-20T15:31:15Z' message: Error creating ConfigMap reason: Failed status: 'False' type: Ready <|endoftext|> # istio_49638.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 49638 releaseNotes: - | **Fixed** a bug with mixed cases Hosts in Gateway and TLS redirect results in stale RDS. <|endoftext|> # istio_opencensus-removal.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Removed** OpenCensus support upgradeNotes: - title: OpenCensus support has been removed content: | Because Envoy has removed [OpenCensus tracing extension](https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.33/v1.33.0.html#incompatible-behavior-changes), we have removed OpenCensus support from Istio. If you are using OpenCensus, you should migrate to OpenTelemetry. <|endoftext|> # istio_ewgw-tls-passthrough.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for TLS passthrough listeners on east-west gateways, allowing non-HBONE ports to be exposed via the Gateway API (e.g., to route traffic to the Kubernetes API server across network boundaries). This requires `AMBIENT_ENABLE_MULTI_NETWORK` to be enabled. <|endoftext|> # istio_gateway-customization.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issues: - 53964 - 46594 - 53473 - 54453 releaseNotes: - | **Added** support for customizations to [Gateway API Automated Deployments](https://istio.io/latest/docs/tasks/traffic-management/ingress/gateway-api/#automated-deployment). This includes both `istio` Gateway types (used for ingress and egress) as well as `istio-waypoint` Gateway types used for ambient mode waypoints. Users can now customize arbitrary elements of the generated Service, Deployment, ServiceAccount, HorizontalPodAutoscaler, and PodDisruptionBudget. <|endoftext|> # k8s_docs_run-my-nginx.yaml apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx spec: selector: matchLabels: run: my-nginx replicas: 2 template: metadata: labels: run: my-nginx spec: containers: - name: my-nginx image: nginx ports: - containerPort: 80 <|endoftext|> # k8s_docs_network-policy-allow-all-egress.yaml --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-all-egress spec: podSelector: {} egress: - {} policyTypes: - Egress <|endoftext|> # argocd_source_rollout-disallowing-data-loss.yaml apiVersion: numaplane.numaproj.io/v1alpha1 kind: PipelineRollout metadata: creationTimestamp: "2024-10-02T23:01:46Z" annotations: numaplane.numaproj.io/allow-data-loss: "false" finalizers: - numaplane.numaproj.io/numaplane-controller generation: 2 name: test-pipeline-rollout namespace: numaplane-system resourceVersion: "1771" uid: f89f2135-a6a6-443c-8584-cbf6d789f2db spec: pipeline: spec: edges: - conditions: null from: in to: cat - conditions: null from: cat to: out interStepBufferServiceName: test-isbservice-rollout lifecycle: {} vertices: - name: in scale: max: 1 min: 1 zeroReplicaSleepSeconds: 15 source: generator: duration: 1s rpu: 5 updateStrategy: {} - name: cat scale: max: 1 min: 1 zeroReplicaSleepSeconds: 15 udf: builtin: name: cat container: null groupBy: null updateStrategy: {} - name: out scale: max: 1 min: 1 zeroReplicaSleepSeconds: 15 sink: log: {} retryStrategy: {} updateStrategy: {} watermark: {} status: conditions: - lastTransitionTime: "2024-10-02T23:01:46Z" message: Successful observedGeneration: 1 reason: Successful status: "True" type: ChildResourceDeployed - lastTransitionTime: "2024-10-02T23:02:41Z" message: Pipeline Progressing observedGeneration: 2 reason: Progressing status: "False" type: ChildResourcesHealthy - lastTransitionTime: "2024-10-02T23:02:41Z" message: Pipeline pausing observedGeneration: 2 reason: PipelinePausing status: "True" type: PipelinePausingOrPaused message: Progressing nameCount: 0 observedGeneration: 2 pauseStatus: lastPauseBeginTime: "2024-10-02T23:02:41Z" lastPauseEndTime: null phase: Pending upgradeInProgress: PipelinePauseAndDrain <|endoftext|> # grafana_charts_monitoring.grafana.com_podlogs.yaml --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.9.2 creationTimestamp: null name: podlogs.monitoring.grafana.com spec: group: monitoring.grafana.com names: categories: - agent-operator kind: PodLogs listKind: PodLogsList plural: podlogs singular: podlogs scope: Namespaced versions: - name: v1alpha1 schema: openAPIV3Schema: properties: apiVersion: type: string kind: type: string metadata: type: object spec: properties: jobLabel: type: string namespaceSelector: properties: any: type: boolean matchNames: items: type: string type: array type: object pipelineStages: items: properties: cri: type: object docker: type: object drop: properties: dropCounterReason: type: string expression: type: string longerThan: type: string olderThan: type: string source: type: string value: type: string type: object json: properties: expressions: additionalProperties: type: string type: object source: type: string type: object labelAllow: items: type: string type: array labelDrop: items: type: string type: array labels: additionalProperties: type: string type: object limit: properties: burst: type: integer drop: type: boolean rate: type: integer type: object match: properties: action: type: string dropCounterReason: type: string pipelineName: type: string selector: type: string stages: type: string required: - selector type: object metrics: additionalProperties: properties: action: type: string buckets: items: type: string type: array countEntryBytes: type: boolean description: type: string matchAll: type: boolean maxIdleDuration: type: string prefix: type: string source: type: string type: type: string value: type: string required: - action - type type: object type: object multiline: properties: firstLine: type: string maxLines: type: integer maxWaitTime: type: string required: - firstLine type: object output: properties: source: type: string required: - source type: object pack: properties: ingestTimestamp: type: boolean labels: items: type: string type: array required: - labels type: object regex: properties: expression: type: string source: type: string required: - expression type: object replace: properties: expression: type: string replace: type: string source: type: string required: - expression type: object template: properties: source: type: string template: type: string required: - source - template type: object tenant: properties: label: type: string source: type: string value: type: string type: object timestamp: properties: actionOnFailure: type: string fallbackFormats: items: type: string type: array format: type: string location: type: string source: type: string required: - format - source type: object type: object type: array podTargetLabels: items: type: string type: array relabelings: items: properties: action: default: replace enum: - replace - Replace - keep - Keep - drop - Drop - hashmod - HashMod - labelmap - LabelMap - labeldrop - LabelDrop - labelkeep - LabelKeep - lowercase - Lowercase - uppercase - Uppercase - keepequal - KeepEqual - dropequal - DropEqual type: string modulus: format: int64 type: integer regex: type: string replacement: type: string separator: type: string sourceLabels: items: pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$ type: string type: array targetLabel: type: string type: object type: array selector: properties: matchExpressions: items: properties: key: type: string operator: type: string values: items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string type: object type: object x-kubernetes-map-type: atomic required: - selector type: object type: object served: true storage: true <|endoftext|> # istio_app.yaml apiVersion: v1 kind: Service metadata: name: tornado labels: app: tornado service: tornado spec: ports: - port: 8888 name: http selector: app: tornado --- apiVersion: apps/v1 kind: Deployment metadata: name: tornado spec: replicas: 1 selector: matchLabels: app: tornado version: v1 template: metadata: labels: app: tornado version: v1 spec: containers: - name: tornado image: docker.io/hiroakis/tornado-websocket-example imagePullPolicy: IfNotPresent ports: - containerPort: 8888 --- <|endoftext|> # k8s_docs_dual-stack-preferred-ipfamilies-svc.yaml apiVersion: v1 kind: Service metadata: name: my-service labels: app: MyApp spec: ipFamilyPolicy: PreferDualStack ipFamilies: - IPv6 - IPv4 selector: app: MyApp ports: - protocol: TCP port: 80 <|endoftext|> # k8s_docs_php-apache.yaml apiVersion: apps/v1 kind: Deployment metadata: name: php-apache spec: selector: matchLabels: run: php-apache replicas: 1 template: metadata: labels: run: php-apache spec: containers: - name: php-apache image: k8s.gcr.io/hpa-example ports: - containerPort: 80 resources: limits: cpu: 500m requests: cpu: 200m --- apiVersion: v1 kind: Service metadata: name: php-apache labels: run: php-apache spec: ports: - port: 80 selector: run: php-apache <|endoftext|> # helm_charts_pushgateway-clusterrolebinding.yaml {{- if and .Values.pushgateway.enabled .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: labels: {{- include "prometheus.pushgateway.labels" . | nindent 4 }} name: {{ template "prometheus.pushgateway.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "prometheus.serviceAccountName.pushgateway" . }} {{ include "prometheus.namespace" . | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "prometheus.pushgateway.fullname" . }} {{- end }} <|endoftext|> # helm_charts_redis-master-svc.yaml {{- if not .Values.sentinel.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "redis.fullname" . }}-master labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- if .Values.master.service.labels -}} {{ toYaml .Values.master.service.labels | nindent 4 }} {{- end -}} {{- if .Values.master.service.annotations }} annotations: {{ toYaml .Values.master.service.annotations | nindent 4 }} {{- end }} spec: type: {{ .Values.master.service.type }} {{- if and (eq .Values.master.service.type "LoadBalancer") .Values.master.service.loadBalancerIP }} loadBalancerIP: {{ .Values.master.service.loadBalancerIP }} {{- end }} {{- if and (eq .Values.master.service.type "LoadBalancer") .Values.master.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- with .Values.master.service.loadBalancerSourceRanges }} {{ toYaml . | indent 4 }} {{- end }} {{- end }} ports: - name: redis port: {{ .Values.master.service.port }} targetPort: redis {{- if .Values.master.service.nodePort }} nodePort: {{ .Values.master.service.nodePort }} {{- end }} selector: app: {{ template "redis.name" . }} release: {{ .Release.Name }} role: master {{- end }} <|endoftext|> # istio_pod.yaml apiVersion: v1 kind: Pod metadata: name: hellopod spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_examples_vsphere-volume-spbm-policy.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: fast provisioner: kubernetes.io/vsphere-volume parameters: diskformat: zeroedthick storagePolicyName: gold <|endoftext|> # istio_40997.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue where Remote JWKS URI's without a host port fail to parse into their host and port components. <|endoftext|> # istio_defaultrevision-validatingwebhookconfiguration.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "cluster") }} {{- if not (eq .Values.defaultRevision "") }} apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: istiod-default-validator labels: app: istiod release: {{ .Release.Name }} istio: istiod istio.io/rev: {{ .Values.defaultRevision | quote }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} webhooks: - name: validation.istio.io clientConfig: {{- if .Values.base.validationURL }} url: {{ .Values.base.validationURL }} {{- else }} service: {{- if (eq .Values.defaultRevision "default") }} name: istiod {{- else }} name: istiod-{{ .Values.defaultRevision }} {{- end }} namespace: {{ .Values.global.istioNamespace }} path: "/validate" {{- end }} {{- if .Values.base.validationCABundle }} caBundle: "{{ .Values.base.validationCABundle }}" {{- end }} rules: - operations: - CREATE - UPDATE apiGroups: - security.istio.io - networking.istio.io - telemetry.istio.io - extensions.istio.io apiVersions: - "*" resources: - "*" {{- if .Values.base.validationCABundle }} # Disable webhook controller in Pilot to stop patching it failurePolicy: Fail {{- else if .Values.base.validationFailurePolicy }} failurePolicy: {{ .Values.base.validationFailurePolicy }} {{- else if not .Release.IsUpgrade }} # Fail open until the validation webhook is ready. The webhook controller # will update this to `Fail` and patch in the `caBundle` when the webhook # endpoint is ready. failurePolicy: Ignore {{- end }} sideEffects: None admissionReviewVersions: ["v1"] {{- end }} {{- end }} <|endoftext|> # helm_charts_nextcloud-pvc.yaml {{- if .Values.persistence.enabled -}} {{- if not .Values.persistence.existingClaim -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "nextcloud.fullname" . }}-nextcloud labels: app.kubernetes.io/name: {{ include "nextcloud.name" . }} helm.sh/chart: {{ include "nextcloud.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.persistence.annotations }} annotations: {{ toYaml .Values.persistence.annotations | indent 4 }} {{- end }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{- if .Values.persistence.storageClass }} {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end -}} {{- end -}} <|endoftext|> # helm_charts_apiservice.yaml apiVersion: apiregistration.k8s.io/v1beta1 kind: APIService metadata: name: v1beta1.admission.certmanager.k8s.io labels: app: {{ include "webhook.name" . }} chart: {{ include "webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: group: admission.certmanager.k8s.io groupPriorityMinimum: 1000 versionPriority: 15 service: name: {{ include "webhook.fullname" . }} namespace: "{{ .Release.Namespace }}" version: v1beta1 <|endoftext|> # grafana_charts_poddisruptionbudget-ruler.yaml {{- if and .Values.ruler.enabled (gt (int .Values.ruler.replicas) 1) }} {{- if kindIs "invalid" .Values.ruler.maxUnavailable }} {{- fail "`.Values.ruler.maxUnavailable` must be set when `.Values.ruler.replicas` is greater than 1." }} {{- else }} apiVersion: {{ include "loki.pdb.apiVersion" . }} kind: PodDisruptionBudget metadata: name: {{ include "loki.rulerFullname" . }} labels: {{- include "loki.rulerLabels" . | nindent 4 }} spec: selector: matchLabels: {{- include "loki.rulerSelectorLabels" . | nindent 6 }} {{- with .Values.ruler.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} {{- with .Values.ruler.minAvailable }} minAvailable: {{ . }} {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_k8s-cluster-rsrc-use.yaml {{- /* Generated from 'k8s-cluster-rsrc-use' from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/grafana-dashboardDefinitions.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} apiVersion: v1 kind: ConfigMap metadata: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-cluster-rsrc-use" | trunc 63 | trimSuffix "-" }} annotations: {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} labels: {{- if $.Values.grafana.sidecar.dashboards.label }} {{ $.Values.grafana.sidecar.dashboards.label }}: "1" {{- end }} app: {{ template "prometheus-operator.name" $ }}-grafana {{ include "prometheus-operator.labels" $ | indent 4 }} data: k8s-cluster-rsrc-use.json: |- { "annotations": { "list": [ ] }, "editable": true, "gnetId": null, "graphTooltip": 0, "hideControls": false, "links": [ ], "refresh": "10s", "rows": [ { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 1, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:cluster_cpu_utilisation:ratio{cluster=\"$cluster\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Utilisation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": 1, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:node_cpu_saturation_load1:{cluster=\"$cluster\"} / scalar(sum(min(kube_pod_info{cluster=\"$cluster\"}) by (node)))", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Saturation (Load1)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": 1, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "CPU", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 3, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:cluster_memory_utilisation:ratio{cluster=\"$cluster\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Utilisation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": 1, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 4, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:node_memory_swap_io_bytes:sum_rate{cluster=\"$cluster\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Saturation (Swap I/O)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "Bps", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Memory", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 5, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:node_disk_utilisation:avg_irate{cluster=\"$cluster\"} / scalar(:kube_pod_info_node_count:{cluster=\"$cluster\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Disk IO Utilisation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": 1, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 6, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:node_disk_saturation:avg_irate{cluster=\"$cluster\"} / scalar(:kube_pod_info_node_count:{cluster=\"$cluster\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Disk IO Saturation", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": 1, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Disk", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 7, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:node_net_utilisation:sum_irate{cluster=\"$cluster\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Net Utilisation (Transmitted)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "Bps", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] }, { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 8, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 6, "stack": true, "steppedLine": false, "targets": [ { "expr": "node:node_net_saturation:sum_irate{cluster=\"$cluster\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Net Saturation (Dropped)", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "Bps", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Network", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 10, "id": 9, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 0, "links": [ ], "nullPointMode": "null as zero", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": true, "steppedLine": false, "targets": [ { "expr": "sum(max(node_filesystem_size_bytes{fstype=~\"ext[234]|btrfs|xfs|zfs\", cluster=\"$cluster\"} - node_filesystem_avail_bytes{fstype=~\"ext[234]|btrfs|xfs|zfs\", cluster=\"$cluster\"}) by (device,pod,namespace)) by (pod,namespace)\n/ scalar(sum(max(node_filesystem_size_bytes{fstype=~\"ext[234]|btrfs|xfs|zfs\", cluster=\"$cluster\"}) by (device,pod,namespace)))\n* on (namespace, pod) group_left (node) node_namespace_pod:kube_pod_info:{cluster=\"$cluster\"}\n", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{`}}node{{`}}`}}", "legendLink": "./d/4ac4f123aae0ff6dbaf4f4f66120033b/k8s-node-rsrc-use", "step": 10 } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Disk Capacity", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "percentunit", "label": null, "logBase": 1, "max": 1, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Storage", "titleSize": "h6" } ], "schemaVersion": 14, "style": "dark", "tags": [ "kubernetes-mixin" ], "templating": { "list": [ { "current": { "text": "Prometheus", "value": "Prometheus" }, "hide": 0, "label": null, "name": "datasource", "options": [ ], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": null, "current": { "text": "prod", "value": "prod" }, "datasource": "$datasource", "hide": 2, "includeAll": false, "label": "cluster", "multi": false, "name": "cluster", "options": [ ], "query": "label_values(:kube_pod_info_node_count:, cluster)", "refresh": 1, "regex": "", "sort": 2, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "Kubernetes / USE Method / Cluster", "uid": "a6e7d1362e1ddbb79db21d5bb40d7137", "version": 0 } {{- end }} <|endoftext|> # argocd_source_resumed_imageupdateautomation.yaml apiVersion: image.toolkit.fluxcd.io/v1beta2 kind: ImageUpdateAutomation metadata: name: podinfo-update namespace: default spec: interval: 30m sourceRef: kind: GitRepository name: podinfo git: commit: author: email: fluxcdbot@users.noreply.github.com name: fluxcdbot push: branch: main suspend: false update: path: ./ <|endoftext|> # istio_57448.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 56741 releaseNotes: - | **Fixed** cluster waypoint correct_originate configuration when `PILOT_SKIP_VALIDATE_TRUST_DOMAIN` is set. <|endoftext|> # istio_33455.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 33455 releaseNotes: - | **Improved** the installation of Istio on remote clusters using an external control plane. The istiodRemote component now includes all of the resources needed for either a basic remote or config cluster. upgradeNotes: - title: The istiodRemote installation component now includes config cluster resources. content: | Installing Istio on a remote cluster that is using an external control plane was previously done by disabling the `base` and `pilot` components and enabling the `istiodRemote` component in the IOP: {{< text yaml >}} components: base: enabled: false pilot: enabled: false istiodRemote: enabled: true values: global: externalIstiod: true {{< /text >}} If the remote cluster also serves as the config cluster for the external control plane, the `base` component would also be enabled: {{< text yaml >}} components: base: enabled: true pilot: enabled: false istiodRemote: enabled: true values: global: externalIstiod: true {{< /text >}} To simplify the implementation and to completely separate the remote installation from the `base` component, the `istiodRemote` component now includes all of the charts needed for any remote cluster, whether it serves as a config cluster or not. A new variable `values.global.configCluster` is used to enable/disable the resources needed in a config cluster: {{< text yaml >}} components: base: enabled: false pilot: enabled: false istiodRemote: enabled: true values: global: externalIstiod: true configCluster: true {{< /text >}} <|endoftext|> # k8s_examples_secret.yaml apiVersion: v1 kind: Secret metadata: name: sio-secret type: kubernetes.io/scaleio data: username: YWRtaW4= password: c0NhbGVpbzEyMw== <|endoftext|> # istio_add-affinity-field-to-istiod.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: [] releaseNotes: - | **Added** affinity field to Istiod Deployment. This field is used to control the scheduling of Istiod pods. <|endoftext|> # helm_charts_rolebinding.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "hazelcast-jet.fullname" . }} labels: app.kubernetes.io/name: {{ template "hazelcast-jet.name" . }} helm.sh/chart: {{ template "hazelcast-jet.chart" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" app.kubernetes.io/managed-by: "{{ .Release.Service }}" roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "hazelcast-jet.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "hazelcast-jet.serviceAccountName" . }} namespace: {{ .Release.Namespace }} {{ end }} <|endoftext|> # istio_53829.yaml apiVersion: release-notes/v2 kind: bug-fix area: security releaseNotes: - | **Added** unconfined AppArmor annotation to the istio-cni-node DaemonSet to avoid conflicts with AppArmor profiles which block certain privileged pod capabilities. Previously, AppArmor (when enabled) was bypassed for the istio-cni-node DaemonSet since privileged was set to true in the SecurityContext. This change ensures that the AppArmor profile is set to unconfined for the istio-cni-node DaemonSet. <|endoftext|> # istio_57782.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 57291 releaseNotes: - | **Fixed** ServiceEntry with overlapping hostnames within the same namespace causing unpredictable behavior in ambient mode. <|endoftext|> # k8s_docs_quota-objects-pvc.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvc-quota-demo spec: storageClassName: manual accessModes: - ReadWriteOnce resources: requests: storage: 3Gi <|endoftext|> # helm_charts_auth-delegator-crb.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "metrics-server.fullname" . }}:system:auth-delegator labels: app: {{ template "metrics-server.name" . }} chart: {{ template "metrics-server.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - kind: ServiceAccount name: {{ template "metrics-server.serviceAccountName" . }} namespace: {{ .Release.Namespace }} {{- end -}} <|endoftext|> # argocd_source_progressing.yaml apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: foo namespace: default spec: minAvailable: 1 selector: matchLabels: app.kubernetes.io/name: foo <|endoftext|> # helm_charts_cloud-code-configmap.yaml {{- if and .Values.server.enableCloudCode (or .Values.server.cloudCodeScripts (.Files.Glob "files/cloud/*.js")) (not .Values.server.existingCloudCodeCM) }} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "parse.fullname" . }}-cloud-code-scripts labels: {{ include "parse.labels" . | nindent 4 }} app.kubernetes.io/component: server data: {{- with .Files.Glob "files/cloud/*.js" }} {{ .AsConfig | indent 2 }} {{- end }} {{- if .Values.server.cloudCodeScripts }} {{- include "parse.tplValue" (dict "value" .Values.server.cloudCodeScripts "context" $) | nindent 2 }} {{- end }} {{- end }} <|endoftext|> # istio_51559.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 51294 releaseNotes: - | **Added** a status subcommand that prints out the status of gateway(s) for a given namespace. <|endoftext|> # helm_charts_pvc-backup.yaml {{- if and .Values.persistence.enabled (not .Values.persistence.existingBackupClaim) }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "mssql.fullname" . }}-backup labels: app: {{ template "mssql.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- if .Values.persistence.annotations }} annotations: {{ toYaml .Values.persistence.annotations | indent 4 }} {{- end }} spec: accessModes: - {{ .Values.persistence.backupAccessMode | quote }} resources: requests: storage: {{ .Values.persistence.backupSize | quote }} {{- if .Values.persistence.storageClass }} {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end -}} <|endoftext|> # istio_startup_live.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 livenessProbe: httpGet: port: http startupProbe: httpGet: port: 3333 - name: world image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 90 livenessProbe: httpGet: port: http startupProbe: exec: command: - cat - /tmp/healthy <|endoftext|> # istio_51072.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry releaseNotes: - | **Fixed** an issue that span name isn't set when using the OpenTelemetry tracing provider. <|endoftext|> # istio_peer-authn-permissive-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: permissive-mtls spec: mtls: mode: PERMISSIVE <|endoftext|> # istio_46483.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** an issue where resources are being pruned when installing with the dry-run option. <|endoftext|> # istio_41996.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 41763 releaseNotes: - | **Added** support for `reporting_interval`. <|endoftext|> # istio_hello-template-in-values.iop.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: namespace: istio-system name: example-istiocontrolplane spec: values: global: podDNSSearchNamespaces: - "global" - "{{ valueOrDefault .DeploymentMeta.Namespace \"default\" }}.global" <|endoftext|> # istio_51221.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** Incorrect iptables rules for ambient in IPv6 mode <|endoftext|> # helm_charts_files-configmap.yaml {{- if .Values.graylog.serverFiles -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "graylog.fullname" . }}-files labels: {{ include "graylog.metadataLabels" . | indent 4 }} data: {{- range $key, $value := .Values.graylog.serverFiles }} {{ $key }}: | {{ $value | default "{}" | indent 4 }} {{- end -}} {{- end -}} <|endoftext|> # k8s_examples_quobyte-storage-class.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: slow provisioner: kubernetes.io/quobyte parameters: quobyteAPIServer: "http://138.68.74.142:7860" registry: "138.68.74.142:7861" adminSecretName: "quobyte-admin-secret" adminSecretNamespace: "kube-system" user: "root" group: "root" quobyteConfig: "BASE" quobyteTenant: "DEFAULT" createQuota: "False" <|endoftext|> # kube_prometheus_prometheus-frontend-alertmanager-discovery-role-binding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: prometheus-frontend namespace: monitoring roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: alertmanager-discovery subjects: - kind: ServiceAccount name: prometheus-frontend namespace: default <|endoftext|> # argocd_source_success.yaml apiVersion: promoter.argoproj.io/v1alpha1 kind: CommitStatus metadata: name: test generation: 2 status: conditions: - type: Ready status: True observedGeneration: 2 id: test-2 sha: abc1234 phase: success <|endoftext|> # istio_57004.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - https://github.com/istio/istio/issues/57004 releaseNotes: - | **Added** support for configuring `seccompProfile` in the `istio-validation` and `istio-proxy` containers within the sidecar injection template. Users can now set the `seccompProfile.type` to `RuntimeDefault` for enhanced security compliance. upgradeNotes: - title: Enabling seccompProfile for Sidecar Containers content: | To enable the `RuntimeDefault` seccomp profile for `istio-validation` and `istio-proxy` containers, set the following in your Istio configuration: ```yaml global: proxy: seccompProfile: type: RuntimeDefault ``` This change allows for better security practices by using the default seccomp profile provided by the container runtime. docs: - https://istio.io/latest/docs/setup/additional-setup/security/ securityNotes: - The addition of `seccompProfile` support enhances the security posture of Istio by allowing users to leverage the `RuntimeDefault` profile, which restricts the system calls available to the containers, reducing the attack surface. <|endoftext|> # istio_52319.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 52319 releaseNotes: - | **Fixed** persistent IP autoallocation for service entry to allocate per-host rather than per-servicenEntry <|endoftext|> # istio_51934.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 51934 releaseNotes: - | **Added** a new flag `remote-contexts` to the `istioctl analyze` command to specify remote cluster contexts during multi-cluster analysis. <|endoftext|> # helm_charts_config-custom-server-blocks.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "kong.fullname" . }}-default-custom-server-blocks labels: {{- include "kong.metaLabels" . | nindent 4 }} data: servers.conf: | # Prometheus metrics and health-checking server server { server_name kong_prometheus_exporter; listen 0.0.0.0:9542; # can be any other port as well access_log off; location /status { default_type text/plain; return 200; } location /metrics { default_type text/plain; content_by_lua_block { local prometheus = require "kong.plugins.prometheus.exporter" prometheus:collect() } } location /nginx_status { internal; access_log off; stub_status; } } <|endoftext|> # helm_charts_rethinkdb-proxy-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "rethinkdb.fullname" . }}-proxy labels: app: {{ template "rethinkdb.name" . }}-proxy chart: {{ template "rethinkdb.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} annotations: {{- if .Values.proxy.service.annotations }} {{ toYaml .Values.proxy.service.annotations | indent 4 }} {{- end }} spec: type: {{ .Values.proxy.service.type }} {{- if .Values.proxy.service.clusterIP }} clusterIP: {{ .Values.proxy.service.clusterIP | quote }} {{- end }} {{- if .Values.proxy.service.externalIPs }} externalIPs: {{ toYaml .Values.proxy.service.externalIPs | indent 4 }} {{- end }} {{- if .Values.proxy.service.loadBalancerIP }} loadBalancerIP: "{{ .Values.proxy.service.loadBalancerIP }}" {{- end }} {{- if .Values.proxy.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{ toYaml .Values.proxy.service.loadBalancerSourceRanges | indent 4 }} {{- end }} ports: - port: {{ .Values.ports.driver }} targetPort: driver selector: app: {{ template "rethinkdb.name" . }}-proxy release: {{ .Release.Name }} <|endoftext|> # istio_peerauth-invalid.yaml _err: 'Unsupported value: "BLAH"' apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: bad-mode spec: mtls: mode: BLAH --- _err: type conversion error from apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: bad-port spec: selector: matchLabels: foo: bar portLevelMtls: "acd": mode: STRICT --- _err: portLevelMtls requires selector apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: port-level-global spec: portLevelMtls: "80": mode: STRICT --- _err: spec.portLevelMtls in body should have at least 1 properties apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: empty-port-level spec: selector: matchLabels: foo: bar portLevelMtls: {} --- _err: port must be between 1-65535 apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: zero-port spec: selector: matchLabels: foo: bar portLevelMtls: "0": mode: STRICT --- _err: port must be between 1-65535 apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: high-port spec: selector: matchLabels: foo: bar portLevelMtls: "42949672": mode: STRICT <|endoftext|> # argocd_source_healthy_alert.yaml apiVersion: coralogix.com/v1beta1 kind: Alert metadata: name: bitbucketcontainernotrunning-test spec: alertType: metricThreshold: metricFilter: promql: >- sum({namespace="bitbucket",pod=~"bitbucket-k8s-.*",condition="false"}) by (pod) missingValues: replaceWithZero: true rules: - condition: conditionType: moreThan forOverPct: 100 ofTheLast: specificValue: 5m threshold: 0 override: priority: p1 description: >- Bitbucket one of the container is not running entityLabels: app: bitbucket name: Bitbucketcontainernotrunning-test notificationGroup: groupByKeys: - pod webhooks: - integration: integrationRef: backendRef: name: opsgenie-example notifyOn: triggeredAndResolved retriggeringPeriod: minutes: 60 - integration: integrationRef: backendRef: name: critical-alerts-webhook notifyOn: triggeredAndResolved retriggeringPeriod: minutes: 60 priority: p1 status: conditions: - lastTransitionTime: '2025-07-17T07:39:55Z' message: Remote resource synced observedGeneration: 3 reason: RemoteSyncedSuccessfully status: 'True' type: RemoteSynced <|endoftext|> # k8s_docs_validating-admission-policy-audit-annotation.yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: name: "demo-policy.example.com" spec: failurePolicy: Fail matchConstraints: resourceRules: - apiGroups: ["apps"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["deployments"] validations: - expression: "object.spec.replicas > 50" messageExpression: "'Deployment spec.replicas set to ' + string(object.spec.replicas)" auditAnnotations: - key: "high-replica-count" valueExpression: "'Deployment spec.replicas set to ' + string(object.spec.replicas)" <|endoftext|> # istio_53880.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 53875 releaseNotes: - | **Fixed** an issue where `istioctl install` deadlocks if multiple ingress gateways are specified in the IstioOperator file <|endoftext|> # argocd_source_initial_ocirepository.yaml apiVersion: source.toolkit.fluxcd.io/v1beta2 kind: OCIRepository metadata: name: podinfo namespace: default spec: interval: 5m0s url: oci://ghcr.io/stefanprodan/manifests/podinfo ref: tag: latest <|endoftext|> # k8s_examples_dns-frontend-pod.yaml apiVersion: v1 kind: Pod metadata: name: dns-frontend labels: name: dns-frontend spec: containers: - name: dns-frontend image: registry.k8s.io/example-dns-frontend:v1 command: - python - client.py - http://dns-backend.development.svc.cluster.local:8000 imagePullPolicy: Always restartPolicy: Never <|endoftext|> # istio_peer-authn-permissive-root-unset-namespace-mixed-workload-ports-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-mesh namespace: istio-system spec: mtls: mode: PERMISSIVE --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-foo namespace: foo spec: mtls: mode: UNSET --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: workload namespace: foo spec: selector: matchLabels: app: a portLevelMtls: 9090: mode: STRICT 8080: mode: PERMISSIVE <|endoftext|> # k8s_docs_dual-stack-ipv4-svc.yaml apiVersion: v1 kind: Service metadata: name: my-service spec: ipFamily: IPv4 selector: app: MyApp ports: - protocol: TCP port: 80 targetPort: 9376 <|endoftext|> # istio_bugfix-http2-upgrade-policy.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 57583 releaseNotes: - | **Fixed** an issue where HTTP/2 connection pool settings are not applied when enabling HTTP/2 upgrades <|endoftext|> # istio_telemetry-cel.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Updated** CEL vocabulary used in the telemetry APIs and extensions. upgradeNotes: - title: Standardization of the peer metadata attributes content: | CEL expressions in the telemetry API must use the standard [Envoy attributes](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/advanced/attributes) instead of the custom Wasm extended attributes. Peer metadata is now stored in `filter_state.downstream_peer` and `filter_state.upstream_peer` instead of `filter_state["wasm.downstream_peer"]` and `filter_state["wasm.upstream_peer"]`. Node metadata is stored in `xds.node` instead of `node`. Wasm attributes must be fully qualified, e.g. use `filter_state["wasm.istio_responseClass"]` instead of `istio_responseClass`. Presence operator can be used for backwards compatible expressions in a mixed proxy scenario, e.g. `has(filter_state.downstream_peer) ? filter_state.downstream_peer.namespace : filter_state["wasm.downstream_peer"].namespace` to read the namespace of the peer. The peer metadata uses baggage encoding with the following field attributes: `namespace`, `cluster`, `service`, `revision`, `app`, `version`, `workload`, `type` (e.g. `"deployment"`), and `name` (e.g. `"pod-foo-12345"`). <|endoftext|> # helm_charts_engine_upgrade_job.yaml apiVersion: batch/v1 kind: Job metadata: name: "{{ .Release.Name }}-engine-upgrade" labels: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" annotations: "helm.sh/hook": post-upgrade "helm.sh/hook-weight": "-5" spec: template: metadata: name: "{{ .Release.Name }}-engine-upgrade" labels: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: securityContext: runAsUser: 1000 runAsGroup: 1000 {{- if .Values.anchoreEnterpriseGlobal.enabled }} imagePullSecrets: - name: {{ .Values.anchoreEnterpriseGlobal.imagePullSecretName }} {{- else }} {{- with .Values.anchoreGlobal.imagePullSecretName }} imagePullSecrets: - name: {{ . }} {{- end }} {{- end }} restartPolicy: Never containers: - name: "{{ .Release.Name }}-enterprise-upgrade" {{- if .Values.anchoreEnterpriseGlobal.enabled }} image: {{ .Values.anchoreEnterpriseGlobal.image }} imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }} {{- else }} image: {{ .Values.anchoreGlobal.image }} imagePullPolicy: {{ .Values.anchoreGlobal.imagePullPolicy }} {{- end }} {{- if .Values.anchoreGlobal.dbConfig.ssl }} args: ["/bin/bash", "-c", "anchore-manager db --db-use-ssl --db-connect postgresql://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME}?sslmode={{ .Values.anchoreGlobal.dbConfig.sslMode }}\\&sslrootcert=/home/anchore/certs/{{ .Values.anchoreGlobal.dbConfig.sslRootCertName }} upgrade --dontask"] {{- else }} args: ["/bin/bash", "-c", "anchore-manager db --db-connect postgresql://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME} upgrade --dontask"] {{- end }} envFrom: - secretRef: name: {{ default (include "anchore-engine.fullname" .) .Values.anchoreGlobal.existingSecret }} - configMapRef: name: {{ template "anchore-engine.fullname" . }}-env env: {{- with .Values.anchoreGlobal.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} {{- if (.Values.anchoreGlobal.certStoreSecretName) }} volumeMounts: - name: certs mountPath: /home/anchore/certs/ readOnly: true {{- end }} {{- with .Values.anchoreGlobal.certStoreSecretName }} volumes: - name: certs secret: secretName: {{ . }} {{- end }} <|endoftext|> # istio_43120.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Improved** `istioctl operator remove` command to run without the confirmation in the dry-run mode. <|endoftext|> # argocd_examples_carts-svc.yaml --- apiVersion: v1 kind: Service metadata: name: carts labels: name: carts spec: ports: # the port that this service should serve on - port: 80 targetPort: 80 selector: name: carts <|endoftext|> # istio_37227.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: [] releaseNotes: - | **Added** environment variable support at Wasm extension via VM configuration in WasmPlugin API. <|endoftext|> # helm_charts_schema-registry-external.yaml {{- if .Values.external.enabled }} apiVersion: v1 kind: Service metadata: {{- if .Values.external.annotations }} annotations: {{ toYaml .Values.external.annotations | indent 4 }} {{- end }} name: {{ template "schema-registry.fullname" . }}-external labels: app: {{ template "schema-registry.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: type: {{ .Values.external.type }} ports: - name: schema-registry-external port: {{ .Values.external.servicePort }} targetPort: {{ .Values.external.servicePort }} {{- if eq .Values.external.type "NodePort" }} nodePort: {{ .Values.external.nodePort }} {{- end }} protocol: TCP {{- if eq .Values.external.type "LoadBalancer" }} loadBalancerIP: {{ .Values.external.loadBalancerIP }} {{- end }} selector: app: {{ template "schema-registry.name" . }} release: {{ .Release.Name | quote}} {{- end }} <|endoftext|> # istio_wasm-pull-policy.yaml apiVersion: release-notes/v2 kind: feature area: extensibility issue: [] releaseNotes: - | **Added** Support for ImagePullPolicy of WasmPlugin API. <|endoftext|> # argocd_source_cluster_suspended.yaml apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: annotations: cnpg.io/hibernation: "on" kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"postgresql.cnpg.io/v1","kind":"Cluster","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"cloudnative-pg-clusters"},"name":"cluster-example","namespace":"cnpg-samples"},"spec":{"imageName":"ghcr.io/cloudnative-pg/postgresql:13","instances":3,"storage":{"size":"1Gi"}}} creationTimestamp: "2025-05-03T19:20:53Z" generation: 1 labels: app.kubernetes.io/instance: cloudnative-pg-clusters name: cluster-example namespace: cnpg-samples resourceVersion: "21135385" uid: 994785d4-9a89-4b12-bfb6-b02f7a8b5402 spec: affinity: podAntiAffinityType: preferred bootstrap: initdb: database: app encoding: UTF8 localeCType: C localeCollate: C owner: app enablePDB: true enableSuperuserAccess: false failoverDelay: 0 imageName: ghcr.io/cloudnative-pg/postgresql:13 instances: 3 logLevel: info maxSyncReplicas: 0 minSyncReplicas: 0 monitoring: customQueriesConfigMap: - key: queries name: cnpg-default-monitoring disableDefaultQueries: false enablePodMonitor: false postgresGID: 26 postgresUID: 26 postgresql: parameters: archive_mode: "on" archive_timeout: 5min dynamic_shared_memory_type: posix full_page_writes: "on" log_destination: csvlog log_directory: /controller/log log_filename: postgres log_rotation_age: "0" log_rotation_size: "0" log_truncate_on_rotation: "false" logging_collector: "on" max_parallel_workers: "32" max_replication_slots: "32" max_worker_processes: "32" shared_memory_type: mmap shared_preload_libraries: "" ssl_max_protocol_version: TLSv1.3 ssl_min_protocol_version: TLSv1.3 wal_keep_size: 512MB wal_level: logical wal_log_hints: "on" wal_receiver_timeout: 5s wal_sender_timeout: 5s syncReplicaElectionConstraint: enabled: false primaryUpdateMethod: restart primaryUpdateStrategy: unsupervised replicationSlots: highAvailability: enabled: true slotPrefix: _cnpg_ synchronizeReplicas: enabled: true updateInterval: 30 resources: {} smartShutdownTimeout: 180 startDelay: 3600 stopDelay: 1800 storage: resizeInUseVolumes: true size: 1Gi switchoverDelay: 3600 status: availableArchitectures: - goArch: amd64 hash: 0a8f22a9c14805f67b92f6994d6487da7570929108443d1a70a66b8d47a51b2f - goArch: arm64 hash: c8318d0576271cba8bdb120a6500f273038035a9bf97e36c9a367ea0ae3590c0 certificates: clientCASecret: cluster-example-ca expirations: cluster-example-ca: 2025-08-01 19:15:53 +0000 UTC cluster-example-replication: 2025-08-01 19:15:54 +0000 UTC cluster-example-server: 2025-08-01 19:15:53 +0000 UTC replicationTLSSecret: cluster-example-replication serverAltDNSNames: - cluster-example-rw - cluster-example-rw.cnpg-samples - cluster-example-rw.cnpg-samples.svc - cluster-example-rw.cnpg-samples.svc.cluster.local - cluster-example-r - cluster-example-r.cnpg-samples - cluster-example-r.cnpg-samples.svc - cluster-example-r.cnpg-samples.svc.cluster.local - cluster-example-ro - cluster-example-ro.cnpg-samples - cluster-example-ro.cnpg-samples.svc - cluster-example-ro.cnpg-samples.svc.cluster.local serverCASecret: cluster-example-ca serverTLSSecret: cluster-example-server cloudNativePGCommitHash: c56e00d4 cloudNativePGOperatorHash: c8318d0576271cba8bdb120a6500f273038035a9bf97e36c9a367ea0ae3590c0 conditions: - lastTransitionTime: "2025-05-03T19:41:11Z" message: Cluster is Ready reason: ClusterIsReady status: "True" type: Ready - lastTransitionTime: "2025-05-03T19:40:28Z" message: Continuous archiving is working reason: ContinuousArchivingSuccess status: "True" type: ContinuousArchiving - lastTransitionTime: "2025-05-03T19:53:47Z" message: Cluster has been hibernated reason: Hibernated status: "True" type: cnpg.io/hibernation configMapResourceVersion: metrics: cnpg-default-monitoring: "21125563" currentPrimary: cluster-example-1 currentPrimaryTimestamp: "2025-05-03T19:40:28.384836Z" danglingPVC: - cluster-example-1 - cluster-example-2 - cluster-example-3 image: ghcr.io/cloudnative-pg/postgresql:13 instanceNames: - cluster-example-1 - cluster-example-2 - cluster-example-3 instances: 3 latestGeneratedNode: 3 managedRolesStatus: {} phase: Cluster in healthy state poolerIntegrations: pgBouncerIntegration: {} pvcCount: 3 readService: cluster-example-r secretsResourceVersion: applicationSecretVersion: "21125529" clientCaSecretVersion: "21125524" replicationSecretVersion: "21125528" serverCaSecretVersion: "21125524" serverSecretVersion: "21125527" switchReplicaClusterStatus: {} targetPrimary: cluster-example-1 targetPrimaryTimestamp: "2025-05-03T19:40:24.717007Z" timelineID: 5 topology: successfullyExtracted: true writeService: cluster-example-rw <|endoftext|> # helm_charts_jmeter-server-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "distributed-jmeter.fullname" . }}-server labels: app.kubernetes.io/name: {{ include "distributed-jmeter.name" . }} helm.sh/chart: {{ include "distributed-jmeter.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: server spec: replicas: {{ .Values.server.replicaCount }} strategy: type: RollingUpdate selector: matchLabels: app.kubernetes.io/name: {{ include "distributed-jmeter.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: server template: metadata: labels: app.kubernetes.io/name: {{ include "distributed-jmeter.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: server spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: ["server"] ports: - containerPort: 50000 - containerPort: 1099 <|endoftext|> # k8s_examples_redis-sentinel-service.yaml apiVersion: v1 kind: Service metadata: labels: name: sentinel role: service name: redis-sentinel spec: ports: - port: 26379 targetPort: 26379 selector: redis-sentinel: "true" <|endoftext|> # istio_30294.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 30295 releaseNotes: - | **Added** OIDC JWT authenticator that supports both JWKS-URI and OIDC discovery. The OIDC JWT authenticator will be used when configured through the JWT_RULE env variable. <|endoftext|> # helm_charts_hpa-custom-metrics-cluster-role-binding.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}-hpa-controller roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "k8s-prometheus-adapter.name" . }}-server-resources subjects: - kind: ServiceAccount name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # helm_charts_jenkins_v1alpha2_jenkinsinstance.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: creationTimestamp: null labels: app.kubernetes.io/instance: '{{.Release.Name}}' app.kubernetes.io/managed-by: '{{.Release.Service}}' app.kubernetes.io/name: '{{include "jenkins-operator.name" .}}' app.kubernetes.io/version: '{{.Chart.AppVersion | replace "+" "_" | trunc 63}}' controller-tools.k8s.io: "1.0" helm.sh/chart: '{{include "jenkins-operator.chart" .}}' name: jenkinsinstances.jenkins.jenkinsoperator.samsung-cnct.github.com spec: group: jenkins.jenkinsoperator.samsung-cnct.github.com names: kind: JenkinsInstance plural: jenkinsinstances scope: Namespaced subresources: status: {} validation: openAPIV3Schema: properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' type: string metadata: type: object spec: properties: adminsecret: type: string affinity: description: Affinity settings type: object annotations: description: Jenkins deployment annotations type: object cascconfig: description: configuration-as-code spec properties: configmap: description: or casc config(s) mounted from a named config map type: string configstring: description: casc config as multi-line yaml string type: string type: object cascsecret: description: configuration-as-code secret name type: string dnspolicy: description: dns policy type: string env: description: Dictionary of environment variable values type: object groovysecret: description: groovy configuration secret name type: string image: description: What container image to use for a new jenkins instance pattern: .+:.+ type: string imagepullpolicy: description: image pull policy type: string imagepullsecrets: description: image pull secrets items: type: object type: array nodename: description: specific node name type: string nodeselector: description: node selector type: object plugins: description: Array of plugins to be installed items: properties: id: description: plugin id type: string version: description: plugin version string, follows the format at https://github.com/jenkinsci/docker#plugin-version-format type: string required: - id - version type: object type: array resources: description: container resource requests type: object service: description: Jenkins service options properties: annotations: description: Jenkins service annotations type: object name: description: Jenkins service name type: string nodeport: description: If type is node port, use this node port value format: int32 type: integer servicetype: description: Jenkins instance service type type: string type: object serviceaccount: description: Service account name for jenkins to run under type: string storage: description: Jenkins storage options properties: jobspvc: description: Name of pre-existing (or not) PVC for jobs type: string jobspvcspec: description: If PVC is to be created, what is its spec type: object type: object tolerations: description: tolerations items: type: object type: array type: object status: properties: adminsecret: description: setup secret type: string phase: description: state if jenkins server instance type: string required: - phase type: object versions: - name: v1alpha1 served: false storage: false - name: v1alpha2 served: true storage: true status: acceptedNames: kind: "" plural: "" conditions: [] storedVersions: [] <|endoftext|> # cert_manager_Chart.template.yaml apiVersion: v2 name: cert-manager description: A Helm chart for cert-manager home: https://cert-manager.io icon: https://raw.githubusercontent.com/cert-manager/community/4d35a69437d21b76322157e6284be4cd64e6d2b7/logo/logo-small.png keywords: - cert-manager - kube-lego - letsencrypt - tls annotations: artifacthub.io/license: Apache-2.0 artifacthub.io/category: security artifacthub.io/prerelease: "{{IS_PRERELEASE}}" maintainers: - name: cert-manager-maintainers email: cert-manager-maintainers@googlegroups.com url: https://cert-manager.io sources: - https://github.com/cert-manager/cert-manager kubeVersion: ">= 1.22.0-0" # The version and appVersion fields are set automatically by the release tool version: v0.0.0 appVersion: v0.0.0 <|endoftext|> # istio_50138.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** Gateway status addresses receiving Service VIPs from outside the cluster. <|endoftext|> # helm_charts_freshclam-configmap.yaml {{- if .Values.freshclamConfig -}} kind: ConfigMap apiVersion: v1 metadata: name: {{ include "clamav.fullname" . }}-freshclam labels: app: {{ template "clamav.name" . }} chart: {{ template "clamav.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: freshclam.conf: {{ toYaml .Values.freshclamConfig | indent 4 }} {{- end }} <|endoftext|> # helm_charts_servicemonitors.yaml {{- if and .Values.prometheus.enabled .Values.prometheus.additionalServiceMonitors }} apiVersion: v1 kind: List items: {{- range .Values.prometheus.additionalServiceMonitors }} - apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ .name }} namespace: {{ template "prometheus-operator.namespace" $ }} labels: app: {{ template "prometheus-operator.name" $ }}-prometheus {{ include "prometheus-operator.labels" $ | indent 8 }} {{- if .additionalLabels }} {{ toYaml .additionalLabels | indent 8 }} {{- end }} spec: endpoints: {{ toYaml .endpoints | indent 8 }} {{- if .jobLabel }} jobLabel: {{ .jobLabel }} {{- end }} {{- if .namespaceSelector }} namespaceSelector: {{ toYaml .namespaceSelector | indent 8 }} {{- end }} selector: {{ toYaml .selector | indent 8 }} {{- if .targetLabels }} targetLabels: {{ toYaml .targetLabels | indent 8 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # grafana_charts_service-index-gateway-headless.yaml {{- if .Values.indexGateway.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "loki.indexGatewayFullname" . }}-headless labels: {{- include "loki.indexGatewaySelectorLabels" . | nindent 4 }} prometheus.io/service-monitor: "false" spec: type: ClusterIP clusterIP: None ports: - name: http port: 3100 targetPort: http protocol: TCP - name: grpc port: 9095 targetPort: grpc protocol: TCP {{- with .Values.indexGateway.appProtocol.grpc }} appProtocol: {{ . }} {{- end }} selector: {{- include "loki.indexGatewaySelectorLabels" . | nindent 4 }} {{- end }} <|endoftext|> # helm_charts_kubernetesendpointresolver.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: kubernetesendpointresolvers.getambassador.io labels: app.kubernetes.io/name: ambassador annotations: "helm.sh/hook": crd-install spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: kubernetesendpointresolvers singular: kubernetesendpointresolver kind: KubernetesEndpointResolver <|endoftext|> # istio_mtls-echo.yaml apiVersion: v1 kind: Service metadata: labels: app: mtls-echo name: mtls-echo spec: selector: app: mtls-echo type: ClusterIP ports: - name: https protocol: TCP port: 8443 targetPort: 8443 --- apiVersion: apps/v1 kind: Deployment metadata: name: mtls-echo-v1 spec: replicas: 1 selector: matchLabels: app: mtls-echo version: v1 template: metadata: labels: app: mtls-echo version: v1 spec: containers: - args: - --metrics=15014 - --port - "3333" - --port - "8080" - --port - "8443" - --mtls - "8443" - --version - v1 - --crt=/cert.crt - --key=/cert.key env: - name: INSTANCE_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP image: registry.istio.io/testing/app:latest imagePullPolicy: Always livenessProbe: failureThreshold: 10 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: tcp-health-port timeoutSeconds: 1 name: app ports: - containerPort: 3333 name: tcp-health-port protocol: TCP - containerPort: 8080 protocol: TCP - containerPort: 8443 protocol: TCP readinessProbe: failureThreshold: 10 httpGet: path: / port: 8080 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 startupProbe: failureThreshold: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: tcp-health-port timeoutSeconds: 1 volumeMounts: - name: certs mountPath: /certs - name: ca-certs mountPath: /etc/certs/ca.crt volumes: - name: certs secret: secretName: mtls-echo-certs - name: ca secret: secretName: mtls-echo-ca <|endoftext|> # k8s_examples_vsphere-volume-sc-vsancapabilities.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: fast provisioner: kubernetes.io/vsphere-volume parameters: diskformat: zeroedthick hostFailuresToTolerate: "2" cachereservation: "20" <|endoftext|> # istio_configdump-query-types.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - https://github.com/istio/istio/pull/42658 releaseNotes: - | **Added** support for missing resource types to `/config_dump` API <|endoftext|> # argocd_source_green.yaml apiVersion: logstash.k8s.elastic.co/v1alpha1 kind: Logstash metadata: name: quickstart status: health: green <|endoftext|> # argocd_source_errorAnalysisRun.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: name: canary-demo-analysis-template-6c6bb7cf6f-btpgc namespace: default spec: analysisSpec: metrics: - failureCondition: result < 92 interval: 10 name: memory-usage provider: prometheus: address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' query: > sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) successCondition: result > 95 status: metricResults: - consecutiveError: 5 error: 5 measurements: - finishedAt: '2019-10-28T18:13:01Z' startedAt: '2019-10-28T18:13:01Z' phase: Error value: '[0.9832775919732442]' - finishedAt: '2019-10-28T18:13:11Z' startedAt: '2019-10-28T18:13:11Z' phase: Error value: '[0.9832775919732442]' - finishedAt: '2019-10-28T18:13:21Z' startedAt: '2019-10-28T18:13:21Z' phase: Error value: '[0.9722530521642618]' - finishedAt: '2019-10-28T18:13:31Z' startedAt: '2019-10-28T18:13:31Z' phase: Error value: '[0.9722530521642618]' - finishedAt: '2019-10-28T18:13:41Z' startedAt: '2019-10-28T18:13:41Z' phase: Error value: '[0.9722530521642618]' name: memory-usage phase: Error phase: Error <|endoftext|> # istio_39201.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 39201 releaseNotes: - | **Fixed** WorkloadEntry.Annotations is nil and then lead to abnormal exit of pilot. <|endoftext|> # kube_prometheus_prometheus-clusterRole.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s rules: - apiGroups: - "" resources: - nodes/metrics verbs: - get - nonResourceURLs: - /metrics - /metrics/slis verbs: - get <|endoftext|> # k8s_docs_clusterrole.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: annotations: rbac.authorization.kubernetes.io/autoupdate: "true" labels: kubernetes.io/bootstrapping: rbac-defaults name: system:kube-scheduler rules: - apiGroups: - coordination.k8s.io resources: - leases verbs: - create - apiGroups: - coordination.k8s.io resourceNames: - kube-scheduler - my-scheduler resources: - leases verbs: - get - update - apiGroups: - "" resourceNames: - kube-scheduler - my-scheduler resources: - endpoints verbs: - delete - get - patch - update <|endoftext|> # argocd_examples_catalogue-svc.yaml --- apiVersion: v1 kind: Service metadata: name: catalogue labels: name: catalogue spec: ports: # the port that this service should serve on - port: 80 targetPort: 80 selector: name: catalogue <|endoftext|> # istio_image-auto.yaml # Injected namespace. apiVersion: v1 kind: Namespace metadata: name: injected labels: istio-injection: enabled --- # Non-injected namespace. apiVersion: v1 kind: Namespace metadata: name: non-injected --- apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: name: istio-sidecar-injector webhooks: - admissionReviewVersions: - v1beta1 clientConfig: service: name: fake namespace: istio-system name: namespace.sidecar-injector.istio.io namespaceSelector: matchLabels: istio-injection: enabled - admissionReviewVersions: - v1beta1 clientConfig: service: name: fake namespace: istio-system name: object.sidecar-injector.istio.io objectSelector: matchLabels: sidecar.istio.io/inject: "true" --- # Should produce error! apiVersion: v1 kind: Pod metadata: name: injected-pod namespace: default spec: containers: - image: auto name: istio-proxy --- # Not injected, should produce error! apiVersion: apps/v1 kind: Deployment metadata: name: non-injected-gateway-deployment namespace: not-injected spec: selector: matchLabels: istio: ingressgateway template: metadata: annotations: inject.istio.io/templates: gateway labels: istio: ingressgateway spec: containers: - name: istio-proxy image: auto --- # No image auto, should not produce error! apiVersion: v1 kind: Pod metadata: name: istiod-canary-1234567890-12345 namespace: istio-system labels: app: istiod istio: pilot sidecar.istio.io/inject: "true" spec: containers: - image: ubuntu name: ubuntu <|endoftext|> # helm_charts_service-kong-portal.yaml {{- if .Values.enterprise.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "kong.fullname" . }}-portal annotations: {{- range $key, $value := .Values.portal.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} labels: {{- include "kong.metaLabels" . | nindent 4 }} spec: type: {{ .Values.portal.type }} {{- if eq .Values.portal.type "LoadBalancer" }} {{- if .Values.portal.loadBalancerIP }} loadBalancerIP: {{ .Values.portal.loadBalancerIP }} {{- end }} {{- if .Values.portal.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- range $cidr := .Values.portal.loadBalancerSourceRanges }} - {{ $cidr }} {{- end }} {{- end }} {{- end }} externalIPs: {{- range $ip := .Values.portal.externalIPs }} - {{ $ip }} {{- end }} ports: {{- if .Values.portal.http.enabled }} - name: kong-portal port: {{ .Values.portal.http.servicePort }} targetPort: {{ .Values.portal.http.containerPort }} {{- if (and (eq .Values.portal.type "NodePort") (not (empty .Values.portal.http.nodePort))) }} nodePort: {{ .Values.portal.http.nodePort }} {{- end }} protocol: TCP {{- end }} {{- if or .Values.portal.tls.enabled }} - name: kong-portal-tls port: {{ .Values.portal.tls.servicePort }} targetPort: {{ .Values.portal.tls.containerPort }} {{- if (and (eq .Values.portal.type "NodePort") (not (empty .Values.portal.tls.nodePort))) }} nodePort: {{ .Values.portal.tls.nodePort }} {{- end }} protocol: TCP {{- end }} selector: {{- include "kong.selectorLabels" . | nindent 4 }} {{- end -}} <|endoftext|> # argocd_source_degraded_canceled.yaml apiVersion: tower.ansible.com/v1alpha1 kind: AnsibleJob metadata: annotations: argocd.argoproj.io/hook: PreSync creationTimestamp: "2023-06-27T20:22:22Z" generateName: prehook-test- generation: 1 labels: app.kubernetes.io/instance: ansible-hooks tower_job_id: "1" name: prehook-test-dfcff01-presync-1687897341 namespace: argocd resourceVersion: "6536518" uid: 09fa0d39-a170-4c37-a3b0-6e140e029868 spec: job_template_name: Demo Job Template tower_auth_secret: toweraccess status: ansibleJobResult: changed: true elapsed: "5.21" failed: false finished: "2023-06-27T20:22:40.116381Z" started: "2023-06-27T20:22:34.906399Z" status: canceled url: https://argocd.test.ansiblejob.custom.health.com/#/jobs/playbook/1 <|endoftext|> # istio_productpage.yaml ################################################################################################## # Productpage services ################################################################################################## apiVersion: v1 kind: Service metadata: name: productpage labels: app: productpage service: productpage spec: ports: - port: 9080 name: http selector: app: productpage --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-productpage labels: account: productpage --- apiVersion: apps/v1 kind: Deployment metadata: name: productpage-v1 labels: app: productpage version: v1 spec: replicas: 1 selector: matchLabels: app: productpage version: v1 template: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/port: "9080" prometheus.io/path: "/metrics" labels: app: productpage version: v1 spec: serviceAccountName: bookinfo-productpage containers: - name: productpage image: registry.istio.io/release/examples-bookinfo-productpage-v1:1.18.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp volumes: - name: tmp emptyDir: {} <|endoftext|> # grafana_charts_service-metrics-generator-discovery.yaml {{- if .Values.metricsGenerator.enabled }} {{- $dict := dict "ctx" . "component" "metrics-generator" "memberlist" true }} apiVersion: v1 kind: Service metadata: name: {{ template "tempo.resourceName" $dict }}-discovery namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} prometheus.io/service-monitor: "false" {{- with .Values.metricsGenerator.serviceDiscovery.annotations }} annotations: {{- tpl (toYaml . | nindent 4) $ }} {{- end }} spec: type: ClusterIP clusterIP: None ports: {{- range .Values.metricsGenerator.ports }} {{- if .service }} - name: {{ .name | quote }} port: {{ .port }} protocol: TCP targetPort: {{ .port }} {{- if and (hasPrefix .name "grpc") ($.Values.metricsGenerator.appProtocol.grpc) }} appProtocol: {{ $.Values.metricsGenerator.appProtocol.grpc }} {{- end }} {{- end }} {{- end }} selector: {{- include "tempo.selectorLabels" $dict | nindent 4 }} {{- end }} <|endoftext|> # istio_secrets.yaml {{- range $i := until .Services }} apiVersion: v1 kind: Secret metadata: name: sds-credential-{{$i}} namespace: default type: kubernetes.io/tls data: tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURrVENDQW5tZ0F3SUJBZ0lKQU5tdzVmRUlJS3lVTUEwR0NTcUdTSWIzRFFFQkN3VUFNRjh4Q3pBSkJnTlYKQkFZVEFrRlZNUk13RVFZRFZRUUlEQXBUYjIxbExWTjBZWFJsTVNFd0h3WURWUVFLREJoSmJuUmxjbTVsZENCWAphV1JuYVhSeklGQjBlU0JNZEdReEdEQVdCZ05WQkFNTUQyRndhUzVqYjIxd1lXNTVMbU52YlRBZUZ3MHhOekE0Ck1EWXlNVEkwTXpKYUZ3MHlOekE0TURReU1USTBNekphTUY4eEN6QUpCZ05WQkFZVEFrRlZNUk13RVFZRFZRUUkKREFwVGIyMWxMVk4wWVhSbE1TRXdId1lEVlFRS0RCaEpiblJsY201bGRDQlhhV1JuYVhSeklGQjBlU0JNZEdReApHREFXQmdOVkJBTU1EMkZ3YVM1amIyMXdZVzU1TG1OdmJUQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQCkFEQ0NBUW9DZ2dFQkFNODNjb2JEOWsrazg1UlRkSTFxQ1pxanBGSnpkV1oxR3Zib1BNVUttOFpHZmVjZEFuU2kKUjVHODVZUnhhS0c5RFVxL3kwaHR6YmlpNVdLaFE2eDN4TmtybDhYaVdROHhCbHdjdzljL3ZXS3hMem9jcURTTgpCTktIOWVHcjNRbFZ3MkI5OE5rT0IxRDlIVHNSb2pHTFJnZElRUkgrREJEOWdteVlsUGJybWZKZXhqUzAvbmp5CkRLb0h5YzlHdlZ0UEFTMFFVZ2NNUllYenhWMnloSXFsTzNWQ0M1RlRHVmZxMWp2SGMvMmJoZ3VhTDJhYXNNMU8KNVF4K2VPbE43Ynh5ZWo3cmN4bXlnTGVqUHpWWWpkdlQzemNtOTBSREx4ck50SHo2NDl2ZGl4bGszNkJmL1ZpRAp1S3F3QlZtU2pESkFhT1FxUFZtMWtPa0VpcGowU3N4V3I0a0NBd0VBQWFOUU1FNHdIUVlEVlIwT0JCWUVGSUgzCm44T3hzV2IrWFg3Y2dDcXIyVkE4YzgvMU1COEdBMVVkSXdRWU1CYUFGSUgzbjhPeHNXYitYWDdjZ0NxcjJWQTgKYzgvMU1Bd0dBMVVkRXdRRk1BTUJBZjh3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUJ1QzBJcnhkTDRaemNEawpEZktJYU9OTXdlTTk1cmoxaWViWmU5Vm13WmZUeGl4S0djVG1LNEpZTUM0bmZHY2g0Ny8rSFVrcU9PQXZjWEJVCmpzaU9kbW5mOU9jNmtWdjc5RndzQzVzYUlwOWZCRXE3OHR6bnNnOEdNT3R6c29nY3VPMEFONkxaUWJYQTR4dnMKNGZ6MDUwVDkwTW5MQTFkNWtCTUZGOFAyMU5MRWZNSy80bndxV3FoRkVGZ3Q2ajFVWklFUllSVGxkSm9CR2tpUAp6ZGova2tBTnhwTnlxWXhMbkJBZUdXbzV0cWpBeU1jcjZyQXoyZmh3Nm1rMEltaUxjM09MWmcxYm1oY0VBekNVCitKZENIekhrS3pDdUVBekNScHdZZFM3Yy9BQUwxSGFZaGlldkNQZnpmUmpNTU0vVzkreUJJdFRMeU0vTVlVbVAKMnRvVDVuOD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= tls.key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBenpkeWhzUDJUNlR6bEZOMGpXb0ptcU9rVW5OMVpuVWE5dWc4eFFxYnhrWjk1eDBDCmRLSkhrYnpsaEhGb29iME5Tci9MU0czTnVLTGxZcUZEckhmRTJTdVh4ZUpaRHpFR1hCekQxeis5WXJFdk9oeW8KTkkwRTBvZjE0YXZkQ1ZYRFlIM3cyUTRIVVAwZE94R2lNWXRHQjBoQkVmNE1FUDJDYkppVTl1dVo4bDdHTkxUKwplUElNcWdmSnowYTlXMDhCTFJCU0J3eEZoZlBGWGJLRWlxVTdkVUlMa1ZNWlYrcldPOGR6L1p1R0M1b3ZacHF3CnpVN2xESDU0NlUzdHZISjZQdXR6R2JLQXQ2TS9OVmlOMjlQZk55YjNSRU12R3MyMGZQcmoyOTJMR1dUZm9GLzkKV0lPNHFyQUZXWktNTWtCbzVDbzlXYldRNlFTS21QUkt6RmF2aVFJREFRQUJBb0lCQUNSUjVLb0lhUURXdWJieQoxY2Yvb1FWUXozbUFNVUN2SC9YTkNQSEVoVDlBbGNyUGcrR3JtLzNJYlRaRXBvRks0S3lNWjNZZmdPSnU4dVBSCnZrblppRkJFV3NyZGZKeTBEQmhURm1TQkVKSGUycGRGOUptWmFoSDRzTGxJWldyQWRJbFNLY2Z4dElpV2hPd1kKa0NRODlCNU1wTk1oZ3ozcklWUWxmbDYxTnZ1TEhrbmw2c3krMGw0OUMyWnptSit0YWNoTUFpUDllUmRQdXA0MgprM1hXZ3pFOUd6RVdieTd0ek1jY1p6OXFoT1lWcGM1eW15RmFrdVB1WEs0TWpNRHRwMzBxQm91QU53a2tWSTFqCjFDUlY4TlJKU0h2d0RUSHJZNk5IRUdUTFh6S2hIbVZyY1h1K0dQSmNIMUNNVUllYnJqQWRoV0VDYXdhUU8wM2MKUnNWTTZYMENnWUVBN3JkUDFaS3JVeWlSaVdwaC82YmdCMUNYSzM2Q0t2QnU1QUNIUXVGNml6MU9aTTNOb2FLMgprdFE2L2VSd1FialA4eVpIRGFxL2VoeTk5K3RMTnJ1TEIzT0RRbG03bGZkdEZKWmZ1YXM3aGJjSXBIK1BUSWZ2CmpXTjYxNzc4TlRmd3dTQ2x5OVcyRGtkbDNKcGlvR0xiWUVwMzhzZGJtUWVDaWxaWmM2NkR3MU1DZ1lFQTNqaEkKRDVjT3lMbkt1VWp5WnBVZTZndHBrQlNHM3R5Nkg1RE5MQWk2NE9XWkhhZlQvMlpLSWVrWDhSbGY4YklNL0FzQwpYby9LY3JQL1ZrSzhWd0c5NjVFWVhrVEFEeDBkTU16cTEvbUw5SE5OTEhuYXFPdVpEYk52eVNzcnVmMVpRNHgwCnkvaTB2QUdFNlpod28xd2dYL0dxZ0tBM3g5cldxekUxY21wTFlqTUNnWUE1elY5aWFxSmJmMzVHRk9GbjR3TnEKSWdTSXZwaE1SMjNDZmJKQzZwQWV1UmlMWmgzOW5vV3c1ZnptejNLekowb0xLV0NaR1poRnZFSHZqeVRtT3VFKwpTNlVqNHRCK1RxdzJDUGRpNE9pSHh6c3JnY3UwRDFKZEhSSjR2VUVhcmRINUlhdWp3THJWbUVvODhaRWlIdTNaCjBnNWJWaFNDNklPZWRhd3hTN2VTQ3dLQmdRRFY0cWdCVVd5cWFLRWwrMzlNbTBVWkVnajE0N3Y0cjh6NWF0Ny8KL2hzWk1nUlJGZU1uMU9XUGhCSkdQaDBwdmkxZlBwMTJOTUl2NnUzZHNmZ2phb3JKUEd1TytHOC9YTTltMUNWSgo0V2dDemlPK3BqNS9EZHpQNGlDN0tMRTZvQTRWeFEvNTd4VE9URXdJcG0vcjNGVlE0NE12c0laZjkxTmRqTXliCnBwR09Id0tCZ1FDQTE2NUhpaE5zUVVITlJnUmtmR292WENEc0UyNllpRnFyYjNVYzJPOEhodEk1M2MzZ0N6NTQKT25uZ2x2YzlXVGNrV2RHdHBTTWJjdHRPTjJrYUFvTTVwcUJyMll0dWJ4MDZ2V04vcDVva0JhcWJWTkFNWVZsNQpqY2Q5R2xEeWdGLytEZlhEQUNoYTJrOURzRDBqSWJOMW9BSVk0SGFzOE12dTlSdWdmdHFSYlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= --- {{- end }} <|endoftext|> # istio_54095.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** `istioctl experimental injector list` print redundant namespaces for injector webook. <|endoftext|> # argocd_source_monovertex-force-promote.yaml apiVersion: numaflow.numaproj.io/v1alpha1 kind: MonoVertex metadata: creationTimestamp: "2024-10-09T21:18:37Z" generation: 1 name: simple-mono-vertex namespace: numaflow-system resourceVersion: "1382" uid: b7b9e4f8-cd4b-4771-9e4b-2880cc50467a labels: numaplane.numaproj.io/force-promote: "true" numaplane.numaproj.io/upgrade-state: "in-progress" spec: lifecycle: desiredPhase: Running replicas: 1 sink: udsink: container: image: quay.io/numaio/numaflow-java/simple-sink:stable source: transformer: container: image: quay.io/numaio/numaflow-rs/source-transformer-now:stable udsource: container: image: quay.io/numaio/numaflow-java/source-simple-source:stable updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate status: conditions: - lastTransitionTime: "2024-10-09T21:18:41Z" message: Successful reason: Successful status: "True" type: DaemonHealthy - lastTransitionTime: "2024-10-09T21:18:37Z" message: Successful reason: Successful status: "True" type: Deployed - lastTransitionTime: "2024-10-09T21:18:37Z" message: All pods are healthy reason: Running status: "True" type: PodsHealthy currentHash: 8ed34d9058faa60997ee13083ccb3d80691df37b45a34eaa347af99f237e8df6 desiredReplicas: 1 lastScaledAt: "2024-10-09T21:18:37Z" lastUpdated: "2024-10-09T21:18:41Z" observedGeneration: 1 phase: Running replicas: 1 selector: app.kubernetes.io/component=mono-vertex,numaflow.numaproj.io/mono-vertex-name=simple-mono-vertex updateHash: 8ed34d9058faa60997ee13083ccb3d80691df37b45a34eaa347af99f237e8df6 updatedReplicas: 1 <|endoftext|> # flux_source_reconciler.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: cluster-reconciler roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: kustomize-controller namespace: flux-system - kind: ServiceAccount name: helm-controller namespace: flux-system <|endoftext|> # istio_peer-authn-unset-port-mtls-strict-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: strict-mtls spec: selector: matchLabels: app: a mtls: mode: UNSET portLevelMtls: 8080: mode: STRICT <|endoftext|> # k8s_docs_hello-application.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello-world spec: selector: matchLabels: run: load-balancer-example replicas: 2 template: metadata: labels: run: load-balancer-example spec: containers: - name: hello-world image: gcr.io/google-samples/node-hello:1.0 ports: - containerPort: 8080 protocol: TCP <|endoftext|> # helm_charts_post-install-create-bucket-job.yaml {{- if or .Values.defaultBucket.enabled .Values.buckets }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "minio.fullname" . }}-make-bucket-job labels: app: {{ template "minio.name" . }}-make-bucket-job chart: {{ template "minio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation {{- with .Values.makeBucketJob.annotations }} {{ toYaml . | indent 4 }} {{- end }} spec: template: metadata: labels: app: {{ template "minio.name" . }}-job release: {{ .Release.Name }} {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} spec: restartPolicy: OnFailure {{- include "minio.imagePullSecrets" . | indent 6 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: minio-configuration projected: sources: - configMap: name: {{ template "minio.fullname" . }} - secret: name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{ else }}{{ template "minio.fullname" . }}{{ end }} {{- if .Values.tls.enabled }} - name: cert-secret-volume-mc secret: secretName: {{ .Values.tls.certSecret }} items: - key: {{ .Values.tls.publicCrt }} path: CAs/public.crt {{ end }} serviceAccountName: {{ include "minio.serviceAccountName" . | quote }} containers: - name: minio-mc image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}" imagePullPolicy: {{ .Values.mcImage.pullPolicy }} command: ["/bin/sh", "/config/initialize"] env: - name: MINIO_ENDPOINT value: {{ template "minio.fullname" . }} - name: MINIO_PORT value: {{ .Values.service.port | quote }} volumeMounts: - name: minio-configuration mountPath: /config {{- if .Values.tls.enabled }} - name: cert-secret-volume-mc mountPath: {{ .Values.configPathmc }}certs {{ end }} resources: {{ toYaml .Values.resources | indent 10 }} {{- end }} <|endoftext|> # istio_45331.yaml apiVersion: release-notes/v2 kind: bug-fix area: security releaseNotes: - | **Fixed** use defer to unlock mutex <|endoftext|> # k8s_docs_hostaliases-pod.yaml apiVersion: v1 kind: Pod metadata: name: hostaliases-pod spec: restartPolicy: Never hostAliases: - ip: "127.0.0.1" hostnames: - "foo.local" - "bar.local" - ip: "10.1.2.3" hostnames: - "foo.remote" - "bar.remote" containers: - name: cat-hosts image: busybox command: - cat args: - "/etc/hosts" <|endoftext|> # istio_multinetwork.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none topology.istio.io/network: network-1 name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none topology.istio.io/network: network-1 name: default namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: default template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none service.istio.io/canonical-name: default service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" topology.istio.io/network: network-1 spec: containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc. - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: ISTIO_META_POD_PORTS value: '[]' - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_NETWORK value: network-1 - name: ISTIO_META_WORKLOAD_NAME value: default - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/default - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local - name: ISTIO_META_REQUESTED_NETWORK_VIEW value: network-1 image: test/proxyv2:test name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: default-istio volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - emptyDir: medium: Memory name: istio-envoy - emptyDir: {} name: istio-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: istio-token --- apiVersion: v1 kind: Service metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none topology.istio.io/network: network-1 name: default namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: null spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP - appProtocol: http name: http port: 80 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: default type: LoadBalancer --- <|endoftext|> # argocd_source_noStatusApplicationSet.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-git namespace: argocd spec: generators: - merge: generators: - clusters: values: kafka: "true" redis: "false" - clusters: selector: matchLabels: use-kafka: "false" values: kafka: "false" - list: elements: - name: minikube values.redis: "true" mergeKeys: - name template: metadata: name: '{{name}}' spec: destination: namespace: default server: '{{server}}' project: default source: helm: parameters: - name: kafka value: '{{values.kafka}}' - name: redis value: '{{values.redis}}' path: helm-guestbook repoURL: https://github.com/argoproj/argocd-example-apps/ targetRevision: HEAD <|endoftext|> # k8s_docs_deployment-patch.yaml apiVersion: apps/v1 kind: Deployment metadata: name: patch-demo spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: patch-demo-ctr image: nginx tolerations: - effect: NoSchedule key: dedicated value: test-team <|endoftext|> # grafana_charts_provisioner-rbac.yaml {{- if and .Values.provisioner.enabled .Values.enterprise.enabled -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "provisioner") }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "provisioner") | nindent 4 }} namespace: {{ .Release.Namespace | quote }} rules: - apiGroups: [""] resources: ["secrets"] verbs: ["create"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "provisioner") }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "provisioner") | nindent 4 }} namespace: {{ .Release.Namespace | quote }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ include "tempo.resourceName" (dict "ctx" . "component" "provisioner") }} subjects: - kind: ServiceAccount name: {{ include "tempo.resourceName" (dict "ctx" . "component" "provisioner") }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # istio_ecds.yaml apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: test spec: configPatches: - applyTo: EXTENSION_CONFIG match: context: SIDECAR_INBOUND patch: operation: ADD value: name: extension-config typed_config: "@type": type.googleapis.com/udpa.type.v1.TypedStruct type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm value: config: vm_config: code: remote: http_uri: uri: https://test-url <|endoftext|> # istio_53279.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - https://github.com/istio/istio/issues/53279 - 23624 releaseNotes: - | **Fixed** an issue where if a wasm image fetch fails, an allow all RBAC filter is used. Now if `failStrategy` is set to `FAIL_CLOSE`, a DENY-ALL RBAC filter will be used. <|endoftext|> # helm_charts_dask-jupyter-config.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "dask-distributed.jupyter-fullname" . }}-config labels: app: {{ template "dask-distributed.name" . }} heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.jupyter.component }}" data: jupyter_notebook_config.py: | c = get_config() c.NotebookApp.password = '{{ .Values.jupyter.password }}' <|endoftext|> # istio_protocol-detection-timeout.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 24379 releaseNotes: - | **Removed** the protocol detection timeout by default, reducing traffic failures during slow connections. upgradeNotes: - title: Protocol Detection Timeout Changes content: | In order to support permissive mTLS traffic as well as [automatic protocol detection](istio.io/latest/docs/ops/configuration/traffic-management/protocol-selection/#automatic-protocol-selection), the proxy will sniff the first few bytes of traffic to determine the protocol used. For certain "server first" protocols, such as the protocol used by `MySQL`, there will be no initial bytes to sniff. To mitigate this issue in the past, Istio introduced a detection timeout. However, we found this caused frequent telemetry and traffic failures during slow connections, while increasing latency for misconfigured server first protocols rather than failing fast. This timeout has been disabled by default. This has the following impacts: - Non "server first" protocols will no longer have a risk of telemetry or traffic failures during slow connections - Properly configured "server first" protocols will no longer have an extra 5s latency on each connection - Improperly configured "server first" protocols will experience connection timeouts. Please ensure you follow the steps listed in [Server First Protocols](https://preliminary.istio.io/latest/docs/ops/configuration/traffic-management/protocol-selection/#server-first-protocols) to ensure you do not run into traffic issues. <|endoftext|> # argocd_source_resumed.yaml apiVersion: batch/v1 kind: Job metadata: name: test-29228857 spec: suspend: false template: spec: containers: - command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster image: busybox:1.28 imagePullPolicy: IfNotPresent name: hello restartPolicy: OnFailure status: conditions: - lastProbeTime: '2025-07-28T22:02:46Z' lastTransitionTime: '2025-07-28T22:02:46Z' message: Job resumed reason: JobResumed status: 'False' type: Suspended ready: 0 startTime: '2025-07-28T22:02:46Z' terminating: 0 <|endoftext|> # k8s_examples_glusterfs-secret.yaml apiVersion: v1 kind: Secret metadata: name: heketi-secret namespace: default data: # base64 encoded password. E.g.: echo -n "mypassword" | base64 key: bXlwYXNzd29yZA== type: kubernetes.io/glusterfs <|endoftext|> # istio_external-istiod.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - https://github.com/istio/enhancements/issues/11 releaseNotes: - | **Promoted** external control plane to alpha. <|endoftext|> # istio_zero.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: default hostname: "*.domain.example" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All - name: tcp port: 34000 protocol: TCP allowedRoutes: namespaces: from: All --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: http namespace: default spec: parentRefs: - name: gateway namespace: istio-system hostnames: ["first.domain.example"] rules: - matches: - path: type: PathPrefix value: /get backendRefs: - name: httpbin-zero port: 8080 weight: 0 - matches: - path: type: PathPrefix value: /weighted-100 backendRefs: - filters: - requestHeaderModifier: add: - name: foo value: bar type: RequestHeaderModifier port: 8000 name: foo-svc weight: 100 --- apiVersion: gateway.networking.k8s.io/v1alpha2 kind: TCPRoute metadata: name: tcp namespace: default spec: parentRefs: - name: gateway namespace: istio-system rules: - backendRefs: - name: httpbin-zero port: 8080 weight: 0 <|endoftext|> # argocd_source_degraded_reconcileError.yaml apiVersion: route53.aws.crossplane.io/v1alpha1 kind: ResourceRecordSet metadata: creationTimestamp: '2024-01-11T03:48:32Z' generation: 1 name: www-domain resourceVersion: '187731157' selfLink: /apis/route53.aws.crossplane.io/v1alpha1/resourcerecordsets/www-domain uid: c9c85395-0830-4549-b255-e9e426663547 spec: providerConfigRef: name: crossplane forProvider: resourceRecords: - value: www.crossplane.io setIdentifier: www ttl: 60 type: CNAME weight: 0 zoneId: ABCDEFGAB07CD status: conditions: - lastTransitionTime: '2024-01-11T03:48:57Z' message: >- create failed: failed to create the ResourceRecordSet resource: InvalidChangeBatch: [RRSet of type CNAME with DNS name www.crossplane.io. is not permitted as it conflicts with other records with the same DNS name in zone crossplane.io.] reason: ReconcileError status: 'False' type: Synced - lastTransitionTime: '2024-01-11T03:48:34Z' reason: Creating status: 'False' type: Ready <|endoftext|> # grafana_charts_webhook-role-binding.yaml {{- if .Values.webhooks.enabled -}} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "rollout-operator.fullname" . }}-webhook-rolebinding namespace: {{ .Release.Namespace | quote }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ include "rollout-operator.fullname" . }}-webhook-role subjects: - kind: ServiceAccount name: {{ include "rollout-operator.serviceAccountName" . }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # argocd_source_stopping.yaml apiVersion: pxc.percona.com/v1 kind: PerconaXtraDBCluster metadata: name: quickstart spec: {} status: backup: {} haproxy: {} host: pxc-mysql-pxc logcollector: {} observedGeneration: 1 pmm: {} proxysql: {} pxc: image: '' ready: 1 size: 2 status: stopping version: 8.0.21-12.1 ready: 1 size: 2 state: stopping <|endoftext|> # helm_charts_dashboard-service.yaml {{- if .Values.dashboard.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "traefik.fullname" . }}-dashboard labels: app: {{ template "traefik.name" . }} chart: {{ template "traefik.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} annotations: {{- if .Values.dashboard.service }} {{- range $key, $value := .Values.dashboard.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} spec: type: {{ .Values.dashboard.serviceType | default ("ClusterIP") }} selector: app: {{ template "traefik.name" . }} release: {{ .Release.Name }} ports: - name: dashboard-http port: 80 targetPort: 8080 {{- end }} <|endoftext|> # istio_headless-endpoint-update.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 26617 releaseNotes: - | **Fixed** headless services endpoints update will not trigger any xds pushes for sidecar proxies <|endoftext|> # istio_retry_backoff.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for specifying backoff interval during retries. <|endoftext|> # istio_43821.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 43807 releaseNotes: - | **Added** config type and endpoint configuration summaries to `istioctl proxy-config all` <|endoftext|> # grafana_charts_grafana-agent.yaml {{- with (.Values.metaMonitoring).grafanaAgent }} {{- if .enabled }} apiVersion: monitoring.grafana.com/v1alpha1 kind: GrafanaAgent metadata: name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "meta-monitoring") }} namespace: {{ .namespace | default $.Release.Namespace | quote }} labels: {{- include "tempo.labels" (dict "ctx" $ "component" "meta-monitoring" ) | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: serviceAccountName: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }} logs: instanceSelector: matchLabels: {{- include "tempo.selectorLabels" (dict "ctx" $ "component" "meta-monitoring") | nindent 8 }} # cluster label for logs is added in the LogsInstance metrics: instanceSelector: matchLabels: {{- include "tempo.selectorLabels" (dict "ctx" $ "component" "meta-monitoring") | nindent 8 }} externalLabels: cluster: {{ include "tempo.clusterName" $ }} {{- end }} {{- end }} <|endoftext|> # argocd_source_healthy_multiple_generations.yaml apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: example-httproute generation: 2 spec: parentRefs: - kind: Gateway name: eg namespace: envoy-gateway-system sectionName: foo-nonexistent hostnames: - "example-httproute.example.com" rules: - backendRefs: - name: example-service port: 8080 status: parents: - conditions: - lastTransitionTime: "2025-10-14T11:19:41Z" message: No listeners match this parent ref observedGeneration: 1 reason: NoMatchingParent status: "False" type: Accepted - lastTransitionTime: "2025-10-14T11:19:41Z" message: Resolved all the Object references for the Route observedGeneration: 1 reason: ResolvedRefs status: "True" type: ResolvedRefs controllerName: gateway.envoyproxy.io/gatewayclass-controller parentRef: group: gateway.networking.k8s.io kind: Gateway name: eg namespace: envoy-gateway-system sectionName: foo-nonexistent - conditions: - lastTransitionTime: "2025-10-14T11:25:18Z" message: Route is accepted observedGeneration: 2 reason: Accepted status: "True" type: Accepted - lastTransitionTime: "2025-10-14T11:25:18Z" message: Resolved all the Object references for the Route observedGeneration: 2 reason: ResolvedRefs status: "True" type: ResolvedRefs controllerName: gateway.envoyproxy.io/gatewayclass-controller parentRef: group: gateway.networking.k8s.io kind: Gateway name: eg namespace: envoy-gateway-system sectionName: https-net <|endoftext|> # istio_33537.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 33537 releaseNotes: - | **Added** `istioctl install` will now do `IST0139` analysis on webhooks. <|endoftext|> # istio_locality-lb-docs.yaml apiVersion: release-notes/v2 kind: feature area: documentation releaseNotes: - | **Added** The locality load balancing docs have been re-written into a formal traffic management task. The new docs describe in more detail how locality load balancing works as well as how to configure both failover and weighted distribution. In addition, the new docs are now automatically verified for correctness. <|endoftext|> # argocd_source_has_pause_condition_rollout_aborted.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: name: canary-demo namespace: default spec: replicas: 5 revisionHistoryLimit: 3 selector: matchLabels: app: canary-demo strategy: canary: analysis: name: analysis templateName: analysis-template canaryService: canary-demo-preview steps: - setWeight: 40 - pause: {} - setWeight: 60 - pause: {} - setWeight: 80 - pause: duration: 10 template: metadata: labels: app: canary-demo spec: containers: - image: argoproj/rollouts-demo:yellow imagePullPolicy: Always name: canary-demo ports: - containerPort: 8080 name: http protocol: TCP resources: requests: cpu: 5m memory: 32Mi status: abort: true HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: currentBackgroundAnalysisRun: canary-demo-6758949f55-6-analysis stableRS: 645d5dbc4c controllerPause: true currentPodHash: 6758949f55 currentStepHash: 59f8666948 currentStepIndex: 1 observedGeneration: 58b949649c pauseConditions: - reason: CanaryPauseStep startTime: "2019-11-05T18:10:29Z" readyReplicas: 5 replicas: 5 selector: app=canary-demo updatedReplicas: 2 <|endoftext|> # grafana_charts_poddisruptionbudget-query-frontend.yaml {{- if and (gt (int .Values.queryFrontend.replicas) 1) .Values.queryFrontend.podDisruptionBudget.enabled }} {{ $dict := dict "ctx" . "component" "query-frontend" }} apiVersion: {{ include "tempo.pdb.apiVersion" . }} kind: PodDisruptionBudget metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} spec: selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} maxUnavailable: {{ .Values.queryFrontend.maxUnavailable }} {{- end }} <|endoftext|> # k8s_docs_cpu-constraints-pod.yaml apiVersion: v1 kind: Pod metadata: name: constraints-cpu-demo spec: containers: - name: constraints-cpu-demo-ctr image: nginx resources: limits: cpu: "800m" requests: cpu: "500m" <|endoftext|> # istio_passthrough-subsets.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 25691 releaseNotes: - | **Fixed** a bug where load assignments were added to passthrough subsets resulting in Envoy rejecting those subset clusters. <|endoftext|> # istio_sidecar-scope-unit.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management upgradeNotes: - title: '`Sidecar` scoping changes' content: | During processing of services, Istio has a variety of conflict resolution strategies. Historically, these have subtly differed when a user has a `Sidecar` resource defined, compared to when they do not. This applied even if the `Sidecar` resource with just `egress: "*/*"`, which should be the same as not having one defined. In this version, the behavior between the two has been unified: *Multiple services defined with the same hostname* Behavior before, without `Sidecar`: prefer a Kubernetes `Service` (rather than a `ServiceEntry`), else pick an arbitrary one. Behavior before, with `Sidecar`: prefer the Service in the same namespace as the proxy, else pick an arbitrary one. New behavior: prefer the Service in the same namespace as the proxy, then the Kubernetes Service (not ServiceEntry), else pick an arbitrary one. *Multiple Gateway API Route defined for the same service* Behavior before, without `Sidecar`: prefer the local proxy namespace, to allow consumer overrides. Behavior before, with `Sidecar`: arbitrary order. New behavior: prefer the local proxy namespace, to allow consumer overrides. The old behavior can be retained, temporarily, by setting `PILOT_UNIFIED_SIDECAR_SCOPE=false`. releaseNotes: - | **Updated** the behavior of XDS generation to be aligned when a user has a `Sidecar` configured and when they do not. See upgrade notes for more information. <|endoftext|> # istio_59330.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 58133 releaseNotes: - | **Fixed** an issue preventing multi-cluster waypoint routing with single network (no east-west gateway). <|endoftext|> # argocd_source_config-connector-stale.yaml apiVersion: core.cnrm.cloud.google.com/v1beta1 kind: ConfigConnector metadata: finalizers: - configconnector.cnrm.cloud.google.com/finalizer generation: 3 name: configconnector.core.cnrm.cloud.google.com spec: mode: namespaced status: healthy: true observedGeneration: 2 <|endoftext|> # istio_meta-application.yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: meta-application finalizers: - resources-finalizer.argocd.argoproj.io spec: destination: name: in-cluster namespace: argocd server: '' sources: - path: istio repoURL: '{repo-placeholder}' targetRevision: HEAD - path: application repoURL: '{repo-placeholder}' targetRevision: HEAD directory: include: application.yaml project: default syncPolicy: automated: prune: true selfHeal: true retry: limit: 2 backoff: duration: 5s maxDuration: 3m0s factor: 2 <|endoftext|> # argocd_examples_session-db-svc.yaml --- apiVersion: v1 kind: Service metadata: name: session-db labels: name: session-db spec: ports: # the port that this service should serve on - port: 6379 targetPort: 6379 selector: name: session-db <|endoftext|> # argocd_source_healthy_status.yaml apiVersion: astra.netapp.io/v1 kind: Schedule metadata: creationTimestamp: "2024-04-15T20:46:16Z" generation: 2 labels: argocd.argoproj.io/instance: ghost-demo name: ghost-daily namespace: astra-connector ownerReferences: - apiVersion: astra.netapp.io/v1 kind: Application name: ghost uid: 0af10ee8-772b-4367-8334-44f9e4ad2849 resourceVersion: "9963815" uid: a2736922-6801-482c-a199-03ef8a3f35d7 spec: appVaultRef: astra-gcp-backup-743cfd150129 applicationRef: ghost backupRetention: "1" dayOfMonth: "" dayOfWeek: "" enabled: true granularity: daily hour: "1" minute: "0" recurrenceRule: "" snapshotRetention: "1" status: lastScheduleTime: "2024-04-24T01:00:00Z" <|endoftext|> # kube_prometheus_metrics-server-service.yaml apiVersion: v1 kind: Service metadata: name: metrics-server namespace: kube-system labels: kubernetes.io/name: "Metrics-server" spec: selector: k8s-app: metrics-server ports: - port: 443 protocol: TCP targetPort: 443 <|endoftext|> # argocd_source_monovertex-unpause-gradual.yaml apiVersion: numaflow.numaproj.io/v1alpha1 kind: MonoVertex metadata: creationTimestamp: "2024-10-09T21:18:37Z" generation: 1 name: simple-mono-vertex namespace: numaflow-system resourceVersion: "1382" uid: b7b9e4f8-cd4b-4771-9e4b-2880cc50467a labels: numaplane.numaproj.io/upgrade-state: "in-progress" annotations: numaflow.numaproj.io/allowed-resume-strategies: "slow, fast" spec: lifecycle: desiredPhase: Running replicas: null sink: udsink: container: image: quay.io/numaio/numaflow-java/simple-sink:stable source: transformer: container: image: quay.io/numaio/numaflow-rs/source-transformer-now:stable udsource: container: image: quay.io/numaio/numaflow-java/source-simple-source:stable updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate status: conditions: - lastTransitionTime: "2024-10-09T21:18:41Z" message: Successful reason: Successful status: "True" type: DaemonHealthy - lastTransitionTime: "2024-10-09T21:18:37Z" message: Successful reason: Successful status: "True" type: Deployed - lastTransitionTime: "2024-10-09T21:18:37Z" message: All pods are healthy reason: Running status: "True" type: PodsHealthy currentHash: 8ed34d9058faa60997ee13083ccb3d80691df37b45a34eaa347af99f237e8df6 desiredReplicas: 1 lastScaledAt: "2024-10-09T21:18:37Z" lastUpdated: "2024-10-09T21:18:41Z" observedGeneration: 1 phase: Running replicas: 1 selector: app.kubernetes.io/component=mono-vertex,numaflow.numaproj.io/mono-vertex-name=simple-mono-vertex updateHash: 8ed34d9058faa60997ee13083ccb3d80691df37b45a34eaa347af99f237e8df6 updatedReplicas: 1 <|endoftext|> # istio_waypoint-resources-null.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: namespace name: namespace namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: namespace uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: namespace name: namespace namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: namespace uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: namespace template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: namespace istio.io/dataplane-mode: none service.istio.io/canonical-name: namespace service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - proxy - waypoint - --domain - $(POD_NAMESPACE).svc. - --serviceCluster - namespace.$(POD_NAMESPACE) - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: ISTIO_META_SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: namespace - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/namespace - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: '/proxyv2:' name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 resources: limits: memory: 500Mi requests: memory: 150Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/istio name: istiod-ca-cert - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo serviceAccountName: namespace volumes: - emptyDir: {} name: workload-socket - emptyDir: medium: Memory name: istio-envoy - emptyDir: medium: Memory name: go-proxy-envoy - emptyDir: {} name: istio-data - emptyDir: {} name: go-proxy-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - configMap: name: istio-ca-root-cert name: istiod-ca-cert --- apiVersion: v1 kind: Service metadata: annotations: networking.istio.io/traffic-distribution: PreferClose labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: namespace name: namespace namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: namespace uid: "" spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP - appProtocol: all name: mesh port: 15008 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: namespace type: ClusterIP --- <|endoftext|> # helm_charts_secret-mysql-password.yaml apiVersion: v1 kind: Secret metadata: name: airflow-cluster1-mysql-password namespace: airflow-cluster1 stringData: mysql-password: "XXXXXXXXXXXXXXXXXXXXXXX" <|endoftext|> # istio_31946.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 31946 releaseNotes: - | **Added** support to watch local secret resource updates for external istiod <|endoftext|> # kustomize_web-worker-sidecar.yaml apiVersion: apps/v1 kind: Deployment metadata: name: web-worker spec: template: spec: containers: - name: sidecar image: registry.example.com/path/to/custom-sidecar args: - run <|endoftext|> # istio_51565-waypoint-sourcelabels.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management # issue is a list of GitHub issues resolved in this note. issue: - https://github.com/istio/istio/issues/51565 releaseNotes: - | **Fixed** an issue where an HTTPRoute in a VirtualService with a matcher specifying sourceLabels would be applied to a waypoint. <|endoftext|> # istio_virtual-service-reviews-test-v2.yaml apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews spec: hosts: - reviews http: - match: - headers: end-user: exact: jason route: - destination: host: reviews subset: v2 - route: - destination: host: reviews subset: v1 <|endoftext|> # flux_source_external-artifact.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: ExternalArtifact metadata: name: flux-system namespace: {{ .fluxns }} spec: sourceRef: apiVersion: source.example.com/v1alpha1 kind: GitHubRelease name: flux-system namespace: {{ .fluxns }} <|endoftext|> # helm_charts_server-clusterrolebinding.yaml {{- if and .Values.server.enabled .Values.rbac.create (empty .Values.server.namespaces) (empty .Values.server.useExistingClusterRoleName) -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: labels: {{- include "prometheus.server.labels" . | nindent 4 }} name: {{ template "prometheus.server.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "prometheus.serviceAccountName.server" . }} {{ include "prometheus.namespace" . | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "prometheus.server.fullname" . }} {{- end }} <|endoftext|> # helm_charts_serviceaccount-server.yaml {{- if .Values.serviceAccount.server.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "velero.serverServiceAccount" . }} labels: app.kubernetes.io/name: {{ include "velero.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} helm.sh/chart: {{ include "velero.chart" . }} {{- end }} <|endoftext|> # k8s_examples_es-svc.yaml apiVersion: v1 kind: Service metadata: name: elasticsearch labels: component: elasticsearch spec: type: LoadBalancer selector: component: elasticsearch ports: - name: http port: 9200 protocol: TCP - name: transport port: 9300 protocol: TCP <|endoftext|> # grafana_charts_operator-serviceaccount.yaml {{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "ga-operator.serviceAccountName" . }} namespace: {{ .Release.Namespace }} labels: {{ include "ga-operator.labels" . | indent 4 }} {{- end -}} <|endoftext|> # k8s_docs_nginx-secure-app.yaml apiVersion: v1 kind: Service metadata: name: my-nginx labels: run: my-nginx spec: type: NodePort ports: - port: 8080 targetPort: 80 protocol: TCP name: http - port: 443 protocol: TCP name: https selector: run: my-nginx --- apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx spec: selector: matchLabels: run: my-nginx replicas: 1 template: metadata: labels: run: my-nginx spec: volumes: - name: secret-volume secret: secretName: nginxsecret containers: - name: nginxhttps image: bprashanth/nginxhttps:1.0 ports: - containerPort: 443 - containerPort: 80 volumeMounts: - mountPath: /etc/nginx/ssl name: secret-volume <|endoftext|> # helm_charts_node-exporter.yaml {{- /* Generated from 'node-exporter' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.nodeExporter.enabled .Values.defaultRules.rules.node }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "node-exporter" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: node-exporter rules: - alert: NodeFilesystemSpaceFillingUp annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available space left and is filling up. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemspacefillingup summary: Filesystem is predicted to run out of space within the next 24 hours. expr: |- ( node_filesystem_avail_bytes{job="node-exporter",fstype!=""} / node_filesystem_size_bytes{job="node-exporter",fstype!=""} * 100 < 40 and predict_linear(node_filesystem_avail_bytes{job="node-exporter",fstype!=""}[6h], 24*60*60) < 0 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: warning - alert: NodeFilesystemSpaceFillingUp annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available space left and is filling up fast. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemspacefillingup summary: Filesystem is predicted to run out of space within the next 4 hours. expr: |- ( node_filesystem_avail_bytes{job="node-exporter",fstype!=""} / node_filesystem_size_bytes{job="node-exporter",fstype!=""} * 100 < 15 and predict_linear(node_filesystem_avail_bytes{job="node-exporter",fstype!=""}[6h], 4*60*60) < 0 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: critical - alert: NodeFilesystemAlmostOutOfSpace annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available space left. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemalmostoutofspace summary: Filesystem has less than 5% space left. expr: |- ( node_filesystem_avail_bytes{job="node-exporter",fstype!=""} / node_filesystem_size_bytes{job="node-exporter",fstype!=""} * 100 < 5 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: warning - alert: NodeFilesystemAlmostOutOfSpace annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available space left. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemalmostoutofspace summary: Filesystem has less than 3% space left. expr: |- ( node_filesystem_avail_bytes{job="node-exporter",fstype!=""} / node_filesystem_size_bytes{job="node-exporter",fstype!=""} * 100 < 3 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: critical - alert: NodeFilesystemFilesFillingUp annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available inodes left and is filling up. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemfilesfillingup summary: Filesystem is predicted to run out of inodes within the next 24 hours. expr: |- ( node_filesystem_files_free{job="node-exporter",fstype!=""} / node_filesystem_files{job="node-exporter",fstype!=""} * 100 < 40 and predict_linear(node_filesystem_files_free{job="node-exporter",fstype!=""}[6h], 24*60*60) < 0 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: warning - alert: NodeFilesystemFilesFillingUp annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available inodes left and is filling up fast. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemfilesfillingup summary: Filesystem is predicted to run out of inodes within the next 4 hours. expr: |- ( node_filesystem_files_free{job="node-exporter",fstype!=""} / node_filesystem_files{job="node-exporter",fstype!=""} * 100 < 20 and predict_linear(node_filesystem_files_free{job="node-exporter",fstype!=""}[6h], 4*60*60) < 0 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: critical - alert: NodeFilesystemAlmostOutOfFiles annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available inodes left. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemalmostoutoffiles summary: Filesystem has less than 5% inodes left. expr: |- ( node_filesystem_files_free{job="node-exporter",fstype!=""} / node_filesystem_files{job="node-exporter",fstype!=""} * 100 < 5 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: warning - alert: NodeFilesystemAlmostOutOfFiles annotations: description: Filesystem on {{`{{`}} $labels.device {{`}}`}} at {{`{{`}} $labels.instance {{`}}`}} has only {{`{{`}} printf "%.2f" $value {{`}}`}}% available inodes left. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodefilesystemalmostoutoffiles summary: Filesystem has less than 3% inodes left. expr: |- ( node_filesystem_files_free{job="node-exporter",fstype!=""} / node_filesystem_files{job="node-exporter",fstype!=""} * 100 < 3 and node_filesystem_readonly{job="node-exporter",fstype!=""} == 0 ) for: 1h labels: severity: critical - alert: NodeNetworkReceiveErrs annotations: description: '{{`{{`}} $labels.instance {{`}}`}} interface {{`{{`}} $labels.device {{`}}`}} has encountered {{`{{`}} printf "%.0f" $value {{`}}`}} receive errors in the last two minutes.' runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodenetworkreceiveerrs summary: Network interface is reporting many receive errors. expr: increase(node_network_receive_errs_total[2m]) > 10 for: 1h labels: severity: warning - alert: NodeNetworkTransmitErrs annotations: description: '{{`{{`}} $labels.instance {{`}}`}} interface {{`{{`}} $labels.device {{`}}`}} has encountered {{`{{`}} printf "%.0f" $value {{`}}`}} transmit errors in the last two minutes.' runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodenetworktransmiterrs summary: Network interface is reporting many transmit errors. expr: increase(node_network_transmit_errs_total[2m]) > 10 for: 1h labels: severity: warning - alert: NodeHighNumberConntrackEntriesUsed annotations: description: '{{`{{`}} $value | humanizePercentage {{`}}`}} of conntrack entries are used.' runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodehighnumberconntrackentriesused summary: Number of conntrack are getting close to the limit. expr: (node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.75 labels: severity: warning - alert: NodeTextFileCollectorScrapeError annotations: description: Node Exporter text file collector failed to scrape. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodetextfilecollectorscrapeerror summary: Node Exporter text file collector failed to scrape. expr: node_textfile_scrape_error{job="node-exporter"} == 1 labels: severity: warning - alert: NodeClockSkewDetected annotations: message: Clock on {{`{{`}} $labels.instance {{`}}`}} is out of sync by more than 300s. Ensure NTP is configured correctly on this host. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodeclockskewdetected summary: Clock skew detected. expr: |- ( node_timex_offset_seconds > 0.05 and deriv(node_timex_offset_seconds[5m]) >= 0 ) or ( node_timex_offset_seconds < -0.05 and deriv(node_timex_offset_seconds[5m]) <= 0 ) for: 10m labels: severity: warning - alert: NodeClockNotSynchronising annotations: message: Clock on {{`{{`}} $labels.instance {{`}}`}} is not synchronising. Ensure NTP is configured on this host. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-nodeclocknotsynchronising summary: Clock not synchronising. expr: min_over_time(node_timex_sync_status[5m]) == 0 for: 10m labels: severity: warning {{- end }} <|endoftext|> # helm_charts_ratelimit.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: ratelimits.getambassador.io labels: app.kubernetes.io/name: ambassador annotations: "helm.sh/hook": crd-install spec: group: getambassador.io version: v1beta1 versions: - name: v1beta1 served: true storage: true scope: Namespaced names: plural: ratelimits singular: ratelimit kind: RateLimit shortNames: - rl <|endoftext|> # istio_52034-labels.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: [52034] # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** the `app.kubernetes.io/name`, `app.kubernetes.io/instance`, `app.kubernetes.io/part-of`, `app.kubernetes.io/version`, `app.kubernetes.io/managed-by`, and `helm.sh/chart` labels to almost all resources. <|endoftext|> # argocd_source_failedAnalysisRun.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: name: canary-demo-analysis-template-6c6bb7cf6f-9k5rj namespace: default spec: analysisSpec: metrics: - failureCondition: len(result) > 0 interval: 10 name: memory-usage provider: prometheus: address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' query: > sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) successCondition: len(result) > 0 status: metricResults: - count: 1 failed: 1 measurements: - finishedAt: '2019-10-28T18:23:23Z' startedAt: '2019-10-28T18:23:23Z' phase: Failed value: '[0.9768211920529802]' name: memory-usage phase: Failed phase: Failed <|endoftext|> # istio_helm_chart_gateway_topologyspreadconstraints.yaml apiVersion: release-notes/v2 kind: feature area: installation # issue is a list of GitHub issues resolved in this note. issue: [] docs: [] releaseNotes: - | **Added** values to the Istio Gateway Helm chart for configuring [topologySpreadConstraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/) on the Deployment. Can be used for better placement of Istio gateway workloads. upgradeNotes: [] securityNotes: [] <|endoftext|> # istio_helm_chart_pilot_topologyspreadconstraints.yaml apiVersion: release-notes/v2 kind: feature area: installation # issue is a list of GitHub issues resolved in this note. issue: - 42938 docs: [] releaseNotes: - | **Added** values to the Istiod Helm chart for configuring [topologySpreadConstraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/) on the Deployment. Can be used for better placement of istiod workloads. upgradeNotes: [] securityNotes: [] <|endoftext|> # argocd_source_degraded_invalidSpec.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "1" creationTimestamp: "2020-11-13T00:22:49Z" generation: 3 name: basic namespace: argocd-e2e resourceVersion: "181746" selfLink: /apis/argoproj.io/v1alpha1/namespaces/argocd-e2e/rollouts/basic uid: 5b0926f3-30b7-4727-a76e-46c0d2617906 spec: replicas: 1 selector: matchLabels: app: basic strategy: {} template: metadata: creationTimestamp: null labels: app: basic spec: containers: - image: nginx:1.19-alpine name: basic resources: requests: cpu: 1m memory: 16Mi status: HPAReplicas: 1 availableReplicas: 1 blueGreen: {} canary: {} conditions: - lastTransitionTime: "2020-11-13T00:22:48Z" lastUpdateTime: "2020-11-13T00:22:50Z" message: ReplicaSet "basic-754cb84d5" has successfully progressed. reason: NewReplicaSetAvailable status: "True" type: Progressing - lastTransitionTime: "2020-11-13T00:22:50Z" lastUpdateTime: "2020-11-13T00:22:50Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available - lastTransitionTime: "2020-11-13T00:40:30Z" lastUpdateTime: "2020-11-13T00:40:30Z" message: 'The Rollout "basic" is invalid: spec.strategy.strategy: Required value: Rollout has missing field ''.spec.strategy.canary or .spec.strategy.blueGreen''' reason: InvalidSpec status: "True" type: InvalidSpec currentPodHash: 754cb84d5 currentStepHash: 757f5f97b currentStepIndex: 2 observedGeneration: "3" readyReplicas: 1 replicas: 1 selector: app=basic stableRS: 754cb84d5 updatedReplicas: 1 <|endoftext|> # istio_ztunnel-dns-config.golden.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: ztunnel namespace: istio-system labels: app.kubernetes.io/name: ztunnel app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "ztunnel" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: ztunnel-1.0.0 annotations: {} spec: updateStrategy: rollingUpdate: maxSurge: 1 maxUnavailable: 0 type: RollingUpdate selector: matchLabels: app: ztunnel template: metadata: labels: sidecar.istio.io/inject: "false" istio.io/dataplane-mode: none app: ztunnel app.kubernetes.io/name: ztunnel app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "ztunnel" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: ztunnel-1.0.0 annotations: sidecar.istio.io/inject: "false" prometheus.io/port: "15020" prometheus.io/scrape: "true" spec: nodeSelector: kubernetes.io/os: linux serviceAccountName: ztunnel tolerations: - effect: NoSchedule operator: Exists - key: CriticalAddonsOnly operator: Exists - effect: NoExecute operator: Exists dnsPolicy: None dnsConfig: nameservers: - 111.222.123.234 options: - name: ndots value: "2" - name: timeout value: "2" - name: attempts value: "5" searches: - istio-system.svc.cluster.local - svc.cluster.local - cluster.local containers: - name: istio-proxy image: "registry.istio.io/testing/ztunnel:latest" ports: - containerPort: 15020 name: ztunnel-stats protocol: TCP resources: requests: cpu: 200m memory: 512Mi securityContext: # K8S docs are clear that CAP_SYS_ADMIN *or* privileged: true # both force this to `true`: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ # But there is a K8S validation bug that doesn't propery catch this: https://github.com/kubernetes/kubernetes/issues/119568 allowPrivilegeEscalation: true privileged: false capabilities: drop: - ALL add: # See https://man7.org/linux/man-pages/man7/capabilities.7.html - NET_ADMIN # Required for TPROXY and setsockopt - SYS_ADMIN # Required for `setns` - doing things in other netns - NET_RAW # Required for RAW/PACKET sockets, TPROXY readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: false runAsUser: 0 readinessProbe: httpGet: port: 15021 path: /healthz/ready args: - proxy - ztunnel env: - name: CA_ADDRESS value: istiod.istio-system.svc:15012 - name: XDS_ADDRESS value: istiod.istio-system.svc:15012 - name: RUST_LOG value: "info" - name: RUST_BACKTRACE value: "1" - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: INPOD_ENABLED value: "true" - name: TERMINATION_GRACE_PERIOD_SECONDS value: "30" - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: ZTUNNEL_CPU_LIMIT valueFrom: resourceFieldRef: resource: limits.cpu divisor: "1" volumeMounts: - mountPath: /var/run/secrets/istio name: istiod-ca-cert - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /var/run/ztunnel name: cni-ztunnel-sock-dir - mountPath: /tmp name: tmp priorityClassName: system-node-critical terminationGracePeriodSeconds: 30 volumes: - name: istio-token projected: sources: - serviceAccountToken: path: istio-token expirationSeconds: 43200 audience: istio-ca - name: istiod-ca-cert configMap: name: istio-ca-root-cert - name: cni-ztunnel-sock-dir hostPath: path: /var/run/ztunnel type: DirectoryOrCreate # ideally this would be a socket, but istio-cni may not have started yet. # pprof needs a writable /tmp, and we don't have that thanks to `readOnlyRootFilesystem: true`, so mount one - name: tmp emptyDir: {} <|endoftext|> # istio_39825.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 39825 releaseNotes: - | **Fixed** an issue where Istio is sending traffic to unready pods when PILOT_SEND_UNHEALTHY_ENDPOINTS is enabled. <|endoftext|> # argocd_source_progressing-1.yaml apiVersion: apps.3scale.net/v1alpha1 kind: APIManager status: conditions: - status: "False" type: Available deployments: ready: - a starting: - b - c stopped: - e <|endoftext|> # k8s_docs_endpoints-aggregated.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: annotations: kubernetes.io/description: |- Add endpoints write permissions to the edit and admin roles. This was removed by default in 1.22 because of CVE-2021-25740. See https://issue.k8s.io/103675. This can allow writers to direct LoadBalancer or Ingress implementations to expose backend IPs that would not otherwise be accessible, and can circumvent network policies or security controls intended to prevent/isolate access to those backends. EndpointSlices were never included in the edit or admin roles, so there is nothing to restore for the EndpointSlice API. labels: rbac.authorization.k8s.io/aggregate-to-edit: "true" name: custom:aggregate-to-edit:endpoints # you can change this if you wish rules: - apiGroups: [""] resources: ["endpoints"] verbs: ["create", "delete", "deletecollection", "patch", "update"] <|endoftext|> # argocd_source_list-example.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - list: elements: - cluster: engineering-dev url: https://kubernetes.default.svc - cluster: engineering-prod url: https://kubernetes.default.svc template: metadata: name: '{{.cluster}}-guestbook' spec: project: default source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: applicationset/examples/list-generator/guestbook/{{.cluster}} destination: server: '{{.url}}' namespace: guestbook <|endoftext|> # istio_simple-policy-td-aliases-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin namespace: foo spec: selector: matchLabels: app: httpbin version: v1 rules: - from: - source: principals: ["cluster.local/ns/rule[0]/sa/from[0]-principal[0]"] - source: principals: ["cluster.local/ns/rule[0]/sa/from[1]-principal[0]", "cluster.local/ns/rule[0]/sa/from[1]-principal[1]"] namespaces: ["rule[0]-from[1]-ns[0]"] to: - operation: methods: ["rule[0]-to[0]-method[0]"] - from: - source: principals: ["cluster.local/ns/rule[1]/sa/from[0]-principal[0]"] to: - operation: methods: ["rule[1]-to[0]-method[0]"] <|endoftext|> # helm_charts_mongodb-metrics-secret.yaml {{- if and (.Values.auth.enabled) (not .Values.auth.existingMetricsSecret) (.Values.metrics.enabled) -}} apiVersion: v1 kind: Secret metadata: labels: app: {{ template "mongodb-replicaset.name" . }} chart: {{ template "mongodb-replicaset.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 4 }} {{- end }} {{- if .Values.secretAnnotations }} annotations: {{ toYaml .Values.secretAnnotations | indent 4 }} {{- end }} name: {{ template "mongodb-replicaset.metricsSecret" . }} namespace: {{ template "mongodb-replicaset.namespace" . }} type: Opaque data: user: {{ .Values.auth.metricsUser | b64enc }} password: {{ .Values.auth.metricsPassword | b64enc }} {{- end -}} <|endoftext|> # k8s_docs_projected-secret-downwardapi-configmap.yaml apiVersion: v1 kind: Pod metadata: name: volume-test spec: containers: - name: container-test image: busybox volumeMounts: - name: all-in-one mountPath: "/projected-volume" readOnly: true volumes: - name: all-in-one projected: sources: - secret: name: mysecret items: - key: username path: my-group/my-username - downwardAPI: items: - path: "labels" fieldRef: fieldPath: metadata.labels - path: "cpu_limit" resourceFieldRef: containerName: container-test resource: limits.cpu - configMap: name: myconfigmap items: - key: config path: my-group/my-config <|endoftext|> # istio_pilot-load-dns-cert-known-location-deprecate-flags.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: security # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 36916 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Improved** Pilot will now load its DNS serving certificate from well known locations: ``` /var/run/secrets/istiod/tls/tls.crt /var/run/secrets/istiod/tls/tls.key /var/run/secrets/istiod/ca/root-cert.pem ``` The CA path will alternatively be loaded from: `/var/run/secrets/tls/ca.crt` It also automatically loads any secret called istiod-tls and the istio-root-ca-configmap into those paths. This method is preferred to use those well known paths than to set the tls args. This will allow for an easier installation process for istio-csr as well as any other external issuer that needs to modify the Pilot DNS serving certificate. <|endoftext|> # flux_source_single-file-link.yaml apiVersion: image.toolkit.fluxcd.io/v1beta1 kind: ImageRepository --- apiVersion: image.toolkit.fluxcd.io/v1beta2 kind: ImagePolicy --- apiVersion: image.toolkit.fluxcd.io/v1/v2 kind: ImagePolicy <|endoftext|> # argocd_source_initial_helmrepository.yaml apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: name: podinfo namespace: default spec: interval: 5m0s url: https://stefanprodan.github.io/podinfo <|endoftext|> # istio_inconsistent-service-2.yaml # Same service as cluster1, should not report warning. apiVersion: v1 kind: Service metadata: name: my-service namespace: my-namespace spec: selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service with extra port in cluster2, should generate warning. apiVersion: v1 kind: Service metadata: name: extra-port namespace: my-namespace spec: selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 - name: tcp-bar protocol: TCP port: 8081 targetPort: 8081 --- # Service with inconsistent port name, should generate warning. apiVersion: v1 kind: Service metadata: name: inconsistent-port-name namespace: my-namespace spec: selector: app: my-service ports: - name: tcp-fake protocol: TCP port: 8080 targetPort: 8080 --- # Service is mixed type, should generate warning. apiVersion: v1 kind: Service metadata: name: mixed-type namespace: my-namespace spec: type: LoadBalancer selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service is mixed mode(clusterIP and headless), should generate warning. apiVersion: v1 kind: Service metadata: name: mixed-mode namespace: my-namespace spec: clusterIP: None selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service is mixed with port protocols, should generate warning. apiVersion: v1 kind: Service metadata: name: mixed-port-protocol namespace: my-namespace spec: type: ClusterIP selector: app: my-service ports: - name: http protocol: TCP port: 8080 targetPort: 8080 <|endoftext|> # istio_53121.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 53121 releaseNotes: - | **Added** Add settings to stabilizew gateways for high traffic <|endoftext|> # grafana_charts_poddisruptionbudget-memcached-index-queries.yaml {{- if and .Values.memcachedIndexQueries.enabled (gt (int .Values.memcachedIndexQueries.replicas) 1) }} {{- if kindIs "invalid" .Values.memcachedIndexQueries.maxUnavailable }} {{- fail "`.Values.memcachedIndexQueries.maxUnavailable` must be set when `.Values.memcachedIndexQueries.replicas` is greater than 1." }} {{- else }} apiVersion: {{ include "loki.pdb.apiVersion" . }} kind: PodDisruptionBudget metadata: name: {{ include "loki.memcachedIndexQueriesFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.memcachedIndexQueriesLabels" . | nindent 4 }} spec: selector: matchLabels: {{- include "loki.memcachedIndexQueriesSelectorLabels" . | nindent 6 }} {{- with .Values.memcachedIndexQueries.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} {{- with .Values.memcachedIndexQueries.minAvailable }} minAvailable: {{ . }} {{- end }} {{- end }} {{- end }} <|endoftext|> # flux_source_source-git-provider-azure.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: GitRepository metadata: name: podinfo namespace: flux-system spec: interval: 1m0s provider: azure ref: branch: test url: https://dev.azure.com/foo/bar/_git/podinfo <|endoftext|> # istio_47148.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 47148 releaseNotes: - | **Fixed** An issue where multiple header matches in root virtual service generates incorrect routes. <|endoftext|> # istio_status_annotations.yaml apiVersion: apps/v1 kind: Deployment metadata: name: statusPort spec: replicas: 7 selector: matchLabels: app: status template: metadata: annotations: status.sidecar.istio.io/port: "123" readiness.status.sidecar.istio.io/initialDelaySeconds: "100" readiness.status.sidecar.istio.io/periodSeconds: "200" readiness.status.sidecar.istio.io/failureThreshold: "300" readiness.status.sidecar.istio.io/applicationPorts: "1,2,3" labels: app: status spec: containers: - name: status image: "fake.docker.io/google-samples/traffic-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_29183.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 29183 releaseNotes: - | **Fixed** an issue showing unnecessary warnings when downgrading to a lower version of Istio. <|endoftext|> # grafana_charts_grafana-agent-cluster-role-binding.yaml {{- with (.Values.metaMonitoring).grafanaAgent }} {{- if .enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }} namespace: {{ .namespace | default $.Release.Namespace | quote }} labels: {{- include "tempo.labels" (dict "ctx" $ "component" "meta-monitoring" ) | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }} subjects: - kind: ServiceAccount name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }} namespace: {{ .namespace | default $.Release.Namespace }} {{- end }} {{- end }} <|endoftext|> # istio_istiod_remote.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: remote values: global: multiCluster: clusterName: remote0 network: network2 remotePilotAddress: 169.10.112.88 omitSidecarInjectorConfigMap: false istiodRemote: injectionURL: https://xxx:15017/inject base: validationURL: https://xxx:15017/validate <|endoftext|> # argocd_source_v2beta1HPA.yaml apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: php-apache spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: php-apache minReplicas: 1 maxReplicas: 10 metrics: - type: Resource resource: name: cpu targetAverageUtilization: 50 <|endoftext|> # istio_deny-groups-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: groups-deny spec: action: DENY rules: # Has mix of L4 and L7 in from - from: - source: principals: ["from-mix-principal"] requestPrincipals: ["from-mix-requestPrincipals"] namespaces: ["from-mix-ns"] to: - operation: ports: ["80"] # Has mix of L4 and L7 in to - from: - source: principals: ["to-mix-principal"] namespaces: ["to-mix-ns"] to: - operation: ports: ["80"] methods: ["to-mix-method"] # Only L4 - from: - source: principals: ["only-l4-principals"] namespaces: ["only-l4-ns"] to: - operation: ports: ["80"] # Only L7 - from: - source: requestPrincipals: ["l7-principal"] to: - operation: paths: ["/l7-foo"] methods: ["l7-method"] # L4 and L7 when - when: - key: "source.namespace" values: ["when-l4-l7-ns"] - key: "connection.sni" values: [ "when-l4-l7-sni"] # L4 only when - when: - key: "source.namespace" values: ["when-l4-ns"] - key: "source.ip" values: ["10.10.10.10"] notValues: ["20.20.20.20"] # L7 only when - when: - key: "connection.sni" values: [ "when-l7-sni"] - key: "request.headers[X-header]" values: ["when-l7-header"] <|endoftext|> # istio_drop-distribution.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the experimental `PILOT_ENABLE_CONFIG_DISTRIBUTION_TRACKING` feature flag and corresponding `istioctl experimental wait` command. <|endoftext|> # helm_source_tests.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "mariadb.fullname" . }}-tests data: run.sh: |- @test "Testing MariaDB is accessible" { mysql -h {{ template "mariadb.fullname" . }} -uroot -p$MARIADB_ROOT_PASSWORD -e 'show databases;' } <|endoftext|> # helm_charts_web-role.yaml {{- if .Values.web.enabled -}} {{- if .Values.rbac.create -}} {{- if .Values.concourse.web.kubernetes.enabled -}} apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }} kind: ClusterRole metadata: name: {{ template "concourse.web.fullname" . }} labels: app: {{ template "concourse.web.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} rules: - apiGroups: [""] resources: ["secrets"] verbs: ["get"] {{- end -}} {{- end -}} {{- end -}} <|endoftext|> # k8s_examples_pxc-node1.yaml apiVersion: v1 kind: Service metadata: name: pxc-node1 labels: node: pxc-node1 spec: ports: - port: 3306 name: mysql - port: 4444 name: state-snapshot-transfer - port: 4567 name: replication-traffic - port: 4568 name: incremental-state-transfer selector: node: pxc-node1 --- apiVersion: v1 kind: ReplicationController metadata: name: pxc-node1 spec: replicas: 1 template: metadata: labels: node: pxc-node1 unit: pxc-cluster spec: containers: - resources: limits: cpu: 0.3 image: capttofu/percona_xtradb_cluster_5_6:beta name: pxc-node1 ports: - containerPort: 3306 - containerPort: 4444 - containerPort: 4567 - containerPort: 4568 env: - name: GALERA_CLUSTER value: "true" - name: WSREP_CLUSTER_ADDRESS value: gcomm:// - name: WSREP_SST_USER value: sst - name: WSREP_SST_PASSWORD value: sst - name: MYSQL_USER value: mysql - name: MYSQL_PASSWORD value: mysql - name: MYSQL_ROOT_PASSWORD value: c-krit <|endoftext|> # istio_metadata.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in conformance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Configuration for resource types. resources: # Kubernetes specific configuration. - kind: "CustomResourceDefinition" plural: "customresourcedefinitions" group: "apiextensions.k8s.io" version: "v1" clusterScoped: true builtin: true proto: "k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" protoPackage: "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - kind: "MutatingWebhookConfiguration" plural: "mutatingwebhookconfigurations" group: "admissionregistration.k8s.io" version: "v1" clusterScoped: true builtin: true specless: true proto: "k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration" protoPackage: "k8s.io/api/admissionregistration/v1" - kind: "ValidatingWebhookConfiguration" plural: "validatingwebhookconfigurations" group: "admissionregistration.k8s.io" version: "v1" clusterScoped: true builtin: true specless: true proto: "k8s.io.api.admissionregistration.v1.ValidatingWebhookConfiguration" protoPackage: "k8s.io/api/admissionregistration/v1" - kind: "Deployment" plural: "deployments" group: "apps" version: "v1" builtin: true proto: "k8s.io.api.apps.v1.DeploymentSpec" protoPackage: "k8s.io/api/apps/v1" - kind: "Endpoints" plural: "endpoints" version: "v1" builtin: true specless: true proto: "k8s.io.api.core.v1.Endpoints" protoPackage: "k8s.io/api/core/v1" - kind: "EndpointSlice" plural: "endpointslices" group: "discovery.k8s.io" version: "v1" builtin: true specless: true proto: "k8s.io.api.discovery.v1.EndpointSlice" protoPackage: "k8s.io/api/discovery/v1" - kind: "Namespace" plural: "namespaces" version: "v1" clusterScoped: true builtin: true proto: "k8s.io.api.core.v1.NamespaceSpec" protoPackage: "k8s.io/api/core/v1" - kind: "Node" plural: "nodes" version: "v1" clusterScoped: true builtin: true proto: "k8s.io.api.core.v1.NodeSpec" protoPackage: "k8s.io/api/core/v1" - kind: "Pod" plural: "pods" version: "v1" builtin: true proto: "k8s.io.api.core.v1.PodSpec" protoPackage: "k8s.io/api/core/v1" - kind: "DaemonSet" plural: "daemonsets" group: "apps" version: "v1" builtin: true proto: "k8s.io.api.apps.v1.DaemonSetSpec" protoPackage: "k8s.io/api/apps/v1" - kind: "StatefulSet" plural: "statefulsets" group: "apps" version: "v1" builtin: true proto: "k8s.io.api.apps.v1.StatefulSetSpec" protoPackage: "k8s.io/api/apps/v1" - kind: "Secret" plural: "secrets" version: "v1" builtin: true specless: true proto: "k8s.io.api.core.v1.Secret" protoPackage: "k8s.io/api/core/v1" - kind: "Service" plural: "services" version: "v1" builtin: true proto: "k8s.io.api.core.v1.ServiceSpec" protoPackage: "k8s.io/api/core/v1" statusProto: "k8s.io.api.core.v1.ServiceStatus" statusProtoPackage: "k8s.io/api/core/v1" - kind: "ConfigMap" plural: "configmaps" version: "v1" builtin: true specless: true proto: "k8s.io.api.core.v1.ConfigMap" protoPackage: "k8s.io/api/core/v1" - kind: "ServiceAccount" plural: "serviceaccounts" version: "v1" builtin: true specless: true proto: "k8s.io.api.core.v1.ServiceAccount" protoPackage: "k8s.io/api/core/v1" - kind: "CertificateSigningRequest" plural: "certificatesigningrequests" group: "certificates.k8s.io" version: "v1" builtin: true clusterScoped: true proto: "k8s.io.api.certificates.v1.CertificateSigningRequestSpec" protoPackage: "k8s.io/api/certificates/v1" statusProto: "k8s.io.api.certificates.v1.CertificateSigningRequestStatus" statusProtoPackage: "k8s.io/api/certificates/v1" - kind: "ClusterTrustBundle" plural: "clustertrustbundles" group: "certificates.k8s.io" version: "v1beta1" builtin: true clusterScoped: true proto: "k8s.io.api.certificates.v1beta1.ClusterTrustBundleSpec" protoPackage: "k8s.io/api/certificates/v1beta1" - kind: "Ingress" plural: "ingresses" group: "networking.k8s.io" version: "v1" builtin: true proto: "k8s.io.api.networking.v1.IngressSpec" protoPackage: "k8s.io/api/networking/v1" statusProto: "k8s.io.api.networking.v1.IngressStatus" statusProtoPackage: "k8s.io/api/networking/v1" - kind: "IngressClass" plural: "ingressclasses" group: "networking.k8s.io" version: "v1" builtin: true clusterScoped: true proto: "k8s.io.api.networking.v1.IngressClassSpec" protoPackage: "k8s.io/api/networking/v1" - kind: "Lease" plural: "leases" group: "coordination.k8s.io" version: "v1" builtin: true proto: "k8s.io.api.coordination.v1.LeaseSpec" protoPackage: "k8s.io/api/coordination/v1" - kind: "HorizontalPodAutoscaler" plural: "horizontalpodautoscalers" group: "autoscaling" version: "v2" builtin: true proto: "k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec" protoPackage: "k8s.io/api/autoscaling/v2" statusProto: "k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerStatus" statusProtoPackage: "k8s.io/api/autoscaling/v2" - kind: "PodDisruptionBudget" plural: "poddisruptionbudgets" group: "policy" version: "v1" builtin: true proto: "k8s.io.api.policy.v1.PodDisruptionBudgetSpec" protoPackage: "k8s.io/api/policy/v1" statusProto: "k8s.io.api.policy.v1.PodDisruptionBudgetStatus" statusProtoPackage: "k8s.io/api/policy/v1" # # - kind: "ClusterRole" # plural: "clusterroles" # group: "rbac.authorization.k8s.io" # version: "v1" # builtin: true - kind: "GatewayClass" plural: "gatewayclasses" group: "gateway.networking.k8s.io" version: "v1" versionAliases: - "v1alpha2" - "v1beta1" clusterScoped: true protoPackage: "sigs.k8s.io/gateway-api/apis/v1" proto: "k8s.io.gateway_api.api.v1alpha1.GatewayClassSpec" statusProto: "k8s.io.gateway_api.api.v1alpha1.GatewayClassStatus" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1" - kind: "Gateway" identifier: KubernetesGateway plural: "gateways" group: "gateway.networking.k8s.io" version: "v1" versionAliases: - "v1alpha2" - "v1beta1" protoPackage: "sigs.k8s.io/gateway-api/apis/v1" proto: "k8s.io.gateway_api.api.v1alpha1.GatewaySpec" validate: "validation.EmptyValidate" statusProto: "k8s.io.gateway_api.api.v1alpha1.GatewayStatus" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1" - kind: "HTTPRoute" plural: "httproutes" group: "gateway.networking.k8s.io" version: "v1" versionAliases: - "v1alpha2" - "v1beta1" protoPackage: "sigs.k8s.io/gateway-api/apis/v1" proto: "k8s.io.gateway_api.api.v1alpha1.HTTPRouteSpec" statusProto: "k8s.io.gateway_api.api.v1alpha1.HTTPRouteStatus" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1" - kind: "InferencePool" plural: "inferencepools" group: "inference.networking.k8s.io" version: "v1" protoPackage: "sigs.k8s.io/gateway-api-inference-extension/api/v1" proto: "x-k8s.io.gateway-api-inference-extension.api.v1.InferencePoolSpec" statusProto: "x-k8s.io.gateway-api-inference-extension.api.v1.InferencePoolStatus" statusProtoPackage: "sigs.k8s.io/gateway-api-inference-extension/api/v1" - kind: "GRPCRoute" plural: "grpcroutes" group: "gateway.networking.k8s.io" version: "v1" versionAliases: - "v1alpha2" protoPackage: "sigs.k8s.io/gateway-api/apis/v1" proto: "k8s.io.gateway_api.api.v1alpha1.GRPCRouteSpec" statusProto: "k8s.io.gateway_api.api.v1alpha1.GRPCRouteStatus" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1" - kind: "TCPRoute" plural: "tcproutes" group: "gateway.networking.k8s.io" version: "v1alpha2" protoPackage: "sigs.k8s.io/gateway-api/apis/v1alpha2" proto: "k8s.io.gateway_api.api.v1alpha1.TCPRouteSpec" statusProto: "k8s.io.gateway_api.api.v1alpha1.TCPRouteStatus" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1alpha2" - kind: "TLSRoute" plural: "tlsroutes" group: "gateway.networking.k8s.io" version: "v1" versionAliases: - "v1alpha2" protoPackage: "sigs.k8s.io/gateway-api/apis/v1" proto: "k8s.io.gateway_api.api.v1.TLSRouteSpec" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1" statusProto: "k8s.io.gateway_api.api.v1.TLSRouteStatus" - kind: "UDPRoute" plural: "udproutes" group: "gateway.networking.k8s.io" version: "v1alpha2" protoPackage: "sigs.k8s.io/gateway-api/apis/v1alpha2" proto: "k8s.io.gateway_api.api.v1alpha1.UDPRouteSpec" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1alpha2" statusProto: "k8s.io.gateway_api.api.v1alpha1.UDPRouteStatus" - kind: "ReferenceGrant" plural: "referencegrants" group: "gateway.networking.k8s.io" version: "v1beta1" versionAliases: - "v1alpha2" protoPackage: "sigs.k8s.io/gateway-api/apis/v1beta1" proto: "k8s.io.gateway_api.api.v1alpha1.ReferenceGrantSpec" - kind: "XBackendTrafficPolicy" plural: "xbackendtrafficpolicies" group: "gateway.networking.x-k8s.io" version: "v1alpha1" protoPackage: "sigs.k8s.io/gateway-api/apisx/v1alpha1" proto: "k8s.io.gateway_api.apix.v1alpha1.BackendTrafficPolicySpec" statusProtoPackage: "sigs.k8s.io/gateway-api/apisx/v1alpha1" statusProto: PolicyStatus - kind: "BackendTLSPolicy" plural: "backendtlspolicies" group: "gateway.networking.k8s.io" version: "v1" protoPackage: "sigs.k8s.io/gateway-api/apis/v1" proto: "k8s.io.gateway_api.api.v1.BackendTLSPolicySpec" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1" statusProto: "k8s.io.gateway_api.api.v1.PolicyStatus" - kind: "ListenerSet" identifier: ListenerSet plural: "listenersets" group: "gateway.networking.k8s.io" version: "v1" protoPackage: "sigs.k8s.io/gateway-api/apis/v1" proto: "ListenerSetSpec" statusProtoPackage: "sigs.k8s.io/gateway-api/apis/v1" statusProto: "ListenerSetStatus" ## Istio resources - kind: "VirtualService" plural: "virtualservices" group: "networking.istio.io" version: "v1" versionAliases: - "v1alpha3" - "v1beta1" proto: "istio.networking.v1alpha3.VirtualService" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "Gateway" plural: "gateways" group: "networking.istio.io" version: "v1" versionAliases: - "v1alpha3" - "v1beta1" proto: "istio.networking.v1alpha3.Gateway" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "ServiceEntry" plural: "serviceentries" group: "networking.istio.io" version: "v1" versionAliases: - "v1alpha3" - "v1beta1" proto: "istio.networking.v1alpha3.ServiceEntry" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.networking.v1alpha3.ServiceEntryStatus" statusProtoPackage: "istio.io/api/networking/v1alpha3" - kind: "WorkloadEntry" plural: "workloadentries" group: "networking.istio.io" version: "v1" versionAliases: - "v1alpha3" - "v1beta1" proto: "istio.networking.v1alpha3.WorkloadEntry" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "WorkloadGroup" plural: "workloadgroups" group: "networking.istio.io" version: "v1" versionAliases: - "v1alpha3" - "v1beta1" proto: "istio.networking.v1alpha3.WorkloadGroup" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: DestinationRule plural: "destinationrules" group: "networking.istio.io" version: "v1" versionAliases: - "v1alpha3" - "v1beta1" proto: "istio.networking.v1alpha3.DestinationRule" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "EnvoyFilter" plural: "envoyfilters" group: "networking.istio.io" version: "v1alpha3" proto: "istio.networking.v1alpha3.EnvoyFilter" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "Sidecar" plural: "sidecars" group: "networking.istio.io" version: "v1" versionAliases: - "v1alpha3" - "v1beta1" proto: "istio.networking.v1alpha3.Sidecar" protoPackage: "istio.io/api/networking/v1alpha3" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "ProxyConfig" plural: "proxyconfigs" group: "networking.istio.io" version: "v1beta1" proto: "istio.networking.v1beta1.ProxyConfig" protoPackage: "istio.io/api/networking/v1beta1" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "MeshConfig" plural: "meshconfigs" group: "" version: "v1alpha1" proto: "istio.mesh.v1alpha1.MeshConfig" protoPackage: "istio.io/api/mesh/v1alpha1" synthetic: true - kind: "MeshNetworks" plural: "meshnetworks" group: "" version: "v1alpha1" proto: "istio.mesh.v1alpha1.MeshNetworks" protoPackage: "istio.io/api/mesh/v1alpha1" synthetic: true - kind: AuthorizationPolicy plural: "authorizationpolicies" group: "security.istio.io" version: "v1" versionAliases: - "v1beta1" proto: "istio.security.v1beta1.AuthorizationPolicy" protoPackage: "istio.io/api/security/v1beta1" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: RequestAuthentication plural: "requestauthentications" group: "security.istio.io" version: "v1" versionAliases: - "v1beta1" proto: "istio.security.v1beta1.RequestAuthentication" protoPackage: "istio.io/api/security/v1beta1" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: PeerAuthentication plural: "peerauthentications" group: "security.istio.io" version: "v1" versionAliases: - "v1beta1" proto: "istio.security.v1beta1.PeerAuthentication" protoPackage: "istio.io/api/security/v1beta1" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "Telemetry" plural: "telemetries" group: "telemetry.istio.io" version: "v1" versionAliases: - "v1alpha1" proto: "istio.telemetry.v1alpha1.Telemetry" protoPackage: "istio.io/api/telemetry/v1alpha1" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "WasmPlugin" plural: "wasmplugins" group: "extensions.istio.io" version: "v1alpha1" proto: "istio.extensions.v1alpha1.WasmPlugin" protoPackage: "istio.io/api/extensions/v1alpha1" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" - kind: "TrafficExtension" plural: "trafficextensions" group: "extensions.istio.io" version: "v1alpha1" proto: "istio.extensions.v1alpha1.TrafficExtension" protoPackage: "istio.io/api/extensions/v1alpha1" statusProto: "istio.meta.v1alpha1.IstioStatus" statusProtoPackage: "istio.io/api/meta/v1alpha1" <|endoftext|> # istio_59662.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 59498 releaseNotes: - | **Fixed** gateway deployment controller rejecting DaemonSet kind during reconciliation. <|endoftext|> # k8s_docs_problematic-limit-range.yaml apiVersion: v1 kind: LimitRange metadata: name: cpu-resource-constraint spec: limits: - default: # this section defines default limits cpu: 500m defaultRequest: # this section defines default requests cpu: 500m max: # max and min define the limit range cpu: "1" min: cpu: 100m type: Container <|endoftext|> # argocd_source_healthy_dynamic_alloc.yaml apiVersion: sparkoperator.k8s.io/v1beta2 kind: SparkApplication metadata: generation: 4 labels: argocd.argoproj.io/instance: spark-job name: spark-job-app namespace: spark-cluster resourceVersion: "31812990" uid: bfee52b0-74ca-4465-8005-f6643097ed64 spec: executor: instances: 4 sparkConf: spark.dynamicAllocation.enabled: 'true' spark.dynamicAllocation.maxExecutors: '10' spark.dynamicAllocation.minExecutors: '2' status: applicationState: state: RUNNING driverInfo: podName: ingestion-datalake-news-app-driver webUIAddress: 172.20.207.161:4040 webUIPort: 4040 webUIServiceName: ingestion-datalake-news-app-ui-svc executionAttempts: 13 executorState: ingestion-datalake-news-app-1591613851251-exec-1: RUNNING ingestion-datalake-news-app-1591613851251-exec-2: RUNNING ingestion-datalake-news-app-1591613851251-exec-4: RUNNING ingestion-datalake-news-app-1591613851251-exec-5: RUNNING ingestion-datalake-news-app-1591613851251-exec-6: RUNNING lastSubmissionAttemptTime: "2020-06-08T10:57:32Z" sparkApplicationId: spark-a5920b2a5aa04d22a737c60759b5bf82 submissionAttempts: 1 submissionID: 3e713ec8-9f6c-4e78-ac28-749797c846f0 terminationTime: null <|endoftext|> # helm_charts_jenkins-master-route.yaml {{- if .Values.master.route.enabled }} apiVersion: route.openshift.io/v1 kind: Route metadata: namespace: {{ template "jenkins.namespace" . }} labels: app: {{ template "jenkins.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" component: "{{ .Release.Name }}-{{ .Values.master.componentName }}" {{- if .Values.master.route.labels }} {{ toYaml .Values.master.route.labels | indent 4 }} {{- end }} {{- if .Values.master.route.annotations }} annotations: {{ toYaml .Values.master.route.annotations | indent 4 }} {{- end }} name: {{ template "jenkins.fullname" . }} spec: host: {{ .Values.master.route.path }} port: targetPort: http tls: insecureEdgeTerminationPolicy: Redirect termination: edge to: kind: Service name: {{ template "jenkins.fullname" . }} weight: 100 wildcardPolicy: None {{- end }} <|endoftext|> # helm_charts_custom-resources.yaml {{- if and .Values.istio.install (not .Release.IsInstall) -}} {{- $serviceName := include "istio.name" . -}} apiVersion: "config.istio.io/v1alpha2" kind: attributemanifest metadata: name: istioproxy spec: attributes: origin.ip: valueType: IP_ADDRESS origin.uid: valueType: STRING origin.user: valueType: STRING request.headers: valueType: STRING_MAP request.id: valueType: STRING request.host: valueType: STRING request.method: valueType: STRING request.path: valueType: STRING request.reason: valueType: STRING request.referer: valueType: STRING request.scheme: valueType: STRING request.size: valueType: INT64 request.time: valueType: TIMESTAMP request.useragent: valueType: STRING response.code: valueType: INT64 response.duration: valueType: DURATION response.headers: valueType: STRING_MAP response.size: valueType: INT64 response.time: valueType: TIMESTAMP source.uid: valueType: STRING source.user: valueType: STRING destination.uid: valueType: STRING connection.id: valueType: STRING connection.received.bytes: valueType: INT64 connection.received.bytes_total: valueType: INT64 connection.sent.bytes: valueType: INT64 connection.sent.bytes_total: valueType: INT64 connection.duration: valueType: DURATION context.protocol: valueType: STRING context.timestamp: valueType: TIMESTAMP context.time: valueType: TIMESTAMP --- apiVersion: "config.istio.io/v1alpha2" kind: attributemanifest metadata: name: kubernetes spec: attributes: source.ip: valueType: IP_ADDRESS source.labels: valueType: STRING_MAP source.name: valueType: STRING source.namespace: valueType: STRING source.service: valueType: STRING source.serviceAccount: valueType: STRING destination.ip: valueType: IP_ADDRESS destination.labels: valueType: STRING_MAP destination.name: valueType: STRING destination.namespace: valueType: STRING destination.service: valueType: STRING destination.serviceAccount: valueType: STRING --- apiVersion: "config.istio.io/v1alpha2" kind: stdio metadata: name: handler spec: outputAsJson: true --- apiVersion: "config.istio.io/v1alpha2" kind: logentry metadata: name: accesslog spec: severity: '"Default"' timestamp: request.time variables: sourceIp: source.ip | ip("0.0.0.0") destinationIp: destination.ip | ip("0.0.0.0") sourceUser: source.user | "" method: request.method | "" url: request.path | "" protocol: request.scheme | "http" responseCode: response.code | 0 responseSize: response.size | 0 requestSize: request.size | 0 latency: response.duration | "0ms" monitored_resource_type: '"UNSPECIFIED"' --- apiVersion: "config.istio.io/v1alpha2" kind: rule metadata: name: stdio spec: match: "true" # If omitted match is true. actions: - handler: handler.stdio instances: - accesslog.logentry --- apiVersion: "config.istio.io/v1alpha2" kind: metric metadata: name: requestcount spec: value: "1" dimensions: source_service: source.service | "unknown" source_version: source.labels["version"] | "unknown" destination_service: destination.service | "unknown" destination_version: destination.labels["version"] | "unknown" response_code: response.code | 200 monitored_resource_type: '"UNSPECIFIED"' --- apiVersion: "config.istio.io/v1alpha2" kind: metric metadata: name: requestduration spec: value: response.duration | "0ms" dimensions: source_service: source.service | "unknown" source_version: source.labels["version"] | "unknown" destination_service: destination.service | "unknown" destination_version: destination.labels["version"] | "unknown" response_code: response.code | 200 monitored_resource_type: '"UNSPECIFIED"' --- apiVersion: "config.istio.io/v1alpha2" kind: metric metadata: name: requestsize spec: value: request.size | 0 dimensions: source_service: source.service | "unknown" source_version: source.labels["version"] | "unknown" destination_service: destination.service | "unknown" destination_version: destination.labels["version"] | "unknown" response_code: response.code | 200 monitored_resource_type: '"UNSPECIFIED"' --- apiVersion: "config.istio.io/v1alpha2" kind: metric metadata: name: responsesize spec: value: response.size | 0 dimensions: source_service: source.service | "unknown" source_version: source.labels["version"] | "unknown" destination_service: destination.service | "unknown" destination_version: destination.labels["version"] | "unknown" response_code: response.code | 200 monitored_resource_type: '"UNSPECIFIED"' --- apiVersion: "config.istio.io/v1alpha2" kind: metric metadata: name: tcpbytesent labels: istio-protocol: tcp # needed so that mixer will only generate when context.protocol == tcp spec: value: connection.sent.bytes | 0 dimensions: source_service: source.service | "unknown" source_version: source.labels["version"] | "unknown" destination_service: destination.service | "unknown" destination_version: destination.labels["version"] | "unknown" monitored_resource_type: '"UNSPECIFIED"' --- apiVersion: "config.istio.io/v1alpha2" kind: metric metadata: name: tcpbytereceived labels: istio-protocol: tcp # needed so that mixer will only generate when context.protocol == tcp spec: value: connection.received.bytes | 0 dimensions: source_service: source.service | "unknown" source_version: source.labels["version"] | "unknown" destination_service: destination.service | "unknown" destination_version: destination.labels["version"] | "unknown" monitored_resource_type: '"UNSPECIFIED"' --- apiVersion: "config.istio.io/v1alpha2" kind: prometheus metadata: name: handler spec: metrics: - name: request_count instance_name: requestcount.metric.{{ .Release.Namespace }} kind: COUNTER label_names: - source_service - source_version - destination_service - destination_version - response_code - name: request_duration instance_name: requestduration.metric.{{ .Release.Namespace }} kind: DISTRIBUTION label_names: - source_service - source_version - destination_service - destination_version - response_code buckets: explicit_buckets: bounds: [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10] - name: request_size instance_name: requestsize.metric.{{ .Release.Namespace }} kind: DISTRIBUTION label_names: - source_service - source_version - destination_service - destination_version - response_code buckets: exponentialBuckets: numFiniteBuckets: 8 scale: 1 growthFactor: 10 - name: response_size instance_name: responsesize.metric.{{ .Release.Namespace }} kind: DISTRIBUTION label_names: - source_service - source_version - destination_service - destination_version - response_code buckets: exponentialBuckets: numFiniteBuckets: 8 scale: 1 growthFactor: 10 - name: tcp_bytes_sent instance_name: tcpbytesent.metric.{{ .Release.Namespace }} kind: COUNTER label_names: - source_service - source_version - destination_service - destination_version - name: tcp_bytes_received instance_name: tcpbytereceived.metric.{{ .Release.Namespace }} kind: COUNTER label_names: - source_service - source_version - destination_service - destination_version --- apiVersion: "config.istio.io/v1alpha2" kind: rule metadata: name: promhttp labels: istio-protocol: http spec: actions: - handler: handler.prometheus instances: - requestcount.metric - requestduration.metric - requestsize.metric - responsesize.metric --- apiVersion: "config.istio.io/v1alpha2" kind: rule metadata: name: promtcp labels: istio-protocol: tcp # needed so that mixer will only execute when context.protocol == TCP spec: actions: - handler: handler.prometheus instances: - tcpbytesent.metric - tcpbytereceived.metric {{- end -}} <|endoftext|> # helm_charts_filter.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: filters.getambassador.io labels: app.kubernetes.io/name: ambassador annotations: "helm.sh/hook": crd-install spec: group: getambassador.io version: v1beta2 versions: - name: v1beta2 served: true storage: true scope: Namespaced names: plural: filters singular: filter kind: Filter shortNames: - fil <|endoftext|> # istio_36809.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 36162 releaseNotes: - | **Added** configurable service-cluster naming scheme support. <|endoftext|> # argocd_source_argocd-application-controller-network-policy.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: labels: app.kubernetes.io/name: argocd-application-controller app.kubernetes.io/part-of: argocd app.kubernetes.io/component: application-controller name: argocd-application-controller-network-policy spec: podSelector: matchLabels: app.kubernetes.io/name: argocd-application-controller ingress: - from: - namespaceSelector: { } ports: - port: 8082 policyTypes: - Ingress <|endoftext|> # k8s_docs_deployment-with-configmap-as-volume.yaml apiVersion: apps/v1 kind: Deployment metadata: name: configmap-volume labels: app.kubernetes.io/name: configmap-volume spec: replicas: 3 selector: matchLabels: app.kubernetes.io/name: configmap-volume template: metadata: labels: app.kubernetes.io/name: configmap-volume spec: containers: - name: alpine image: alpine:3 command: - /bin/sh - -c - while true; do echo "$(date) My preferred sport is $(cat /etc/config/sport)"; sleep 10; done; ports: - containerPort: 80 volumeMounts: - name: config-volume mountPath: /etc/config volumes: - name: config-volume configMap: name: sport <|endoftext|> # istio_audit-both-http-tcp-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-audit namespace: foo spec: action: AUDIT rules: # rule[0] `from`: all fields, `to`: all fields, `when`: all fields. - from: - source: principals: ["principal"] requestPrincipals: ["requestPrincipals"] namespaces: ["ns"] ipBlocks: ["1.2.3.4"] remoteIpBlocks: ["10.250.90.4"] notPrincipals: ["not-principal"] notRequestPrincipals: ["not-requestPrincipals"] notNamespaces: ["not-ns"] notIpBlocks: ["9.0.0.1"] notRemoteIpBlocks: ["10.133.154.65"] to: - operation: methods: ["method"] hosts: ["exact.com"] ports: ["80"] paths: ["/exact"] notMethods: ["not-method"] notHosts: ["not-exact.com"] notPorts: ["8000"] notPaths: ["/not-exact"] when: - key: "request.headers[X-header]" values: ["header"] notValues: ["not-header"] - key: "source.ip" values: ["10.10.10.10"] notValues: ["90.10.10.10"] - key: "remote.ip" values: ["192.168.7.7"] notValues: ["192.168.10.9"] - key: "source.namespace" values: ["ns"] notValues: ["not-ns"] - key: "source.principal" values: ["principal"] notValues: ["not-principal"] - key: "request.auth.principal" values: ["requestPrincipals"] notValues: ["not-requestPrincipals"] - key: "request.auth.audiences" values: ["audiences"] notValues: ["not-audiences"] - key: "request.auth.presenter" values: ["presenter"] notValues: ["not-presenter"] - key: "request.auth.claims[iss]" values: ["iss"] notValues: ["not-iss"] - key: "destination.ip" values: ["10.10.10.10"] notValues: ["90.10.10.10"] - key: "destination.port" values: ["91"] notValues: ["9001"] - key: "connection.sni" values: ["exact.com"] notValues: ["not-exact.com"] - key: "experimental.envoy.filters.a.b[c]" values: ["exact"] notValues: ["not-exact"] <|endoftext|> # k8s_examples_spark-master-service.yaml kind: Service apiVersion: v1 metadata: name: spark-master spec: ports: - port: 7077 targetPort: 7077 name: spark - port: 8080 targetPort: 8080 name: http selector: component: spark-master <|endoftext|> # argocd_examples_orders-db-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: orders-db labels: name: orders-db spec: replicas: 1 selector: matchLabels: name: orders-db template: metadata: labels: name: orders-db spec: containers: - name: orders-db image: mongo ports: - name: mongo containerPort: 27017 securityContext: capabilities: drop: - all add: - CHOWN - SETGID - SETUID readOnlyRootFilesystem: true volumeMounts: - mountPath: /tmp name: tmp-volume volumes: - name: tmp-volume emptyDir: medium: Memory nodeSelector: kubernetes.io/os: linux <|endoftext|> # argocd_source_scaledobject-pause.yaml apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: name: test-scaledobject annotations: autoscaling.keda.sh/paused: "true" spec: scaleTargetRef: name: test-deployment triggers: - type: cpu metadata: type: Utilization value: "50" <|endoftext|> # istio_gomemlimit-90-percent.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** `istiod` to set `GOMEMLIMIT` to 90% of the memory limit (previously 100%) to reduce the risk of OOM kills. This is now handled automatically via the `automemlimit` library. Users can override by setting the `GOMEMLIMIT` environment variable directly, or adjust the ratio using the `AUTOMEMLIMIT` environment variable (e.g., `AUTOMEMLIMIT=0.85` for 85%). <|endoftext|> # k8s_docs_snowflake-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: snowflake name: snowflake spec: replicas: 2 selector: matchLabels: app: snowflake template: metadata: labels: app: snowflake spec: containers: - image: registry.k8s.io/serve_hostname imagePullPolicy: Always name: snowflake <|endoftext|> # helm_charts_logservice.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: logservices.getambassador.io labels: app.kubernetes.io/name: ambassador annotations: "helm.sh/hook": crd-install spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: logservices singular: logservice kind: LogService <|endoftext|> # helm_charts_web-service.yaml apiVersion: v1 kind: Service metadata: {{- if .Values.graylog.service.annotations }} annotations: {{ toYaml .Values.graylog.service.annotations | indent 4 }} {{- end }} name: {{ template "graylog.fullname" . }}-web labels: {{ include "graylog.metadataLabels" . | indent 4 }} app.kubernetes.io/component: "web" spec: ports: - name: graylog port: {{ default 9000 .Values.graylog.service.port }} protocol: TCP targetPort: 9000 {{- if eq "NodePort" .Values.graylog.service.type }} {{- if .Values.graylog.service.nodePort }} nodePort: {{ .Values.graylog.service.nodePort }} {{- end }} {{- end }} {{- range .Values.graylog.service.ports }} - name: {{ .name }} port: {{ .port }} protocol: {{ .protocol }} targetPort: {{ .port }} {{- end }} {{- if .Values.graylog.service.externalIPs }} externalIPs: {{ toYaml .Values.graylog.service.externalIPs | indent 4 }} {{- end }} {{- if eq "ClusterIP" .Values.graylog.service.type }} {{- if .Values.graylog.service.clusterIP }} clusterIP: {{ .Values.graylog.service.clusterIP }} {{- end }} {{- end }} selector: app.kubernetes.io/name: {{ template "graylog.name" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" type: "{{ .Values.graylog.service.type }}" {{- if eq "LoadBalancer" .Values.graylog.service.type }} {{- if .Values.graylog.service.loadBalancerIP }} loadBalancerIP: {{ .Values.graylog.service.loadBalancerIP }} {{- end -}} {{- if .Values.graylog.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- range .Values.graylog.service.loadBalancerSourceRanges }} - {{ . }} {{- end }} {{- end -}} {{- end -}} <|endoftext|> # helm_charts_secret-keys.yaml apiVersion: v1 kind: Secret metadata: labels: app: {{ template "burrow.name" $ }} chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}" heritage: {{ $.Release.Service }} release: {{ $.Release.Name }} name: {{ template "burrow.fullname" $ }}-keys type: Opaque data: {{ toYaml .Values.keysFiles | indent 2 }} <|endoftext|> # helm_charts_ui-svc.yaml {{- if .Values.ui.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "kubeless.fullname" . }}-ui labels: {{ include "labels.standard" . | indent 4 }} controller: {{ template "kubeless.fullname" . }}-ui spec: ports: - name: {{ .Values.ui.service.name }} port: {{ .Values.ui.service.externalPort }} protocol: TCP targetPort: 3000 selector: component: ui app: {{ template "kubeless.name" . }} release: {{ .Release.Name | quote }} sessionAffinity: None type: {{ .Values.ui.service.type }} {{- end }} <|endoftext|> # istio_ambient-service-entry.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** initial ambient support for ServiceEntry. <|endoftext|> # istio_virtual-service-reviews-50-v3.yaml apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews spec: hosts: - reviews http: - route: - destination: host: reviews subset: v1 weight: 50 - destination: host: reviews subset: v3 weight: 50 <|endoftext|> # argocd_source_reconciled_imagerepository.yaml apiVersion: image.toolkit.fluxcd.io/v1beta2 kind: ImageRepository metadata: name: podinfo namespace: default annotations: reconcile.fluxcd.io/requestedAt: 'By Argo CD at: 0001-01-01T00:00:00' spec: image: stefanprodan/podinfo interval: 1h provider: generic <|endoftext|> # istio_58912.yaml apiVersion: release-notes/v2 kind: bug-fix area: security releaseNotes: - | - **Fixed** incorrect mapping of `meshConfig.tlsDefaults.minProtocolVersion` to `tls_minimum_protocol_version` in downstream TLS context. <|endoftext|> # helm_charts_hpa.yaml {{- if .Values.autoscaling }} apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: {{ template "traefik.fullname" . }} labels: app: {{ template "traefik.name" . }} chart: {{ template "traefik.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: {{ template "traefik.fullname" . }} minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: {{ toYaml .Values.autoscaling.metrics | indent 4 }} {{- end }} <|endoftext|> # istio_28942.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 28970 releaseNotes: - | **Fixed** a bug where locality weights are only applied when outlier detection is enabled. <|endoftext|> # argocd_source_healthy_dynamic_alloc_without_spec_config.yaml apiVersion: sparkoperator.k8s.io/v1beta2 kind: SparkApplication metadata: generation: 4 labels: argocd.argoproj.io/instance: spark-job name: spark-job-app namespace: spark-cluster resourceVersion: "31812990" uid: bfee52b0-74ca-4465-8005-f6643097ed64 spec: executor: {} status: applicationState: state: RUNNING driverInfo: podName: ingestion-datalake-news-app-driver webUIAddress: 172.20.207.161:4040 webUIPort: 4040 webUIServiceName: ingestion-datalake-news-app-ui-svc executionAttempts: 13 executorState: ingestion-datalake-news-app-1591613851251-exec-1: RUNNING ingestion-datalake-news-app-1591613851251-exec-2: RUNNING ingestion-datalake-news-app-1591613851251-exec-4: RUNNING ingestion-datalake-news-app-1591613851251-exec-5: RUNNING lastSubmissionAttemptTime: "2020-06-08T10:57:32Z" sparkApplicationId: spark-a5920b2a5aa04d22a737c60759b5bf82 submissionAttempts: 1 submissionID: 3e713ec8-9f6c-4e78-ac28-749797c846f0 terminationTime: null <|endoftext|> # istio_compatibility-profile-native-sidecar.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** `ENABLE_NATIVE_SIDECARS` Helm value in the compatibility profiles of Istio 1.24, 1.25, and 1.26, allowing users to disable the default enabling of native sidecars. <|endoftext|> # helm_charts_system-probe-configmap.yaml {{- if .Values.datadog.systemProbe.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "datadog.fullname" . }}-system-probe-config namespace: {{ $.Release.Namespace }} labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} data: system-probe.yaml: | system_probe_config: enabled: {{ $.Values.datadog.systemProbe.enabled }} debug_port: {{ $.Values.datadog.systemProbe.debugPort }} sysprobe_socket: /var/run/sysprobe/sysprobe.sock enable_conntrack: {{ $.Values.datadog.systemProbe.enableConntrack }} bpf_debug: {{ $.Values.datadog.systemProbe.bpfDebug }} enable_tcp_queue_length: {{ $.Values.datadog.systemProbe.enableTCPQueueLength }} enable_oom_kill: {{ $.Values.datadog.systemProbe.enableOOMKill }} collect_dns_stats: {{ $.Values.datadog.systemProbe.collectDNSStats }} {{- if eq .Values.datadog.systemProbe.seccomp "localhost/system-probe" }} --- apiVersion: v1 kind: ConfigMap metadata: name: {{ template "datadog.fullname" . }}-security namespace: {{ $.Release.Namespace }} labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} data: system-probe-seccomp.json: | { "defaultAction": "SCMP_ACT_ERRNO", "syscalls": [ { "names": [ "accept4", "access", "arch_prctl", "bind", "bpf", "brk", "capget", "capset", "chdir", "clock_gettime", "clone", "close", "connect", "copy_file_range", "creat", "dup", "dup2", "dup3", "epoll_create", "epoll_create1", "epoll_ctl", "epoll_ctl_old", "epoll_pwait", "epoll_wait", "epoll_wait", "epoll_wait_old", "execve", "execveat", "exit", "exit_group", "fchmod", "fchmodat", "fchown", "fchown32", "fchownat", "fcntl", "fcntl64", "fstat", "fstat64", "fstatfs", "fsync", "futex", "getcwd", "getdents", "getdents64", "getegid", "geteuid", "getgid", "getpeername", "getpid", "getppid", "getpriority", "getrandom", "getresgid", "getresgid32", "getresuid", "getresuid32", "getrlimit", "getrusage", "getsid", "getsockname", "getsockopt", "gettid", "gettimeofday", "getuid", "getxattr", "ioctl", "ipc", "listen", "lseek", "lstat", "lstat64", "madvise", "mkdir", "mkdirat", "mmap", "mmap2", "mprotect", "mremap", "munmap", "nanosleep", "newfstatat", "open", "openat", "pause", "perf_event_open", "pipe", "pipe2", "poll", "ppoll", "prctl", "pread64", "prlimit64", "pselect6", "read", "readlink", "readlinkat", "recvfrom", "recvmmsg", "recvmsg", "rename", "restart_syscall", "rmdir", "rt_sigaction", "rt_sigpending", "rt_sigprocmask", "rt_sigqueueinfo", "rt_sigreturn", "rt_sigsuspend", "rt_sigtimedwait", "rt_tgsigqueueinfo", "sched_getaffinity", "sched_yield", "seccomp", "select", "semtimedop", "send", "sendmmsg", "sendmsg", "sendto", "set_robust_list", "set_tid_address", "setgid", "setgid32", "setgroups", "setgroups32", "setns", "setrlimit", "setsid", "setsidaccept4", "setsockopt", "setuid", "setuid32", "sigaltstack", "socket", "socketcall", "socketpair", "stat", "stat64", "statfs", "sysinfo", "umask", "uname", "unlink", "unlinkat", "wait4", "waitid", "waitpid", "write" ], "action": "SCMP_ACT_ALLOW", "args": null }, { "names": [ "setns" ], "action": "SCMP_ACT_ALLOW", "args": [ { "index": 1, "value": 1073741824, "valueTwo": 0, "op": "SCMP_CMP_EQ" } ], "comment": "", "includes": {}, "excludes": {} } ] } {{- end }} {{- end }} <|endoftext|> # cert_manager_psp.yaml {{- if .Values.global.podSecurityPolicy.enabled }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ template "cert-manager.fullname" . }} labels: app: {{ include "cert-manager.name" . }} app.kubernetes.io/name: {{ include "cert-manager.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "controller" {{- include "labels" . | nindent 4 }} annotations: seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default' seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default' {{- if .Values.global.podSecurityPolicy.useAppArmor }} apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default' apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default' {{- end }} spec: privileged: false allowPrivilegeEscalation: false allowedCapabilities: [] # default set of capabilities are implicitly allowed volumes: - 'configMap' - 'emptyDir' - 'projected' - 'secret' - 'downwardAPI' hostNetwork: false hostIPC: false hostPID: false runAsUser: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 seLinux: rule: 'RunAsAny' supplementalGroups: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 fsGroup: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 {{- end }} <|endoftext|> # argocd_source_incorrect_tenant_credentials.yaml apiVersion: minio.min.io/v2 kind: Tenant metadata: name: minio-tenant spec: image: minio/minio:latest pools: - name: pool-0 servers: 1 volumesPerServer: 4 status: revision: 0 currentState: Tenant credentials are not set properly <|endoftext|> # helm_charts_xray-master-key.yaml apiVersion: v1 kind: Secret metadata: name: {{ template "xray.fullname" . }}-master-key labels: app: {{ template "xray.name" . }} chart: {{ template "xray.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} type: Opaque data: master-key: {{ .Values.common.masterKey | b64enc | quote }} <|endoftext|> # istio_48368.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 48368 releaseNotes: - | **Fixed** kube-virt-related rules not being removed by istio-clean-iptables tool. <|endoftext|> # helm_charts_kubernetes-system-scheduler.yaml {{- /* Generated from 'kubernetes-system-scheduler' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeScheduler.enabled .Values.defaultRules.rules.kubeScheduler }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kubernetes-system-scheduler" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kubernetes-system-scheduler rules: {{- if .Values.kubeScheduler.enabled }} - alert: KubeSchedulerDown annotations: message: KubeScheduler has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubeschedulerdown expr: absent(up{job="kube-scheduler"} == 1) for: 15m labels: severity: critical {{- end }} {{- end }} <|endoftext|> # grafana_charts_provisioner-job.yaml {{- if and .Values.provisioner.enabled .Values.enterprise.enabled -}} apiVersion: batch/v1 kind: Job metadata: name: {{ include "tempo.resourceName" (dict "ctx" . "component" "provisioner") }} labels: {{- include "tempo.labels" (dict "ctx" . "component" "provisioner") | nindent 4 }} {{- with .Values.provisioner.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- with .Values.provisioner.annotations }} {{- toYaml . | nindent 4 }} {{- end }} "helm.sh/hook": "{{ .Values.provisioner.hookType }}" "helm.sh/hook-weight": "20" "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded" namespace: {{ .Release.Namespace | quote }} spec: backoffLimit: 6 completions: 1 parallelism: 1 selector: template: metadata: labels: {{- include "tempo.podLabels" (dict "ctx" . "component" "provisioner") | nindent 8 }} annotations: {{- include "tempo.podAnnotations" (dict "ctx" . "component" "provisioner") | nindent 8 }} namespace: {{ .Release.Namespace | quote }} spec: serviceAccountName: {{ include "tempo.resourceName" (dict "ctx" . "component" "provisioner") }} {{- if .Values.provisioner.priorityClassName }} priorityClassName: {{ .Values.provisioner.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.provisioner.securityContext | nindent 8 }} {{- if .Values.tempo.image.pullSecrets }} imagePullSecrets: {{- range .Values.tempo.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} initContainers: - name: provisioner image: "{{ $.Values.provisioner.image.registry }}/{{ $.Values.provisioner.image.repository }}:{{ $.Values.provisioner.image.tag }}" imagePullPolicy: {{ $.Values.provisioner.image.pullPolicy }} command: - /bin/sh - -euc - | {{- range $tenant := .Values.provisioner.additionalTenants }} /usr/bin/provisioner \ -bootstrap-path=/bootstrap \ -cluster-name={{ include "tempo.clusterName" $ }} \ -api-url={{ $.Values.provisioner.apiUrl }} \ -tenant={{ $tenant.name }} \ -access-policy=write-{{ $tenant.name }}:{{ $tenant.name }}:traces:write \ -access-policy=read-{{ $tenant.name }}:{{ $tenant.name }}:traces:read \ -token=write-{{ $tenant.name }} \ -token=read-{{ $tenant.name }} {{- range $flag, $value := $.Values.provisioner.extraArgs }} - -{{ $flag }}={{ $value }} {{- end }} {{- end }} volumeMounts: {{- if $.Values.provisioner.extraVolumeMounts }} {{ toYaml $.Values.provisioner.extraVolumeMounts | nindent 12 }} {{- end }} {{- if $.Values.global.extraVolumeMounts }} {{ toYaml $.Values.global.extraVolumeMounts | nindent 12 }} {{- end }} - name: bootstrap mountPath: /bootstrap - name: admin-token mountPath: /bootstrap/token subPath: token {{- with $.Values.provisioner.env }} env: {{ toYaml . | nindent 12 }} {{- end }} containers: - name: create-secret image: {{ .Values.kubectlImage.repository }}:{{ .Values.kubectlImage.tag }} imagePullPolicy: {{ .Values.kubectlImage.pullPolicy | default "IfNotPresent" }} command: - /bin/sh - -exuc - | # In this case, the admin resources have already been created, the provisioner job # does not write the token files to the bootstrap mount. # Therefore, secrets are only created if the respective token files exist. # Note: the following bash commands should always return a success status code. # Therefore, in case the token file does not exist, the first clause of the # or-operation is successful. {{- $secretPrefix := .Values.provisioner.provisionedSecretPrefix | default (include "tempo.resourceName" (dict "ctx" . "component" "token")) }} {{- range .Values.provisioner.additionalTenants }} ! test -s /bootstrap/token-write-{{ .name }} || \ kubectl --namespace "{{ .secretNamespace }}" create secret generic "{{ $secretPrefix }}-{{ .name }}" \ --from-literal=token-write="$(cat /bootstrap/token-write-{{ .name }})" \ --from-literal=token-read="$(cat /bootstrap/token-read-{{ .name }})" {{- end }} volumeMounts: - name: bootstrap mountPath: /bootstrap {{- with .Values.provisioner.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.provisioner.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.provisioner.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} restartPolicy: OnFailure volumes: - name: admin-token secret: secretName: {{ .Values.tokengenJob.adminTokenSecret }} - name: bootstrap emptyDir: {} {{- if .Values.provisioner.extraVolumes }} {{- toYaml .Values.provisioner.extraVolumes | nindent 8 }} {{- end }} {{- if .Values.global.extraVolumes }} {{- toYaml .Values.global.extraVolumes | nindent 8 }} {{- end }} {{- end -}} <|endoftext|> # istio_deployment-multi-service-different-ns.yaml apiVersion: v1 kind: Namespace metadata: name: bookinfo labels: istio-injection: "enabled" spec: {} --- apiVersion: v1 kind: Namespace metadata: name: bookinfo2 labels: istio-injection: "enabled" spec: {} --- # Deployment should not generate a warning: although two services using that deployment # using the same port, they are in different namespaces. apiVersion: apps/v1 kind: Deployment metadata: name: conflicting-ports namespace: bookinfo labels: app: conflicting-ports version: v1 spec: replicas: 1 selector: matchLabels: app: conflicting-ports version: v1 template: metadata: labels: app: conflicting-ports version: v1 spec: serviceAccountName: bookinfo-details containers: - name: details image: registry.istio.io/release/examples-bookinfo-details-v1:1.15.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 --- apiVersion: v1 kind: Service metadata: name: conflicting-ports-1 namespace: bookinfo labels: app: conflicting-ports spec: ports: - port: 9080 name: tcp targetPort: 9080 protocol: TCP selector: app: conflicting-ports --- apiVersion: v1 kind: Service metadata: name: conflicting-ports-1 namespace: bookinfo2 labels: app: conflicting-ports spec: ports: - port: 9090 name: http targetPort: 9080 protocol: HTTP selector: app: conflicting-ports <|endoftext|> # helm_charts_ingressroutes.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: ingressroutes.contour.heptio.com labels: app.kubernetes.io/name: contour annotations: "helm.sh/hook": crd-install "helm.sh/hook-delete-policy": "before-hook-creation" spec: group: contour.heptio.com version: v1beta1 scope: Namespaced names: plural: ingressroutes kind: IngressRoute additionalPrinterColumns: - name: FQDN type: string description: Fully qualified domain name JSONPath: .spec.virtualhost.fqdn - name: TLS Secret type: string description: Secret with TLS credentials JSONPath: .spec.virtualhost.tls.secretName - name: First route type: string description: First routes defined JSONPath: .spec.routes[0].match - name: Status type: string description: The current status of the IngressRoute JSONPath: .status.currentStatus - name: Status Description type: string description: Description of the current status JSONPath: .status.description <|endoftext|> # k8s_docs_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 # tells deployment to run 2 pods matching the template template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 <|endoftext|> # istio_workloadentry-invalid.yaml _err: 'spec: Required value' apiVersion: networking.istio.io/v1alpha3 kind: WorkloadEntry metadata: name: no-spec --- _err: Address is required apiVersion: networking.istio.io/v1alpha3 kind: WorkloadEntry metadata: name: missing-address spec: {} --- _err: UDS may not be a dir apiVersion: networking.istio.io/v1alpha3 kind: WorkloadEntry metadata: name: bad-uds-dir spec: address: unix:///dir/ --- _err: UDS must be an absolute path or abstract socket apiVersion: networking.istio.io/v1alpha3 kind: WorkloadEntry metadata: name: bad-uds-relative spec: address: unix://relative --- _err: UDS may not include ports apiVersion: networking.istio.io/v1alpha3 kind: WorkloadEntry metadata: name: uds-with-ports spec: address: unix://@foo ports: "http": 80 --- _err: port must be between 1-65535 apiVersion: networking.istio.io/v1alpha3 kind: WorkloadEntry metadata: name: high-port spec: address: 1.1.1.1 ports: "http": 99999 --- _err: 'spec.ports: Invalid value' apiVersion: networking.istio.io/v1alpha3 kind: WorkloadEntry metadata: name: bad-port-name spec: address: 1.1.1.1 ports: "@": 80 # TODO: # if its not an IP it must be a valid fqdn (0..255, ValidateDNS1123Labels) # validate labels (k8s) <|endoftext|> # istio_update-grafana-memory-compute.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Updated** the "Control Plane Dashboard" and the "Performance Dashboard" to use the `container_memory_working_set_bytes` metric to display memory. This metric only counts memory that *cannot be reclaimed* by the kernel even under memory pressure, and therefore more relevant for tracking. It is also consistent with `kubectl top`. The reported values are lower than the previous values. <|endoftext|> # istio_38650.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Added** initial flag-protected support for exporting canonical service labels for ServiceEntry resources with a location of MESH_EXTERNAL. <|endoftext|> # helm_charts_configmap-htpasswd-file.yaml {{- if and .Values.htpasswdFile.enabled (not .Values.htpasswdFile.existingSecret) }} apiVersion: v1 kind: Secret metadata: labels: app: {{ template "oauth2-proxy.name" . }} chart: {{ template "oauth2-proxy.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "oauth2-proxy.fullname" . }}-htpasswd-file type: Opaque stringData: users.txt: |- {{- range $entries := .Values.htpasswdFile.entries }} {{ $entries }} {{- end -}} {{- end }} <|endoftext|> # istio_liveness-command.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################################## # Liveness service ################################################################################################## apiVersion: v1 kind: Service metadata: name: liveness labels: app: liveness service: liveness spec: ports: - port: 80 name: http selector: app: liveness --- apiVersion: apps/v1 kind: Deployment metadata: name: liveness spec: selector: matchLabels: app: liveness template: metadata: labels: app: liveness spec: containers: - name: liveness image: registry.k8s.io/busybox args: - /bin/sh - -c - touch /tmp/healthy; sleep 3600 livenessProbe: exec: command: - cat - /tmp/healthy initialDelaySeconds: 5 periodSeconds: 5 <|endoftext|> # k8s_docs_mongo-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: mongo labels: app.kubernetes.io/name: mongo app.kubernetes.io/component: backend spec: selector: matchLabels: app.kubernetes.io/name: mongo app.kubernetes.io/component: backend replicas: 1 template: metadata: labels: app.kubernetes.io/name: mongo app.kubernetes.io/component: backend spec: containers: - name: mongo image: mongo:4.2 args: - --bind_ip - 0.0.0.0 resources: requests: cpu: 100m memory: 100Mi ports: - containerPort: 27017 <|endoftext|> # istio_multiple-templates.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: selector: matchLabels: app: hello template: metadata: annotations: # There is no real purpose of setting this multiple times; this just makes sure it doesn't blow # up if a user does happen to configure this inject.istio.io/templates: sidecar,sidecar,sidecar labels: app: hello spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" - name: istio-proxy image: foo/bar <|endoftext|> # k8s_docs_pvc-limit-greater.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pvc-limit-greater spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi <|endoftext|> # istio_httpbin-nodeport.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################################## # httpbin service ################################################################################################## apiVersion: v1 kind: Service metadata: name: httpbin labels: app: httpbin service: httpbin spec: type: NodePort ports: - name: http port: 8000 targetPort: 8080 selector: app: httpbin --- apiVersion: apps/v1 kind: Deployment metadata: name: httpbin spec: replicas: 1 selector: matchLabels: app: httpbin version: v1 template: metadata: labels: app: httpbin version: v1 spec: containers: - image: docker.io/mccutchen/go-httpbin:v2.15.0 imagePullPolicy: IfNotPresent name: httpbin ports: - containerPort: 8080 <|endoftext|> # istio_43765.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 43765 releaseNotes: - | **Improved** the `istioctl pc secret` output to display the certificate serial number in HEX. <|endoftext|> # helm_charts_simplequeue_deployment.yaml {{- $component := "simplequeue" -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "anchore-engine.simplequeue.fullname" . }} labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: {{ $component }} {{- with .Values.anchoreSimpleQueue.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} spec: selector: matchLabels: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} replicas: {{ .Values.anchoreSimpleQueue.replicaCount }} strategy: type: Recreate rollingUpdate: null template: metadata: labels: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} {{- with .Values.anchoreSimpleQueue.labels }} {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreSimpleQueue.annotations }} annotations: {{ toYaml . | nindent 8 }} {{- end }} spec: securityContext: runAsUser: 1000 runAsGroup: 1000 {{- if .Values.anchoreEnterpriseGlobal.enabled }} imagePullSecrets: - name: {{ .Values.anchoreEnterpriseGlobal.imagePullSecretName }} {{- else }} {{- with .Values.anchoreGlobal.imagePullSecretName }} imagePullSecrets: - name: {{ . }} {{- end }} {{- end }} containers: {{- if .Values.cloudsql.enabled }} - name: cloudsql-proxy image: {{ .Values.cloudsql.image.repository }}:{{ .Values.cloudsql.image.tag }} imagePullPolicy: {{ .Values.cloudsql.image.pullPolicy }} command: ["/cloud_sql_proxy"] args: - "-instances={{ .Values.cloudsql.instance }}=tcp:5432" {{- if .Values.cloudsql.useExistingServiceAcc }} - "-credential_file=/var/{{ .Values.cloudsql.serviceAccSecretName }}/{{ .Values.cloudsql.serviceAccJsonName }}" volumeMounts: - mountPath: /var/{{ .Values.cloudsql.serviceAccSecretName }} name: {{ .Values.cloudsql.serviceAccSecretName }} readOnly: true {{- end }} {{- end }} - name: "{{ .Chart.Name }}-{{ $component }}" {{- if .Values.anchoreEnterpriseGlobal.enabled }} image: {{ .Values.anchoreEnterpriseGlobal.image }} imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }} {{- else }} image: {{ .Values.anchoreGlobal.image }} imagePullPolicy: {{ .Values.anchoreGlobal.imagePullPolicy }} {{- end }} {{- if .Values.anchoreEnterpriseGlobal.enabled }} args: ["anchore-enterprise-manager", "service", "start", "--no-auto-upgrade", "simplequeue"] {{- else }} args: ["anchore-manager", "service", "start", "--no-auto-upgrade", "simplequeue"] {{- end }} envFrom: - secretRef: name: {{ default (include "anchore-engine.fullname" .) .Values.anchoreGlobal.existingSecret }} - configMapRef: name: {{ template "anchore-engine.fullname" . }}-env env: {{- with .Values.anchoreGlobal.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreSimpleQueue.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} - name: ANCHORE_POD_NAME valueFrom: fieldRef: fieldPath: metadata.name ports: - name: simplequeue containerPort: {{ .Values.anchoreSimpleQueue.service.port }} volumeMounts: {{- if .Values.anchoreEnterpriseGlobal.enabled }} - name: anchore-license mountPath: /home/anchore/license.yaml subPath: license.yaml {{- end }} - name: config-volume mountPath: /config/config.yaml subPath: config.yaml {{- if .Values.anchoreGlobal.openShiftDeployment }} - name: service-config-volume mountPath: /anchore_service_config - name: logs mountPath: /var/log/anchore - name: run mountPath: /var/run/anchore {{- end }} {{- if (.Values.anchoreGlobal.certStoreSecretName) }} - name: certs mountPath: /home/anchore/certs/ readOnly: true {{- end }} livenessProbe: httpGet: path: /health port: simplequeue {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} scheme: HTTPS {{- end }} initialDelaySeconds: 120 timeoutSeconds: 10 periodSeconds: 10 failureThreshold: 6 successThreshold: 1 readinessProbe: httpGet: path: /health port: simplequeue {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} scheme: HTTPS {{- end }} timeoutSeconds: 10 periodSeconds: 10 failureThreshold: 3 successThreshold: 1 resources: {{ toYaml .Values.anchoreSimpleQueue.resources | nindent 10 }} volumes: {{- if .Values.anchoreEnterpriseGlobal.enabled }} - name: anchore-license secret: secretName: {{ .Values.anchoreEnterpriseGlobal.licenseSecretName }} {{- end }} - name: config-volume configMap: name: {{ template "anchore-engine.fullname" .}} {{- if .Values.anchoreGlobal.openShiftDeployment }} - name: service-config-volume emptyDir: {} - name: logs emptyDir: {} - name: run emptyDir: {} {{- end }} {{- with .Values.anchoreGlobal.certStoreSecretName }} - name: certs secret: secretName: {{ . }} {{- end }} {{- if .Values.cloudsql.useExistingServiceAcc }} - name: {{ .Values.cloudsql.serviceAccSecretName }} secret: secretName: {{ .Values.cloudsql.serviceAccSecretName }} {{- end }} {{- with .Values.anchoreSimpleQueue.nodeSelector }} nodeSelector: {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreSimpleQueue.affinity }} affinity: {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreSimpleQueue.tolerations }} tolerations: {{ toYaml . | nindent 8 }} {{- end }} --- apiVersion: v1 kind: Service metadata: name: {{ template "anchore-engine.simplequeue.fullname" . }} labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: {{ $component }} {{- with .Values.anchoreSimpleQueue.service.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.anchoreSimpleQueue.service.annotations }} annotations: {{ toYaml . | nindent 4 }} {{- end }} spec: type: {{ .Values.anchoreSimpleQueue.service.type }} ports: - name: anchore-simplequeue-api port: {{ .Values.anchoreSimpleQueue.service.port }} targetPort: {{ .Values.anchoreSimpleQueue.service.port }} protocol: TCP selector: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} <|endoftext|> # argocd_source_pod-running-restart-always.yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: 2018-12-02T09:24:46Z name: my-pod namespace: argocd resourceVersion: "151753" selfLink: /api/v1/namespaces/argocd/pods/my-pod uid: 1c3943ee-f614-11e8-a057-fe5f49266390 spec: containers: - command: - sh - -c - sleep 99999 image: alpine:latest imagePullPolicy: Always name: main resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-f9jvj readOnly: true dnsPolicy: ClusterFirst nodeName: minikube restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - name: default-token-f9jvj secret: defaultMode: 420 secretName: default-token-f9jvj status: conditions: - lastProbeTime: null lastTransitionTime: 2018-12-02T09:24:46Z status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: 2018-12-02T09:24:50Z status: "True" type: Ready - lastProbeTime: null lastTransitionTime: 2018-12-02T09:24:46Z status: "True" type: PodScheduled containerStatuses: - containerID: docker://be00d86c48878b352f0ae0cae5dd4ba78025726a62893c768a0fd5754f45e93a image: alpine:latest imageID: docker-pullable://alpine@sha256:621c2f39f8133acb8e64023a94dbdf0d5ca81896102b9e57c0dc184cadaf5528 lastState: {} name: main ready: true restartCount: 0 state: running: startedAt: 2018-12-02T09:24:49Z hostIP: 192.168.64.41 phase: Running podIP: 172.17.0.9 qosClass: BestEffort startTime: 2018-12-02T09:24:46Z <|endoftext|> # helm_charts_weave-scope-tests.yaml apiVersion: v1 kind: Pod metadata: name: "{{ .Release.Name }}-ui-test-{{ randAlphaNum 5 | lower }}" annotations: "helm.sh/hook": test-success labels: {{- include "weave-scope.helm_std_labels" . | indent 4 }} spec: initContainers: - name: "test-framework" image: "dduportal/bats:0.4.0" command: - "bash" - "-c" - | set -ex # copy bats to tools dir cp -R /usr/local/libexec/ /tools/bats/ volumeMounts: - mountPath: /tools name: tools containers: - name: {{ .Release.Name }}-ui-test image: dduportal/bats:0.4.0 command: ["/tools/bats/bats", "-t", "/tests/run.sh"] volumeMounts: - mountPath: /tests name: tests readOnly: true - mountPath: /tools name: tools volumes: - name: tests configMap: name: {{ template "weave-scope.fullname" . }}-tests - name: tools emptyDir: {} restartPolicy: Never <|endoftext|> # helm_source_slave-statefulset.yaml {{- if .Values.replication.enabled }} apiVersion: apps/v1beta1 kind: StatefulSet metadata: name: {{ template "slave.fullname" . }} labels: app: "{{ template "mariadb.name" . }}" chart: {{ template "mariadb.chart" . }} component: "slave" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: serviceName: "{{ template "slave.fullname" . }}" replicas: {{ .Values.slave.replicas }} updateStrategy: type: RollingUpdate template: metadata: labels: app: "{{ template "mariadb.name" . }}" component: "slave" release: "{{ .Release.Name }}" chart: {{ template "mariadb.chart" . }} spec: securityContext: runAsUser: 1001 fsGroup: 1001 {{- if eq .Values.slave.antiAffinity "hard" }} affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: "{{ template "mariadb.name" . }}" release: "{{ .Release.Name }}" {{- else if eq .Values.slave.antiAffinity "soft" }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 podAffinityTerm: topologyKey: kubernetes.io/hostname labelSelector: matchLabels: app: "{{ template "mariadb.name" . }}" release: "{{ .Release.Name }}" {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end}} {{- end }} containers: - name: "mariadb" image: {{ template "mariadb.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-root-password {{- if .Values.db.user }} - name: MARIADB_USER value: "{{ .Values.db.user }}" - name: MARIADB_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-password {{- end }} - name: MARIADB_DATABASE value: "{{ .Values.db.name }}" - name: MARIADB_REPLICATION_MODE value: "slave" - name: MARIADB_MASTER_HOST value: {{ template "mariadb.fullname" . }} - name: MARIADB_MASTER_PORT value: "3306" - name: MARIADB_MASTER_USER value: "root" - name: MARIADB_MASTER_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-root-password - name: MARIADB_REPLICATION_USER value: "{{ .Values.replication.user }}" - name: MARIADB_REPLICATION_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-replication-password ports: - name: mysql containerPort: 3306 {{- if .Values.slave.livenessProbe.enabled }} livenessProbe: exec: command: ["sh", "-c", "exec mysqladmin status -uroot -p$MARIADB_ROOT_PASSWORD"] initialDelaySeconds: {{ .Values.slave.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.slave.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.slave.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.slave.livenessProbe.successThreshold }} failureThreshold: {{ .Values.slave.livenessProbe.failureThreshold }} {{- end }} {{- if .Values.slave.readinessProbe.enabled }} readinessProbe: exec: command: ["sh", "-c", "exec mysqladmin status -uroot -p$MARIADB_ROOT_PASSWORD"] initialDelaySeconds: {{ .Values.slave.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.slave.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.slave.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.slave.readinessProbe.successThreshold }} failureThreshold: {{ .Values.slave.readinessProbe.failureThreshold }} {{- end }} resources: {{ toYaml .Values.slave.resources | indent 10 }} volumeMounts: - name: data mountPath: /bitnami/mariadb {{- if .Values.slave.config }} - name: config mountPath: /opt/bitnami/mariadb/conf/my.cnf subPath: my.cnf {{- end }} {{- if .Values.metrics.enabled }} - name: metrics image: {{ template "metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} env: - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-root-password command: [ 'sh', '-c', 'DATA_SOURCE_NAME="root:$MARIADB_ROOT_PASSWORD@(localhost:3306)/" /bin/mysqld_exporter' ] ports: - name: metrics containerPort: 9104 livenessProbe: httpGet: path: /metrics port: metrics initialDelaySeconds: 15 timeoutSeconds: 5 readinessProbe: httpGet: path: /metrics port: metrics initialDelaySeconds: 5 timeoutSeconds: 1 resources: {{ toYaml .Values.metrics.resources | indent 10 }} {{- end }} volumes: {{- if .Values.slave.config }} - name: config configMap: name: {{ template "slave.fullname" . }} {{- end }} {{- if .Values.slave.persistence.enabled }} volumeClaimTemplates: - metadata: name: data labels: app: "{{ template "mariadb.name" . }}" chart: {{ template "mariadb.chart" . }} component: "slave" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: accessModes: {{- range .Values.slave.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.slave.persistence.size | quote }} {{- if .Values.slave.persistence.storageClass }} {{- if (eq "-" .Values.slave.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: {{ .Values.slave.persistence.storageClass | quote }} {{- end }} {{- end }} {{- else }} - name: "data" emptyDir: {} {{- end }} {{- end }} <|endoftext|> # istio_drop-default-request-timeout.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the `ISTIO_DEFAULT_REQUEST_TIMEOUT` feature flag. Please use timeout in VirtualService API. <|endoftext|> # helm_charts_chromeDebug-daemonset.yaml {{- if and (eq true .Values.chromeDebug.enabled) (eq true .Values.chromeDebug.runAsDaemonSet) -}} apiVersion: {{ template "deployment.apiVersion" . }} kind: DaemonSet metadata: name: {{ template "selenium.chromeDebug.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: selector: matchLabels: app: {{ template "selenium.chromeDebug.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.chromeDebug.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.chromeDebug.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.chromeDebug.podAnnotations }} annotations: {{ toYaml .Values.chromeDebug.podAnnotations | indent 8 }} {{- end}} spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.chromeDebug.image }}:{{ .Values.chromeDebug.tag }}" imagePullPolicy: {{ .Values.chromeDebug.pullPolicy }} ports: {{- if .Values.hub.jmxPort }} - containerPort: {{ .Values.hub.jmxPort }} name: jmx protocol: TCP {{- end }} - containerPort: 5900 name: vnc {{- if .Values.chromeDebug.enableLivenessProbe }} livenessProbe: httpGet: path: /wd/hub/status port: {{ default "5555" .Values.chromeDebug.nodePort }} initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 1 {{- end }} {{- if .Values.chromeDebug.waitForRunningSessions }} lifecycle: preStop: exec: command: - /bin/bash - -c - "while [ $(wget -q -O - http://localhost:{{ default "5555" .Values.chromeDebug.nodePort }}/wd/hub/sessions | grep -c capabilities) -gt 0 ]; do sleep 1; done" {{- end }} env: - name: HUB_PORT_4444_TCP_ADDR value: {{ template "selenium.hub.fullname" . }} - name: HUB_PORT_4444_TCP_PORT value: {{ .Values.hub.servicePort | quote }} - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.chromeDebug.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.chromeDebug.seOpts | quote }} {{- if .Values.chromeDebug.chromeVersion }} - name: CHROME_VERSION value: {{ .Values.chromeDebug.chromeVersion | quote }} {{- end }} {{- if .Values.chromeDebug.nodeMaxInstances }} - name: NODE_MAX_INSTANCES value: {{ .Values.chromeDebug.nodeMaxInstances | quote }} {{- end }} {{- if .Values.chromeDebug.nodeMaxSession }} - name: NODE_MAX_SESSION value: {{ .Values.chromeDebug.nodeMaxSession | quote }} {{- end }} {{- if .Values.chromeDebug.nodeRegisterCycle }} - name: NODE_REGISTER_CYCLE value: {{ .Values.chromeDebug.nodeRegisterCycle | quote }} {{- end }} {{- if .Values.chromeDebug.nodePort }} - name: NODE_PORT value: {{ .Values.chromeDebug.nodePort | quote }} {{- end }} {{- if .Values.chromeDebug.screenWidth }} - name: SCREEN_WIDTH value: {{ .Values.chromeDebug.screenWidth | quote }} {{- end }} {{- if .Values.chromeDebug.screenHeight }} - name: SCREEN_HEIGHT value: {{ .Values.chromeDebug.screenHeight | quote }} {{- end }} {{- if .Values.chromeDebug.screenDepth }} - name: SCREEN_DEPTH value: {{ .Values.chromeDebug.screenDepth | quote }} {{- end }} {{- if .Values.chromeDebug.display }} - name: DISPLAY value: {{ .Values.chromeDebug.display | quote }} {{- end }} {{- if .Values.chromeDebug.timeZone }} - name: TZ value: {{ .Values.chromeDebug.timeZone | quote }} {{- end }} {{- if .Values.chromeDebug.extraEnvs }} {{ toYaml .Values.chromeDebug.extraEnvs | indent 12 }} {{- end }} volumeMounts: {{ if .Values.chromeDebug.volumeMounts -}} {{ toYaml .Values.chromeDebug.volumeMounts | indent 12 }} {{- end }} resources: {{ toYaml .Values.chromeDebug.resources | indent 12 }} {{- if or .Values.global.imagePullSecrets .Values.chromeDebug.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.chromeDebug.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} volumes: {{ if .Values.chromeDebug.volumes -}} {{ toYaml .Values.chromeDebug.volumes | indent 8 }} {{- end }} hostAliases: {{ toYaml .Values.global.hostAliases | indent 8 }} nodeSelector: {{- if .Values.chromeDebug.nodeSelector }} {{ toYaml .Values.chromeDebug.nodeSelector | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | indent 8 }} {{- end }} affinity: {{- if .Values.chromeDebug.affinity }} {{ toYaml .Values.chromeDebug.affinity | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | indent 8 }} {{- end }} tolerations: {{- if .Values.chromeDebug.tolerations }} {{ toYaml .Values.chromeDebug.tolerations | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | indent 8 }} {{- end }} {{- end -}} <|endoftext|> # argocd_source_suspended_paused.yaml apiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: annotations: kubevirt.io/latest-observed-api-version: v1 kubevirt.io/storage-observed-api-version: v1alpha3 creationTimestamp: "2021-09-14T22:15:10Z" name: testvm namespace: default spec: running: true template: metadata: creationTimestamp: null labels: kubevirt.io/domain: testvm kubevirt.io/size: small spec: domain: devices: disks: - disk: bus: virtio name: containerdisk - disk: bus: virtio name: cloudinitdisk interfaces: - masquerade: {} name: default machine: type: q35 resources: requests: memory: 64M networks: - name: default pod: {} volumes: - containerDisk: image: quay.io/kubevirt/cirros-container-disk-demo name: containerdisk - cloudInitNoCloud: userDataBase64: SGkuXG4= name: cloudinitdisk status: conditions: - lastProbeTime: null lastTransitionTime: "2021-09-24T18:45:01Z" status: "True" type: Ready - lastProbeTime: "2021-09-24T18:48:57Z" lastTransitionTime: "2021-09-24T18:48:57Z" message: VMI was paused by user reason: PausedByUser status: "True" type: Paused created: true printableStatus: Paused ready: true volumeSnapshotStatuses: - enabled: false name: containerdisk reason: Snapshot is not supported for this volumeSource type [containerdisk] - enabled: false name: cloudinitdisk reason: Snapshot is not supported for this volumeSource type [cloudinitdisk] <|endoftext|> # istio_allow-host-before-111-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-1 namespace: foo spec: selector: matchLabels: app: httpbin version: v1 rules: - to: - operation: hosts: ["example.com", "prefix.example.*", "*.example.com", "*"] notHosts: ["not-example.com", "prefix.not-example.*", "*.not-example.com", "*"] <|endoftext|> # kustomize_cm2.template.yaml # Copyright 2021 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 apiVersion: v1 kind: ConfigMap metadata: name: env labels: app: {{ .Name }} data: env: production <|endoftext|> # istio_ingressgateway_k8s_settings.golden.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: istio-ingressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-ingressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istio-ingress-1.0.0 install.operator.istio.io/owning-resource: unknown istio: ingressgateway istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: IngressGateways release: istio name: istio-ingressgateway namespace: istio-system spec: selector: matchLabels: app: istio-ingressgateway istio: ingressgateway strategy: rollingUpdate: maxSurge: 100% maxUnavailable: 25% template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" sidecar.istio.io/inject: "false" labels: app: istio-ingressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-ingressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 chart: gateways helm.sh/chart: istio-ingress-1.0.0 heritage: Tiller install.operator.istio.io/owning-resource: unknown istio: ingressgateway istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: IngressGateways release: istio service.istio.io/canonical-name: istio-ingressgateway service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: null requiredDuringSchedulingIgnoredDuringExecution: null containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc.cluster.local - --proxyLogLevel=warning - --proxyComponentLogLevel=misc:error - --log_output_level=default:info env: - name: PILOT_CERT_PROVIDER value: istiod - name: CA_ADDR value: istiod.istio-system.svc:15012 - name: NODE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: HOST_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: ISTIO_META_WORKLOAD_NAME value: istio-ingressgateway - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/istio-system/deployments/istio-ingressgateway - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local - name: ISTIO_META_UNPRIVILEGED_POD value: "true" - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName image: registry.istio.io/testing/proxyv2:latest name: istio-proxy ports: - containerPort: 15021 protocol: TCP - containerPort: 8080 protocol: TCP - containerPort: 8443 protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: 2000m memory: 1024Mi requests: cpu: 100m memory: 128Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /etc/istio/config name: config-volume - mountPath: /var/run/secrets/istio name: istiod-ca-cert - mountPath: /var/run/secrets/tokens name: istio-token readOnly: true - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/pod name: podinfo - mountPath: /etc/istio/ingressgateway-certs name: ingressgateway-certs readOnly: true - mountPath: /etc/istio/ingressgateway-ca-certs name: ingressgateway-ca-certs readOnly: true securityContext: runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 sysctls: - name: net.ipv4.ip_local_port_range value: 80 65535 serviceAccountName: istio-ingressgateway-service-account volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - configMap: name: istio-ca-root-cert name: istiod-ca-cert - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: podinfo - emptyDir: {} name: istio-envoy - emptyDir: {} name: istio-data - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - configMap: name: istio optional: true name: config-volume - name: ingressgateway-certs secret: optional: true secretName: istio-ingressgateway-certs - name: ingressgateway-ca-certs secret: optional: true secretName: istio-ingressgateway-ca-certs --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: istio-ingressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-ingressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istio-ingress-1.0.0 install.operator.istio.io/owning-resource: unknown istio: ingressgateway istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: IngressGateways release: istio name: istio-ingressgateway-custom namespace: istio-system spec: selector: matchLabels: app: istio-ingressgateway istio: ingressgateway strategy: rollingUpdate: maxSurge: 100% maxUnavailable: 25% template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" sidecar.istio.io/inject: "false" labels: app: istio-ingressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-ingressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 chart: gateways helm.sh/chart: istio-ingress-1.0.0 heritage: Tiller install.operator.istio.io/owning-resource: unknown istio: ingressgateway istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: IngressGateways release: istio service.istio.io/canonical-name: istio-ingressgateway-custom service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: null requiredDuringSchedulingIgnoredDuringExecution: null containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc.cluster.local - --proxyLogLevel=warning - --proxyComponentLogLevel=misc:error - --log_output_level=default:info env: - name: PILOT_CERT_PROVIDER value: istiod - name: CA_ADDR value: istiod.istio-system.svc:15012 - name: NODE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: HOST_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: ISTIO_META_WORKLOAD_NAME value: istio-ingressgateway-custom - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/istio-system/deployments/istio-ingressgateway-custom - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local - name: ISTIO_META_UNPRIVILEGED_POD value: "true" - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName image: registry.istio.io/testing/proxyv2:latest name: istio-proxy ports: - containerPort: 15021 protocol: TCP - containerPort: 8080 protocol: TCP - containerPort: 8443 protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: 2000m memory: 1024Mi requests: cpu: 100m memory: 128Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /etc/istio/config name: config-volume - mountPath: /var/run/secrets/istio name: istiod-ca-cert - mountPath: /var/run/secrets/tokens name: istio-token readOnly: true - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/pod name: podinfo - mountPath: /etc/istio/ingressgateway-certs name: ingressgateway-certs readOnly: true - mountPath: /etc/istio/ingressgateway-ca-certs name: ingressgateway-ca-certs readOnly: true securityContext: runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 serviceAccountName: istio-ingressgateway-custom-service-account volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - configMap: name: istio-ca-root-cert name: istiod-ca-cert - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: podinfo - emptyDir: {} name: istio-envoy - emptyDir: {} name: istio-data - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - configMap: name: istio optional: true name: config-volume - name: ingressgateway-certs secret: optional: true secretName: istio-ingressgateway-certs - name: ingressgateway-ca-certs secret: optional: true secretName: istio-ingressgateway-ca-certs --- apiVersion: v1 kind: Service metadata: annotations: manifest-generate: testserviceAnnotation labels: app: istio-ingressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-ingressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istio-ingress-1.0.0 install.operator.istio.io/owning-resource: unknown istio: ingressgateway istio.io/rev: default operator.istio.io/component: IngressGateways release: istio name: istio-ingressgateway namespace: istio-system spec: externalTrafficPolicy: Local ports: - name: status-port port: 15021 protocol: TCP targetPort: 15021 - name: http2 port: 80 protocol: TCP targetPort: 8080 - name: https port: 443 protocol: TCP targetPort: 8443 selector: app: istio-ingressgateway istio: ingressgateway type: LoadBalancer --- apiVersion: v1 kind: Service metadata: annotations: null labels: app: istio-ingressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-ingressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istio-ingress-1.0.0 install.operator.istio.io/owning-resource: unknown istio: ingressgateway istio.io/rev: default operator.istio.io/component: IngressGateways release: istio name: istio-ingressgateway-custom namespace: istio-system spec: externalTrafficPolicy: Local ports: - name: status-port port: 15021 protocol: TCP targetPort: 15021 - name: http2 port: 80 protocol: TCP targetPort: 8080 - name: https port: 443 protocol: TCP targetPort: 8443 selector: app: istio-ingressgateway istio: ingressgateway type: LoadBalancer <|endoftext|> # istio_default-json-logging-envoy-telemetry-api.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 37663 releaseNotes: - | **Added** support for using default JSON access logs format with Telemetry API. <|endoftext|> # helm_charts_service-account.yaml {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "katafygio.serviceAccountName" . }} labels: {{ include "katafygio.labels.standard" . | indent 4 }} {{- end }} <|endoftext|> # istio_authz-dry-run-alpha.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - https://github.com/istio/enhancements/pull/112 releaseNotes: - | **Promoted** the authorization policy dry-run mode to alpha. docs: - '[usage] https://istio.io/latest/docs/tasks/security/authorization/authz-dry-run/' <|endoftext|> # istio_daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: hello spec: selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_38083.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 38083 releaseNotes: - | **Fixed** nil pointer dereference panic when using kube-inject when not passing a needed revision but also passing injectConfigMapName. <|endoftext|> # flux_source_or_basic.yaml --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: podinfo namespace: {{ .fluxns }} spec: chartRef: kind: OCIRepository name: podinfo interval: 1m0s <|endoftext|> # k8s_docs_pod-with-toleration.yaml apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent tolerations: - key: "example-key" operator: "Exists" effect: "NoSchedule" <|endoftext|> # k8s_docs_applyconfiguration-example.yaml apiVersion: admissionregistration.k8s.io/v1beta1 kind: MutatingAdmissionPolicy metadata: name: "sidecar-policy.example.com" spec: paramKind: kind: Sidecar apiVersion: mutations.example.com/v1 matchConstraints: resourceRules: - apiGroups: [""] apiVersions: ["v1"] operations: ["CREATE"] resources: ["pods"] matchConditions: - name: does-not-already-have-sidecar expression: "!object.spec.initContainers.exists(ic, ic.name == \"mesh-proxy\")" failurePolicy: Fail reinvocationPolicy: IfNeeded mutations: - patchType: "ApplyConfiguration" applyConfiguration: expression: > Object{ spec: Object.spec{ initContainers: [ Object.spec.initContainers{ name: "mesh-proxy", image: "mesh/proxy:v1.0.0", args: ["proxy", "sidecar"], restartPolicy: "Always" } ] } } <|endoftext|> # helm_charts_catalog_deployment.yaml {{- $component := "catalog" -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "anchore-engine.catalog.fullname" . }} labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: {{ $component }} {{- with .Values.anchoreCatalog.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} spec: selector: matchLabels: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} replicas: {{ .Values.anchoreCatalog.replicaCount }} strategy: type: Recreate rollingUpdate: null template: metadata: labels: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} {{- with .Values.anchoreCatalog.labels }} {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreCatalog.annotations }} annotations: {{ toYaml . | nindent 8 }} {{- end }} spec: securityContext: runAsUser: 1000 runAsGroup: 1000 {{- if .Values.anchoreEnterpriseGlobal.enabled }} imagePullSecrets: - name: {{ .Values.anchoreEnterpriseGlobal.imagePullSecretName }} {{- else }} {{- with .Values.anchoreGlobal.imagePullSecretName }} imagePullSecrets: - name: {{ . }} {{- end }} {{- end }} containers: {{- if .Values.cloudsql.enabled }} - name: cloudsql-proxy image: {{ .Values.cloudsql.image.repository }}:{{ .Values.cloudsql.image.tag }} imagePullPolicy: {{ .Values.cloudsql.image.pullPolicy }} command: ["/cloud_sql_proxy"] args: - "-instances={{ .Values.cloudsql.instance }}=tcp:5432" {{- if .Values.cloudsql.useExistingServiceAcc }} - "-credential_file=/var/{{ .Values.cloudsql.serviceAccSecretName }}/{{ .Values.cloudsql.serviceAccJsonName }}" volumeMounts: - mountPath: /var/{{ .Values.cloudsql.serviceAccSecretName }} name: {{ .Values.cloudsql.serviceAccSecretName }} readOnly: true {{- end }} {{- end }} - name: {{ .Chart.Name }}-{{ $component }} {{- if .Values.anchoreEnterpriseGlobal.enabled }} image: {{ .Values.anchoreEnterpriseGlobal.image }} imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }} {{- else }} image: {{ .Values.anchoreGlobal.image }} imagePullPolicy: {{ .Values.anchoreGlobal.imagePullPolicy }} {{- end }} {{- if .Values.anchoreEnterpriseGlobal.enabled }} args: ["anchore-enterprise-manager", "service", "start", "--no-auto-upgrade", "catalog"] {{- else }} args: ["anchore-manager", "service", "start", "--no-auto-upgrade", "catalog"] {{- end }} envFrom: - secretRef: name: {{ default (include "anchore-engine.fullname" .) .Values.anchoreGlobal.existingSecret }} - configMapRef: name: {{ template "anchore-engine.fullname" . }}-env env: {{- with .Values.anchoreGlobal.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreCatalog.extraEnv }} {{- toYaml . | nindent 8 }} {{- end }} - name: ANCHORE_POD_NAME valueFrom: fieldRef: fieldPath: metadata.name ports: - name: catalog containerPort: {{ .Values.anchoreCatalog.service.port }} volumeMounts: {{- if .Values.anchoreEnterpriseGlobal.enabled }} - name: anchore-license mountPath: /home/anchore/license.yaml subPath: license.yaml {{- end }} - name: config-volume mountPath: /config/config.yaml subPath: config.yaml {{- if .Values.anchoreGlobal.openShiftDeployment }} - name: service-config-volume mountPath: /anchore_service_config - name: logs mountPath: /var/log/anchore - name: run mountPath: /var/run/anchore {{- end }} {{- if (.Values.anchoreGlobal.certStoreSecretName) }} - name: certs mountPath: /home/anchore/certs/ readOnly: true {{- end }} livenessProbe: httpGet: path: /health port: catalog {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} scheme: HTTPS {{- end }} initialDelaySeconds: 120 timeoutSeconds: 10 periodSeconds: 10 failureThreshold: 6 successThreshold: 1 readinessProbe: httpGet: path: /health port: catalog {{- if .Values.anchoreGlobal.internalServicesSsl.enabled }} scheme: HTTPS {{- end }} timeoutSeconds: 10 periodSeconds: 10 failureThreshold: 3 successThreshold: 1 resources: {{ toYaml .Values.anchoreCatalog.resources | nindent 10 }} volumes: {{- if .Values.anchoreEnterpriseGlobal.enabled }} - name: anchore-license secret: secretName: {{ .Values.anchoreEnterpriseGlobal.licenseSecretName }} {{- end }} - name: config-volume configMap: name: {{ template "anchore-engine.fullname" . }} {{- if .Values.anchoreGlobal.openShiftDeployment }} - name: service-config-volume emptyDir: {} - name: logs emptyDir: {} - name: run emptyDir: {} {{- end }} {{- with .Values.anchoreGlobal.certStoreSecretName }} - name: certs secret: secretName: {{ . }} {{- end }} {{- if .Values.cloudsql.useExistingServiceAcc }} - name: {{ .Values.cloudsql.serviceAccSecretName }} secret: secretName: {{ .Values.cloudsql.serviceAccSecretName }} {{- end }} {{- with .Values.anchoreCatalog.nodeSelector }} nodeSelector: {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreCatalog.affinity }} affinity: {{ toYaml . | nindent 8 }} {{- end }} {{- with .Values.anchoreCatalog.tolerations }} tolerations: {{ toYaml . | nindent 8 }} {{- end }} --- apiVersion: v1 kind: Service metadata: name: {{ template "anchore-engine.catalog.fullname" . }} labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: {{ $component }} {{- with .Values.anchoreCatalog.service.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.anchoreCatalog.service.annotations }} annotations: {{ toYaml . | nindent 4 }} {{- end }} spec: type: {{ .Values.anchoreCatalog.service.type }} ports: - name: anchore-catalog-api port: {{ .Values.anchoreCatalog.service.port }} targetPort: {{ .Values.anchoreCatalog.service.port }} protocol: TCP selector: app: {{ template "anchore-engine.fullname" . }} component: {{ $component }} <|endoftext|> # istio_allow-empty-rule-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: allow-all namespace: foo spec: selector: matchLabels: app: httpbin version: v1 rules: - {} <|endoftext|> # helm_charts_additionalAlertRelabelConfigs.yaml {{- if and .Values.prometheus.enabled .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigs }} apiVersion: v1 kind: Secret metadata: name: {{ template "prometheus-operator.fullname" . }}-prometheus-am-relabel-confg namespace: {{ template "prometheus-operator.namespace" . }} {{- if .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations }} annotations: {{ toYaml .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations | indent 4 }} {{- end }} labels: app: {{ template "prometheus-operator.name" . }}-prometheus-am-relabel-confg {{ include "prometheus-operator.labels" . | indent 4 }} data: additional-alert-relabel-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigs | b64enc | quote }} {{- end }} <|endoftext|> # helm_charts_custom-metrics-cluster-role.yaml {{- if and .Values.rbac.create (or .Values.rules.default .Values.rules.custom) -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}-server-resources rules: - apiGroups: - custom.metrics.k8s.io resources: ["*"] verbs: ["*"] {{- end -}} <|endoftext|> # helm_charts_volumesnapshotlocations.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: volumesnapshotlocations.velero.io labels: app.kubernetes.io/name: "velero" annotations: "helm.sh/hook": crd-install "helm.sh/hook-delete-policy": "before-hook-creation" spec: group: velero.io version: v1 scope: Namespaced names: plural: volumesnapshotlocations kind: VolumeSnapshotLocation <|endoftext|> # istio_impersonate-flags-in-cli.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: istioctl # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 52285 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** support for the impersonate flags used in kube client in the istioctl. <|endoftext|> # helm_charts_authservice.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: authservices.getambassador.io labels: app.kubernetes.io/name: ambassador annotations: "helm.sh/hook": crd-install spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: authservices singular: authservice kind: AuthService <|endoftext|> # istio_proxy-stats-inclusion.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 26546 releaseNotes: - | **Added** Proxy config to control Envoy native stats generation. <|endoftext|> # istio_virtualservice_destinationhosts.yaml apiVersion: v1 kind: Service metadata: name: reviews namespace: default spec: ports: - port: 42 name: tcp-test protocol: TCP --- apiVersion: v1 kind: Service metadata: name: reviews-2port namespace: default spec: ports: - port: 80 name: http-test protocol: HTTP - port: 443 name: https-test protocol: HTTPS --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: external-reviews namespace: default spec: hosts: - external-reviews.org --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: eu-wildcard namespace: default spec: hosts: - "*.eu.bookinfo.com" --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-entry-ignore namespace: default-ignore spec: exportTo: - "." hosts: - "*" # This ServiceEntry should not match any instance as it isn't exported to other namespaces --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-entry-other namespace: other spec: exportTo: - "." hosts: - "other.bookinfo.com" # This ServiceEntry should not match any instance as it isn't exported to other namespaces --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-entry-exported namespace: other spec: exportTo: - "default" hosts: - "abc.bookinfo.com" # This ServiceEntry matches a destination host in a virtualService in another namespace --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews namespace: default spec: http: - route: - destination: # This virtualservice has no validation errors (base case) host: reviews subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-bogushost namespace: default spec: http: - route: - {} # test destination null - destination: host: reviews-bogus # This host does not exist, should result in a validation error subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-fqdn namespace: default spec: http: - route: - destination: host: reviews.default.svc.cluster.local # FQDN representation is valid and should not generate an error subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-external namespace: default spec: http: - route: - destination: host: external-reviews.org # Referring to a ServiceEntry host is valid and should not generate an error # Since this is an "external" service, subset is omitted --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-bookinfo-eu namespace: default spec: http: - route: - destination: host: reviews.eu.bookinfo.com # This should match the eu-wildcard service entry and not generate an error --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-bookinfo-eu-wildcard namespace: default spec: http: - route: - destination: host: "*.eu.bookinfo.com" # Should match *.eu.bookinfo.com --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-bookinfo-other namespace: default spec: http: - route: - destination: host: other.bookinfo.com # Should generate validation error, the SE is in another namespace --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-mirror namespace: default spec: http: - route: - destination: host: reviews subset: v1 mirror: # Includes mirroring, but should not generate any errors host: reviews subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-mirror-bogushost namespace: default spec: http: - route: - destination: host: reviews subset: v1 mirror: host: reviews-bogus # This host does not exist, should result in a validation error subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-bogusport namespace: default spec: http: - route: - destination: host: reviews subset: v1 port: number: 999 # No match for this port number, should generate an error --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-2port-missing namespace: default spec: http: - route: - destination: # Since reviews-2port exposes multiple ports, not including a port in the destination is an error host: reviews-2port subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews-2port-present namespace: default spec: http: - route: - destination: host: reviews-2port subset: v1 port: number: 80 # Should not generate an error since we specify a valid port, as required in this case --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: # This VirtualService is in 'istio-system' and uses a FQDN destination name: cross-namespace namespace: istio-system spec: hosts: [reviews] http: - route: - destination: # Should not generate error because the this host exists, just not in our namespace host: reviews.default.svc.cluster.local --- apiVersion: v1 kind: Service metadata: name: details namespace: default annotations: networking.istio.io/exportTo: banana labels: app: details service: details spec: ports: - port: 9080 name: http selector: app: details --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: # This VirtualService is in 'istio-system' and uses a FQDN destination, but this ns doesn't see that Service name: cross-namespace-details namespace: istio-system spec: hosts: [details] http: - route: - destination: # Should generate error, because details is only exported to "banana" ns host: details.default.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: # This is cross-namespace, but not a problem, details has explicit networking.istio.io/exportTo=banana name: banana-details namespace: banana spec: hosts: [details] http: - route: - destination: host: details.default.svc.cluster.local --- apiVersion: v1 kind: Service metadata: name: hello namespace: hello annotations: networking.istio.io/exportTo: hello1,hello2,. # export to hello1, hello2 and the namespace itself belongs to labels: app: hello service: hello spec: ports: - port: 9080 name: http selector: app: hello --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: # This is cross-namespace, but not a problem, details has explicit networking.istio.io/exportTo=hello1,hello2,. name: hello namespace: hello1 spec: hosts: [hello] http: - route: - destination: host: hello.hello.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: # This is cross-namespace, but not a problem, details has explicit networking.istio.io/exportTo=hello1,hello2,. name: hello namespace: hello2 spec: hosts: [hello] http: - route: - destination: host: hello.hello.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: # This is cross-namespace, but not a problem, details has explicit networking.istio.io/exportTo=hello1,hello2,. name: hello namespace: hello spec: hosts: [hello] http: - route: - destination: host: hello.hello.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: hello-export-to-bogus namespace: hello spec: hosts: [hello] exportTo: - bogus # This should generate an error, because the exportTo http: - route: - destination: host: hello.hello.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: vs-to-extporto-serviceentry namespace: default spec: http: - route: - destination: # This virtualservice has no validation errors host: abc.bookinfo.com # Host defined in an SE in another namespace, but exported to this namespace <|endoftext|> # istio_tls-no-secret.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: tls namespace: bar spec: rules: - host: foo.org http: paths: - backend: service: name: httpbin port: number: 80 path: /* tls: - hosts: - foo.org <|endoftext|> # argocd_source_argocd-dex-server-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/name: argocd-dex-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: dex-server name: argocd-dex-server spec: ports: - name: http appProtocol: TCP protocol: TCP port: 5556 targetPort: 5556 - name: grpc protocol: TCP port: 5557 targetPort: 5557 - name: metrics port: 5558 protocol: TCP targetPort: 5558 selector: app.kubernetes.io/name: argocd-dex-server <|endoftext|> # k8s_docs_simple-role.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: namespace: default name: pod-reader rules: - apiGroups: [""] # "" indicates the core API group resources: ["pods"] verbs: ["get", "watch", "list"] <|endoftext|> # helm_charts_service_account.yaml {{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "logdna.serviceAccountName" . }} namespace: {{ .Release.Namespace }} labels: app.kubernetes.io/name: {{ template "logdna.name" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/version: {{ .Chart.AppVersion }} helm.sh/chart: {{ template "logdna.chart" . }} {{ end }} <|endoftext|> # istio_native-stats.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Updated** Telemetry API uses a new native extension for Prometheus stats instead of the Wasm-based extension. This improves CPU overhead and memory usage of the feature. Custom dimensions no longer require regex and bootstrap annotations. If customizations use CEL expressions with Wasm attributes, they are likely to be affected. <|endoftext|> # istio_48051.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 48051 releaseNotes: - | **Added** introduce `statsCompression` option in proxyConfig to allow global configuration of HTTP compression for the Envoy stats endpoint exposing its metrics. This is enabled by default, offering `brotli`, `gzip` and `zstd` depending on the `Accept-Header` sent by the client. **Deprecated** remove the `sidecar.istio.io/statsCompression` annotation, which is replaced by the `statsCompression` proxyConfig option. Per Pod overrides are still possible via `proxy.istio.io/config` annotation. upgradeNotes: - title: HTTP compression of Envoy metrics (`prometheus_stats`) enabled by default. content: | The annotation `sidecar.istio.io/statsCompression` was deprecated and removed. There now is the `statsCompression` option in proxyConfig to globally control compression support of the metrics endpoint (`prometheus_stats`) of Envoy. The default of this value is `true`, offering `brotli`, `gzip` and `zstd` depending on the `Accept-Header` sent by the client. Most metric scrapers allow individual configuration of compression. If you still need to override this per Pod, you can set `statsCompression: false` via the `proxy.istio.io/config` annotation. <|endoftext|> # istio_endpoint-termination.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Updated** the `PILOT_SEND_UNHEALTHY_ENDPOINTS` feature (which is off by default) to not include terminating endpoints. This ensures a service is not considered unhealthy during scale down or rollout events. <|endoftext|> # argocd_source_cluster_reconcile_suspended.yaml apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: creationTimestamp: "2025-04-25T20:44:24Z" generation: 1 name: cluster-example namespace: default resourceVersion: "20230" uid: 987fe1ba-bba7-4021-9d25-f06ca9a8c0d2 spec: imageName: ghcr.io/cloudnative-pg/postgresql:13 instances: 3 status: currentPrimary: cluster-example-1 currentPrimaryTimestamp: "2025-04-25T20:44:38.190232Z" instancesStatus: healthy: - cluster-example-1 - cluster-example-2 - cluster-example-3 phase: Cluster in healthy state targetPrimary: cluster-example-1 targetPrimaryTimestamp: "2025-04-25T20:44:26.214164Z" <|endoftext|> # argocd_examples_orders-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: orders labels: name: orders spec: replicas: 1 selector: matchLabels: name: orders template: metadata: labels: name: orders spec: containers: - name: orders image: weaveworksdemos/orders:0.4.7 env: - name: ZIPKIN value: zipkin.jaeger.svc.cluster.local - name: JAVA_OPTS value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom resources: limits: cpu: 500m memory: 500Mi requests: cpu: 200m memory: 500Mi ports: - containerPort: 80 securityContext: runAsNonRoot: true runAsUser: 10001 capabilities: drop: - all add: - NET_BIND_SERVICE readOnlyRootFilesystem: true volumeMounts: - mountPath: /tmp name: tmp-volume livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 300 periodSeconds: 3 readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 180 periodSeconds: 3 volumes: - name: tmp-volume emptyDir: medium: Memory nodeSelector: kubernetes.io/os: linux <|endoftext|> # cert_manager_crd.template.header.yaml {{- if REPLACE_CRD_EXPRESSION }} apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: "REPLACE_CRD_NAME" {{- if .Values.crds.keep }} annotations: helm.sh/resource-policy: keep {{- end }} labels: {{- include "REPLACE_LABELS_TEMPLATE" . | nindent 4 }} <|endoftext|> # argocd_source_git-directories-exclude-example-fasttemplate.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-addons namespace: argocd spec: generators: - git: repoURL: https://github.com/argoproj/argo-cd.git revision: HEAD directories: - path: applicationset/examples/git-generator-directory/excludes/cluster-addons/* - exclude: true path: applicationset/examples/git-generator-directory/excludes/cluster-addons/exclude-helm-guestbook template: metadata: name: '{{path.basename}}' spec: project: "my-project" source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: '{{path}}' destination: server: https://kubernetes.default.svc namespace: '{{path.basename}}' syncPolicy: syncOptions: - CreateNamespace=true <|endoftext|> # k8s_docs_wordpress-deployment.yaml apiVersion: v1 kind: Service metadata: name: wordpress labels: app: wordpress spec: ports: - port: 80 selector: app: wordpress tier: frontend type: LoadBalancer --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: wp-pv-claim labels: app: wordpress spec: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi --- apiVersion: apps/v1 kind: Deployment metadata: name: wordpress labels: app: wordpress spec: selector: matchLabels: app: wordpress tier: frontend strategy: type: Recreate template: metadata: labels: app: wordpress tier: frontend spec: containers: - image: wordpress:4.8-apache name: wordpress env: - name: WORDPRESS_DB_HOST value: wordpress-mysql - name: WORDPRESS_DB_PASSWORD valueFrom: secretKeyRef: name: mysql-pass key: password ports: - containerPort: 80 name: wordpress volumeMounts: - name: wordpress-persistent-storage mountPath: /var/www/html volumes: - name: wordpress-persistent-storage persistentVolumeClaim: claimName: wp-pv-claim <|endoftext|> # istio_tls-fc.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 29538 releaseNotes: - | **Fixed** an issue causing client side application TLS requests sent to a PERMISSIVE mode enabled server to fail. <|endoftext|> # istio_44506.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 40861 releaseNotes: - | **Fixed** `istioctl analyze` no longer expects pods and runtime resources when analyzing files. <|endoftext|> # istio_listenerset-invalid.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: waypoint namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio-waypoint listeners: - name: mesh port: 15008 protocol: HBONE --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: parent-gateway namespace: istio-system spec: allowedListeners: namespaces: from: All addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: foo hostname: foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: ListenerSet metadata: name: port-not-in-service namespace: istio-system spec: parentRef: name: parent-gateway kind: Gateway group: gateway.networking.k8s.io listeners: - name: first hostname: first.foo.com protocol: HTTP port: 12345 --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: not-accepted-parent namespace: istio-system spec: allowedListeners: namespaces: from: All addresses: - value: 0.0.0.0 type: test.example.com/custom gatewayClassName: istio listeners: - name: foo hostname: foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: ListenerSet metadata: name: not-accepted-parent namespace: istio-system spec: parentRef: name: not-accepted-parent kind: Gateway group: gateway.networking.k8s.io listeners: - name: first hostname: first.foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: ListenerSet metadata: name: invalid-class namespace: istio-system spec: parentRef: name: waypoint kind: Gateway group: gateway.networking.k8s.io listeners: - name: first hostname: first.foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: parent-with-no-children namespace: istio-system spec: allowedListeners: namespaces: from: All addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: foo hostname: foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: parent-no-allowed-listeners namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: foo hostname: foo.com protocol: HTTP port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: ListenerSet metadata: name: not-allowed namespace: istio-system spec: parentRef: name: parent-no-allowed-listeners kind: Gateway group: gateway.networking.k8s.io listeners: - name: first hostname: first.foo.com protocol: HTTP port: 80 <|endoftext|> # helm_charts_worker-secrets.yaml {{- if .Values.worker.enabled }} {{- if .Values.secrets.create }} apiVersion: v1 kind: Secret metadata: name: {{ template "concourse.worker.fullname" . }} labels: app: {{ template "concourse.worker.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque data: host-key-pub: {{ .Values.secrets.hostKeyPub | b64enc | quote }} worker-key: {{ .Values.secrets.workerKey | b64enc | quote }} {{- end }} {{- end }} <|endoftext|> # istio_28753.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 28753 releaseNotes: - | **Added** `istioctl apply` as an alias for `istioctl install`. <|endoftext|> # istio_cni-drop-psp.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Removed** support for `.Values.cni.psp_cluster_role` as part of installation, as `PodSecurityPolicy` was [deprecated](https://kubernetes.io/blog/2021/04/06/podsecuritypolicy-deprecation-past-present-and-future/). <|endoftext|> # istio_add-sni-host.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 25691 releaseNotes: - | **Fixed** SNI host routing issue when user uses sniHosts match in virtual service <|endoftext|> # istio_gateway-no-port.yaml # Gateway with bogus port # apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: httpbin-gateway spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - "*" - port: number: 8004 name: http2 protocol: HTTP hosts: - "*" <|endoftext|> # argocd_examples_user-svc.yaml --- apiVersion: v1 kind: Service metadata: name: user labels: name: user spec: ports: # the port that this service should serve on - port: 80 targetPort: 80 selector: name: user <|endoftext|> # argocd_source_argocd-commit-server-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/name: argocd-commit-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: commit-server name: argocd-commit-server spec: selector: matchLabels: app.kubernetes.io/name: argocd-commit-server template: metadata: labels: app.kubernetes.io/name: argocd-commit-server spec: serviceAccountName: argocd-commit-server automountServiceAccountToken: false containers: - name: argocd-commit-server image: quay.io/argoproj/argocd:latest imagePullPolicy: Always args: - /usr/local/bin/argocd-commit-server env: - name: GRPC_ENABLE_TXT_SERVICE_CONFIG valueFrom: configMapKeyRef: name: argocd-cmd-params-cm key: commitserver.grpc.enable.txt.service.config optional: true - name: ARGOCD_COMMIT_SERVER_LISTEN_ADDRESS valueFrom: configMapKeyRef: name: argocd-cmd-params-cm key: commitserver.listen.address optional: true - name: ARGOCD_COMMIT_SERVER_METRICS_LISTEN_ADDRESS valueFrom: configMapKeyRef: name: argocd-cmd-params-cm key: commitserver.metrics.listen.address optional: true - name: ARGOCD_COMMIT_SERVER_LOGFORMAT valueFrom: configMapKeyRef: name: argocd-cmd-params-cm key: commitserver.log.format optional: true - name: ARGOCD_COMMIT_SERVER_LOGLEVEL valueFrom: configMapKeyRef: name: argocd-cmd-params-cm key: commitserver.log.level optional: true - name: ARGOCD_LOG_FORMAT_TIMESTAMP valueFrom: configMapKeyRef: name: argocd-cmd-params-cm key: log.format.timestamp optional: true ports: - containerPort: 8086 - containerPort: 8087 livenessProbe: httpGet: path: /healthz?full=true port: 8087 initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 3 timeoutSeconds: 5 readinessProbe: httpGet: path: /healthz port: 8087 initialDelaySeconds: 5 periodSeconds: 10 securityContext: runAsNonRoot: true readOnlyRootFilesystem: true allowPrivilegeEscalation: false capabilities: drop: - ALL seccompProfile: type: RuntimeDefault volumeMounts: - name: ssh-known-hosts mountPath: /app/config/ssh - name: tls-certs mountPath: /app/config/tls - name: gpg-keys mountPath: /app/config/gpg/source - name: gpg-keyring mountPath: /app/config/gpg/keys # We need a writeable temp directory for the askpass socket file. - name: tmp mountPath: /tmp volumes: - name: ssh-known-hosts configMap: name: argocd-ssh-known-hosts-cm - name: tls-certs configMap: name: argocd-tls-certs-cm - name: gpg-keys configMap: name: argocd-gpg-keys-cm - name: gpg-keyring emptyDir: {} - name: tmp emptyDir: {} - name: argocd-commit-server-tls secret: secretName: argocd-commit-server-tls optional: true items: - key: tls.crt path: tls.crt - key: tls.key path: tls.key - key: ca.crt path: ca.crt affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchLabels: app.kubernetes.io/name: argocd-commit-server topologyKey: kubernetes.io/hostname - weight: 5 podAffinityTerm: labelSelector: matchLabels: app.kubernetes.io/part-of: argocd topologyKey: kubernetes.io/hostname <|endoftext|> # kube_prometheus_example-app.yaml kind: Service apiVersion: v1 metadata: name: example-app labels: tier: frontend namespace: default spec: selector: app.kubernetes.io/name: example-app ports: - name: web protocol: TCP port: 8080 targetPort: web --- apiVersion: apps/v1 kind: Deployment metadata: name: example-app namespace: default spec: selector: matchLabels: app.kubernetes.io/name: example-app version: 1.1.3 replicas: 4 template: metadata: labels: app.kubernetes.io/name: example-app version: 1.1.3 spec: containers: - name: example-app image: quay.io/fabxc/prometheus_demo_service ports: - name: web containerPort: 8080 protocol: TCP <|endoftext|> # istio_fix-workload-group-labels.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: [34395] releaseNotes: - | **Fixed** an issue with WorkloadGroup and WorkloadEntry labeling of canonical revision. <|endoftext|> # istio_36110.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 36110 releaseNotes: - | **Added** istiod deployment respect `values.pilot.nodeSelector`. <|endoftext|> # istio_gateway-infra-gep.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** support for [In-Cluster Gateway Deployments](https://gateway-api.sigs.k8s.io/geps/gep-1762/). Deployment also now has both `istio.io/gateway-name` and `gateway.networking.k8s.io/gateway-name` labels just like the Pods and Services. # upgradeNotes is a markdown listing of any changes that will affect the upgrade # process. This will appear in the release notes. upgradeNotes: - title: Gateway Name label modified content: If you are using the [Kubernetes Gateway](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1beta1.Gateway) to manage your istio gateways, the label key used to identify the gateway name is changing from `istio.io/gateway-name` to `gateway.networking.k8s.io/gateway-name`. The old label will continue to be appended to the relevant label sets for backwards compatibility, but it will be removed in a future release. Furthermore, istiod's gateway controller will automatically detect and continue to use the old label for label selectors belonging to existing `Deployment` and `Service` resources. Therefore, once you've completed your Istio upgrade, you can change the label selector in `Deployment` and `Service` resources whenever you are ready to use the new label. Additionally, please upgrade any other policies, resources, or scripts that rely on the old label. <|endoftext|> # helm_charts_custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}:system:auth-delegator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - kind: ServiceAccount name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # helm_charts_resource-metrics-cluster-role-binding.yaml {{- if and .Values.rbac.create .Values.rules.resource -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}-hpa-controller-metrics roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "k8s-prometheus-adapter.name" . }}-metrics subjects: - kind: ServiceAccount name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # istio_36452.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** the global wildcard pattern match for the bug report `--include` and `--exclude` flag. <|endoftext|> # argocd_source_another_tenant_exists.yaml apiVersion: minio.min.io/v2 kind: Tenant metadata: name: minio-tenant spec: image: minio/minio:latest pools: - name: pool-0 servers: 1 volumesPerServer: 4 status: revision: 0 currentState: Another MinIO Tenant already exists in the namespace <|endoftext|> # k8s_examples_pod_priv.yaml apiVersion: v1 kind: Pod metadata: name: nginx labels: name: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80 securityContext: privileged: true <|endoftext|> # k8s_docs_basic-daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: example-daemonset spec: selector: matchLabels: app.kubernetes.io/name: example template: metadata: labels: app.kubernetes.io/name: example spec: containers: - name: pause image: registry.k8s.io/pause initContainers: - name: log-machine-id image: busybox:1.37 command: ['sh', '-c', 'cat /etc/machine-id > /var/log/machine-id.log'] volumeMounts: - name: machine-id mountPath: /etc/machine-id readOnly: true - name: log-dir mountPath: /var/log volumes: - name: machine-id hostPath: path: /etc/machine-id type: File - name: log-dir hostPath: path: /var/log <|endoftext|> # k8s_examples_vsphere-volume-spbm-policy-with-datastore.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: fast provisioner: kubernetes.io/vsphere-volume parameters: diskformat: zeroedthick storagePolicyName: gold datastore: VSANDatastore <|endoftext|> # istio_52082.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 52082 releaseNotes: - | **Fixed** an issue that istioctl analyze report unknown annotation `sidecar.istio.io/statsCompression`. <|endoftext|> # istio_crd-webhook-v1.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 18771 - 18838 releaseNotes: - | **Upgraded** the CRD and Webhook versions to `v1`. upgradeNotes: - title: Require Kubernetes 1.16+ content: Kubernetes 1.16+ is now required for installation. <|endoftext|> # grafana_charts_no-downscale-webhook.yaml {{- if .Values.webhooks.enabled -}} apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: no-downscale-{{ .Release.Namespace }} labels: grafana.com/inject-rollout-operator-ca: "true" grafana.com/namespace: {{ .Release.Namespace | quote }} {{- include "rollout-operator.labels" . | nindent 4 }} webhooks: - name: no-downscale-{{ .Release.Namespace }}.grafana.com clientConfig: service: namespace: {{ .Release.Namespace | quote }} name: {{ include "rollout-operator.fullname" . }} path: /admission/no-downscale port: 443 rules: - operations: - UPDATE apiGroups: - apps apiVersions: - v1 resources: - statefulsets - statefulsets/scale scope: Namespaced admissionReviewVersions: - v1 {{- if not (kindIs "invalid" .Values.namespaceSelector) }} namespaceSelector: {{- if .Values.namespaceSelector.matchLabels }} matchLabels: {{- toYaml .Values.namespaceSelector.matchLabels | nindent 8 }} {{- with .Values.namespaceSelector.matchExpressions }} matchExpressions: {{- toYaml . | nindent 8 }} {{- end }} {{- else }} matchLabels: kubernetes.io/metadata.name: {{ .Release.Namespace | quote }} {{- with .Values.namespaceSelector.matchExpressions }} matchExpressions: {{- toYaml . | nindent 8 }} {{- end }} {{- end }} {{- end }} {{- with .Values.webhooks.objectSelector }} objectSelector: {{- toYaml . | nindent 6 }} {{- end }} sideEffects: None failurePolicy: {{.Values.webhooks.failurePolicy}} {{- end -}} <|endoftext|> # helm_charts_redis-ha-pdb.yaml {{- if .Values.podDisruptionBudget -}} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ template "redis-ha.fullname" . }}-pdb namespace: {{ .Release.Namespace }} labels: {{ include "labels.standard" . | indent 4 }} spec: selector: matchLabels: release: {{ .Release.Name }} app: {{ template "redis-ha.name" . }} {{ toYaml .Values.podDisruptionBudget | indent 2 }} {{- end -}} <|endoftext|> # helm_charts_migrations-post-upgrade.yaml {{- if (and (.Values.runMigrations) (not (eq .Values.env.database "off"))) }} # Why is this Job duplicated and not using only helm hooks? # See: https://github.com/helm/charts/pull/7362 apiVersion: batch/v1 kind: Job metadata: name: {{ template "kong.fullname" . }}-post-upgrade-migrations labels: {{- include "kong.metaLabels" . | nindent 4 }} app.kubernetes.io/component: post-upgrade-migrations annotations: helm.sh/hook: "post-upgrade" helm.sh/hook-delete-policy: "before-hook-creation" spec: template: metadata: name: {{ template "kong.name" . }}-post-upgrade-migrations labels: {{- include "kong.metaLabels" . | nindent 8 }} app.kubernetes.io/component: post-upgrade-migrations spec: {{- if .Values.podSecurityPolicy.enabled }} serviceAccountName: {{ template "kong.serviceAccountName" . }} {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} initContainers: {{- if (eq .Values.env.database "postgres") }} {{- include "kong.wait-for-postgres" . | nindent 6 }} {{- end }} containers: - name: {{ template "kong.name" . }}-post-upgrade-migrations image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: {{- include "kong.final_env" . | nindent 8 }} command: [ "/bin/sh", "-c", "kong migrations finish" ] volumeMounts: {{- include "kong.volumeMounts" . | nindent 8 }} securityContext: {{- include "kong.podsecuritycontext" . | nindent 8 }} restartPolicy: OnFailure volumes: {{- include "kong.volumes" . | nindent 6 -}} {{- end }} <|endoftext|> # istio_default-injector.yaml apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: app: sidecar-injector install.operator.istio.io/owning-resource: example-istiocontrolplane install.operator.istio.io/owning-resource-namespace: istio-system istio.io/rev: default operator.istio.io/component: Pilot operator.istio.io/managed: Reconcile operator.istio.io/version: 1.14.0 release: istio name: istio-sidecar-injector webhooks: - admissionReviewVersions: - v1beta1 - v1 clientConfig: service: name: istiod namespace: istio-system path: /inject port: 443 failurePolicy: Fail matchPolicy: Equivalent name: rev.namespace.sidecar-injector.istio.io namespaceSelector: matchExpressions: - key: istio.io/rev operator: In values: - default - key: istio-injection operator: DoesNotExist objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: NotIn values: - "false" reinvocationPolicy: Never rules: - apiGroups: - "" apiVersions: - v1 operations: - CREATE resources: - pods scope: '*' sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: - v1beta1 - v1 clientConfig: service: name: istiod namespace: istio-system path: /inject port: 443 failurePolicy: Fail matchPolicy: Equivalent name: rev.object.sidecar-injector.istio.io namespaceSelector: matchExpressions: - key: istio.io/rev operator: DoesNotExist - key: istio-injection operator: DoesNotExist objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: NotIn values: - "false" - key: istio.io/rev operator: In values: - default reinvocationPolicy: Never rules: - apiGroups: - "" apiVersions: - v1 operations: - CREATE resources: - pods scope: '*' sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: - v1beta1 - v1 clientConfig: service: name: istiod namespace: istio-system path: /inject port: 443 failurePolicy: Fail matchPolicy: Equivalent name: namespace.sidecar-injector.istio.io namespaceSelector: matchExpressions: - key: istio-injection operator: In values: - enabled objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: NotIn values: - "false" reinvocationPolicy: Never rules: - apiGroups: - "" apiVersions: - v1 operations: - CREATE resources: - pods scope: '*' sideEffects: None timeoutSeconds: 10 - admissionReviewVersions: - v1beta1 - v1 clientConfig: service: name: istiod namespace: istio-system path: /inject port: 443 failurePolicy: Fail matchPolicy: Equivalent name: object.sidecar-injector.istio.io namespaceSelector: matchExpressions: - key: istio-injection operator: DoesNotExist - key: istio.io/rev operator: DoesNotExist objectSelector: matchExpressions: - key: sidecar.istio.io/inject operator: In values: - "true" - key: istio.io/rev operator: DoesNotExist reinvocationPolicy: Never rules: - apiGroups: - "" apiVersions: - v1 operations: - CREATE resources: - pods scope: '*' sideEffects: None timeoutSeconds: 10 <|endoftext|> # istio_we-memory-leaks.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: [47893] releaseNotes: - | **Fixed** a memory leak when `hostNetwork` pods scale up and down. - | **Fixed** a memory leak when `WorkloadEntries` change their IP address. - | **Fixed** a memory leak when a `ServiceEntry` is removed. <|endoftext|> # istio_gateway-custom-ingressgateway-svcselector.yaml # Gateways for 8001 and 8002 correct matching # apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: httpbin8001-gateway spec: selector: myapp: ingressgateway-8001 servers: - port: number: 8001 name: http2 protocol: HTTP hosts: - "*" --- apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: httpbin8002-gateway spec: selector: myapp: ingressgateway-8001 servers: - port: number: 8002 name: http2 protocol: HTTP hosts: - "*" --- apiVersion: v1 kind: Pod metadata: labels: myapp: ingressgateway-8001 name: my-ingressgateway-8001 spec: containers: - args: name: istio-proxy --- apiVersion: v1 kind: Pod metadata: labels: myapp: ingressgateway-8002 name: my-ingressgateway-8002 spec: containers: - args: name: istio-proxy --- apiVersion: v1 kind: Service metadata: name: my-8002 spec: ports: - name: http2 nodePort: 31380 port: 8002 protocol: TCP targetPort: 80 selector: myapp: ingressgateway-8002 --- apiVersion: v1 kind: Service metadata: name: my-8001 spec: ports: - name: http2 port: 8001 protocol: TCP selector: myapp: ingressgateway-8001 <|endoftext|> # k8s_examples_gpu-dcgm-exporter-service-generic.yaml # This Service provides a stable network endpoint for the NVIDIA DCGM Exporter # pods for users who have MANUALLY installed the exporter (e.g., on EKS/AKS). # The Prometheus Operator's ServiceMonitor will target this Service # to discover and scrape the GPU metrics. apiVersion: v1 kind: Service metadata: name: gpu-dcgm-exporter-service # The Helm chart for the DCGM exporter is instructed to deploy it in the 'monitoring' namespace. namespace: monitoring labels: # This label is critical. The generic ServiceMonitor uses this label to find # this specific Service. app.kubernetes.io/name: gpu-dcgm-exporter spec: type: ClusterIP selector: # This selector tells the Service which pods to route traffic to. # It must match the labels on the DCGM exporter pods deployed by the Helm chart. app.kubernetes.io/name: gpu-dcgm-exporter ports: - name: metrics port: 9400 protocol: TCP targetPort: 9400 <|endoftext|> # argocd_source_argocd-tls-certs-cm.yaml apiVersion: v1 kind: ConfigMap metadata: name: argocd-tls-certs-cm namespace: argocd labels: app.kubernetes.io/name: argocd-cm app.kubernetes.io/part-of: argocd data: server.example.com: | -----BEGIN CERTIFICATE----- MIIF1zCCA7+gAwIBAgIUQdTcSHY2Sxd3Tq/v1eIEZPCNbOowDQYJKoZIhvcNAQEL BQAwezELMAkGA1UEBhMCREUxFTATBgNVBAgMDExvd2VyIFNheG9ueTEQMA4GA1UE BwwHSGFub3ZlcjEVMBMGA1UECgwMVGVzdGluZyBDb3JwMRIwEAYDVQQLDAlUZXN0 c3VpdGUxGDAWBgNVBAMMD2Jhci5leGFtcGxlLmNvbTAeFw0xOTA3MDgxMzU2MTda Fw0yMDA3MDcxMzU2MTdaMHsxCzAJBgNVBAYTAkRFMRUwEwYDVQQIDAxMb3dlciBT YXhvbnkxEDAOBgNVBAcMB0hhbm92ZXIxFTATBgNVBAoMDFRlc3RpbmcgQ29ycDES MBAGA1UECwwJVGVzdHN1aXRlMRgwFgYDVQQDDA9iYXIuZXhhbXBsZS5jb20wggIi MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCv4mHMdVUcafmaSHVpUM0zZWp5 NFXfboxA4inuOkE8kZlbGSe7wiG9WqLirdr39Ts+WSAFA6oANvbzlu3JrEQ2CHPc CNQm6diPREFwcDPFCe/eMawbwkQAPVSHPts0UoRxnpZox5pn69ghncBR+jtvx+/u P6HdwW0qqTvfJnfAF1hBJ4oIk2AXiip5kkIznsAh9W6WRy6nTVCeetmIepDOGe0G ZJIRn/OfSz7NzKylfDCat2z3EAutyeT/5oXZoWOmGg/8T7pn/pR588GoYYKRQnp+ YilqCPFX+az09EqqK/iHXnkdZ/Z2fCuU+9M/Zhrnlwlygl3RuVBI6xhm/ZsXtL2E Gxa61lNy6pyx5+hSxHEFEJshXLtioRd702VdLKxEOuYSXKeJDs1x9o6cJ75S6hko Ml1L4zCU+xEsMcvb1iQ2n7PZdacqhkFRUVVVmJ56th8aYyX7KNX6M9CD+kMpNm6J kKC1li/Iy+RI138bAvaFplajMF551kt44dSvIoJIbTr1LigudzWPqk31QaZXV/4u kD1n4p/XMc9HYU/was/CmQBFqmIZedTLTtK7clkuFN6wbwzdo1wmUNgnySQuMacO gxhHxxzRWxd24uLyk9Px+9U3BfVPaRLiOPaPoC58lyVOykjSgfpgbus7JS69fCq7 bEH4Jatp/10zkco+UQIDAQABo1MwUTAdBgNVHQ4EFgQUjXH6PHi92y4C4hQpey86 r6+x1ewwHwYDVR0jBBgwFoAUjXH6PHi92y4C4hQpey86r6+x1ewwDwYDVR0TAQH/ BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAFE4SdKsX9UsLy+Z0xuHSxhTd0jfn Iih5mtzb8CDNO5oTw4z0aMeAvpsUvjJ/XjgxnkiRACXh7K9hsG2r+ageRWGevyvx CaRXFbherV1kTnZw4Y9/pgZTYVWs9jlqFOppz5sStkfjsDQ5lmPJGDii/StENAz2 XmtiPOgfG9Upb0GAJBCuKnrU9bIcT4L20gd2F4Y14ccyjlf8UiUi192IX6yM9OjT +TuXwZgqnTOq6piVgr+FTSa24qSvaXb5z/mJDLlk23npecTouLg83TNSn3R6fYQr d/Y9eXuUJ8U7/qTh2Ulz071AO9KzPOmleYPTx4Xty4xAtWi1QE5NHW9/Ajlv5OtO OnMNWIs7ssDJBsB7VFC8hcwf79jz7kC0xmQqDfw51Xhhk04kla+v+HZcFW2AO9so 6ZdVHHQnIbJa7yQJKZ+hK49IOoBR6JgdB5kymoplLLiuqZSYTcwSBZ72FYTm3iAr jzvt1hxpxVDmXvRnkhRrIRhK4QgJL0jRmirBjDY+PYYd7bdRIjN7WNZLFsgplnS8 9w6CwG32pRlm0c8kkiQ7FXA6BYCqOsDI8f1VGQv331OpR2Ck+FTv+L7DAmg6l37W +LB9LGh4OAp68ImTjqf6ioGKG0RBSznwME+r4nXtT1S/qLR6ASWUS4ViWRhbRlNK XWyb96wrUlv+E8I= -----END CERTIFICATE----- <|endoftext|> # flux_source_podinfo-result.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo namespace: default spec: minReadySeconds: 3 progressDeadlineSeconds: 60 revisionHistoryLimit: 5 selector: matchLabels: app: podinfo strategy: rollingUpdate: maxUnavailable: 0 type: RollingUpdate template: metadata: annotations: prometheus.io/port: "9797" prometheus.io/scrape: "true" labels: app: podinfo spec: containers: - command: - ./podinfo - --port=9898 - --port-metrics=9797 - --grpc-port=9999 - --grpc-service-name=podinfo - --level=info - --random-delay=false - --random-error=false env: - name: PODINFO_UI_COLOR value: '#34577c' image: ghcr.io/stefanprodan/podinfo:6.0.10 imagePullPolicy: IfNotPresent livenessProbe: exec: command: - podcli - check - http - localhost:9898/healthz initialDelaySeconds: 5 timeoutSeconds: 5 name: podinfod ports: - containerPort: 9898 name: http protocol: TCP - containerPort: 9797 name: http-metrics protocol: TCP - containerPort: 9999 name: grpc protocol: TCP readinessProbe: exec: command: - podcli - check - http - localhost:9898/readyz initialDelaySeconds: 5 timeoutSeconds: 5 resources: limits: cpu: 2000m memory: 512Mi requests: cpu: 100m memory: 64Mi --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo namespace: default spec: maxReplicas: 4 metrics: - resource: name: cpu target: averageUtilization: 99 type: Utilization type: Resource minReplicas: 2 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: podinfo --- apiVersion: v1 kind: Service metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo namespace: default spec: ports: - name: http port: 9898 protocol: TCP targetPort: http - name: grpc port: 9999 protocol: TCP targetPort: grpc selector: app: podinfo type: ClusterIP --- apiVersion: v1 data: .dockerconfigjson: eyJtYXNrIjoiKipTT1BTKioifQ== kind: Secret metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: docker-secret namespace: default type: kubernetes.io/dockerconfigjson --- apiVersion: v1 kind: Secret metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: secret-basic-auth-stringdata namespace: default stringData: password: '**SOPS**' username: '**SOPS**' type: kubernetes.io/basic-auth --- apiVersion: v1 data: token: KipTT1BTKio= kind: Secret metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo-token-77t89m9b67 namespace: default type: Opaque --- apiVersion: v1 data: password: MWYyZDFlMmU2N2Rm username: YWRtaW4= kind: Secret metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: db-user-pass-bkbd782d2c namespace: default type: Opaque --- <|endoftext|> # istio_55152.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: [] releaseNotes: - | **Fixed** an issue that `gateway` injection template didn't respect the `kubectl.kubernetes.io/default-logs-container` and `kubectl.kubernetes.io/default-container` annotations. <|endoftext|> # helm_charts_default-backend-psp.yaml {{- if and .Values.podSecurityPolicy.enabled .Values.defaultBackend.enabled -}} apiVersion: {{ template "podSecurityPolicy.apiVersion" . }} kind: PodSecurityPolicy metadata: name: {{ template "nginx-ingress.fullname" . }}-backend labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} spec: allowPrivilegeEscalation: false fsGroup: ranges: - max: 65535 min: 1 rule: MustRunAs requiredDropCapabilities: - ALL runAsUser: rule: MustRunAsNonRoot seLinux: rule: RunAsAny supplementalGroups: ranges: - max: 65535 min: 1 rule: MustRunAs volumes: - configMap - emptyDir - projected - secret - downwardAPI {{- end -}} <|endoftext|> # helm_charts_mongodb-init-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "mongodb-replicaset.name" . }} chart: {{ template "mongodb-replicaset.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 4 }} {{- end }} name: {{ template "mongodb-replicaset.fullname" . }}-init namespace: {{ template "mongodb-replicaset.namespace" . }} data: on-start.sh: | {{ .Files.Get "init/on-start.sh" | indent 4 }} {{- if .Values.initMongodStandalone }} initMongodStandalone.js: | {{ .Values.initMongodStandalone | indent 4 }} {{- end }} <|endoftext|> # helm_charts_cluster-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "nats.fullname" . }}-cluster labels: app: "{{ template "nats.name" . }}" chart: "{{ template "nats.chart" . }}" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- if .Values.cluster.service.annotations }} annotations: {{ toYaml .Values.cluster.service.annotations | indent 4 }} {{- end }} spec: type: {{ .Values.cluster.service.type }} {{- if and (eq .Values.cluster.service.type "LoadBalancer") .Values.cluster.service.loadBalancerIP }} loadBalancerIP: {{ .Values.cluster.service.loadBalancerIP }} {{- end }} ports: - port: {{ .Values.cluster.service.port }} targetPort: cluster name: cluster {{- if and (eq .Values.cluster.service.type "NodePort") (not (empty .Values.cluster.service.nodePort)) }} nodePort: {{ .Values.cluster.service.nodePort }} {{- end }} selector: app: "{{ template "nats.name" . }}" release: {{ .Release.Name | quote }} <|endoftext|> # istio_webhook-failurepolicy-upgrade.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** a field manager conflict on `ValidatingWebhookConfiguration` during `helm upgrade` with server-side apply in tools that respect `.Release.IsUpgrade` (Helm 4, Flux). The `failurePolicy` field is now omitted from the webhook template on upgrade, preserving the value set at runtime by the webhook controller. For tools that use `helm template` with SSA, set `base.validationFailurePolicy: Fail` to avoid the conflict. <|endoftext|> # helm_charts_artifactory-statefulset.yaml apiVersion: apps/v1beta2 kind: StatefulSet metadata: name: {{ template "artifactory.fullname" . }} labels: app: {{ template "artifactory.name" . }} chart: {{ template "artifactory.chart" . }} component: {{ .Values.artifactory.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: serviceName: {{ template "artifactory.name" . }} replicas: 1 updateStrategy: type: RollingUpdate selector: matchLabels: app: {{ template "artifactory.name" . }} role: {{ template "artifactory.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "artifactory.name" . }} role: {{ template "artifactory.name" . }} component: {{ .Values.artifactory.name }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "artifactory.serviceAccountName" . }} {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: "remove-lost-found" image: "{{ .Values.initContainerImage }}" imagePullPolicy: {{ .Values.artifactory.image.pullPolicy }} command: - 'sh' - '-c' - 'rm -rfv {{ .Values.artifactory.persistence.mountPath }}/lost+found {{ .Values.artifactory.persistence.mountPath }}/data/.lock' volumeMounts: - mountPath: {{ .Values.artifactory.persistence.mountPath | quote }} name: artifactory-volume - name: "wait-for-db" image: "{{ .Values.initContainerImage }}" command: - 'sh' - '-c' - > {{- if .Values.postgresql.enabled }} until nc -z -w 2 {{ .Release.Name }}-postgresql {{ .Values.postgresql.service.port }} && echo database ok; do {{- else }} until nc -z -w 2 {{ .Values.database.host }} {{ .Values.database.port }} && echo database ok; do {{- end }} sleep 2; done; containers: - name: {{ .Values.artifactory.name }} image: "{{ .Values.artifactory.image.repository }}:{{ default .Chart.AppVersion .Values.artifactory.image.version }}" imagePullPolicy: {{ .Values.artifactory.image.pullPolicy }} lifecycle: postStart: exec: command: - '/bin/sh' - '-c' - > {{- if .Values.artifactory.configMapName }} cp -Lrf /bootstrap/* /artifactory_extra_conf/; {{- end }} if [ -d {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys ]; then chown -R {{ .Values.artifactory.uid }}:{{ .Values.artifactory.uid }} {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys; fi; {{- if .Values.artifactory.replicator.enabled }} mkdir -p {{ .Values.artifactory.persistence.mountPath }}/replicator/etc; cp -fv /tmp/replicator/replicator.yaml {{ .Values.artifactory.persistence.mountPath }}/replicator/etc/replicator.yaml; chown -R {{ .Values.artifactory.uid }}:{{ .Values.artifactory.uid }} {{ .Values.artifactory.persistence.mountPath }}/replicator; {{- end }} {{- if .Values.artifactory.distributionCerts }} mkdir -p {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys/trusted; cp -fv /tmp/access/etc/keys/private.key {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys; cp -fv /tmp/access/etc/keys/root.crt {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys; cp -fv /tmp/access/etc/keys/root.crt {{ .Values.artifactory.persistence.mountPath }}/access/etc/keys/trusted; chown -R {{ .Values.artifactory.uid }}:{{ .Values.artifactory.uid }} {{ .Values.artifactory.persistence.mountPath }}/access/etc; {{- end }} {{- if .Values.artifactory.postStartCommand }} {{ .Values.artifactory.postStartCommand }} {{- end }} env: {{- if .Values.postgresql.enabled }} - name: DB_TYPE value: 'postgresql' - name: DB_USER value: {{.Values.postgresql.postgresUser | quote }} - name: DB_PASSWORD valueFrom: secretKeyRef: name: {{ .Release.Name }}-postgresql key: postgres-password - name: DB_HOST value: {{ .Release.Name }}-postgresql {{- else }} - name: DB_TYPE value: '{{ .Values.database.type }}' - name: DB_HOST value: '{{ .Values.database.host }}' - name: DB_PORT value: '{{ .Values.database.port }}' - name: DB_USER value: '{{ .Values.database.user }}' - name: DB_PASSWORD valueFrom: secretKeyRef: name: {{ template "artifactory.fullname" . }} key: db-password {{- end }} - name: EXTRA_JAVA_OPTIONS value: " {{- if .Values.artifactory.javaOpts.other }} {{ .Values.artifactory.javaOpts.other }} {{- end}} {{- if .Values.artifactory.javaOpts.xms }} -Xms{{ .Values.artifactory.javaOpts.xms }} {{- end}} {{- if .Values.artifactory.javaOpts.xmx }} -Xmx{{ .Values.artifactory.javaOpts.xmx }} {{- end}} {{- if .Values.artifactory.replicator.enabled }} -Dartifactory.releasebundle.feature.enabled=true {{- end }} " {{- if .Values.artifactory.replicator.enabled }} - name: START_LOCAL_REPLICATOR value: "true" {{- end }} ports: - containerPort: {{ .Values.artifactory.internalPort }} {{- if .Values.artifactory.replicator.enabled }} - containerPort: {{ .Values.artifactory.internalPortReplicator }} {{- end }} volumeMounts: - name: artifactory-volume mountPath: {{ .Values.artifactory.persistence.mountPath | quote }} {{- if .Values.artifactory.distributionCerts }} - name: distribution-certs mountPath: "/tmp/access/etc/keys" {{- end }} {{- if .Values.artifactory.configMapName }} - name: bootstrap-config mountPath: "/bootstrap/" {{- end }} {{- if .Values.artifactory.license.secret }} - name: artifactory-license mountPath: "/artifactory_extra_conf/artifactory.lic" subPath: {{ .Values.artifactory.license.dataKey }} {{- end }} {{- if .Values.artifactory.replicator.enabled }} - name: replicator-config mountPath: "/tmp/replicator/replicator.yaml" subPath: replicator.yaml {{- end }} resources: {{ toYaml .Values.artifactory.resources | indent 10 }} {{- with .Values.artifactory.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.artifactory.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.artifactory.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- if .Values.artifactory.readinessProbe.enabled }} readinessProbe: httpGet: path: '/artifactory/webapp/#/login' port: 8081 initialDelaySeconds: {{ .Values.artifactory.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.artifactory.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.artifactory.readinessProbe.timeoutSeconds }} failureThreshold: {{ .Values.artifactory.readinessProbe.failureThreshold }} successThreshold: {{ .Values.artifactory.readinessProbe.successThreshold }} {{- end }} {{- if .Values.artifactory.livenessProbe.enabled }} livenessProbe: httpGet: path: '/artifactory/webapp/#/login' port: 8081 initialDelaySeconds: {{ .Values.artifactory.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.artifactory.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.artifactory.livenessProbe.timeoutSeconds }} failureThreshold: {{ .Values.artifactory.livenessProbe.failureThreshold }} successThreshold: {{ .Values.artifactory.livenessProbe.successThreshold }} {{- end }} volumes: {{- if .Values.artifactory.distributionCerts }} - name: distribution-certs configMap: name: {{ .Values.artifactory.distributionCerts }} {{- end }} {{- if .Values.artifactory.replicator.enabled }} - name: replicator-config configMap: name: {{ template "artifactory.fullname" . }}-replicator-config {{- end }} {{- if .Values.artifactory.configMapName }} - name: bootstrap-config configMap: name: {{ .Values.artifactory.configMapName }} {{- end}} {{- if .Values.artifactory.license.secret }} - name: artifactory-license secret: secretName: {{ .Values.artifactory.license.secret }} {{- end }} {{- if .Values.artifactory.persistence.enabled }} volumeClaimTemplates: - metadata: name: artifactory-volume spec: {{- if .Values.artifactory.persistence.existingClaim }} selector: matchLabels: app: {{ template "artifactory.name" . }} {{- else }} {{- if .Values.artifactory.persistence.storageClass }} {{- if (eq "-" .Values.artifactory.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.artifactory.persistence.storageClass }}" {{- end }} {{- end }} accessModes: [ "{{ .Values.artifactory.persistence.accessMode }}" ] resources: requests: storage: {{ .Values.artifactory.persistence.size }} {{- end }} {{- else }} - name: artifactory-volume emptyDir: {} {{- end }} <|endoftext|> # argocd_source_metrics-svc.yaml {{- if .Values.metrics.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "redis.fullname" . }}-metrics labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" annotations: {{ toYaml .Values.metrics.service.annotations | indent 4 }} spec: type: {{ .Values.metrics.service.type }} {{ if eq .Values.metrics.service.type "LoadBalancer" -}} {{ if .Values.metrics.service.loadBalancerIP -}} loadBalancerIP: {{ .Values.metrics.service.loadBalancerIP }} {{ end -}} {{- end -}} ports: - name: metrics port: 9121 targetPort: metrics selector: app: {{ template "redis.name" . }} release: {{ .Release.Name }} role: metrics {{- end }} <|endoftext|> # argocd_source_healthy_ocp.yaml apiVersion: serving.kserve.io/v1beta1 kind: InferenceService metadata: name: helloworld namespace: default spec: {} status: conditions: - lastTransitionTime: '2024-05-30T22:14:31Z' status: 'True' type: IngressReady - lastTransitionTime: '2024-05-30T22:14:30Z' severity: Info status: 'True' type: LatestDeploymentReady - lastTransitionTime: '2024-05-30T22:14:30Z' severity: Info status: 'True' type: PredictorConfigurationReady - lastTransitionTime: '2024-05-30T22:14:31Z' status: 'True' type: PredictorReady - lastTransitionTime: '2024-05-30T22:14:31Z' severity: Info status: 'True' type: PredictorRouteReady - lastTransitionTime: '2024-05-30T22:14:31Z' status: 'True' type: Ready - lastTransitionTime: '2024-05-30T22:14:31Z' severity: Info status: 'True' type: RoutesReady - lastTransitionTime: '2024-05-30T22:14:31Z' severity: Info status: 'False' type: Stopped modelStatus: transitionStatus: UpToDate <|endoftext|> # istio_53091.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 52699 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** writing a status condition for binding AuthorizationPolicy to a waypoint proxy. The formatting of conditions is **experimental** and will change. Policy with multiple targetRefs presently recieve a signle condition. Once a pattern for conditions with multiple references is adopted by upstream Kubernetes Gateway API, Istio will adopt the convention to provide greater detail when multiple targetRefs are used. <|endoftext|> # istio_drop-legacy-inheritance-flag.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 37095 releaseNotes: - | **Removed** the `PILOT_ENABLE_DESTINATION_RULE_INHERITANCE` experimental feature, which has been disable-by-default since it was created. <|endoftext|> # istio_24905.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 24905 releaseNotes: - | **Added** `istioctl experimental version` and `proxy-status` now use token security. A new option, `--plaintext`, has been created for testing without tokens. <|endoftext|> # istio_jwks-uri-block-follows-redirect.yaml apiVersion: release-notes/v2 kind: bug-fix area: security releaseNotes: - | **Fixed** JWKS URI CIDR blocking by using a custom control function in a custom DialContext. The control function filters connections after DNS resolution but before dialing, allowing the block to follow redirects and issuer discovery path. This also preserves features in the default DialContext like happy eyeballs and dialSerial (trying each resolved IP in order). <|endoftext|> # istio_service-port-name.yaml # If port is unnamed or port name doesn't follow [-], the analyzer will report warning. apiVersion: v1 kind: Service metadata: name: my-service namespace: my-namespace spec: selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # internal waypoint, should not generate warning apiVersion: v1 kind: Service metadata: labels: gateway.istio.io/managed: istio.io-mesh-controller name: reviews-istio-waypoint namespace: ambient spec: ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP targetPort: 15021 - appProtocol: hbone name: mesh port: 15008 protocol: TCP targetPort: 15008 selector: gateway.networking.k8s.io/gateway-name: reviews sessionAffinity: None type: ClusterIP --- # managed gateway, should not generate warning apiVersion: v1 kind: Service metadata: annotations: test: test labels: gateway.istio.io/managed: istio.io-gateway-controller name: gateway-istio namespace: istio-ingress spec: ports: - appProtocol: tcp name: status-port nodePort: 32481 port: 15021 protocol: TCP targetPort: 15021 - appProtocol: http name: default nodePort: 30686 port: 80 protocol: TCP targetPort: 80 selector: gateway.networking.k8s.io/gateway-name: gateway type: LoadBalancer <|endoftext|> # istio_namespace-filter-deadlock.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue that can trigger a deadlock when `discoverySelectors` (configured in `MeshConfig`) and a namespace, which has an `Ingress` object or a `gateway.networking.k8s.io` `Gateway` object, moves from being selected to unselected. <|endoftext|> # helm_charts_service-headless.yaml apiVersion: v1 kind: Service metadata: name: {{ template "zookeeper.headless" . }} labels: app: {{ template "zookeeper.name" . }} chart: {{ template "zookeeper.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- if .Values.headless.annotations }} annotations: {{ .Values.headless.annotations | toYaml | trimSuffix "\n" | indent 4 }} {{- end }} spec: clusterIP: None {{- if .Values.headless.publishNotReadyAddresses }} publishNotReadyAddresses: true {{- end }} ports: {{- range $key, $port := .Values.ports }} - name: {{ $key }} port: {{ $port.containerPort }} targetPort: {{ $key }} protocol: {{ $port.protocol }} {{- end }} selector: app: {{ template "zookeeper.name" . }} release: {{ .Release.Name }} <|endoftext|> # argocd_source_cronjob-resumed.yaml apiVersion: batch/v1 kind: CronJob metadata: name: hello namespace: test-ns uid: '123' spec: suspend: false schedule: '* * * * *' jobTemplate: metadata: labels: my: label annotations: my: annotation spec: ttlSecondsAfterFinished: 100 template: metadata: labels: pod: label annotations: pod: annotation spec: containers: - name: hello image: busybox:1.28 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster resources: {} restartPolicy: OnFailure <|endoftext|> # istio_54311.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 54311 releaseNotes: - | **Fixed** an issue where the CNI installation left temporary files when a container was repeatedly killed during the binary copy, which could have filled the storage space. <|endoftext|> # istio_header-present.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 47341 releaseNotes: - | **Fixed** VirtualService http header present match does not work with `header-name: {}` set. <|endoftext|> # kustomize_data.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx labels: app: nginx annotations: tshirt-size: small # this injects the resource reservations spec: selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx <|endoftext|> # istio_30181.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 30181 releaseNotes: - | **Fixed** a bug when baseEjectionTime is greater than 300s, envoy will send a NACK to cds . <|endoftext|> # argocd_source_degraded_resolved_refs.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GRPCRoute metadata: name: example-grpcroute namespace: default spec: parentRefs: - name: example-gateway sectionName: grpc rules: - backendRefs: - name: service-does-not-exist port: 9000 status: parents: - conditions: - lastTransitionTime: "2023-03-02T15:00:00Z" message: Route is successfully programmed observedGeneration: 1 reason: Programmed status: "True" type: Programmed - lastTransitionTime: "2023-03-02T15:00:00Z" message: Route has been accepted observedGeneration: 1 reason: Accepted status: "True" type: Accepted - lastTransitionTime: "2023-03-02T15:00:00Z" message: BackendRef service-does-not-exist not found observedGeneration: 1 reason: BackendNotFound status: "False" type: ResolvedRefs controllerName: example.io/gateway-controller parentRef: name: example-gateway namespace: default sectionName: grpc <|endoftext|> # istio_36911.yaml apiVersion: release-notes/v2 kind: bug-fix area: security # issue is a list of GitHub issues resolved in this note. issue: - 36911 releaseNotes: - | **Fixed** the request authentication policy to correctly always allow the CORS preflight request. <|endoftext|> # kustomize_secret.yaml apiVersion: v1 kind: Secret metadata: name: mysql-pass type: Opaque data: # Default password is "admin". password: YWRtaW4= <|endoftext|> # istio_pilot-discovery-scoped-namespaces.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - https://github.com/istio/istio/issues/26679 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** Specify `meshConfig.discoverySelectors` to dynamically restrict the set of namespaces for Services, Pods, and Endpoints that istiod processes when pushing xDS updates to improve performance on the data plane. # upgradeNotes is a markdown listing of any changes that will affect the upgrade # process. This will appear in the release notes. upgradeNotes: # docs is a list of related docs to the change. docs: # securityNotes is a markdown listing of any changes related to the security of # Istio. securityNotes: <|endoftext|> # helm_charts_job-web-certs.yaml {{- if .Values.certs.web.create }} {{ $fullname := include "dex.fullname" . }} {{ $tlsBuiltName := printf "%s-tls" $fullname }} {{ $tlsSecretName := default $tlsBuiltName .Values.certs.web.secret.tlsName }} {{ $caBuiltName := printf "%s-ca" $fullname }} {{ $caName := default $caBuiltName .Values.certs.web.secret.caName }} {{ $local := dict "i" 0 }} apiVersion: batch/v1 kind: Job metadata: annotations: "helm.sh/hook": post-install "helm.sh/hook-weight": "1" "helm.sh/hook-delete-policy": hook-succeeded name: {{ $fullname }}-web-certs labels: {{ include "dex.labels" . | indent 4 }} app.kubernetes.io/component: "job-web-certs" spec: activeDeadlineSeconds: {{ .Values.certs.web.activeDeadlineSeconds }} template: metadata: labels: app.kubernetes.io/name: {{ include "dex.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "job" {{- if .Values.certs.web.pod.annotations }} annotations: {{ toYaml .Values.certs.web.pod.annotations | trim | indent 8 }} {{- end }} spec: {{- if .Values.certs.securityContext.enabled }} securityContext: runAsUser: {{ .Values.certs.securityContext.runAsUser }} fsGroup: {{ .Values.certs.securityContext.fsGroup }} {{- end }} serviceAccountName: {{ template "dex.serviceAccountName" . }} nodeSelector: {{ toYaml .Values.certs.web.pod.nodeSelector | indent 8 }} {{- with .Values.certs.web.pod.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.certs.web.pod.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} restartPolicy: OnFailure containers: - name: main image: "{{ .Values.certs.image }}:{{ .Values.certs.imageTag }}" imagePullPolicy: {{ .Values.certs.imagePullPolicy }} env: - name: HOME value: /tmp workingDir: /tmp command: - /bin/bash - -exc - | cat << EOF > req.cnf [req] req_extensions = v3_req distinguished_name = req_distinguished_name [req_distinguished_name] [ v3_req ] basicConstraints = CA:FALSE keyUsage = nonRepudiation, digitalSignature, keyEncipherment subjectAltName = @alt_names [alt_names] {{- $_ := set $local "i" 1 }} {{- range .Values.certs.web.altNames }} DNS.{{ $local.i }} = {{ . }} {{- $_ := set $local "i" ( add1 $local.i ) }} {{- end }} {{- $_ := set $local "i" 1 }} {{- range .Values.certs.web.altIPs }} IP.{{ $local.i }} = {{ . }} {{- $_ := set $local "i" ( add1 $local.i ) }} {{- end }} EOF openssl genrsa -out ca-key.pem 2048; openssl req -x509 -new -nodes -key ca-key.pem -days {{ .Values.certs.web.caDays }} -out ca.pem -subj "/CN=dex-ca"; openssl genrsa -out key.pem 2048; openssl req -new -key key.pem -out csr.pem -subj "/CN=dex" -config req.cnf; openssl x509 -req -in csr.pem -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out cert.pem -days {{ .Values.certs.web.certDays }} -extensions v3_req -extfile req.cnf; kubectl delete configmap {{ $caName | quote }} --namespace {{ .Release.Namespace }} || true kubectl delete secret {{ $caName | quote }} {{ $tlsSecretName }} --namespace {{ .Release.Namespace }} || true kubectl create configmap {{ $caName | quote }} --namespace {{ .Release.Namespace }} --from-file dex-ca.pem=ca.pem; kubectl create secret tls {{ $caName | quote }} --namespace {{ .Release.Namespace }} --cert=ca.pem --key=ca-key.pem; kubectl create secret tls {{ $tlsSecretName }} --namespace {{ .Release.Namespace }} --cert=cert.pem --key=key.pem; {{- if .Values.inMiniKube }} cp -a ca.pem /var/lib/localkube/oidc.pem volumeMounts: - mountPath: /var/lib/localkube name: localkube volumes: - name: localkube hostPath: path: /var/lib/localkube {{- end }} {{- end }} <|endoftext|> # argocd_source_additional-image-replicas-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: client appProcess: web name: client spec: replicas: 2 selector: matchLabels: app: client strategy: {} template: metadata: labels: app: client appProcess: web spec: containers: - image: alpine:2 name: alpine resources: requests: cpu: 400m env: - name: EV value: here <|endoftext|> # istio_disable-track-remaining-cb-metrics.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** a new feature flag `DISABLE_TRACK_REMAINING_CB_METRICS` to control circuit breaker remaining metrics tracking. When set to `false` (default), circuit breaker remaining metrics will not be tracked, which can improve performance. When set to `true`, circuit breaker remaining metrics will be tracked (legacy behavior). This feature flag will be removed in a future release. upgradeNotes: - title: Circuit breaker metrics tracking behavior change content: | The default behavior for circuit breaker remaining metrics tracking has changed. Previously, these metrics were tracked by default. Now, tracking is disabled by default for better proxy memory usage. To maintain the previous behavior where remaining metrics were tracked, you can: 1. Set the environment variable `DISABLE_TRACK_REMAINING_CB_METRICS=false` in your Istiod deployment 2. Use the compatibility version feature to get the legacy behavior This change affects the `TrackRemaining` field in Envoy's circuit breaker configuration. <|endoftext|> # argocd_source_deleting.yaml apiVersion: promoter.argoproj.io/v1alpha1 kind: PromotionStrategy metadata: name: test generation: 2 deletionTimestamp: "2025-07-04T12:00:00Z" spec: {} status: conditions: - type: Ready status: True observedGeneration: 2 environments: - branch: dev active: dry: sha: abc1234 commitStatuses: [] proposed: dry: sha: abc1234 commitStatuses: [] <|endoftext|> # k8s_docs_binding-with-param.yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: name: "replicalimit-binding-test.example.com" spec: policyName: "replicalimit-policy.example.com" validationActions: [Deny] paramRef: name: "replica-limit-test.example.com" namespace: "default" parameterNotFoundAction: Deny matchResources: namespaceSelector: matchLabels: environment: test <|endoftext|> # argocd_source_suspended_helmrepository.yaml apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: name: podinfo namespace: default spec: interval: 5m0s suspend: true url: https://stefanprodan.github.io/podinfo <|endoftext|> # istio_45549.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 45546 releaseNotes: - | **Fixed** an issue where jwk issuer was not resolved correctly when having a trailing slash in the issuer URL. <|endoftext|> # k8s_docs_mysql-services.yaml # Headless service for stable DNS entries of StatefulSet members. apiVersion: v1 kind: Service metadata: name: mysql labels: app: mysql app.kubernetes.io/name: mysql spec: ports: - name: mysql port: 3306 clusterIP: None selector: app: mysql --- # Client service for connecting to any MySQL instance for reads. # For writes, you must instead connect to the primary: mysql-0.mysql. apiVersion: v1 kind: Service metadata: name: mysql-read labels: app: mysql app.kubernetes.io/name: mysql readonly: "true" spec: ports: - name: mysql port: 3306 selector: app: mysql <|endoftext|> # istio_gateway-merging-https-first-bug-fix.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/57706 releaseNotes: - | **Fixed** an issue where HTTPS servers processed first prevented HTTP servers from creating routes on the same port with different bind addresses. <|endoftext|> # helm_charts_agent-scc.yaml {{- if .Values.agents.podSecurity.securityContextConstraints.create }} kind: SecurityContextConstraints apiVersion: security.openshift.io/v1 metadata: name: {{ template "datadog.fullname" . }} labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} users: - system:serviceaccount:{{ .Release.Namespace }}:{{ template "datadog.fullname" . }} priority: 10 # Allow host ports for dsd / trace intake +allowHostPorts: {{ or .Values.datadog.dogstatsd.useHostPort .Values.datadog.apm.enabled }} # Allow host PID for dogstatsd origin detection allowHostPID: {{ .Values.datadog.dogstatsd.useHostPID }} # Allow host network for the CRIO check to reach Prometheus through localhost allowHostNetwork: {{ .Values.agents.useHostNetwork }} # Allow hostPath for docker / process metrics volumes: {{ toYaml .Values.agents.podSecurity.volumes | indent 2 }} # Use the `spc_t` selinux type to access the # docker/cri socket + proc and cgroup stats seLinuxContext: {{ toYaml .Values.agents.podSecurity.securityContext | indent 2 }} # system-probe requires some specific seccomp and capabilities seccompProfiles: {{ toYaml .Values.agents.podSecurity.seccompProfiles | indent 2 }} allowedCapabilities: {{ toYaml .Values.agents.podSecurity.capabilites | indent 2 }} # # The rest is copied from restricted SCC # allowHostDirVolumePlugin: true allowHostIPC: false allowPrivilegedContainer: {{ .Values.agents.podSecurity.privileged }} allowedFlexVolumes: [] defaultAddCapabilities: [] fsGroup: type: MustRunAs readOnlyRootFilesystem: false runAsUser: type: RunAsAny supplementalGroups: type: RunAsAny # If your environment restricts user access to the Docker socket or journald (for logging) # create or use an existing group that has access and add the GID to # the lines below (also remove the previous line, `type: RunAsAny`) # type: MustRunAs # ranges: # - min: # - max: requiredDropCapabilities: [] {{- end }} <|endoftext|> # istio_auth.non-default-service-account.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: serviceAccountName: non-default containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # argocd_source_argocd-applicationset-controller-rolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/name: argocd-applicationset-controller app.kubernetes.io/part-of: argocd app.kubernetes.io/component: applicationset-controller name: argocd-applicationset-controller roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: argocd-applicationset-controller subjects: - kind: ServiceAccount name: argocd-applicationset-controller <|endoftext|> # istio_52252.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: [] releaseNotes: - | **Fixed** Wrap errors with context in Cleanup function <|endoftext|> # k8s_docs_hpa-rs.yaml apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: name: frontend-scaler spec: scaleTargetRef: kind: ReplicaSet name: frontend minReplicas: 3 maxReplicas: 10 targetCPUUtilizationPercentage: 50 <|endoftext|> # istio_43580.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 42068 releaseNotes: - | **Fixed** an issue where removing field(s) from IstioOperator and re-installing did not reflect changes in existing IstioOperator spec. <|endoftext|> # helm_charts_mission-control-role.yaml {{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.missionControl.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "mission-control.fullname" . }} rules: {{ toYaml .Values.rbac.role.rules }} {{- end }} <|endoftext|> # istio_drop-protocol-detection.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the `PILOT_INBOUND_PROTOCOL_DETECTION_TIMEOUT` feature flag. This can be configured in MeshConfig if needed. <|endoftext|> # istio_36510.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/36510 releaseNotes: - | **Fixed** an issue where stale endpoints can be configured when a service gets deleted and created again. <|endoftext|> # istio_50221.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 49915 - 50173 releaseNotes: - | **Added** Allow user to name their waypoint through istioctl via --name flag on the waypoint cmd. **Removed** Remove ability for user to specify service account for the waypoint by deleting the --service-account flag on the waypoint cmd <|endoftext|> # istio_56666.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support `--weight` parameter for `istioctl experimental workload group create`. <|endoftext|> # istio_40093.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry releaseNotes: - | **Fixed** an issue where updating a secret caused a `missing pulling secret` <|endoftext|> # helm_charts_daemon-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "honeydipper.fullname" . }} labels: app.kubernetes.io/name: {{ include "honeydipper.name" . }} helm.sh/chart: {{ include "honeydipper.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- with .Values.daemon.annotations }} annotations: {{ . | toJson }} {{- end }} spec: replicas: {{ .Values.daemon.replicaCount }} selector: matchLabels: app.kubernetes.io/name: {{ include "honeydipper.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: labels: app.kubernetes.io/name: {{ include "honeydipper.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: {{- with .Values.daemon.dnsConfig }} dnsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.daemon.serviceAccountName }} serviceAccountName: "{{ . }}" {{- end }} containers: {{- if .Values.drivers.redis.local }} - name: {{ .Chart.Name }}-redis image: "{{ .Values.drivers.redis.image.repository }}:{{ .Values.drivers.redis.image.tag }}" {{- end }} - name: {{ .Chart.Name }} image: "{{ .Values.daemon.image.repository }}:{{ .Values.daemon.image.tag }}" imagePullPolicy: {{ .Values.daemon.image.pullPolicy }} {{- with .Values.daemon.args }} args: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.daemon.env }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.daemon.resources }} resources: {{- toYaml .Values.daemon.resources | nindent 12 }} {{- end }} {{- with .Values.daemon.extraVolumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} {{- end }} ports: - name: webhook containerPort: {{ .Values.drivers.webhook.service.port }} readinessProbe: httpGet: path: /hz/alive port: {{ .Values.drivers.webhook.service.port }} initialDelaySeconds: 20 periodSeconds: 10 livenessProbe: httpGet: path: /hz/alive port: {{ .Values.drivers.webhook.service.port }} initialDelaySeconds: 20 periodSeconds: 20 {{- with .Values.daemon.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.daemon.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.daemon.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.daemon.extraVolumes }} volumes: {{- toYaml . | nindent 8 }} {{- end }} <|endoftext|> # grafana_charts_operator-clusterrole.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ include "ga-operator.fullname" . }} labels: {{ include "ga-operator.labels" . | indent 4 }} rules: - apiGroups: [monitoring.grafana.com] resources: - grafanaagents - metricsinstances - logsinstances - podlogs - integrations verbs: [get, list, watch] - apiGroups: [monitoring.grafana.com] resources: - grafanaagents/finalizers - metricsinstances/finalizers - logsinstances/finalizers - podlogs/finalizers - integrations/finalizers verbs: [get, list, watch, update] - apiGroups: [monitoring.coreos.com] resources: - podmonitors - probes - servicemonitors verbs: [get, list, watch] - apiGroups: [monitoring.coreos.com] resources: - podmonitors/finalizers - probes/finalizers - servicemonitors/finalizers verbs: [get, list, watch, update] - apiGroups: [""] resources: - namespaces - nodes verbs: [get, list, watch] - apiGroups: [""] resources: - secrets - services - configmaps - endpoints verbs: [get, list, watch, create, update, patch, delete] - apiGroups: ["apps"] resources: - statefulsets - daemonsets - deployments verbs: [get, list, watch, create, update, patch, delete] {{- with .Values.rbac.podSecurityPolicyName }} - apiGroups: [policy] resources: - podsecuritypolicies verbs: [use] resourceNames: [ {{ . }} ] {{- end -}} {{- end -}} <|endoftext|> # istio_waypoint-revision.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: [53883] releaseNotes: - | **Fixed** an issue when upgrading waypoint proxies from Istio 1.23.x to Istio 1.24.x. <|endoftext|> # istio_istio-operator.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: name: test namespace: istio-system spec: meshConfig: # Set enableTracing to false to disable request tracing. enableTracing: true # This is the ingress service name, update if you used a different name ingressService: istio-ingress connectTimeout: 1s defaultConfig: ### ADVANCED SETTINGS ############# # Where should envoy's configuration be stored in the istio-proxy container configPath: "/etc/istio/proxy" binaryPath: "/usr/local/bin/envoy" # The pseudo service name used for Envoy. serviceCluster: istio-proxy values: global: tag: testiop <|endoftext|> # helm_charts_server.yaml {{- if .Values.server.enabled -}} {{- if .Values.server.ingress.enabled -}} {{- $releaseName := .Release.Name -}} {{- $serviceName := include "prometheus.server.fullname" . }} {{- $servicePort := .Values.server.service.servicePort -}} {{- $extraPaths := .Values.server.ingress.extraPaths -}} {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} apiVersion: networking.k8s.io/v1beta1 {{ else }} apiVersion: extensions/v1beta1 {{ end -}} kind: Ingress metadata: {{- if .Values.server.ingress.annotations }} annotations: {{ toYaml .Values.server.ingress.annotations | indent 4 }} {{- end }} labels: {{- include "prometheus.server.labels" . | nindent 4 }} {{- range $key, $value := .Values.server.ingress.extraLabels }} {{ $key }}: {{ $value }} {{- end }} name: {{ template "prometheus.server.fullname" . }} {{ include "prometheus.namespace" . | indent 2 }} spec: rules: {{- range .Values.server.ingress.hosts }} {{- $url := splitList "/" . }} - host: {{ first $url }} http: paths: {{ if $extraPaths }} {{ toYaml $extraPaths | indent 10 }} {{- end }} - path: /{{ rest $url | join "/" }} backend: serviceName: {{ $serviceName }} servicePort: {{ $servicePort }} {{- end -}} {{- if .Values.server.ingress.tls }} tls: {{ toYaml .Values.server.ingress.tls | indent 4 }} {{- end -}} {{- end -}} {{- end -}} <|endoftext|> # argocd_source_up_to_date.yaml apiVersion: sql.cnrm.cloud.google.com/v1beta1 kind: SQLInstance metadata: generation: 1 status: observedGeneration: 1 conditions: - lastTransitionTime: '2022-05-09T08:49:18Z' message: The resource is up to date reason: UpToDate status: 'True' type: Ready <|endoftext|> # argocd_source_rollout_restarted.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: name: canary-demo namespace: default spec: replicas: 5 restartAt: "0001-01-01T00:00:00Z" revisionHistoryLimit: 1 selector: matchLabels: app: canary-demo strategy: canary: analysis: args: - name: ingress value: canary-demo templateName: success-rate canaryService: canary-demo-preview maxSurge: 1 maxUnavailable: 1 steps: - setWeight: 40 - pause: {} - setWeight: 60 - pause: duration: 10 - setWeight: 80 - pause: duration: 10 template: metadata: labels: app: canary-demo spec: containers: - image: argoproj/rollouts-demo:red imagePullPolicy: Always name: canary-demo ports: - containerPort: 8080 name: http protocol: TCP resources: requests: cpu: 5m memory: 32Mi <|endoftext|> # argocd_source_connector-task-failure.yaml apiVersion: platform.confluent.io/v1beta1 kind: Connector metadata: finalizers: - connect.finalizers.platform.confluent.io generation: 1 name: connect namespace: confluent spec: class: io.confluent.connect.sftp.SftpSinkConnector configs: topics: test-topic connectClusterRef: name: connect name: test-sftp-connector taskMax: 3 status: appState: Unknown conditions: - lastProbeTime: '2024-01-19T06:42:40Z' lastTransitionTime: '2024-01-19T06:42:40Z' message: Application is created reason: Created status: 'True' type: platform.confluent.io/app-ready connectorState: RUNNING failedTasks: task-0: id: 0 retryCount: 10 failedTasksCount: 1 observedGeneration: 1 restartPolicy: maxRetry: 10 type: OnFailure state: CREATED tasksReady: 0/1 <|endoftext|> # argocd_source_monovertex-paused.yaml apiVersion: numaflow.numaproj.io/v1alpha1 kind: MonoVertex metadata: creationTimestamp: "2024-10-09T21:18:37Z" generation: 1 name: simple-mono-vertex namespace: numaflow-system resourceVersion: "1382" uid: b7b9e4f8-cd4b-4771-9e4b-2880cc50467a labels: numaplane.numaproj.io/upgrade-state: "in-progress" annotations: numaflow.numaproj.io/allowed-resume-strategies: "slow, fast" spec: lifecycle: desiredPhase: Paused replicas: 1 sink: udsink: container: image: quay.io/numaio/numaflow-java/simple-sink:stable source: transformer: container: image: quay.io/numaio/numaflow-rs/source-transformer-now:stable udsource: container: image: quay.io/numaio/numaflow-java/source-simple-source:stable updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate status: conditions: - lastTransitionTime: "2024-10-09T21:18:41Z" message: Successful reason: Successful status: "True" type: DaemonHealthy - lastTransitionTime: "2024-10-09T21:18:37Z" message: Successful reason: Successful status: "True" type: Deployed - lastTransitionTime: "2024-10-09T21:18:37Z" message: All pods are healthy reason: Running status: "True" type: PodsHealthy currentHash: 8ed34d9058faa60997ee13083ccb3d80691df37b45a34eaa347af99f237e8df6 desiredReplicas: 1 lastScaledAt: "2024-10-09T21:18:37Z" lastUpdated: "2024-10-09T21:18:41Z" observedGeneration: 1 phase: Running replicas: 1 selector: app.kubernetes.io/component=mono-vertex,numaflow.numaproj.io/mono-vertex-name=simple-mono-vertex updateHash: 8ed34d9058faa60997ee13083ccb3d80691df37b45a34eaa347af99f237e8df6 updatedReplicas: 1 <|endoftext|> # k8s_examples_nfs-server-azure-pv.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: nfs-pv-provisioning-demo annotations: volume.beta.kubernetes.io/storage-class: managed-premium labels: demo: nfs-pv-provisioning spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 200Gi <|endoftext|> # istio_deprecated-envoy-filter.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the support for deprecated envoy filter names in Envoy API name maches. Envoy filter will only be matched with canonical naming standard. See https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.14.0#deprecated upgradeNotes: - title: Use the canonical filter names for EnvoyFilter content: | If you are using EnvoyFilter API, please use canonical filter names https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.14.0#deprecated. The use of deprecated filter name is not supported. <|endoftext|> # argocd_source_degraded_failedToConfigure.yaml apiVersion: nmstate.io/v1 kind: NodeNetworkConfigurationPolicy metadata: name: test-node-network-configuration-policy spec: nodeSelector: kubernetes.io/hostname: node1 desiredState: interfaces: - name: eth1 type: ethernet state: up status: conditions: - lastHeartbeatTime: '2026-02-11T12:28:37Z' lastTransitionTime: '2026-02-11T12:28:37Z' reason: FailedToConfigure status: 'False' type: Available - lastHeartbeatTime: '2026-02-11T12:28:37Z' lastTransitionTime: '2026-02-11T12:28:37Z' message: 1/1 nodes failed to configure reason: FailedToConfigure status: 'True' type: Degraded - lastHeartbeatTime: '2026-02-11T12:28:37Z' lastTransitionTime: '2026-02-11T12:28:37Z' reason: ConfigurationProgressing status: 'False' type: Progressing <|endoftext|> # argocd_source_argocd-rbac-cm.yaml apiVersion: v1 data: policy.csv: | p, role:user, clusters, get, *, allow p, role:user, clusters, get, https://kubernetes*, deny p, role:user, projects, get, *, allow p, role:user, applications, get, *, allow p, role:user, applications, create, */*, allow p, role:user, applications, delete, *, allow p, role:user, applications, delete, */guestbook, deny p, role:user, applicationsets, create, */*, allow p, role:user, applicationsets, delete, */*, allow p, role:user, logs, get, */*, allow g, test, role:user policy.overlay.csv: | p, role:tester, applications, *, */*, allow p, role:tester, projects, *, *, allow g, my-org:team-qa, role:tester policy.default: role:unknown kind: ConfigMap metadata: labels: app.kubernetes.io/name: argocd-rbac-cm app.kubernetes.io/part-of: argocd name: argocd-rbac-cm namespace: argocd <|endoftext|> # istio_55728.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 55728 releaseNotes: - | **Added** Support for TLSRoute termination and mixed mode <|endoftext|> # grafana_charts_statefulset-memcached-index-writes.yaml {{- if .Values.memcachedIndexWrites.enabled }} apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "loki.memcachedIndexWritesFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.memcachedIndexWritesLabels" . | nindent 4 }} {{- with .Values.loki.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: replicas: {{ .Values.memcachedIndexWrites.replicas }} updateStrategy: rollingUpdate: partition: 0 serviceName: {{ include "loki.memcachedIndexWritesFullname" . }} revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} selector: matchLabels: {{- include "loki.memcachedIndexWritesSelectorLabels" . | nindent 6 }} template: metadata: {{- if or .Values.loki.podAnnotations .Values.memcachedIndexWrites.podAnnotations }} annotations: {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.memcachedIndexWrites.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- end }} labels: {{- include "loki.memcachedIndexWritesSelectorLabels" . | nindent 8 }} {{- with .Values.loki.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.memcachedIndexWrites.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.memcachedIndexWrites.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- include "loki.memcachedIndexWritesPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.memcached.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.memcachedIndexWrites.terminationGracePeriodSeconds }} containers: - name: memcached {{- if .Values.memcachedIndexWrites.persistence.enabled }} lifecycle: preStop: exec: command: - /bin/sh - -ec - | /usr/bin/pkill -10 memcached sleep 60s {{- end }} image: {{ include "loki.memcachedImage" . }} imagePullPolicy: {{ .Values.memcached.image.pullPolicy }} {{- if or .Values.memcachedIndexWrites.extraArgs .Values.memcachedIndexWrites.persistence.enabled }} args: {{- if .Values.memcachedIndexWrites.persistence.enabled }} - --memory-file=/cache-state/memory_file {{- end }} {{- with .Values.memcachedIndexWrites.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} ports: - name: http containerPort: 11211 protocol: TCP {{- with .Values.memcachedIndexWrites.extraEnv }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.memcachedIndexWrites.extraEnvFrom }} envFrom: {{- toYaml . | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.memcached.containerSecurityContext | nindent 12 }} readinessProbe: {{- toYaml .Values.memcached.readinessProbe | nindent 12 }} livenessProbe: {{- toYaml .Values.memcached.livenessProbe | nindent 12 }} {{- if .Values.memcachedIndexWrites.persistence.enabled }} volumeMounts: - name: data mountPath: /cache-state {{- end }} resources: {{- toYaml .Values.memcachedIndexWrites.resources | nindent 12 }} {{- if .Values.memcachedExporter.enabled }} - name: exporter args: - --memcached.address=localhost:11211 - --web.listen-address=0.0.0.0:9150 image: {{ include "loki.memcachedExporterImage" . }} imagePullPolicy: {{ .Values.memcachedExporter.image.pullPolicy }} ports: - name: http-metrics containerPort: 9150 protocol: TCP securityContext: {{- toYaml .Values.memcachedExporter.containerSecurityContext | nindent 12 }} resources: {{- toYaml .Values.memcachedExporter.resources | nindent 12 }} {{- end }} {{- if .Values.memcachedIndexWrites.extraContainers }} {{- toYaml .Values.memcachedIndexWrites.extraContainers | nindent 8}} {{- end }} {{- with .Values.memcachedIndexWrites.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.memcachedIndexWrites.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.memcachedIndexWrites.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.memcachedIndexWrites.persistence.enabled }} volumeClaimTemplates: - metadata: name: data spec: accessModes: - ReadWriteOnce {{- with .Values.memcachedIndexWrites.persistence.storageClass }} storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }} {{- end }} resources: requests: storage: {{ .Values.memcachedIndexWrites.persistence.size | quote }} {{- end }} {{- end }} <|endoftext|> # cert_manager_cainjector-service.yaml {{- if .Values.cainjector.enabled }} {{- if and .Values.prometheus.enabled (not .Values.prometheus.podmonitor.enabled) }} apiVersion: v1 kind: Service metadata: name: {{ template "cainjector.fullname" . }} namespace: {{ include "cert-manager.namespace" . }} {{- with .Values.cainjector.serviceAnnotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} labels: app: {{ include "cainjector.name" . }} app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" {{- include "labels" . | nindent 4 }} {{- with .Values.cainjector.serviceLabels }} {{- toYaml . | nindent 4 }} {{- end }} spec: type: ClusterIP ports: - protocol: TCP port: 9402 name: http-metrics selector: app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" {{- end }} {{- end }} <|endoftext|> # istio_validatingwebhookconfiguration.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "cluster") }} # Created if this is not a remote istiod, OR if it is and is also a config cluster {{- if or (not .Values.istiodRemote.enabled) (and .Values.istiodRemote.enabled (or .Values.global.configCluster .Values.istiodRemote.enabledLocalInjectorIstiod)) }} {{- if .Values.global.configValidation }} apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: istio-validator{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }}-{{ .Values.global.istioNamespace }} labels: app: istiod release: {{ .Release.Name }} istio: istiod istio.io/rev: {{ .Values.revision | default "default" | quote }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} webhooks: # Webhook handling per-revision validation. Mostly here so we can determine whether webhooks # are rejecting invalid configs on a per-revision basis. - name: rev.validation.istio.io clientConfig: # Should change from base but cannot for API compat {{- if .Values.base.validationURL }} url: {{ .Values.base.validationURL }} {{- else }} service: name: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} namespace: {{ .Values.global.istioNamespace }} path: "/validate" {{- end }} {{- if .Values.base.validationCABundle }} caBundle: "{{ .Values.base.validationCABundle }}" {{- end }} rules: - operations: - CREATE - UPDATE apiGroups: - security.istio.io - networking.istio.io - telemetry.istio.io - extensions.istio.io apiVersions: - "*" resources: - "*" {{- if .Values.base.validationCABundle }} # Disable webhook controller in Pilot to stop patching it failurePolicy: Fail {{- else if .Values.base.validationFailurePolicy }} failurePolicy: {{ .Values.base.validationFailurePolicy }} {{- else if not .Release.IsUpgrade }} # Fail open until the validation webhook is ready. The webhook controller # will update this to `Fail` and patch in the `caBundle` when the webhook # endpoint is ready. failurePolicy: Ignore {{- end }} sideEffects: None admissionReviewVersions: ["v1"] objectSelector: matchExpressions: - key: istio.io/rev operator: In values: {{- if (eq .Values.revision "") }} - "default" {{- else }} - "{{ .Values.revision }}" {{- end }} --- {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_46693.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 45150 releaseNotes: - | **Added** Inlined `WorkloadEntry` resources via `endpoints` field on `ServiceEntry` resources on different networks do not require an address to be specified. <|endoftext|> # helm_charts_api-token-secret.yaml {{- if .Values.wavefront.token }} apiVersion: v1 kind: Secret metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" . }} helm.sh/chart: {{ template "wavefront.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io.instance: {{ .Release.Name | quote }} app.kubernetes.io/component: collector name: {{ template "wavefront.fullname" . }} type: Opaque data: api-token: {{ .Values.wavefront.token | b64enc | quote }} {{- end }} <|endoftext|> # istio_crlconfigmapname.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** a setting values.pilot.crlConfigMapName that allows configuring the name of the ConfigMap that istiod uses to propagate its Certificate Revocation List (CRL) in the cluster. This allows running multiple control planes with overlapping namespaces in the same cluster. <|endoftext|> # helm_charts_additionalAlertmanagerConfigs.yaml {{- if and .Values.prometheus.enabled .Values.prometheus.prometheusSpec.additionalAlertManagerConfigs }} apiVersion: v1 kind: Secret metadata: name: {{ template "prometheus-operator.fullname" . }}-prometheus-am-confg namespace: {{ template "prometheus-operator.namespace" . }} {{- if .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations }} annotations: {{ toYaml .Values.prometheus.prometheusSpec.additionalPrometheusSecretsAnnotations | indent 4 }} {{- end }} labels: app: {{ template "prometheus-operator.name" . }}-prometheus-am-confg {{ include "prometheus-operator.labels" . | indent 4 }} data: additional-alertmanager-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertManagerConfigs | b64enc | quote }} {{- end }} <|endoftext|> # istio_multiple-policies-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-1 namespace: foo spec: selector: matchLabels: app: httpbin version: v1 rules: - to: - operation: methods: ["GET", "POST"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-2 namespace: foo spec: selector: matchLabels: app: httpbin rules: - to: - operation: paths: ["/v1", "/v2"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-3 namespace: foo spec: selector: matchLabels: version: v1 rules: - to: - operation: hosts: ["google.com", "httpbin.org"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-4 namespace: foo spec: rules: - to: - operation: ports: ["80", "90"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-5 namespace: foo spec: rules: - from: - source: principals: ["principals1", "principals2"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-6 namespace: foo spec: rules: - from: - source: requestPrincipals: ["requestPrincipals1", "requestPrincipals2"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-7 namespace: foo spec: rules: - from: - source: namespaces: ["namespaces1", "namespaces2"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-8 namespace: foo spec: rules: - from: - source: ipBlocks: ["1.2.3.4", "5.6.7.0/24"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-9 namespace: foo spec: rules: - when: - key: "request.headers[X-abc]" values: ["abc1", "abc2"] --- <|endoftext|> # istio_44986.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 44986 releaseNotes: - | **Fixed** cpu usage abnormally high when cert specified by DestinationRule are invalid. <|endoftext|> # helm_charts_httptrigger-crd.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: httptriggers.kubeless.io labels: app: kubeless annotations: helm.sh/hook: crd-install helm.sh/hook-delete-policy: before-hook-creation spec: group: kubeless.io names: kind: HTTPTrigger plural: httptriggers singular: httptrigger scope: Namespaced version: v1beta1 <|endoftext|> # istio_45643.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue where there was a parse error when performing rootCA comparison for Ztunnel pods. <|endoftext|> # helm_charts_config-ccd.yaml {{- if .Values.openvpn.ccd.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "openvpn.fullname" . }}-ccd labels: app: {{ template "openvpn.name" . }} chart: {{ template "openvpn.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: {{ toYaml .Values.openvpn.ccd.config | indent 2 }} {{- end }} <|endoftext|> # k8s_docs_cpu-constraints-pod-4.yaml apiVersion: v1 kind: Pod metadata: name: constraints-cpu-demo-4 spec: containers: - name: constraints-cpu-demo-4-ctr image: vish/stress <|endoftext|> # argocd_examples_user-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: user labels: name: user spec: replicas: 1 selector: matchLabels: name: user template: metadata: labels: name: user spec: containers: - name: user image: weaveworksdemos/user:0.4.7 resources: limits: cpu: 300m memory: 100Mi requests: cpu: 100m memory: 100Mi ports: - containerPort: 80 env: - name: MONGO_HOST value: user-db:27017 securityContext: runAsNonRoot: true runAsUser: 10001 capabilities: drop: - all add: - NET_BIND_SERVICE readOnlyRootFilesystem: true livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 300 periodSeconds: 3 readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 180 periodSeconds: 3 nodeSelector: kubernetes.io/os: linux <|endoftext|> # istio_43436.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 43435 releaseNotes: - | **Fixed** an issue where `EnvoyFilter` for `Cluster.ConnectTimeout` was affecting unrelated `Clusters`. <|endoftext|> # helm_charts_spark-zeppelin-deployment.yaml apiVersion: v1 kind: Service metadata: name: {{ template "zeppelin-fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Zeppelin.Component }}" spec: ports: - name: http port: {{ .Values.Zeppelin.ServicePort }} targetPort: {{ .Values.Zeppelin.ContainerPort }} selector: component: "{{ .Release.Name }}-{{ .Values.Zeppelin.Component }}" type: {{ .Values.Zeppelin.ServiceType }} --- apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "zeppelin-fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Zeppelin.Component }}" spec: replicas: {{ default 1 .Values.Zeppelin.Replicas }} strategy: type: RollingUpdate selector: matchLabels: component: "{{ .Release.Name }}-{{ .Values.Zeppelin.Component }}" template: metadata: labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Zeppelin.Component }}" spec: containers: - name: {{ template "zeppelin-fullname" . }} image: "{{ .Values.Zeppelin.Image }}:{{ .Values.Zeppelin.ImageTag }}" ports: - containerPort: {{ .Values.Zeppelin.ContainerPort }} name: http resources: requests: cpu: "{{ .Values.Zeppelin.Cpu }}" env: - name: SPARK_MASTER value: "spark://{{ template "master-fullname" . }}:{{ .Values.Master.ServicePort }}" volumeMounts: {{- if .Values.Zeppelin.Persistence.Config.Enabled }} - name: {{ template "master-fullname" . }}-config mountPath: /zeppelin/conf {{- end }} {{- if .Values.Zeppelin.Persistence.Notebook.Enabled }} - name: {{ template "master-fullname" . }}-notebook mountPath: /zeppelin/notebook {{- end }} volumes: {{- if .Values.Zeppelin.Persistence.Config.Enabled }} - name: {{ template "master-fullname" . }}-config persistentVolumeClaim: claimName: {{ template "zeppelin-fullname" . }}-config {{- end }} {{- if .Values.Zeppelin.Persistence.Notebook.Enabled }} - name: {{ template "master-fullname" . }}-notebook persistentVolumeClaim: claimName: {{ template "zeppelin-fullname" . }}-notebook {{- end }} <|endoftext|> # k8s_examples_spark-worker-controller.yaml kind: ReplicationController apiVersion: v1 metadata: name: spark-worker-controller spec: replicas: 2 selector: component: spark-worker template: metadata: labels: component: spark-worker spec: containers: - name: spark-worker image: registry.k8s.io/spark:1.5.2_v1 command: ["/start-worker"] ports: - containerPort: 8081 resources: requests: cpu: 100m <|endoftext|> # istio_fix-chained-cni-helm.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 43632 - 45034 releaseNotes: - | **Fixed** OpenShift profile setting `sidecarInjectorWebhook` causing `k8s.v1.cni.cncf.io/networks` to be overwritten when using multiple networks. <|endoftext|> # helm_charts_chromeDebug-deployment.yaml {{- if and (eq true .Values.chromeDebug.enabled) (eq false .Values.chromeDebug.runAsDaemonSet) -}} apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "selenium.chromeDebug.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: replicas: {{ .Values.chromeDebug.replicas }} selector: matchLabels: app: {{ template "selenium.chromeDebug.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.chromeDebug.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.chromeDebug.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.chromeDebug.podAnnotations }} annotations: {{ toYaml .Values.chromeDebug.podAnnotations | indent 8 }} {{- end}} spec: {{- if .Values.chromeDebug.securityContext }} securityContext: {{ toYaml .Values.chromeDebug.securityContext | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.chromeDebug.image }}:{{ .Values.chromeDebug.tag }}" imagePullPolicy: {{ .Values.chromeDebug.pullPolicy }} ports: {{- if .Values.hub.jmxPort }} - containerPort: {{ .Values.hub.jmxPort }} name: jmx protocol: TCP {{- end }} - containerPort: 5900 name: vnc {{- if .Values.chromeDebug.enableLivenessProbe }} livenessProbe: httpGet: path: /wd/hub/status port: {{ default "5555" .Values.chromeDebug.nodePort }} initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 1 {{- end }} {{- if .Values.chromeDebug.waitForRunningSessions }} lifecycle: preStop: exec: command: - /bin/bash - -c - "while [ $(wget -q -O - http://localhost:{{ default "5555" .Values.chromeDebug.nodePort }}/wd/hub/sessions | grep -c capabilities) -gt 0 ]; do sleep 1; done" {{- end }} env: - name: HUB_PORT_4444_TCP_ADDR value: {{ template "selenium.hub.fullname" . }} - name: HUB_PORT_4444_TCP_PORT value: {{ .Values.hub.servicePort | quote }} - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.chromeDebug.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.chromeDebug.seOpts | quote }} {{- if .Values.chromeDebug.chromeVersion }} - name: CHROME_VERSION value: {{ .Values.chromeDebug.chromeVersion | quote }} {{- end }} {{- if .Values.chromeDebug.nodeMaxInstances }} - name: NODE_MAX_INSTANCES value: {{ .Values.chromeDebug.nodeMaxInstances | quote }} {{- end }} {{- if .Values.chromeDebug.nodeMaxSession }} - name: NODE_MAX_SESSION value: {{ .Values.chromeDebug.nodeMaxSession | quote }} {{- end }} {{- if .Values.chromeDebug.nodeRegisterCycle }} - name: NODE_REGISTER_CYCLE value: {{ .Values.chromeDebug.nodeRegisterCycle | quote }} {{- end }} {{- if .Values.chromeDebug.nodePort }} - name: NODE_PORT value: {{ .Values.chromeDebug.nodePort | quote }} {{- end }} {{- if .Values.chromeDebug.screenWidth }} - name: SCREEN_WIDTH value: {{ .Values.chromeDebug.screenWidth | quote }} {{- end }} {{- if .Values.chromeDebug.screenHeight }} - name: SCREEN_HEIGHT value: {{ .Values.chromeDebug.screenHeight | quote }} {{- end }} {{- if .Values.chromeDebug.screenDepth }} - name: SCREEN_DEPTH value: {{ .Values.chromeDebug.screenDepth | quote }} {{- end }} {{- if .Values.chromeDebug.display }} - name: DISPLAY value: {{ .Values.chromeDebug.display | quote }} {{- end }} {{- if .Values.chromeDebug.timeZone }} - name: TZ value: {{ .Values.chromeDebug.timeZone | quote }} {{- end }} {{- if .Values.chromeDebug.extraEnvs }} {{ toYaml .Values.chromeDebug.extraEnvs | indent 12 }} {{- end }} volumeMounts: {{ if .Values.chromeDebug.volumeMounts -}} {{ toYaml .Values.chromeDebug.volumeMounts | indent 12 }} {{- end }} resources: {{ toYaml .Values.chromeDebug.resources | indent 12 }} {{- if or .Values.global.imagePullSecrets .Values.chromeDebug.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.chromeDebug.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} volumes: {{ if .Values.chromeDebug.volumes -}} {{ toYaml .Values.chromeDebug.volumes | indent 8 }} {{- end }} hostAliases: {{ toYaml .Values.global.hostAliases | indent 8 }} nodeSelector: {{- if .Values.chromeDebug.nodeSelector }} {{ toYaml .Values.chromeDebug.nodeSelector | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | indent 8 }} {{- end }} affinity: {{- if .Values.chromeDebug.affinity }} {{ toYaml .Values.chromeDebug.affinity | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | indent 8 }} {{- end }} tolerations: {{- if .Values.chromeDebug.tolerations }} {{ toYaml .Values.chromeDebug.tolerations | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | indent 8 }} {{- end }} {{- end -}} <|endoftext|> # k8s_docs_typechecking-multiple-match.yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: name: "replica-policy.example.com" spec: matchConstraints: resourceRules: - apiGroups: ["apps"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["deployments","replicasets"] validations: - expression: "object.replicas > 1" # should be "object.spec.replicas > 1" message: "must be replicated" reason: Invalid <|endoftext|> # helm_charts_discovery-svc.yaml {{ if not .Values.unifiedService.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "unifi.fullname" . }}-discovery labels: app.kubernetes.io/name: {{ include "unifi.name" . }} helm.sh/chart: {{ include "unifi.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.discoveryService.labels }} {{ toYaml .Values.discoveryService.labels | indent 4 }} {{- end }} {{- with .Values.discoveryService.annotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} spec: {{- if (or (eq .Values.discoveryService.type "ClusterIP") (empty .Values.discoveryService.type)) }} type: ClusterIP {{- if .Values.discoveryService.clusterIP }} clusterIP: {{ .Values.discoveryService.clusterIP }} {{end}} {{- else if eq .Values.discoveryService.type "LoadBalancer" }} type: {{ .Values.discoveryService.type }} {{- if .Values.discoveryService.loadBalancerIP }} loadBalancerIP: {{ .Values.discoveryService.loadBalancerIP }} {{- end }} {{- if .Values.discoveryService.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{ toYaml .Values.discoveryService.loadBalancerSourceRanges | indent 4 }} {{- end -}} {{- else }} type: {{ .Values.discoveryService.type }} {{- end }} {{- if .Values.discoveryService.externalIPs }} externalIPs: {{ toYaml .Values.discoveryService.externalIPs | indent 4 }} {{- end }} {{- if .Values.discoveryService.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.discoveryService.externalTrafficPolicy }} {{- end }} ports: - port: {{ .Values.discoveryService.port }} targetPort: discovery protocol: UDP name: discovery {{ if (and (eq .Values.discoveryService.type "NodePort") (not (empty .Values.discoveryService.nodePort))) }} nodePort: {{.Values.discoveryService.nodePort}} {{ end }} selector: app.kubernetes.io/name: {{ include "unifi.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{ end }} <|endoftext|> # k8s_docs_ssh-auth-secret.yaml apiVersion: v1 kind: Secret metadata: name: secret-ssh-auth type: kubernetes.io/ssh-auth data: # the data is abbreviated in this example ssh-privatekey: | UG91cmluZzYlRW1vdGljb24lU2N1YmE= <|endoftext|> # istio_list-frontend.yaml apiVersion: v1 kind: List items: - kind: Service apiVersion: v1 metadata: name: frontend spec: selector: app: hello tier: frontend ports: - protocol: "TCP" port: 80 targetPort: 80 type: LoadBalancer - apiVersion: apps/v1 kind: Deployment metadata: name: frontend spec: replicas: 1 selector: matchLabels: app: hello tier: frontend track: stable template: metadata: labels: app: hello tier: frontend track: stable spec: containers: - name: nginx image: "fake.docker.io/google-samples/hello-frontend:1.0" lifecycle: preStop: exec: command: ["/usr/sbin/nginx","-s","quit"] <|endoftext|> # flux_source_create-secret.yaml --- apiVersion: v1 kind: Secret metadata: name: ghcr namespace: my-namespace stringData: .dockerconfigjson: |- { "auths": { "ghcr.io": { "username": "stefanprodan", "password": "password", "auth": "c3RlZmFucHJvZGFuOnBhc3N3b3Jk" } } } type: kubernetes.io/dockerconfigjson <|endoftext|> # helm_charts_readreplicas-dns.yaml apiVersion: v1 kind: Service metadata: name: {{ template "neo4j.replica.fullname" . }} labels: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app.kubernetes.io/name: {{ template "neo4j.replica.fullname" . }} app.kubernetes.io/component: core spec: clusterIP: None # This next line is critical: cluster members cannot discover each other without published # addresses, but without this, they can't get addresses unless they're ready (Catch-22) publishNotReadyAddresses: true ports: - name: http port: 7474 targetPort: 7474 - name: bolt port: 7687 targetPort: 7687 - name: https port: 7473 targetPort: 7473 selector: app.kubernetes.io/name: {{ template "neo4j.name" . }} app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/component: replica <|endoftext|> # istio_istiod-remote-cluster-sync-status.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Added** `istiod_remote_cluster_sync_status` gauge metric to Pilot to track the synchronization status of remote clusters. <|endoftext|> # istio_operator_revision.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 23479 releaseNotes: - | **Added** `--revision` flag to `istioctl operator init` and `istioctl operator remove` commands to support multiple control plane upgrade. <|endoftext|> # argocd_source_argocd-server-clusterrolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app.kubernetes.io/name: argocd-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: server name: argocd-server roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: argocd-server subjects: - kind: ServiceAccount name: argocd-server namespace: argocd <|endoftext|> # istio_pod-ip-listener.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 28178 releaseNotes: - | **Added** support for applications that bind to their pod IP address, rather than wildcard or localhost address, through the `Sidecar` API. <|endoftext|> # argocd_source_ssd-deploy-composite-key-live.yaml apiVersion: apps/v1 kind: Deployment metadata: name: test-container-ports namespace: default labels: app: test-app uid: 12345678-1234-1234-1234-123456789012 resourceVersion: "12345" generation: 1 creationTimestamp: "2024-01-01T00:00:00Z" managedFields: - apiVersion: apps/v1 fieldsType: FieldsV1 fieldsV1: f:spec: f:template: f:spec: f:containers: k:{"name":"nginx"}: f:ports: k:{"containerPort":80,"protocol":"TCP"}: .: {} f:containerPort: {} f:name: {} f:protocol: {} k:{"containerPort":443,"protocol":"TCP"}: .: {} f:containerPort: {} f:name: {} f:protocol: {} k:{"name":"sidecar"}: f:ports: k:{"containerPort":9090,"protocol":"TCP"}: .: {} f:containerPort: {} f:name: {} f:protocol: {} manager: argocd-controller operation: Apply time: "2024-01-01T00:00:00Z" spec: replicas: 1 selector: matchLabels: app: test-app template: metadata: labels: app: test-app spec: containers: - name: nginx image: nginx:1.21 ports: - containerPort: 80 name: http protocol: TCP - containerPort: 443 name: https protocol: TCP terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent - name: sidecar image: busybox:1.35 command: ["sleep", "3600"] ports: - containerPort: 9090 name: sidecar-port protocol: TCP terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} schedulerName: default-scheduler strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 status: observedGeneration: 1 replicas: 1 updatedReplicas: 1 readyReplicas: 1 availableReplicas: 1 <|endoftext|> # helm_charts_kubernetes-apps.yaml {{- /* Generated from 'kubernetes-apps' group from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeStateMetrics.enabled .Values.defaultRules.rules.kubernetesApps }} {{- $targetNamespace := .Values.defaultRules.appNamespacesTarget }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kubernetes-apps" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kubernetes-apps rules: - alert: KubePodCrashLooping annotations: message: Pod {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.pod {{`}}`}} ({{`{{`}} $labels.container {{`}}`}}) is restarting {{`{{`}} printf "%.2f" $value {{`}}`}} times / 5 minutes. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubepodcrashlooping expr: rate(kube_pod_container_status_restarts_total{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"}[15m]) * 60 * 5 > 0 for: 1h labels: severity: critical - alert: KubePodNotReady annotations: message: Pod {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.pod {{`}}`}} has been in a non-ready state for longer than an hour. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubepodnotready expr: sum by (namespace, pod) (kube_pod_status_phase{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}", phase=~"Pending|Unknown"}) > 0 for: 1h labels: severity: critical - alert: KubeDeploymentGenerationMismatch annotations: message: Deployment generation for {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.deployment {{`}}`}} does not match, this indicates that the Deployment has failed but has not been rolled back. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubedeploymentgenerationmismatch expr: |- kube_deployment_status_observed_generation{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} != kube_deployment_metadata_generation{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} for: 15m labels: severity: critical - alert: KubeDeploymentReplicasMismatch annotations: message: Deployment {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.deployment {{`}}`}} has not matched the expected number of replicas for longer than an hour. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubedeploymentreplicasmismatch expr: |- kube_deployment_spec_replicas{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} != kube_deployment_status_replicas_available{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} for: 1h labels: severity: critical - alert: KubeStatefulSetReplicasMismatch annotations: message: StatefulSet {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.statefulset {{`}}`}} has not matched the expected number of replicas for longer than 15 minutes. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubestatefulsetreplicasmismatch expr: |- kube_statefulset_status_replicas_ready{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} != kube_statefulset_status_replicas{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} for: 15m labels: severity: critical - alert: KubeStatefulSetGenerationMismatch annotations: message: StatefulSet generation for {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.statefulset {{`}}`}} does not match, this indicates that the StatefulSet has failed but has not been rolled back. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubestatefulsetgenerationmismatch expr: |- kube_statefulset_status_observed_generation{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} != kube_statefulset_metadata_generation{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} for: 15m labels: severity: critical - alert: KubeStatefulSetUpdateNotRolledOut annotations: message: StatefulSet {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.statefulset {{`}}`}} update has not been rolled out. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubestatefulsetupdatenotrolledout expr: |- max without (revision) ( kube_statefulset_status_current_revision{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} unless kube_statefulset_status_update_revision{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} ) * ( kube_statefulset_replicas{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} != kube_statefulset_status_replicas_updated{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} ) for: 15m labels: severity: critical - alert: KubeDaemonSetRolloutStuck annotations: message: Only {{`{{`}} $value {{`}}`}}% of the desired Pods of DaemonSet {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.daemonset {{`}}`}} are scheduled and ready. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubedaemonsetrolloutstuck expr: |- kube_daemonset_status_number_ready{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} / kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} * 100 < 100 for: 15m labels: severity: critical - alert: KubeDaemonSetNotScheduled annotations: message: '{{`{{`}} $value {{`}}`}} Pods of DaemonSet {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.daemonset {{`}}`}} are not scheduled.' runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubedaemonsetnotscheduled expr: |- kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} - kube_daemonset_status_current_number_scheduled{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} > 0 for: 10m labels: severity: warning - alert: KubeDaemonSetMisScheduled annotations: message: '{{`{{`}} $value {{`}}`}} Pods of DaemonSet {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.daemonset {{`}}`}} are running where they are not supposed to run.' runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubedaemonsetmisscheduled expr: kube_daemonset_status_number_misscheduled{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} > 0 for: 10m labels: severity: warning - alert: KubeCronJobRunning annotations: message: CronJob {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.cronjob {{`}}`}} is taking more than 1h to complete. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubecronjobrunning expr: time() - kube_cronjob_next_schedule_time{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} > 3600 for: 1h labels: severity: warning - alert: KubeJobCompletion annotations: message: Job {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.job_name {{`}}`}} is taking more than one hour to complete. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubejobcompletion expr: kube_job_spec_completions{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} - kube_job_status_succeeded{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} > 0 for: 1h labels: severity: warning - alert: KubeJobFailed annotations: message: Job {{`{{`}} $labels.namespace {{`}}`}}/{{`{{`}} $labels.job_name {{`}}`}} failed to complete. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubejobfailed expr: kube_job_status_failed{job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"} > 0 for: 1h labels: severity: warning {{- end }} <|endoftext|> # argocd_examples_catalogue-db-svc.yaml --- apiVersion: v1 kind: Service metadata: name: catalogue-db labels: name: catalogue-db spec: ports: # the port that this service should serve on - port: 3306 targetPort: 3306 selector: name: catalogue-db <|endoftext|> # helm_charts_jenkins-master-svc.yaml apiVersion: v1 kind: Service metadata: name: {{template "jenkins.fullname" . }} namespace: {{ template "jenkins.namespace" . }} labels: "app.kubernetes.io/name": '{{ template "jenkins.name" .}}' "helm.sh/chart": "{{ .Chart.Name }}-{{ .Chart.Version }}" "app.kubernetes.io/managed-by": "{{ .Release.Service }}" "app.kubernetes.io/instance": "{{ .Release.Name }}" "app.kubernetes.io/component": "{{ .Values.master.componentName }}" {{- if .Values.master.serviceLabels }} {{ toYaml .Values.master.serviceLabels | indent 4 }} {{- end }} {{- if .Values.master.serviceAnnotations }} annotations: {{ toYaml .Values.master.serviceAnnotations | indent 4 }} {{- end }} spec: {{- if (and (eq .Values.master.serviceType "ClusterIP") (not (empty .Values.master.clusterIP))) }} clusterIP: {{.Values.master.clusterIP}} {{- end }} ports: - port: {{.Values.master.servicePort}} name: http targetPort: {{ .Values.master.targetPort }} {{- if (and (eq .Values.master.serviceType "NodePort") (not (empty .Values.master.nodePort))) }} nodePort: {{.Values.master.nodePort}} {{- end }} {{- range $index, $port := .Values.master.extraPorts }} - port: {{ $port.port }} name: {{ $port.name }} targetPort: {{ $port.port }} {{- end }} selector: "app.kubernetes.io/component": "{{ .Values.master.componentName }}" "app.kubernetes.io/instance": "{{ .Release.Name }}" type: {{.Values.master.serviceType}} {{if eq .Values.master.serviceType "LoadBalancer"}} {{- if .Values.master.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{ toYaml .Values.master.loadBalancerSourceRanges | indent 4 }} {{- end }} {{if .Values.master.loadBalancerIP}} loadBalancerIP: {{.Values.master.loadBalancerIP}} {{end}} {{end}} <|endoftext|> # helm_charts_agent-rbac.yaml {{- if and .Values.clusterAgent.enabled .Values.clusterAgent.rbac.create -}} apiVersion: {{ template "rbac.apiVersion" . }} kind: ClusterRole metadata: labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-agent rules: - apiGroups: - "" resources: - services - endpoints - pods - nodes - componentstatuses verbs: - get - list - watch - apiGroups: - "" resources: - events verbs: - get - list - watch - create - apiGroups: ["quota.openshift.io"] resources: - clusterresourcequotas verbs: - get - list - apiGroups: - "autoscaling" resources: - horizontalpodautoscalers verbs: - list - watch {{- if .Values.datadog.collectEvents }} - apiGroups: - "" resources: - configmaps resourceNames: - datadogtoken # Kubernetes event collection state verbs: - get - update {{- end }} - apiGroups: - "" resources: - configmaps resourceNames: - datadog-leader-election # Leader election token {{- if .Values.clusterAgent.metricsProvider.enabled }} - datadog-custom-metrics - extension-apiserver-authentication {{- end }} verbs: - get - update - apiGroups: # To create the leader election token and hpa events - "" resources: - configmaps - events verbs: - create - nonResourceURLs: - "/version" - "/healthz" verbs: - get {{- if and .Values.clusterAgent.metricsProvider.enabled .Values.clusterAgent.metricsProvider.wpaController }} - apiGroups: - "datadoghq.com" resources: - "watermarkpodautoscalers" verbs: - "list" - "get" - "watch" {{- end }} {{- if .Values.datadog.orchestratorExplorer.enabled }} - apiGroups: # to get the kube-system namespace UID and generate a cluster ID - "" resources: - namespaces resourceNames: - "kube-system" verbs: - get - apiGroups: # To create the cluster-id configmap - "" resources: - configmaps resourceNames: - "datadog-cluster-id" verbs: - create - get - update {{- end }} {{- if and .Values.clusterAgent.metricsProvider.enabled .Values.clusterAgent.metricsProvider.useDatadogMetrics }} - apiGroups: - "datadoghq.com" resources: - "datadogmetrics" verbs: - "list" - "create" - "delete" - "watch" - apiGroups: - "datadoghq.com" resources: - "datadogmetrics/status" verbs: - "update" {{- end }} {{- if .Values.clusterAgent.admissionController.enabled }} - apiGroups: - admissionregistration.k8s.io resources: - mutatingwebhookconfigurations verbs: ["get", "list", "watch", "update", "create"] - apiGroups: [""] resources: ["secrets"] verbs: ["get", "list", "watch", "update", "create"] - apiGroups: ["batch"] resources: ["jobs", "cronjobs"] verbs: ["get"] - apiGroups: ["apps"] resources: ["statefulsets", "replicasets", "deployments"] verbs: ["get"] {{- end }} --- apiVersion: {{ template "rbac.apiVersion" . }} kind: ClusterRoleBinding metadata: labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-agent roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "datadog.fullname" . }}-cluster-agent subjects: - kind: ServiceAccount name: {{ template "datadog.fullname" . }}-cluster-agent namespace: {{ .Release.Namespace }} --- apiVersion: v1 kind: ServiceAccount metadata: labels: app: "{{ template "datadog.fullname" . }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-agent {{- end }} {{- if and .Values.clusterAgent.enabled .Values.clusterAgent.rbac.create .Values.clusterAgent.metricsProvider.enabled }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app: "{{ template "datadog.fullname" . }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-agent:system:auth-delegator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - kind: ServiceAccount name: {{ template "datadog.fullname" . }}-cluster-agent namespace: {{ .Release.Namespace }} {{- end -}} <|endoftext|> # istio_cluster-federated-trust-domain.yaml apiVersion: spire.spiffe.io/v1alpha1 kind: ClusterFederatedTrustDomain metadata: name: ${CLUSTER} spec: className: spire-spire trustDomain: ${CLUSTER}.local bundleEndpointURL: https://${BUNDLE_ENDPOINT}:8443 bundleEndpointProfile: type: https_spiffe endpointSPIFFEID: spiffe://${CLUSTER}.local/spire/server <|endoftext|> # argocd_source_ssd-deploy-with-manual-apply-config.yaml apiVersion: apps/v1 kind: Deployment metadata: name: manual-apply-test-deployment namespace: default labels: app: manual-apply-app applications.argoproj.io/app-name: manual-apply-app spec: replicas: 1 selector: matchLabels: app: manual-apply-test template: metadata: labels: app: manual-apply-test spec: automountServiceAccountToken: false containers: - name: main-container image: 'nginx:latest' ports: - containerPort: 80 name: http - containerPort: 40 name: https resources: limits: memory: "100Mi" <|endoftext|> # helm_charts_mutatingWebhookConfiguration.yaml {{- if and .Values.prometheusOperator.admissionWebhooks.enabled }} apiVersion: admissionregistration.k8s.io/v1beta1 kind: MutatingWebhookConfiguration metadata: name: {{ template "prometheus-operator.fullname" . }}-admission labels: app: {{ template "prometheus-operator.name" $ }}-admission {{- include "prometheus-operator.labels" $ | indent 4 }} webhooks: - name: prometheusrulemutate.monitoring.coreos.com {{- if .Values.prometheusOperator.admissionWebhooks.patch.enabled }} failurePolicy: Ignore {{- else }} failurePolicy: {{ .Values.prometheusOperator.admissionWebhooks.failurePolicy }} {{- end }} rules: - apiGroups: - monitoring.coreos.com apiVersions: - "*" resources: - prometheusrules operations: - CREATE - UPDATE clientConfig: service: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ template "prometheus-operator.operator.fullname" $ }} path: /admission-prometheusrules/mutate {{- end }} <|endoftext|> # helm_charts_admission-service-account.yaml {{- if and .Values.rbac.create .Values.deployments.admissionController -}} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "admission-controller.serviceAccountName" . }} labels: app.kubernetes.io/name: {{ include "admission-controller.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} helm.sh/chart: {{ include "couchbase-operator.chart" . }} {{- end }} <|endoftext|> # istio_istioctl-analyze-revision.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 38148 releaseNotes: - | **Added** `--revision` to `istioctl analyze` to specify a specific revision. <|endoftext|> # istio_peer-authn-strict-workload-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: strict-mtls spec: selector: matchLabels: app: a mtls: mode: STRICT <|endoftext|> # helm_charts_cm-node-disk-manager.yaml {{- if .Values.ndm.enabled }} # This is the node-disk-manager related config. # It can be used to customize the disks probes and filters apiVersion: v1 kind: ConfigMap metadata: name: {{ template "openebs.fullname" . }}-ndm-config labels: app: {{ template "openebs.name" . }} chart: {{ template "openebs.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: ndm-config openebs.io/component-name: ndm-config data: # udev-probe is default or primary probe which should be enabled to run ndm # filterconfigs contains configs of filters - in the form of include # and exclude comma separated strings node-disk-manager.config: | probeconfigs: - key: udev-probe name: udev probe state: true - key: seachest-probe name: seachest probe state: {{ .Values.ndm.probes.enableSeachest }} - key: smart-probe name: smart probe state: true filterconfigs: - key: os-disk-exclude-filter name: os disk exclude filter state: {{ .Values.ndm.filters.enableOsDiskExcludeFilter }} exclude: "/,/etc/hosts,/boot" - key: vendor-filter name: vendor filter state: {{ .Values.ndm.filters.enableVendorFilter }} include: "" exclude: "{{ .Values.ndm.filters.excludeVendors }}" - key: path-filter name: path filter state: {{ .Values.ndm.filters.enablePathFilter }} include: "{{ .Values.ndm.filters.includePaths }}" exclude: "{{ .Values.ndm.filters.excludePaths }}" --- {{- end }} <|endoftext|> # grafana_charts_service-querier-headless.yaml {{- if not .Values.indexGateway.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "loki.querierFullname" . }}-headless namespace: {{ .Release.Namespace }} labels: {{- include "loki.querierSelectorLabels" . | nindent 4 }} prometheus.io/service-monitor: "false" spec: type: ClusterIP clusterIP: None ports: - name: http port: 3100 targetPort: http protocol: TCP - name: grpc port: 9095 targetPort: grpc protocol: TCP {{- if .Values.querier.appProtocol.grpc }} appProtocol: {{ .Values.querier.appProtocol.grpc }} {{- end }} selector: {{- include "loki.querierSelectorLabels" . | nindent 4 }} {{- end }} <|endoftext|> # istio_37057.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 37057 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** new configuration options to `istio-iptables` and `istio-clean-iptables` for including/excluding certain user groups from interception of the outgoing traffic generated by them. This feature is intended primarily for use on VMs, where system administrators need to restrain interception of the outgoing traffic down to a few applications instead of intercepting all outgoing traffic. By default, as before, Istio Sidecar will intercept outgoing traffic from all processes, no matter what user groups they are running under. To change this behavior, system administrators can now use 2 new environment variables supported by `istio-iptables` and `istio-clean-iptables` - `ISTIO_OUTBOUND_OWNER_GROUPS` and `ISTIO_OUTBOUND_OWNER_GROUPS_EXCLUDE`. `ISTIO_OUTBOUND_OWNER_GROUPS` - is a comma separated list of groups whose outgoing traffic should be redirected to Envoy (sidecar). A group can be specified either by name or by a numeric GID. The wildcard character `*` can be used to configure redirection of traffic from all groups (default). `ISTIO_OUTBOUND_OWNER_GROUPS_EXCLUDE` - is a comma separated list of groups whose outgoing traffic should be excluded from redirection to Envoy (sidecar). A group can be specified either by name or by a numeric GID. Only applies when traffic from all groups (i.e. `*`) is being redirected to Envoy (sidecar). `ISTIO_OUTBOUND_OWNER_GROUPS` and `ISTIO_OUTBOUND_OWNER_GROUPS_EXCLUDE` are mutually exclusive, use only one of them. E.g., * `ISTIO_OUTBOUND_OWNER_GROUPS=101,java` instructs to intercept outgoing traffic only from those processes that run under one of the user groups `101` (by `GID`) or `java` (by name). * `ISTIO_OUTBOUND_OWNER_GROUPS_EXCLUDE=root,202` instructs to intercept outgoing traffic from all processes except for those that under one of the user groups `202` (by `GID`) or `root` (by name). <|endoftext|> # k8s_docs_example-psp.yaml apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: example spec: privileged: false # Don't allow privileged pods! # The rest fills in some required fields. seLinux: rule: RunAsAny supplementalGroups: rule: RunAsAny runAsUser: rule: RunAsAny fsGroup: rule: RunAsAny volumes: - '*' <|endoftext|> # istio_autoscale.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} # Not created if istiod is running remotely {{- if or (not .Values.istiodRemote.enabled) (and .Values.istiodRemote.enabled .Values.istiodRemote.enabledLocalInjectorIstiod) }} {{- if and .Values.autoscaleEnabled .Values.autoscaleMin .Values.autoscaleMax }} apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} namespace: {{ .Release.Namespace }} labels: app: istiod release: {{ .Release.Name }} istio.io/rev: {{ .Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} spec: maxReplicas: {{ .Values.autoscaleMax }} minReplicas: {{ .Values.autoscaleMin }} scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: {{ .Values.cpu.targetAverageUtilization }} {{- if .Values.memory.targetAverageUtilization }} - type: Resource resource: name: memory target: type: Utilization averageUtilization: {{ .Values.memory.targetAverageUtilization }} {{- end }} {{- if .Values.autoscaleBehavior }} behavior: {{ toYaml .Values.autoscaleBehavior | nindent 4 }} {{- end }} --- {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_service-configs.yaml {{ if .Values.halyard.serviceConfigs -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "spinnaker.fullname" . }}-service-configs labels: {{ include "spinnaker.standard-labels" . | indent 4 }} {{/* Render local configuration for each service with values passed by .Values.halyard.serviceConfigs */}} {{- $settings := dict -}} {{- if .Values.halyard.serviceConfigs -}} {{- $_ := mergeOverwrite $settings .Values.halyard.serviceConfigs -}} {{- end -}} {{- /* Convert the content of settings key to YAML string */}} {{- range $filename, $content := $settings -}} {{- if not (typeIs "string" $content) -}} {{- $_ := set $settings $filename ($content | toYaml) -}} {{- end -}} {{- end -}} data: {{ $settings | toYaml | indent 2 }} {{- end -}} <|endoftext|> # helm_charts_rethinkdb-cluster-service.yaml apiVersion: v1 kind: Service metadata: name: "{{ template "rethinkdb.fullname" . }}-cluster" labels: app: "{{ template "rethinkdb.name" . }}-cluster" chart: {{ template "rethinkdb.chart" . }} heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} annotations: service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" {{- if .Values.cluster.service.annotations }} {{ toYaml .Values.cluster.service.annotations | indent 4 }} {{- end }} spec: clusterIP: None ports: - port: {{ .Values.ports.cluster }} targetPort: cluster selector: app: "{{ template "rethinkdb.name" . }}-cluster" release: {{ .Release.Name | quote }} <|endoftext|> # helm_charts_agent-sa.yaml {{- if and .Values.agent.enabled .Values.serviceAccounts.agent.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "jaeger.agent.name" . }} labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} helm.sh/chart: {{ include "jaeger.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: agent {{- end -}} <|endoftext|> # argocd_source_healthy_emptyStepsList.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: '2' clusterName: '' creationTimestamp: '2019-05-01T21:55:30Z' generation: 1 labels: app.kubernetes.io/instance: guestbook-canary ksonnet.io/component: guestbook-ui name: guestbook-canary namespace: default resourceVersion: '956205' selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/guestbook-canary uid: d6105ccd-6c5b-11e9-b8d7-025000000001 spec: minReadySeconds: 10 replicas: 5 selector: matchLabels: app: guestbook-canary strategy: canary: maxSurge: 1 maxUnavailable: 0 steps: [] template: metadata: creationTimestamp: null labels: app: guestbook-canary spec: containers: - image: 'quay.io/argoprojlabs/argocd-e2e-container:0.2' name: guestbook-canary ports: - containerPort: 80 resources: {} status: HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: stableRS: 567dd56d89 conditions: - lastTransitionTime: '2019-05-01T22:00:16Z' lastUpdateTime: '2019-05-01T22:00:16Z' message: Rollout has minimum availability reason: AvailableReason status: 'True' type: Available - lastTransitionTime: '2019-05-01T21:55:30Z' lastUpdateTime: '2019-05-01T22:00:16Z' message: ReplicaSet "guestbook-canary-567dd56d89" has successfully progressed. reason: NewReplicaSetAvailable status: 'True' type: Progressing currentPodHash: 567dd56d89 currentStepHash: 6c9545789c observedGeneration: 6886f85bff readyReplicas: 5 replicas: 5 selector: app=guestbook-canary updatedReplicas: 5 <|endoftext|> # istio_canonical-wds-service.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - https://github.com/istio/istio/pull/58576 releaseNotes: - | **Added** logic to designate a Workload Discovery (WDS) Service as canonical. A canonical WDS Service is used by ztunnel during name resolution unless another WDS Service in the same namespace as the client exists to override. A canonical service will be configured from either (1) a Kubernetes Service resource or (2) the oldest Istio ServiceEntry resource which specifies that hostname. <|endoftext|> # istio_49896.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 49896 releaseNotes: - | **Added** ability to define the traffic address type (service, workload, all or none) for waypoints via the `--for` flag when using the `istioctl experimental waypoint apply` command. <|endoftext|> # helm_charts_common.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "cpi.fullname" . }} labels: app: {{ template "cpi.name" . }} vsphere-cpi-infra: common-configmap chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} component: cloud-controller-manager heritage: {{ .Release.Service }} release: {{ .Release.Name }} namespace: {{ .Release.Namespace }} data: api.binding: "{{ template "api.binding" . }}" <|endoftext|> # argocd_source_providerconfig_healthy.yaml apiVersion: aws.upbound.io/v1beta1 kind: ProviderConfig metadata: name: irsa-with-role-chaining spec: credentials: source: IRSA assumeRoleChain: - roleARN: - roleARN: <|endoftext|> # helm_charts_collector-config.yaml {{- if .Values.collector.enabled }} apiVersion: v1 kind: ConfigMap metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" . }} helm.sh/chart: {{ template "wavefront.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io.instance: {{ .Release.Name | quote }} app.kubernetes.io/component: collector name: {{ template "wavefront.collector.fullname" . }}-config data: config.yaml: | clusterName: {{ .Values.clusterName }} enableDiscovery: {{ .Values.collector.discovery.enabled }} defaultCollectionInterval: {{ .Values.collector.interval | default "60s" }} flushInterval: {{ .Values.collector.flushInterval | default "10s" }} sinkExportDataTimeout: {{ .Values.collector.sinkDelay | default "20s" }} sinks: {{- if .Values.collector.useProxy }} {{- if .Values.collector.proxyAddress }} - proxyAddress: {{ .Values.collector.proxyAddress }} {{- else }} - proxyAddress: {{ template "wavefront.proxy.fullname" . }}:{{ .Values.proxy.port }} {{- end }} {{- else }} - server: {{ .Values.wavefront.url }} token: {{ .Values.wavefront.token }} {{- end }} {{- if .Values.collector.tags }} tags: {{ tpl (toYaml .Values.collector.tags) . | indent 8 }} {{- end }} filters: # Filter out infrequently used kube-state-metrics. metricBlacklist: - 'kube.configmap.annotations.gauge' - 'kube.configmap.metadata.resource.version.gauge' - 'kube.endpoint.*' - 'kube.job.owner.gauge' - 'kube.job.labels.gauge' - 'kube.job.spec.completions.gauge' - 'kube.job.spec.parallelism.gauge' - 'kube.job.status.start.time.gauge' - 'kube.limitrange.*' - 'kube.namespace.annotations.gauge' - 'kube.persistentvolume.*' - 'kube.persistentvolumeclaim.*' - 'kube.pod.container.resource.limits.*' - 'kube.pod.container.*.reason.gauge' - 'kube.pod.owner.gauge' - 'kube.pod.start.time.gauge' - 'kube.pod.status.scheduled.gauge' - 'kube.pod.status.scheduled.time.gauge' - 'kube.replicationcontroller.created.gauge' - 'kube.replicationcontroller.metadata.generation.gauge' - 'kube.replicationcontroller.spec.replicas.gauge' - 'kube.resourcequota.*' - 'kube.secret.*' - 'kube.statefulset.*' - 'kube.storageclass.*' # Filter out generated labels tagExclude: - 'label?controller?revision*' - 'label?pod?template*' - 'annotation_kubectl_kubernetes_io_last_applied_configuration' sources: kubernetes_source: {{- if .Values.collector.useReadOnlyPort }} url: kubeletPort: 10255 kubeletHttps: false {{- else }} url: https://kubernetes.default.svc kubeletPort: 10250 kubeletHttps: true {{- end }} {{- if .Values.serviceAccount.create }} useServiceAccount: true {{- else }} useServiceAccount: false {{- end }} insecure: true prefix: kubernetes. filters: metricBlacklist: - 'kubernetes.sys_container.*' - 'kubernetes.node.ephemeral_storage.*' internal_stats_source: prefix: kubernetes. telegraf_sources: - plugins: [] {{- if .Values.collector.apiServerMetrics }} # Kubernetes API Server prometheus_sources: - url: https://kubernetes.default.svc.cluster.local:443/metrics httpConfig: bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token tls_config: ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt insecure_skip_verify: true prefix: kube.apiserver. filters: metricWhitelist: - 'kube.apiserver.apiserver.*' - 'kube.apiserver.etcd.*' - 'kube.apiserver.process.*' {{- end }} {{- if .Values.collector.discovery.enabled }} discovery: {{- if .Values.collector.discovery.annotationPrefix }} annotation_prefix: {{ .Values.collector.discovery.annotationPrefix | quote }} {{- end }} plugins: # auto-discover kube DNS - name: kube-dns-discovery type: prometheus selectors: images: - '*kube-dns/sidecar*' labels: k8s-app: - kube-dns port: 10054 path: /metrics scheme: http prefix: kube.dns. filters: metricWhitelist: - 'kube.dns.http.request.duration.microseconds' - 'kube.dns.http.request.size.bytes' - 'kube.dns.http.requests.total.counter' - 'kube.dns.http.response.size.bytes' - 'kube.dns.kubedns.dnsmasq.*' - 'kube.dns.process.*' # auto-discover coredns - name: coredns-discovery type: prometheus selectors: images: - '*coredns:*' labels: k8s-app: - kube-dns port: 9153 path: /metrics scheme: http prefix: kube.coredns. filters: metricWhitelist: - 'kube.coredns.coredns.cache.*' - 'kube.coredns.coredns.dns.request.count.total.counter' - 'kube.coredns.coredns.dns.request.duration.seconds' - 'kube.coredns.coredns.dns.request.size.bytes' - 'kube.coredns.coredns.dns.request.type.count.total.counter' - 'kube.coredns.coredns.dns.response.rcode.count.total.counter' - 'kube.coredns.coredns.dns.response.size.bytes' - 'kube.coredns.process.*' {{- if .Values.collector.discovery.config }} # user supplied discovery config {{ tpl (toYaml .Values.collector.discovery.config) . | indent 6 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_fix-nodeport-meshnetwork.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** an issue preventing NodePort services from being used as the `registryServiceName` in `meshNetworks`. <|endoftext|> # istio_41425.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/40605 releaseNotes: - | **Fixed** fixed network port forward issue to support ipv4 and ipv6 <|endoftext|> # istio_remote-istiod-endpointslices.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} {{- if and .Values.global.remotePilotAddress .Values.istiodRemote.enabled }} # if the remotePilotAddress is an IP addr (IPv4 or IPv6) {{- if or (regexMatch "^([0-9]*\\.){3}[0-9]*$" .Values.global.remotePilotAddress) (regexMatch "^([0-9a-fA-F]*:)+[0-9a-fA-F]*$" .Values.global.remotePilotAddress) }} apiVersion: discovery.k8s.io/v1 kind: EndpointSlice metadata: {{- if .Values.istiodRemote.enabledLocalInjectorIstiod }} # This file is only used for remote `istiod` installs. # only primary `istiod` to xds and local `istiod` injection installs. name: istiod{{- if .Values.revision }}-{{ .Values.revision}}{{- end }}-remote {{- else }} name: istiod{{- if .Values.revision }}-{{ .Values.revision}}{{- end }} {{- end }} namespace: {{ .Release.Namespace }} labels: {{- if .Values.istiodRemote.enabledLocalInjectorIstiod }} # only primary `istiod` to xds and local `istiod` injection installs. kubernetes.io/service-name: istiod{{- if .Values.revision }}-{{ .Values.revision}}{{- end }}-remote {{- else }} kubernetes.io/service-name: istiod{{- if .Values.revision }}-{{ .Values.revision}}{{- end }} {{- end }} {{- if .Release.Service }} endpointslice.kubernetes.io/managed-by: {{ .Release.Service | quote }} {{- end }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} addressType: {{ if regexMatch "^([0-9]*\\.){3}[0-9]*$" .Values.global.remotePilotAddress }}IPv4{{ else }}IPv6{{ end }} endpoints: - addresses: - {{ .Values.global.remotePilotAddress }} ports: - port: 15012 name: tcp-istiod protocol: TCP - port: 15017 name: tcp-webhook protocol: TCP --- {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_ambassador-pro-auth.yaml {{ if and .Values.pro.enabled .Values.pro.authService.enabled }} {{- if .Values.crds.enabled }} --- apiVersion: getambassador.io/v1 kind: AuthService metadata: name: {{ include "ambassador.fullname" . }}-pro-auth spec: proto: grpc {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} auth_service: 127.0.0.1:{{ .Values.pro.ports.auth }} {{- if .Values.pro.authService.optional_configurations }} {{- toYaml .Values.pro.authService.optional_configurations | nindent 2}} {{- end }} --- apiVersion: getambassador.io/v1 kind: Mapping metadata: name: {{ include "ambassador.fullname" . }}-pro-callback-mapping spec: {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} prefix: /callback service: NoTaReAlSeRvIcE --- apiVersion: getambassador.io/v1 kind: Mapping metadata: name: {{ include "ambassador.fullname" . }}-pro-mapping spec: {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} prefix: /.ambassador/ rewrite: "" service: 127.0.0.1:{{ .Values.pro.ports.auth }} {{- end }} {{ end }} <|endoftext|> # helm_charts_distributor-pvc.yaml {{- if and .Values.distributor.persistence.enabled (not .Values.distributor.persistence.existingClaim) }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ template "distributor.fullname" . }} labels: app: {{ template "distribution.name" . }} chart: {{ template "distribution.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: accessModes: - {{ .Values.distributor.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.distributor.persistence.size }} {{- if .Values.distributor.persistence.storageClass }} {{- if (eq "-" .Values.distributor.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.distributor.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_bookinfo-openshift.yaml apiVersion: release-notes/v2 kind: feature area: documentation docs: - 'https://istio.io/latest/docs/setup/platform-setup/openshift/' releaseNotes: - | **Improved** Bookinfo samples can now be used in OpenShift without the `anyuid` SCC privilege <|endoftext|> # helm_charts_statefulset-slaves.yaml {{- if .Values.replication.enabled }} apiVersion: {{ template "postgresql.statefulset.apiVersion" . }} kind: StatefulSet metadata: name: "{{ template "postgresql.fullname" . }}-slave" labels: app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- with .Values.slave.labels }} {{ toYaml . | indent 4 }} {{- end }} {{- with .Values.slave.annotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} spec: serviceName: {{ template "postgresql.fullname" . }}-headless replicas: {{ .Values.replication.slaveReplicas }} selector: matchLabels: app: {{ template "postgresql.name" . }} release: {{ .Release.Name | quote }} role: slave template: metadata: name: {{ template "postgresql.fullname" . }} labels: app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} role: slave {{- with .Values.slave.podLabels }} {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.slave.podAnnotations }} annotations: {{ toYaml . | indent 8 }} {{- end }} spec: {{- if .Values.schedulerName }} schedulerName: "{{ .Values.schedulerName }}" {{- end }} {{- include "postgresql.imagePullSecrets" . | indent 6 }} {{- if .Values.slave.nodeSelector }} nodeSelector: {{ toYaml .Values.slave.nodeSelector | indent 8 }} {{- end }} {{- if .Values.slave.affinity }} affinity: {{ toYaml .Values.slave.affinity | indent 8 }} {{- end }} {{- if .Values.slave.tolerations }} tolerations: {{ toYaml .Values.slave.tolerations | indent 8 }} {{- end }} {{- if .Values.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- end }} {{- if .Values.securityContext.enabled }} securityContext: fsGroup: {{ .Values.securityContext.fsGroup }} {{- end }} {{- if .Values.serviceAccount.enabled }} serviceAccountName: {{ default (include "postgresql.fullname" . ) .Values.serviceAccount.name}} {{- end }} {{- if or .Values.slave.extraInitContainers (and .Values.volumePermissions.enabled (or .Values.persistence.enabled (and .Values.shmVolume.enabled .Values.shmVolume.chmod.enabled))) }} initContainers: {{- if and .Values.volumePermissions.enabled (or .Values.persistence.enabled (and .Values.shmVolume.enabled .Values.shmVolume.chmod.enabled)) }} - name: init-chmod-data image: {{ template "postgresql.volumePermissions.image" . }} imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} {{- if .Values.resources }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- end }} command: - /bin/sh - -cx - | {{ if .Values.persistence.enabled }} mkdir -p {{ .Values.persistence.mountPath }}/data chmod 700 {{ .Values.persistence.mountPath }}/data find {{ .Values.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | \ {{- if eq ( toString ( .Values.volumePermissions.securityContext.runAsUser )) "auto" }} xargs chown -R `id -u`:`id -G | cut -d " " -f2` {{- else }} xargs chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} {{- end }} {{- end }} {{- if and .Values.shmVolume.enabled .Values.shmVolume.chmod.enabled }} chmod -R 777 /dev/shm {{- end }} {{- if eq ( toString ( .Values.volumePermissions.securityContext.runAsUser )) "auto" }} securityContext: {{- else }} securityContext: runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }} {{- end }} volumeMounts: {{ if .Values.persistence.enabled }} - name: data mountPath: {{ .Values.persistence.mountPath }} subPath: {{ .Values.persistence.subPath }} {{- end }} {{- if .Values.shmVolume.enabled }} - name: dshm mountPath: /dev/shm {{- end }} {{- end }} {{- if .Values.slave.extraInitContainers }} {{ tpl .Values.slave.extraInitContainers . | indent 8 }} {{- end }} {{- end }} {{- if .Values.slave.priorityClassName }} priorityClassName: {{ .Values.slave.priorityClassName }} {{- end }} containers: - name: {{ template "postgresql.fullname" . }} image: {{ template "postgresql.image" . }} imagePullPolicy: "{{ .Values.image.pullPolicy }}" {{- if .Values.resources }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- end }} {{- if .Values.securityContext.enabled }} securityContext: runAsUser: {{ .Values.securityContext.runAsUser }} {{- end }} env: - name: BITNAMI_DEBUG value: {{ ternary "true" "false" .Values.image.debug | quote }} - name: POSTGRESQL_VOLUME_DIR value: "{{ .Values.persistence.mountPath }}" - name: POSTGRESQL_PORT_NUMBER value: "{{ template "postgresql.port" . }}" {{- if .Values.persistence.mountPath }} - name: PGDATA value: {{ .Values.postgresqlDataDir | quote }} {{- end }} - name: POSTGRES_REPLICATION_MODE value: "slave" - name: POSTGRES_REPLICATION_USER value: {{ include "postgresql.replication.username" . | quote }} {{- if .Values.usePasswordFile }} - name: POSTGRES_REPLICATION_PASSWORD_FILE value: "/opt/bitnami/postgresql/secrets/postgresql-replication-password" {{- else }} - name: POSTGRES_REPLICATION_PASSWORD valueFrom: secretKeyRef: name: {{ template "postgresql.secretName" . }} key: postgresql-replication-password {{- end }} - name: POSTGRES_CLUSTER_APP_NAME value: {{ .Values.replication.applicationName }} - name: POSTGRES_MASTER_HOST value: {{ template "postgresql.fullname" . }} - name: POSTGRES_MASTER_PORT_NUMBER value: {{ include "postgresql.port" . | quote }} {{- if and .Values.postgresqlPostgresPassword (not (eq .Values.postgresqlUsername "postgres")) }} {{- if .Values.usePasswordFile }} - name: POSTGRES_POSTGRES_PASSWORD_FILE value: "/opt/bitnami/postgresql/secrets/postgresql-postgres-password" {{- else }} - name: POSTGRES_POSTGRES_PASSWORD valueFrom: secretKeyRef: name: {{ template "postgresql.secretName" . }} key: postgresql-postgres-password {{- end }} {{- end }} {{- if .Values.usePasswordFile }} - name: POSTGRES_PASSWORD_FILE value: "/opt/bitnami/postgresql/secrets/postgresql-password" {{- else }} - name: POSTGRES_PASSWORD valueFrom: secretKeyRef: name: {{ template "postgresql.secretName" . }} key: postgresql-password {{- end }} ports: - name: tcp-postgresql containerPort: {{ template "postgresql.port" . }} {{- if .Values.livenessProbe.enabled }} livenessProbe: exec: command: - /bin/sh - -c {{- if (include "postgresql.database" .) }} - exec pg_isready -U {{ include "postgresql.username" . | quote }} -d {{ (include "postgresql.database" .) | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} {{- else }} - exec pg_isready -U {{ include "postgresql.username" . | quote }} -h 127.0.0.1 -p {{ template "postgresql.port" . }} {{- end }} initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.livenessProbe.successThreshold }} failureThreshold: {{ .Values.livenessProbe.failureThreshold }} {{- end }} {{- if .Values.readinessProbe.enabled }} readinessProbe: exec: command: - /bin/sh - -c - -e {{- include "postgresql.readinessProbeCommand" . | nindent 16 }} initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.readinessProbe.successThreshold }} failureThreshold: {{ .Values.readinessProbe.failureThreshold }} {{- end }} volumeMounts: {{- if .Values.usePasswordFile }} - name: postgresql-password mountPath: /opt/bitnami/postgresql/secrets/ {{- end }} {{- if .Values.shmVolume.enabled }} - name: dshm mountPath: /dev/shm {{- end }} {{- if .Values.persistence.enabled }} - name: data mountPath: {{ .Values.persistence.mountPath }} subPath: {{ .Values.persistence.subPath }} {{ end }} {{- if or (.Files.Glob "files/conf.d/*.conf") .Values.postgresqlExtendedConf .Values.extendedConfConfigMap }} - name: postgresql-extended-config mountPath: /bitnami/postgresql/conf/conf.d/ {{- end }} {{- if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") .Values.postgresqlConfiguration .Values.pgHbaConfiguration .Values.configurationConfigMap }} - name: postgresql-config mountPath: /bitnami/postgresql/conf {{- end }} {{- if .Values.slave.extraVolumeMounts }} {{- toYaml .Values.slave.extraVolumeMounts | nindent 12 }} {{- end }} {{- if .Values.slave.sidecars }} {{- include "postgresql.tplValue" ( dict "value" .Values.slave.sidecars "context" $ ) | nindent 8 }} {{- end }} volumes: {{- if .Values.usePasswordFile }} - name: postgresql-password secret: secretName: {{ template "postgresql.secretName" . }} {{- end }} {{- if or (.Files.Glob "files/postgresql.conf") (.Files.Glob "files/pg_hba.conf") .Values.postgresqlConfiguration .Values.pgHbaConfiguration .Values.configurationConfigMap}} - name: postgresql-config configMap: name: {{ template "postgresql.configurationCM" . }} {{- end }} {{- if or (.Files.Glob "files/conf.d/*.conf") .Values.postgresqlExtendedConf .Values.extendedConfConfigMap }} - name: postgresql-extended-config configMap: name: {{ template "postgresql.extendedConfigurationCM" . }} {{- end }} {{- if .Values.shmVolume.enabled }} - name: dshm emptyDir: medium: Memory sizeLimit: 1Gi {{- end }} {{- if not .Values.persistence.enabled }} - name: data emptyDir: {} {{- end }} {{- if .Values.slave.extraVolumes }} {{- toYaml .Values.slave.extraVolumes | nindent 8 }} {{- end }} updateStrategy: type: {{ .Values.updateStrategy.type }} {{- if (eq "Recreate" .Values.updateStrategy.type) }} rollingUpdate: null {{- end }} {{- if .Values.persistence.enabled }} volumeClaimTemplates: - metadata: name: data {{- with .Values.persistence.annotations }} annotations: {{- range $key, $value := . }} {{ $key }}: {{ $value }} {{- end }} {{- end }} spec: accessModes: {{- range .Values.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{ include "postgresql.storageClass" . }} {{- end }} {{- end }} <|endoftext|> # k8s_docs_deployment-with-configmap-two-containers.yaml apiVersion: apps/v1 kind: Deployment metadata: name: configmap-two-containers labels: app.kubernetes.io/name: configmap-two-containers spec: replicas: 3 selector: matchLabels: app.kubernetes.io/name: configmap-two-containers template: metadata: labels: app.kubernetes.io/name: configmap-two-containers spec: volumes: - name: shared-data emptyDir: {} - name: config-volume configMap: name: color containers: - name: nginx image: nginx volumeMounts: - name: shared-data mountPath: /usr/share/nginx/html - name: alpine image: alpine:3 volumeMounts: - name: shared-data mountPath: /pod-data - name: config-volume mountPath: /etc/config command: - /bin/sh - -c - while true; do echo "$(date) My preferred color is $(cat /etc/config/color)" > /pod-data/index.html; sleep 10; done; <|endoftext|> # argocd_source_smd-service-live.yaml apiVersion: v1 kind: Service metadata: annotations: argocd.argoproj.io/sync-options: ServerSideApply=true kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{"argocd.argoproj.io/sync-options":"ServerSideApply=true"},"name":"multiple-protocol-port-svc","namespace":"default"},"spec":{"ports":[{"name":"rtmpk","port":1986,"protocol":"UDP","targetPort":1986},{"name":"rtmp","port":1935,"targetPort":1935},{"name":"https","port":443,"targetPort":443}]}} creationTimestamp: '2022-06-24T19:37:02Z' labels: app.kubernetes.io/instance: big-crd managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': 'f:argocd.argoproj.io/sync-options': {} 'f:labels': 'f:app.kubernetes.io/instance': {} 'f:spec': 'f:ports': 'k:{"port":1935,"protocol":"TCP"}': .: {} 'f:name': {} 'f:port': {} 'f:targetPort': {} 'k:{"port":1986,"protocol":"UDP"}': .: {} 'f:name': {} 'f:port': {} 'f:protocol': {} 'f:targetPort': {} 'k:{"port":443,"protocol":"TCP"}': .: {} 'f:name': {} 'f:port': {} 'f:targetPort': {} manager: argocd-controller operation: Apply time: '2022-06-24T19:45:02Z' - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': .: {} 'f:argocd.argoproj.io/sync-options': {} 'f:kubectl.kubernetes.io/last-applied-configuration': {} 'f:spec': 'f:internalTrafficPolicy': {} 'f:sessionAffinity': {} 'f:type': {} manager: kubectl-client-side-apply operation: Update time: '2022-06-24T19:37:02Z' name: multiple-protocol-port-svc namespace: default resourceVersion: '1825080' uid: af42e800-bd33-4412-bc77-d204d298613d spec: clusterIP: 10.111.193.74 clusterIPs: - 10.111.193.74 ipFamilies: - IPv4 ipFamilyPolicy: SingleStack ports: - name: rtmpk port: 1986 protocol: UDP targetPort: 1986 - name: rtmp port: 1935 protocol: TCP targetPort: 1935 - name: https port: 443 protocol: TCP targetPort: 443 sessionAffinity: None type: ClusterIP status: loadBalancer: {} <|endoftext|> # helm_charts_cassandra-secret.yaml {{ if and (eq .Values.storage.type "cassandra") .Values.storage.cassandra.usePassword (not .Values.storage.cassandra.existingSecret) -}} apiVersion: v1 kind: Secret metadata: name: {{ include "jaeger.fullname" . }}-cassandra labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} helm.sh/chart: {{ include "jaeger.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} type: Opaque data: password: {{ .Values.storage.cassandra.password | b64enc | quote }} {{- end }} <|endoftext|> # istio_sds-cacert-precedence.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 29856 releaseNotes: - | **Fixed** an issue causing a Secret named `-cacert` to have lower precedence than a Secret named `` for Gateway Mutual TLS. This behavior was accidentally inverted in Istio 1.8; this changes restores the behavior to match Istio 1.7 and earlier. <|endoftext|> # istio_deploymentconfig-with-canonical-service-label.yaml apiVersion: v1 kind: DeploymentConfig metadata: name: hello spec: replicas: 7 template: metadata: labels: app: hello tier: backend track: stable service.istio.io/canonical-name: test-service-name service.istio.io/workload-name: test-workload-name spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 triggers: - type: "ConfigChange" - type: "ImageChange" imageChangeParams: automatic: true containerNames: - "helloworld" from: kind: "ImageStreamTag" name: "hello-go-gke:1.0" strategy: type: "Rolling" paused: false revisionHistoryLimit: 2 minReadySeconds: 0 <|endoftext|> # helm_charts_jmx-configmap.yaml {{- if and .Values.prometheus.jmx.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "schema-registry.fullname" . }}-jmx-configmap labels: app: {{ template "schema-registry.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: jmx-schema-registry-prometheus.yml: |+ jmxUrl: service:jmx:rmi:///jndi/rmi://localhost:{{ .Values.jmx.port }}/jmxrmi lowercaseOutputName: true lowercaseOutputLabelNames: true ssl: false rules: - pattern : 'kafka.schema.registry([^:]+):' name: "kafka_schema_registry_jetty_metrics_$1" - pattern : 'kafka.schema.registry([^:]+):' name: "kafka_schema_registry_master_slave_role" - pattern : 'kafka.schema.registry([^:]+):' name: "kafka_schema_registry_jersey_metrics_$1" {{- end }} <|endoftext|> # k8s_examples_pvc-on-account-hdd.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pv-dd-account-hdd-5g annotations: volume.beta.kubernetes.io/storage-class: accounthdd spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi <|endoftext|> # istio_injected-deployment.yaml {{- $gateway := index .Values "gateways" "istio-egressgateway" }} {{- if ne $gateway.injectionTemplate "" }} {{/* This provides a minimal gateway, ready to be injected. Any settings from values.gateways should be here - these are options specific to the gateway. Global settings, like the image, various env vars and volumes, etc will be injected. The normal Deployment is not suitable for this, as the original pod spec will override the injection template. */}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ $gateway.name | default "istio-egressgateway" }} namespace: {{ .Release.Namespace }} labels: {{ $gateway.labels | toYaml | indent 4 }} release: {{ .Release.Name }} istio.io/rev: {{ .Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "EgressGateways" app.kubernetes.io/name: "istio-egressgateway" {{- include "istio.labels" . | nindent 4 }} spec: {{- if not $gateway.autoscaleEnabled }} {{- if $gateway.replicaCount }} replicas: {{ $gateway.replicaCount }} {{- end }} {{- end }} selector: matchLabels: {{ $gateway.labels | toYaml | indent 6 }} strategy: rollingUpdate: maxSurge: {{ $gateway.rollingMaxSurge }} maxUnavailable: {{ $gateway.rollingMaxUnavailable }} template: metadata: labels: {{ $gateway.labels | toYaml | indent 8 }} {{- if eq .Release.Namespace "istio-system"}} heritage: Tiller release: istio chart: gateways {{- end }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "EgressGateways" sidecar.istio.io/inject: "true" {{- with .Values.revision }} istio.io/rev: {{ . }} {{- end }} service.istio.io/canonical-name: {{ $gateway.name }} service.istio.io/canonical-revision: {{ index $gateway.labels "app.kubernetes.io/version" | default (index $gateway.labels "version") | default .Values.revision | default "latest" | quote }} app.kubernetes.io/name: "istio-egressgateway" {{- include "istio.labels" . | nindent 8 }} annotations: {{- if .Values.meshConfig.enablePrometheusMerge }} prometheus.io/port: "15020" prometheus.io/scrape: "true" prometheus.io/path: "/stats/prometheus" {{- end }} sidecar.istio.io/inject: "true" inject.istio.io/templates: "{{ $gateway.injectionTemplate }}" {{- if $gateway.podAnnotations }} {{ toYaml $gateway.podAnnotations | indent 8 }} {{ end }} spec: {{- if not $gateway.runAsRoot }} securityContext: {{- if not (eq (coalesce .Values.platform .Values.global.platform) "openshift") }} runAsUser: 1337 runAsGroup: 1337 {{- end }} runAsNonRoot: true {{- end }} serviceAccountName: {{ $gateway.name | default "istio-egressgateway" }}-service-account {{- if .Values.global.priorityClassName }} priorityClassName: "{{ .Values.global.priorityClassName }}" {{- end }} containers: - name: istio-proxy image: auto {{- if .Values.global.imagePullPolicy }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} {{- end }} ports: {{- range $key, $val := $gateway.ports }} - containerPort: {{ $val.targetPort | default $val.port }} protocol: {{ $val.protocol | default "TCP" }} {{- end }} - containerPort: 15090 protocol: TCP name: http-envoy-prom {{- if not $gateway.runAsRoot }} securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true {{- end }} resources: {{- if $gateway.resources }} {{ include "istio-egress.resources" $gateway.resources | trim | indent 12 }} {{- else }} {{ include "istio-egress.resources" .Values.global.defaultResources | trim | indent 12 }} {{- end }} env: {{- if not $gateway.runAsRoot }} - name: ISTIO_META_UNPRIVILEGED_POD value: "true" {{- end }} {{- range $key, $val := $gateway.env }} - name: {{ $key }} value: {{ $val | quote }} {{- end }} volumeMounts: {{- range $gateway.secretVolumes }} - name: {{ .name }} mountPath: {{ .mountPath | quote }} readOnly: true {{- end }} {{- range $gateway.configVolumes }} {{- if .mountPath }} - name: {{ .name }} mountPath: {{ .mountPath | quote }} readOnly: true {{- end }} {{- end }} {{- if $gateway.additionalContainers }} {{ toYaml $gateway.additionalContainers | indent 8 }} {{- end }} volumes: {{- range $gateway.secretVolumes }} - name: {{ .name }} secret: secretName: {{ .secretName | quote }} optional: true {{- end }} {{- range $gateway.configVolumes }} - name: {{ .name }} configMap: name: {{ .configMapName | quote }} optional: true {{- end }} affinity: {{ include "nodeaffinity" (dict "global" .Values.global "nodeSelector" $gateway.nodeSelector) | trim | indent 8 }} {{- include "podAntiAffinity" $gateway | indent 6 }} {{- if $gateway.tolerations }} tolerations: {{ toYaml $gateway.tolerations | indent 6 }} {{- else if .Values.global.defaultTolerations }} tolerations: {{ toYaml .Values.global.defaultTolerations | indent 6 }} {{- end }} {{- end }} <|endoftext|> # flux_source_edit.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: flux-edit labels: rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-admin: "true" rules: - apiGroups: - notification.toolkit.fluxcd.io - source.toolkit.fluxcd.io - source.extensions.fluxcd.io - helm.toolkit.fluxcd.io - image.toolkit.fluxcd.io - kustomize.toolkit.fluxcd.io resources: ["*"] verbs: - create - delete - deletecollection - patch - update <|endoftext|> # istio_allow-both-http-tcp-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-deny namespace: foo spec: action: ALLOW rules: - from: - source: requestPrincipals: ["id-1"] to: - operation: methods: ["GET"] - from: - source: namespaces: ["ns-1"] to: - operation: ports: ["8080"] methods: ["GET"] - from: - source: namespaces: ["ns-2"] requestPrincipals: ["id-2"] to: - operation: ports: ["9090"] - from: - source: namespaces: ["ns-1"] to: - operation: ports: ["80"] <|endoftext|> # istio_54959.yaml apiVersion: release-notes/v2 # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: istioctl # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: [54955] # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Fixed** istioctl error preventing installation when `IstioOperator.components.gateways.ingressGateways.label` or `IstioOperator.components.gateways.ingressGateways.label` is ommitted. - | **Fixed** istioctl not using `IstioOperator.components.gateways.ingressGateways.tag` and `IstioOperator.components.gateways.egressGateways.tag` when provided. <|endoftext|> # k8s_docs_pod-resize.yaml apiVersion: v1 kind: Pod metadata: name: resize-demo namespace: qos-example spec: containers: - name: pause image: registry.k8s.io/pause:3.8 resizePolicy: - resourceName: cpu restartPolicy: NotRequired # Default, but explicit here - resourceName: memory restartPolicy: RestartContainer resources: limits: memory: "200Mi" cpu: "700m" requests: memory: "200Mi" cpu: "700m" <|endoftext|> # argocd_source_dependency_not_ready.yaml apiVersion: sql.cnrm.cloud.google.com/v1beta1 kind: SQLInstance metadata: generation: 1 status: observedGeneration: 1 conditions: - lastTransitionTime: '2022-07-01T12:56:21Z' message: Dependency not ready reason: DependencyNotReady status: 'False' type: Ready <|endoftext|> # istio_46584.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 46563 releaseNotes: - | **Fixed** an issue where `istioctl analyze` would analyze irrelevant configmaps. <|endoftext|> # istio_46465.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** Do not include empty IP strings in VIPs (fixes crash when LoadBalancer.Ingress.IP is unset/not present) <|endoftext|> # argocd_source_null-list.yaml apiVersion: v1 kind: ConfigMapList items: --- apiVersion: v1 kind: ServiceAccount metadata: name: prometheus-operator-operator <|endoftext|> # istio_50355.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 50355 releaseNotes: - | **Added** functionality to enroll individual pods into ambient by labelling them with `istio.io/dataplane-mode=ambient` <|endoftext|> # istio_eastwest-labelport.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: eastwestgateway namespace: istio-system labels: topology.istio.io/network: "network-1" networking.istio.io/gatewayPort: "35443" spec: gatewayClassName: istio listeners: - name: istiod-grpc port: 15012 protocol: TLS tls: mode: Passthrough - name: istiod-webhook port: 15017 protocol: TLS tls: mode: Passthrough - name: cross-network hostname: "*.local" port: 35443 protocol: TLS tls: mode: Passthrough --- apiVersion: gateway.networking.k8s.io/v1 kind: TLSRoute metadata: name: eastwestgateway-grpc namespace: istio-system spec: parentRefs: - name: eastwestgateway kind: Gateway sectionName: istiod-grpc hostnames: - "*.example.com" rules: - backendRefs: - name: istiod port: 15012 --- apiVersion: gateway.networking.k8s.io/v1 kind: TLSRoute metadata: name: eastwestgateway-webhook namespace: istio-system spec: parentRefs: - name: eastwestgateway kind: Gateway sectionName: istiod-webhook hostnames: - "*.example.com" rules: - backendRefs: - name: istiod port: 15017 <|endoftext|> # istio_telemetry-native.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Improved** the default telemetry installation to configure `meshConfig.defaultProviders` instead of custom `EnvoyFilter`s when advanced customizations are not used, improving performance. <|endoftext|> # helm_charts_deployments.yaml {{- $workDir := printf "/work" }} {{- $refDir := printf "/ref" }} {{- $keysDir := printf "/keys" }} {{- range $index, $val := $.Values.validators }} {{- $nodeNumber := printf "%03d" $index }} --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: {{ template "burrow.name" $ }} chart: {{ template "burrow.chart" $ }} heritage: {{ $.Release.Service }} release: {{ $.Release.Name }} nodeNumber: {{ $nodeNumber | quote }} name: {{ template "burrow.fullname" $ }}-{{ $nodeNumber }} spec: replicas: 1 selector: matchLabels: app: {{ template "burrow.name" $ }} release: {{ $.Release.Name }} nodeNumber: {{ $nodeNumber | quote }} template: metadata: {{- if (or $.Values.podAnnotations $.Values.config.RPC.Metrics.Enabled) }} annotations: {{- if $.Values.config.RPC.Metrics.Enabled }} prometheus.io/scrape: "true" prometheus.io/port: {{ $.Values.config.RPC.Metrics.ListenPort | quote }} prometheus.io/path: {{ $.Values.config.RPC.Metrics.MetricsPath }} {{- end }} {{- if $.Values.podAnnotations }} {{ toYaml $.Values.podAnnotations | indent 8 }} {{- end }} {{- end }} labels: app: {{ template "burrow.name" $ }} release: {{ $.Release.Name }} nodeNumber: {{ $nodeNumber | quote }} {{- if $.Values.podLabels }} {{ toYaml $.Values.podLabels | indent 8 }} {{- end }} spec: initContainers: - name: init-keys image: busybox imagePullPolicy: IfNotPresent workingDir: {{ $keysDir }} volumeMounts: - name: keys-dir mountPath: {{ $keysDir }} - name: work-dir mountPath: {{ $workDir }} command: - 'sh' - '-xc' - |- mkdir -p {{ $workDir }}/.burrow/config && \ cp node_key.json {{ $workDir }}/.burrow/config/node_key.json && \ chmod 600 {{ $workDir }}/.burrow/config/node_key.json {{- if $.Values.chain.restore.enabled }} - name: retrieve image: appropriate/curl imagePullPolicy: {{ $.Values.image.pullPolicy }} workingDir: {{ $workDir }} command: - curl args: - -o - dumpFile - {{ $.Values.chain.restore.dumpURL }} volumeMounts: - name: work-dir mountPath: {{ $workDir }} - name: restore image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag }}" imagePullPolicy: {{ $.Values.image.pullPolicy }} workingDir: {{ $workDir }} command: - burrow args: - restore - --config - "{{ $refDir }}/burrow.json" - --genesis - "{{ $refDir }}/genesis.json" - --silent - dumpFile - --address - {{ $val.address | quote }} - --moniker - {{ printf "%s-validator-%s" $.Values.organization $nodeNumber | quote }} volumeMounts: - mountPath: {{ $workDir }} name: work-dir - mountPath: {{ $refDir }} name: ref-dir {{- end }} containers: - name: node image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag }}" imagePullPolicy: {{ $.Values.image.pullPolicy }} workingDir: {{ $workDir }} command: - burrow args: - start - --config - "{{ $refDir }}/burrow.json" - --genesis - "{{ $refDir }}/genesis.json" - --address - {{ $val.address | quote }} - --moniker - {{ printf "%s-validator-%s" $.Values.organization $nodeNumber | quote }} {{- if (and $.Values.peer.ingress.enabled (not (eq (len $.Values.peer.ingress.hosts) 0))) }} - --external-address - "{{ $nodeNumber }}.{{ index $.Values.peer.ingress.hosts 0 }}:{{ $.Values.config.Tendermint.ListenPort }}" {{- end }} {{- range $key, $value := $.Values.extraArgs }} - --{{ $key }}={{ $value }} {{- end }} env: {{- include "settings" $ | indent 10 }} volumeMounts: - name: ref-dir mountPath: {{ $refDir }} - name: work-dir mountPath: {{ $workDir }} - name: keys-dir mountPath: {{ $keysDir }}/data - name: keys-dir-names mountPath: {{ $keysDir }}/names ports: - name: peer protocol: TCP containerPort: {{ $.Values.config.Tendermint.ListenPort }} {{- if $.Values.config.RPC.GRPC.Enabled }} - name: grpc protocol: TCP containerPort: {{ $.Values.config.RPC.GRPC.ListenPort }} {{- end }} {{- if $.Values.config.RPC.Info.Enabled }} - name: info protocol: TCP containerPort: {{ $.Values.config.RPC.Info.ListenPort }} {{- end }} {{- if $.Values.config.RPC.Metrics.Enabled }} - name: metrics protocol: TCP containerPort: {{ $.Values.config.RPC.Metrics.ListenPort }} {{- end }} {{- if not $.Values.chain.testing }} {{- if $.Values.livenessProbe.enabled }} livenessProbe: httpGet: path: {{ $.Values.livenessProbe.path }} port: info scheme: HTTP initialDelaySeconds: {{ $.Values.livenessProbe.initialDelaySeconds }} timeoutSeconds: {{ $.Values.livenessProbe.timeoutSeconds }} periodSeconds: {{ $.Values.livenessProbe.periodSeconds }} {{- end }} {{- if $.Values.readinessProbe.enabled }} readinessProbe: httpGet: path: {{ $.Values.readinessProbe.path }} port: info scheme: HTTP initialDelaySeconds: {{ $.Values.readinessProbe.initialDelaySeconds }} {{- end }} {{- end }} {{- if $.Values.resources }} resources: {{ toYaml $.Values.resources | indent 12 }} {{- end }} restartPolicy: Always volumes: - name: ref-dir projected: sources: - configMap: name: {{ template "burrow.fullname" $ }}-config - configMap: name: {{ template "burrow.fullname" $ }}-genesis - name: keys-dir projected: sources: - secret: name: {{ template "burrow.fullname" $ }}-keys-{{ $nodeNumber }} - name: keys-dir-names emptyDir: {} - name: work-dir {{- if $.Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ template "burrow.fullname" $ }}-{{ $nodeNumber }} {{- else }} emptyDir: {} {{- end }} securityContext: fsGroup: 101 runAsUser: 1000 {{- if $.Values.affinity }} affinity: {{ toYaml $.Values.affinity | indent 8 }} {{- end }} {{- if $.Values.nodeSelector }} nodeSelector: {{ toYaml $.Values.nodeSelector | indent 8 }} {{- end }} {{- if $.Values.tolerations }} tolerations: {{ toYaml $.Values.tolerations | indent 8 }} {{- end }} {{- end }} <|endoftext|> # istio_allow-path-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-1 namespace: foo spec: selector: matchLabels: app: httpbin version: v1 rules: - to: - operation: paths: ["/exact", "/prefix/*", "*/suffix", "*", "/path/template/{*}", "/{**}/path/template"] notPaths: ["/not-exact", "/not-prefix/*", "*/not-suffix", "*", "/not-path/template/{*}", "/{**}/not-path/template"] <|endoftext|> # istio_allow-groups-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: groups spec: rules: # Has mix of L4 and L7 in from - from: - source: principals: ["from-mix-principal"] requestPrincipals: ["from-mix-requestPrincipals"] namespaces: ["from-mix-ns"] to: - operation: ports: ["80"] # Has mix of L4 and L7 in to - from: - source: principals: ["to-mix-principal"] namespaces: ["to-mix-ns"] to: - operation: ports: ["80"] methods: ["to-mix-method"] # Only L4 - from: - source: principals: ["only-l4-principals"] namespaces: ["only-l4-ns"] to: - operation: ports: ["80"] # Only L7 - from: - source: requestPrincipals: ["l7-principal"] to: - operation: paths: ["/l7-foo"] methods: ["l7-method"] # L4 and L7 when - when: - key: "source.namespace" values: ["when-l4-l7-ns"] - key: "connection.sni" values: [ "when-l4-l7-sni"] # L4 only when - when: - key: "source.namespace" values: ["when-l4-ns"] - key: "source.ip" values: ["10.10.10.10"] # L7 only when - when: - key: "connection.sni" values: [ "when-l7-sni"] - key: "request.headers[X-header]" values: ["when-l7-header"] <|endoftext|> # helm_charts_stsdiscovery-role.yaml {{- if and .Values.autosharding.enabled .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: stsdiscovery-{{ template "kube-state-metrics.fullname" . }} namespace: {{ template "kube-state-metrics.namespace" . }} labels: app.kubernetes.io/name: {{ template "kube-state-metrics.name" . }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} rules: - apiGroups: - "" resources: - pods verbs: - get - apiGroups: - apps resourceNames: - {{ template "kube-state-metrics.fullname" . }} resources: - statefulsets verbs: - get - list - watch {{- end }} <|endoftext|> # k8s_docs_podsecurity-privileged.yaml apiVersion: v1 kind: Namespace metadata: name: my-privileged-namespace labels: pod-security.kubernetes.io/enforce: privileged pod-security.kubernetes.io/enforce-version: latest <|endoftext|> # istio_egress-rule-google-apis.yaml apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: googleapis spec: hosts: - www.googleapis.com ports: - number: 80 name: http protocol: HTTP - number: 443 name: https protocol: HTTPS resolution: DNS --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: rewrite-port-for-googleapis spec: hosts: - www.googleapis.com http: - match: - port: 80 route: - destination: host: www.googleapis.com port: number: 443 --- apiVersion: networking.istio.io/v1 kind: DestinationRule metadata: name: originate-tls-for-googleapis spec: host: www.googleapis.com trafficPolicy: loadBalancer: simple: ROUND_ROBIN portLevelSettings: - port: number: 443 tls: mode: SIMPLE # initiates HTTPS when accessing www.googleapis.com <|endoftext|> # istio_52631.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: [52631] releaseNotes: - | **Added** logAsJson value to ztunnel helm chart <|endoftext|> # helm_charts_localdata-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "cloudserver.localdata.fullname" . }} labels: app: {{ template "cloudserver.name" . }} chart: {{ template "cloudserver.chart" . }} component: localdata heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: type: ClusterIP ports: - name: localdata port: 9991 protocol: TCP targetPort: localdata selector: app: {{ template "cloudserver.name" . }} component: localdata release: {{ .Release.Name }} <|endoftext|> # k8s_docs_load-balancer-example.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/name: load-balancer-example name: hello-world spec: replicas: 5 selector: matchLabels: app.kubernetes.io/name: load-balancer-example template: metadata: labels: app.kubernetes.io/name: load-balancer-example spec: containers: - image: gcr.io/google-samples/node-hello:1.0 name: hello-world ports: - containerPort: 8080 <|endoftext|> # istio_54930.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 54930 releaseNotes: - | **Added** support `omit_empty_values` for `EnvoyFileAccessLog` provider in Telemetry API. <|endoftext|> # istio_namespace-traffic-distribution.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** namespace-level traffic distribution annotation. Services inherit traffic distribution from namespace annotation when not explicitly set on the service. <|endoftext|> # argocd_examples_queue-master-svc.yaml --- apiVersion: v1 kind: Service metadata: name: queue-master labels: name: queue-master annotations: prometheus.io/path: "/prometheus" spec: ports: # the port that this service should serve on - port: 80 targetPort: 80 selector: name: queue-master <|endoftext|> # grafana_charts_job-tokengen.yaml {{ if .Values.tokengen.enable }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "enterprise-logs.tokengenFullname" . }} labels: {{- include "enterprise-logs.tokengenLabels" . | nindent 4 }} {{- with .Values.tokengen.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- with .Values.tokengen.annotations }} {{- toYaml . | nindent 4 }} {{- end }} "helm.sh/hook": post-install spec: backoffLimit: 6 completions: 1 parallelism: 1 template: metadata: labels: {{- include "enterprise-logs.tokengenSelectorLabels" . | nindent 8 }} {{- with .Values.tokengen.labels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: {{- with .Values.tokengen.annotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if .Values.tokengen.priorityClassName }} priorityClassName: {{ .Values.tokengen.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.tokengen.podSecurityContext | nindent 8 }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} {{- with .Values.tokengen.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: - name: tokengen image: {{ template "enterprise-logs.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} args: - -config.file=/etc/loki/config/config.yaml - -target=tokengen {{- if .Values.minio.enabled }} - -admin.client.backend-type=s3 - -admin.client.s3.endpoint={{ template "enterprise-logs.minio" . }} - -admin.client.s3.bucket-name=enterprise-logs-admin - -admin.client.s3.access-key-id={{ .Values.minio.accessKey }} - -admin.client.s3.secret-access-key={{ .Values.minio.secretKey }} - -admin.client.s3.insecure=true {{- end }} - -tokengen.token-file=/shared/admin-token {{- range $key, $value := .Values.tokengen.extraArgs }} - "-{{ $key }}={{ $value }}" {{- end }} volumeMounts: {{- if .Values.tokengen.extraVolumeMounts }} {{ toYaml .Values.tokengen.extraVolumeMounts | nindent 12 }} {{- end }} - name: shared mountPath: /shared - name: config mountPath: /etc/loki/config - name: license mountPath: /etc/enterprise-logs/license env: {{- if .Values.tokengen.env }} {{ toYaml .Values.tokengen.env | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.tokengen.containerSecurityContext | nindent 12 }} containers: - name: create-secret image: bitnami/kubectl imagePullPolicy: {{ .Values.image.pullPolicy }} command: - /bin/bash - -euc - kubectl create secret generic gel-admin-token --from-file=token=/shared/admin-token --from-literal=grafana-token="$(base64 <(echo :$(cat /shared/admin-token)))" volumeMounts: {{- if .Values.tokengen.extraVolumeMounts }} {{ toYaml .Values.tokengen.extraVolumeMounts | nindent 12 }} {{- end }} - name: shared mountPath: /shared - name: config mountPath: /etc/loki/config - name: license mountPath: /etc/enterprise-logs/license securityContext: {{- toYaml .Values.tokengen.containerSecurityContext | nindent 12 }} restartPolicy: OnFailure serviceAccount: {{ include "loki.serviceAccountName" . }} serviceAccountName: {{ include "loki.serviceAccountName" . }} volumes: - name: config secret: {{- if .Values.useExternalConfig }} secretName: {{ .Values.externalConfigName }} {{- else }} secretName: enterprise-logs-config {{- end }} - name: license secret: {{- if .Values.useExternalLicense }} secretName: {{ .Values.externalLicenseName }} {{- else }} secretName: enterprise-logs-license {{- end }} - name: shared emptyDir: {} {{- if .Values.tokengen.extraVolumes }} {{ toYaml .Values.tokengen.extraVolumes | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # istio_36644.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - https://github.com/istio/istio/issues/36644 releaseNotes: - | **Fixed** an issue where setting `includeInboundPorts` with helm values does not take effect. <|endoftext|> # istio_operator-max-concurrent-reconcile-40810.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - https://github.com/istio/istio/issues/40827 releaseNotes: - | **Added** support for configuring MaxConcurrentReconciles in istio-operator. <|endoftext|> # argocd_source_suspended_helmchart.yaml apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmChart metadata: name: podinfo namespace: default spec: interval: 5m0s chart: podinfo reconcileStrategy: ChartVersion sourceRef: kind: HelmRepository name: podinfo suspend: true version: '5.*' <|endoftext|> # argocd_source_suspended_gitrepository.yaml apiVersion: source.toolkit.fluxcd.io/v1 kind: GitRepository metadata: name: podinfo namespace: default spec: interval: 5m url: https://github.com/stefanprodan/podinfo ref: branch: master suspend: true <|endoftext|> # istio_45413.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 45413 releaseNotes: - | **Fixed** VirtualMachine Workloadentry auto register failed with invalid `istio-locality` label when user specify `istio-locality` in ./etc/istio/pod/labels. <|endoftext|> # k8s_docs_bootstrap-token-secret-base64.yaml apiVersion: v1 kind: Secret metadata: name: bootstrap-token-5emitj namespace: kube-system type: bootstrap.kubernetes.io/token data: auth-extra-groups: c3lzdGVtOmJvb3RzdHJhcHBlcnM6a3ViZWFkbTpkZWZhdWx0LW5vZGUtdG9rZW4= expiration: MjAyMC0wOS0xM1QwNDozOToxMFo= token-id: NWVtaXRq token-secret: a3E0Z2lodnN6emduMXAwcg== usage-bootstrap-authentication: dHJ1ZQ== usage-bootstrap-signing: dHJ1ZQ== <|endoftext|> # helm_charts_pachd_sa.yaml --- kind: ServiceAccount apiVersion: v1 metadata: name: {{ template "fullname" . }} labels: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" suite: {{ template "fullname" . }} <|endoftext|> # istio_fix-cni-ipv6-detection.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 36871 releaseNotes: - | **Fixed** IP family detection when using the CNI to behave the same way as without it. <|endoftext|> # k8s_docs_example-redis-config.yaml apiVersion: v1 kind: ConfigMap metadata: name: example-redis-config data: redis-config: | maxmemory 2mb maxmemory-policy allkeys-lru <|endoftext|> # helm_charts_airflow-serviceaccount.yaml {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "airflow.serviceAccountName" . }} {{- if .Values.serviceAccount.annotations }} annotations: {{- toYaml .Values.serviceAccount.annotations | nindent 4 }} {{- end }} labels: app: {{ include "airflow.labels.app" . }} chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- end }} <|endoftext|> # istio_fix-42598.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 42598 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - |- **Fixed** PortLevelSettings[].Port is nil and then lead to abnormal exit of pilot. <|endoftext|> # istio_53974.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 53931 releaseNotes: - | **Fixed** `istioctl pc secret` performance issue. <|endoftext|> # istio_wasm-invalid.yaml _err: 'spec.match[0].ports[0].number: Required value' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: unset-port spec: match: - ports: - {} --- _err: 'spec.url in body should be at least' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: unset-url spec: url: "" --- _err: 'url must have schema one of' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-url spec: url: "#%blah$#@" --- _err: 'url must have schema one of' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-url-schema spec: url: "fake://example.com" --- _err: 'spec.sha256 in body should match' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-sha256 spec: url: "http://test" sha256: foo --- _err: 'spec.imagePullSecret in body should be at least 1 chars long' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-imagePullSecret spec: url: "http://test" imagePullSecret: "" --- _err: 'spec.pluginName in body should be at least 1 chars long' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-pluginName spec: url: "http://test" pluginName: "" --- _err: 'Duplicate value' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: duplicate-env spec: url: "http://test" vmConfig: env: - name: a - name: a --- _err: 'spec.vmConfig.env[0].name in body should be at least' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-env-name spec: url: "http://test" vmConfig: env: - name: "" --- _err: 'value may only be set when valueFrom is INLINE' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-env-name spec: url: "http://test" vmConfig: env: - name: "test" valueFrom: HOST value: "value" --- _err: 'value may only be set when valueFrom is INLINE' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-env-name spec: url: "http://test" vmConfig: env: - name: "test" valueFrom: HOST value: "value" --- _err: 'spec in body must be of type object: "null"' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: nil spec: --- _err: 'spec.url in body must be of type string: "null"' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: nested-nil spec: url: --- _err: 'wildcard not allowed in label value match' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-selector spec: url: "http://test" selector: matchLabels: istio: "bar*" --- _err: 'wildcard not allowed in label key match' apiVersion: extensions.istio.io/v1alpha1 kind: WasmPlugin metadata: name: invalid-selector spec: url: "http://test" selector: matchLabels: "istio*": "bar" <|endoftext|> # istio_47835-otlp-http-exporter.yaml apiVersion: release-notes/v2 kind: feature area: telemetry # issue is a list of GitHub issues resolved in this note. issue: - https://github.com/istio/istio/issues/47835 docs: - '[reference] https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/#MeshConfig-ExtensionProvider-OpenTelemetryTracingProvider' releaseNotes: - | **Added** option to export OpenTelemetry traces via HTTP <|endoftext|> # argocd_source_cluster-and-git-fasttemplate.yaml # This example demonstrates the combining of the git generator with a cluster generator # The expected output would be an application per git directory and a cluster (application_count = git directory * clusters) # # apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-git spec: generators: - matrix: generators: - git: repoURL: https://github.com/argoproj/argo-cd.git revision: HEAD directories: - path: applicationset/examples/matrix/cluster-addons/* - clusters: selector: matchLabels: argocd.argoproj.io/secret-type: cluster template: metadata: name: '{{path.basename}}-{{name}}' spec: project: '{{metadata.labels.environment}}' source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: '{{path}}' destination: server: '{{server}}' namespace: '{{path.basename}}' <|endoftext|> # argocd_source_git-files-exclude-example.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - git: repoURL: https://github.com/argoproj/argo-cd.git revision: HEAD files: - path: "applicationset/examples/git-generator-files-discovery/cluster-config/**/config.json" - path: "applicationset/examples/git-generator-files-discovery/cluster-config/*/dev/config.json" exclude: true template: metadata: name: '{{.cluster.name}}-guestbook' spec: project: default source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: "applicationset/examples/git-generator-files-discovery/apps/guestbook" destination: server: https://kubernetes.default.svc namespace: guestbook <|endoftext|> # tf_k8s_provider_acceptance_test_kind_daily_mainline.yaml name: Acceptance Tests (kind) on: workflow_dispatch: inputs: kindVersion: description: The kind version default: 0.20.0 runTests: description: The regex passed to the -run option of `go test` default: "^TestAcc" terraformVersion: description: Terraform version default: 1.12.0 parallelRuns: description: The maximum number of tests to run simultaneously default: 8 schedule: - cron: '0 21 * * *' env: KUBECONFIG: ${{ github.workspace }}/.kube/config KIND_VERSION: ${{ github.event.inputs.kindVersion || '0.30.0' }} PARALLEL_RUNS: ${{ github.event.inputs.parallelRuns || '8' }} TERRAFORM_VERSION: ${{ github.event.inputs.terraformVersion || '1.12.0' }} jobs: acceptance_tests_kind: if: ${{ github.repository_owner == 'hashicorp' }} runs-on: custom-linux-large steps: - name: Checkout repository uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - name: Set up Go uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: go-version-file: 'go.mod' - name: Install Terraform From Source run: | git clone https://github.com/hashicorp/terraform.git cd terraform git switch main go build -o terraform mv terraform /usr/bin/terraform - name: Setup kind uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0 with: wait: 2m version: v${{ env.KIND_VERSION }} node_image: kindest/node:v1.34.0@sha256:7416a61b42b1662ca6ca89f02028ac133a309a2a30ba309614e8ec94d976dc5a config: .github/config/acceptance_tests_kind_config.yaml - name: Run Acceptance Test Suite env: KUBE_CONFIG_PATH: ${{ env.KUBECONFIG }} TESTARGS: -run ${{ github.event.inputs.runTests || '^TestAcc' }} # Do not set TF_ACC_TERRAFORM_PATH or TF_ACC_TERRAFORM_VERSION. # In this case, the framework will search for the Terraform CLI binary based on the operating system PATH. # Eventually, it will use the one we set up. # More information: https://developer.hashicorp.com/terraform/plugin/sdkv2/testing/acceptance-tests#terraform-cli-installation-behaviors run: | make testacc make frameworkacc <|endoftext|> # istio_istiod-injector-configmap.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} {{- if not .Values.global.omitSidecarInjectorConfigMap }} apiVersion: v1 kind: ConfigMap metadata: name: istio-sidecar-injector{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} namespace: {{ .Release.Namespace }} labels: istio.io/rev: {{ .Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" release: {{ .Release.Name }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} data: {{/* Scope the values to just top level fields used in the template, to reduce the size. */}} values: |- {{ $vals := pick .Values "global" "sidecarInjectorWebhook" "revision" -}} {{ $pilotVals := pick .Values "cni" "env" -}} {{ $vals = set $vals "pilot" $pilotVals -}} {{ $gatewayVals := pick .Values.gateways "securityContext" "seccompProfile" -}} {{ $vals = set $vals "gateways" $gatewayVals -}} {{ $vals | toPrettyJson | indent 4 }} # To disable injection: use omitSidecarInjectorConfigMap, which disables the webhook patching # and istiod webhook functionality. # # New fields should not use Values - it is a 'primary' config object, users should be able # to fine tune it or use it with kube-inject. config: |- # defaultTemplates defines the default template to use for pods that do not explicitly specify a template {{- if .Values.sidecarInjectorWebhook.defaultTemplates }} defaultTemplates: {{- range .Values.sidecarInjectorWebhook.defaultTemplates}} - {{ . }} {{- end }} {{- else }} defaultTemplates: [sidecar] {{- end }} policy: {{ .Values.global.proxy.autoInject }} alwaysInjectSelector: {{ toYaml .Values.sidecarInjectorWebhook.alwaysInjectSelector | trim | indent 6 }} neverInjectSelector: {{ toYaml .Values.sidecarInjectorWebhook.neverInjectSelector | trim | indent 6 }} injectedAnnotations: {{- range $key, $val := .Values.sidecarInjectorWebhook.injectedAnnotations }} "{{ $key }}": {{ $val | quote }} {{- end }} {{- /* If someone ends up with this new template, but an older Istiod image, they will attempt to render this template which will fail with "Pod injection failed: template: inject:1: function "Istio_1_9_Required_Template_And_Version_Mismatched" not defined". This should make it obvious that their installation is broken. */}} template: {{ `{{ Template_Version_And_Istio_Version_Mismatched_Check_Installation }}` | quote }} templates: {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "sidecar") }} sidecar: | {{ .Files.Get "files/injection-template.yaml" | trim | indent 8 }} {{- end }} {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "gateway") }} gateway: | {{ .Files.Get "files/gateway-injection-template.yaml" | trim | indent 8 }} {{- end }} {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "grpc-simple") }} grpc-simple: | {{ .Files.Get "files/grpc-simple.yaml" | trim | indent 8 }} {{- end }} {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "grpc-agent") }} grpc-agent: | {{ .Files.Get "files/grpc-agent.yaml" | trim | indent 8 }} {{- end }} {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "waypoint") }} waypoint: | {{ .Files.Get "files/waypoint.yaml" | trim | indent 8 }} {{- end }} {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "kube-gateway") }} kube-gateway: | {{ .Files.Get "files/kube-gateway.yaml" | trim | indent 8 }} {{- end }} {{- if not (hasKey .Values.sidecarInjectorWebhook.templates "agentgateway") }} agentgateway: | {{ .Files.Get "files/agentgateway.yaml" | trim | indent 8 }} {{- end }} {{- with .Values.sidecarInjectorWebhook.templates }} {{ toYaml . | trim | indent 6 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_26486.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 26517 releaseNotes: - | **Fixed** Remove unreachable endpoints for non-injected workloads across networks. <|endoftext|> # helm_charts_psp-halyard-rolebinding.yaml {{- if .Values.rbac.pspEnabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ template "spinnaker.fullname" . }}-halyard-psp labels: {{ include "spinnaker.standard-labels" . | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "spinnaker.fullname" . }}-halyard-psp subjects: - kind: ServiceAccount {{- if .Values.serviceAccount.halyardName }} name: {{ .Values.serviceAccount.halyardName }} {{- else }} name: {{ template "spinnaker.fullname" . }}-halyard {{- end }} namespace: {{ .Release.Namespace }} {{- end }} <|endoftext|> # k8s_examples_azure-pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: sample-storage # The label is used for matching the exact claim labels: usage: sample-storage spec: capacity: storage: 10Gi accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain azureFile: # Replace with your secret name secretName: azure-secret # Replace with correct storage share name shareName: k8stest # In case the secret is stored in a different namespace #secretNamespace: default readOnly: false <|endoftext|> # istio_gateway-quic-support.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for creating mirrored QUIC listeners for non-passthrough HTTPS listeners at gateways <|endoftext|> # istio_47997.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 30987 releaseNotes: - | **Added** compression for the Envoy stats endpoint, support `brotli`, `gzip` and `zstd`. <|endoftext|> # k8s_examples_storageos-pvcpod.yaml apiVersion: v1 kind: Pod metadata: labels: name: redis role: master name: test-storageos-redis-pvc spec: containers: - name: master image: kubernetes/redis:v1 env: - name: MASTER value: "true" ports: - containerPort: 6379 resources: limits: cpu: "0.1" volumeMounts: - mountPath: /redis-master-data name: redis-data volumes: - name: redis-data persistentVolumeClaim: claimName: pvc0001 <|endoftext|> # helm_charts_authenticate-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "pomerium.authenticate.fullname" . }} labels: app.kubernetes.io/name: {{ template "pomerium.authenticate.name" . }} helm.sh/chart: {{ template "pomerium.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: authenticate {{- if .Values.service.labels }} {{ toYaml .Values.service.labels | indent 4 }} {{- end }} {{- if or .Values.authenticate.service.annotations .Values.service.annotations }} annotations: {{- if .Values.authenticate.service.annotations }} {{- range $key, $value := .Values.authenticate.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- else if .Values.service.annotations }} {{- range $key, $value := .Values.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} {{- end }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.externalPort }} targetPort: https protocol: TCP name: https - name: metrics port: {{ .Values.metrics.port }} protocol: TCP targetPort: metrics {{- if hasKey .Values.service "nodePort" }} nodePort: {{ .Values.service.nodePort }} {{- end }} selector: app.kubernetes.io/name: {{ template "pomerium.authenticate.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} <|endoftext|> # helm_charts_nginx-deployment.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: {{ template "nginx-lego.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: replicas: {{ .Values.nginx.replicaCount }} template: metadata: labels: app: {{ template "nginx-lego.fullname" . }} spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }}" imagePullPolicy: {{ .Values.nginx.image.pullPolicy }} env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace ports: - containerPort: 80 - containerPort: 443 {{- if .Values.nginx.monitoring }} - containerPort: 8080 {{- end }} resources: {{ toYaml .Values.nginx.resources | indent 10 }} args: - /nginx-ingress-controller - --default-backend-service={{ .Release.Namespace }}/{{ template "nginx-lego.fullname" . }}-default-backend - --nginx-configmap={{ .Release.Namespace }}/{{ template "nginx-lego.fullname" . }} <|endoftext|> # istio_52127.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** netlink error may not be correctly parsed, leading to `istio-cni` not properly ignoring leftover ipset. <|endoftext|> # k8s_docs_deployment-retainkeys.yaml apiVersion: apps/v1 kind: Deployment metadata: name: retainkeys-demo spec: selector: matchLabels: app: nginx strategy: rollingUpdate: maxSurge: 30% template: metadata: labels: app: nginx spec: containers: - name: retainkeys-demo-ctr image: nginx <|endoftext|> # helm_charts_dokuwiki-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "dokuwiki.fullname" . }}-dokuwiki labels: app: {{ template "dokuwiki.name" . }} chart: {{ template "dokuwiki.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: accessModes: - {{ .Values.persistence.dokuwiki.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.dokuwiki.size | quote }} {{ include "dokuwiki.storageClass" . }} {{- end -}} <|endoftext|> # istio_spawn-upstream-span-for-gateway.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Improved** environment variable `PILOT_SPAWN_UPSTREAM_SPAN_FOR_GATEWAY` default value to `true`, enabling the spawning of upstream spans for gateway requests by default. upgradeNodes: - title: enable PILOT_SPAWN_UPSTREAM_SPAN_FOR_GATEWAY by default content: | The environment variable `PILOT_SPAWN_UPSTREAM_SPAN_FOR_GATEWAY` is now set to `true` by default. This change enables the spawning of upstream spans for gateway requests by default, enhancing observability for services behind the gateway, more details could be found [here](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/observability/tracing#different-modes-of-envoy). Users who prefer the previous behavior can explicitly set this variable to `false` in their configuration. <|endoftext|> # istio_39525.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** `x injector list` provides wrong pods information. <|endoftext|> # argocd_source_deploymentSub.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment-sub labels: app: nginx spec: replicas: 0 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.17.4-alpine ports: - containerPort: 80 <|endoftext|> # istio_58889-annotation-validation.yaml apiVersion: release-notes/v2 kind: security-fix area: security issue: - https://github.com/istio/istio/issues/58889 releaseNotes: - | **Fixed** resource annotation validation to reject newlines and control characters that could inject containers into pod specs via template rendering. <|endoftext|> # helm_charts_profile.yaml {{ if .Values.create }} apiVersion: v1 kind: Secret metadata: name: {{ template "profile.profileName" . }}-creds namespace: {{ .Release.Namespace }} labels: {{ include "profile.helmLabels" . | indent 4 }} type: Opaque data: access_key_id: {{ required "Cloud provider API key is required when configuring a profile." .Values.s3.accessKey | b64enc | quote }} secret_access_key: {{ required "Cloud provider API secret is required when configuring a profile." .Values.s3.secretKey | b64enc | quote }} --- apiVersion: cr.kanister.io/v1alpha1 kind: Profile metadata: name: {{ template "profile.profileName" . }} namespace: {{ .Release.Namespace }} labels: {{ include "profile.helmLabels" . | indent 4 }} location: type: s3Compliant s3Compliant: bucket: {{ required "S3 compatible bucket is required when configuring a profile." .Values.s3.bucket | quote }} endpoint: {{ .Values.s3.endpoint | quote }} prefix: {{ .Values.s3.prefix | quote }} region: {{ .Values.s3.region | quote }} credential: type: keyPair keyPair: idField: access_key_id secretField: secret_access_key secret: apiVersion: v1 name: {{ template "profile.profileName" . }}-creds namespace: {{ .Release.Namespace }} skipSSLVerify: {{ not .Values.verifySSL }} {{ end }} <|endoftext|> # istio_29681.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 29681 releaseNotes: - | **Fixed** a bug where DNS agent preview produces malformed DNS responses <|endoftext|> # istio_49511.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue where commands relying on Envoy config dump may not work due to the presence of ECDS config. <|endoftext|> # istio_44424.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 44424 releaseNotes: - | **Updated** the VirtualService validation to fail on empty prefix header matcher. <|endoftext|> # istio_prometheus-scrape.yaml apiVersion: v1 kind: Pod metadata: annotations: prometheus.io/scrape: "false" name: hellopod spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_examples_pvc-on-shared-ssd.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pv-dd-shared-ssd-5g annotations: volume.beta.kubernetes.io/storage-class: sharedssd spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi <|endoftext|> # argocd_source_argocd-redis-ha-server-network-policy.yaml kind: NetworkPolicy apiVersion: networking.k8s.io/v1 metadata: labels: app.kubernetes.io/name: argocd-redis-ha app.kubernetes.io/component: redis app.kubernetes.io/part-of: argocd name: argocd-redis-ha-server-network-policy spec: podSelector: matchLabels: app.kubernetes.io/name: argocd-redis-ha policyTypes: - Ingress - Egress ingress: - from: - podSelector: matchLabels: app.kubernetes.io/name: argocd-redis-ha-haproxy - podSelector: matchLabels: app.kubernetes.io/name: argocd-redis-ha ports: - port: 6379 protocol: TCP - port: 26379 protocol: TCP egress: - to: - podSelector: matchLabels: app.kubernetes.io/name: argocd-redis-ha ports: - port: 6379 protocol: TCP - port: 26379 protocol: TCP - ports: - port: 53 protocol: UDP - port: 53 protocol: TCP <|endoftext|> # istio_istioctl-ps-improvements.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Improved** the `istioctl proxy-status` command. * Each status now includes the time since the last change. * If a proxy is not subscribed to a resource, it will now be shown as `IGNORED` instead of `NOT SENT`. `NOT SENT` continues to be used for resources that are requested, but never sent. * Include a new `ERROR` status when configuration is rejected. <|endoftext|> # k8s_docs_nginx-service.yaml apiVersion: v1 kind: Service metadata: name: nginx-service spec: ports: - port: 8000 # the port that this service should serve on # the container on each pod to connect to, can be a name # (e.g. 'www') or a number (e.g. 80) targetPort: 80 protocol: TCP # just like the selector in the deployment, # but this time it identifies the set of pods to load balance # traffic to. selector: app: nginx <|endoftext|> # kube_prometheus_kubernetesControlPlane-serviceMonitorKubeControllerManager.yaml apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: app.kubernetes.io/component: kubernetes app.kubernetes.io/name: kube-controller-manager app.kubernetes.io/part-of: kube-prometheus name: kube-controller-manager namespace: monitoring spec: endpoints: - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token interval: 30s metricRelabelings: - action: drop regex: kubelet_(pod_worker_latency_microseconds|pod_start_latency_microseconds|cgroup_manager_latency_microseconds|pod_worker_start_latency_microseconds|pleg_relist_latency_microseconds|pleg_relist_interval_microseconds|runtime_operations|runtime_operations_latency_microseconds|runtime_operations_errors|eviction_stats_age_microseconds|device_plugin_registration_count|device_plugin_alloc_latency_microseconds|network_plugin_operations_latency_microseconds) sourceLabels: - __name__ - action: drop regex: scheduler_(e2e_scheduling_latency_microseconds|scheduling_algorithm_predicate_evaluation|scheduling_algorithm_priority_evaluation|scheduling_algorithm_preemption_evaluation|scheduling_algorithm_latency_microseconds|binding_latency_microseconds|scheduling_latency_seconds) sourceLabels: - __name__ - action: drop regex: apiserver_(request_count|request_latencies|request_latencies_summary|dropped_requests|storage_data_key_generation_latencies_microseconds|storage_transformation_failures_total|storage_transformation_latencies_microseconds|proxy_tunnel_sync_latency_secs|longrunning_gauge|registered_watchers|storage_db_total_size_in_bytes|flowcontrol_request_concurrency_limit|flowcontrol_request_concurrency_in_use|storage_objects) sourceLabels: - __name__ - action: drop regex: kubelet_docker_(operations|operations_latency_microseconds|operations_errors|operations_timeout) sourceLabels: - __name__ - action: drop regex: reflector_(items_per_list|items_per_watch|list_duration_seconds|lists_total|short_watches_total|watch_duration_seconds|watches_total) sourceLabels: - __name__ - action: drop regex: etcd_(helper_cache_hit_count|helper_cache_miss_count|helper_cache_entry_count|object_counts|request_cache_get_latencies_summary|request_cache_add_latencies_summary|request_latencies_summary) sourceLabels: - __name__ - action: drop regex: transformation_(transformation_latencies_microseconds|failures_total) sourceLabels: - __name__ - action: drop regex: (admission_quota_controller_adds|admission_quota_controller_depth|admission_quota_controller_longest_running_processor_microseconds|admission_quota_controller_queue_latency|admission_quota_controller_unfinished_work_seconds|admission_quota_controller_work_duration|APIServiceOpenAPIAggregationControllerQueue1_adds|APIServiceOpenAPIAggregationControllerQueue1_depth|APIServiceOpenAPIAggregationControllerQueue1_longest_running_processor_microseconds|APIServiceOpenAPIAggregationControllerQueue1_queue_latency|APIServiceOpenAPIAggregationControllerQueue1_retries|APIServiceOpenAPIAggregationControllerQueue1_unfinished_work_seconds|APIServiceOpenAPIAggregationControllerQueue1_work_duration|APIServiceRegistrationController_adds|APIServiceRegistrationController_depth|APIServiceRegistrationController_longest_running_processor_microseconds|APIServiceRegistrationController_queue_latency|APIServiceRegistrationController_retries|APIServiceRegistrationController_unfinished_work_seconds|APIServiceRegistrationController_work_duration|autoregister_adds|autoregister_depth|autoregister_longest_running_processor_microseconds|autoregister_queue_latency|autoregister_retries|autoregister_unfinished_work_seconds|autoregister_work_duration|AvailableConditionController_adds|AvailableConditionController_depth|AvailableConditionController_longest_running_processor_microseconds|AvailableConditionController_queue_latency|AvailableConditionController_retries|AvailableConditionController_unfinished_work_seconds|AvailableConditionController_work_duration|crd_autoregistration_controller_adds|crd_autoregistration_controller_depth|crd_autoregistration_controller_longest_running_processor_microseconds|crd_autoregistration_controller_queue_latency|crd_autoregistration_controller_retries|crd_autoregistration_controller_unfinished_work_seconds|crd_autoregistration_controller_work_duration|crdEstablishing_adds|crdEstablishing_depth|crdEstablishing_longest_running_processor_microseconds|crdEstablishing_queue_latency|crdEstablishing_retries|crdEstablishing_unfinished_work_seconds|crdEstablishing_work_duration|crd_finalizer_adds|crd_finalizer_depth|crd_finalizer_longest_running_processor_microseconds|crd_finalizer_queue_latency|crd_finalizer_retries|crd_finalizer_unfinished_work_seconds|crd_finalizer_work_duration|crd_naming_condition_controller_adds|crd_naming_condition_controller_depth|crd_naming_condition_controller_longest_running_processor_microseconds|crd_naming_condition_controller_queue_latency|crd_naming_condition_controller_retries|crd_naming_condition_controller_unfinished_work_seconds|crd_naming_condition_controller_work_duration|crd_openapi_controller_adds|crd_openapi_controller_depth|crd_openapi_controller_longest_running_processor_microseconds|crd_openapi_controller_queue_latency|crd_openapi_controller_retries|crd_openapi_controller_unfinished_work_seconds|crd_openapi_controller_work_duration|DiscoveryController_adds|DiscoveryController_depth|DiscoveryController_longest_running_processor_microseconds|DiscoveryController_queue_latency|DiscoveryController_retries|DiscoveryController_unfinished_work_seconds|DiscoveryController_work_duration|kubeproxy_sync_proxy_rules_latency_microseconds|non_structural_schema_condition_controller_adds|non_structural_schema_condition_controller_depth|non_structural_schema_condition_controller_longest_running_processor_microseconds|non_structural_schema_condition_controller_queue_latency|non_structural_schema_condition_controller_retries|non_structural_schema_condition_controller_unfinished_work_seconds|non_structural_schema_condition_controller_work_duration|rest_client_request_latency_seconds|storage_operation_errors_total|storage_operation_status_count) sourceLabels: - __name__ - action: drop regex: etcd_(debugging|disk|request|server).* sourceLabels: - __name__ port: https-metrics scheme: https tlsConfig: insecureSkipVerify: true - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token interval: 5s metricRelabelings: - action: drop regex: process_start_time_seconds sourceLabels: - __name__ path: /metrics/slis port: https-metrics scheme: https tlsConfig: insecureSkipVerify: true jobLabel: app.kubernetes.io/name namespaceSelector: matchNames: - kube-system selector: matchLabels: app.kubernetes.io/name: kube-controller-manager <|endoftext|> # k8s_docs_example-baseline-pod.yaml apiVersion: v1 kind: Pod metadata: name: nginx spec: containers: - image: nginx name: nginx ports: - containerPort: 80 <|endoftext|> # istio_46901.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 43312 releaseNotes: - | **Fixed** an issue where the installation process continued even if a resource failed to be applied, causing unexpected behavior. <|endoftext|> # istio_33359.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 21517 releaseNotes: - | **Added** `istioctl proxy-config bootstrap` now has a short output option (`-o short`) that shows an Istio and Envoy version summary. <|endoftext|> # helm_charts_omsagent-deployment.yaml {{- if and (ne .Values.omsagent.secret.key "") (ne .Values.omsagent.secret.wsid "") (or (ne .Values.omsagent.env.clusterName "") (ne .Values.omsagent.env.clusterId ""))}} apiVersion: apps/v1 kind: Deployment metadata: name: omsagent-rs namespace: kube-system labels: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: oms-agent tier: node spec: replicas: 1 selector: matchLabels: rsName: "omsagent-rs" strategy: type: RollingUpdate template: metadata: labels: rsName: "omsagent-rs" annotations: agentVersion: {{ .Values.omsagent.image.tag }} dockerProviderVersion: {{ .Values.omsagent.image.dockerProviderVersion }} schema-versions: "v1" spec: {{- if .Values.omsagent.rbac }} serviceAccountName: omsagent {{- end }} containers: - name: omsagent {{- if eq (.Values.omsagent.domain | lower) "opinsights.azure.cn" }} image: "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:{{ .Values.omsagent.image.tag }}" {{- else }} image: {{ printf "%s:%s" .Values.omsagent.image.repo .Values.omsagent.image.tag }} {{- end }} imagePullPolicy: IfNotPresent resources: {{ toYaml .Values.omsagent.resources.deployment | indent 9 }} env: {{- if ne .Values.omsagent.env.clusterId "" }} - name: AKS_RESOURCE_ID value: {{ .Values.omsagent.env.clusterId | quote }} {{- if ne .Values.omsagent.env.clusterRegion "" }} - name: AKS_REGION value: {{ .Values.omsagent.env.clusterRegion | quote }} {{- end }} {{- else }} - name: ACS_RESOURCE_NAME value: {{ .Values.omsagent.env.clusterName | quote }} {{- end }} - name: CONTROLLER_TYPE value: "ReplicaSet" - name: NODE_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: USER_ASSIGNED_IDENTITY_CLIENT_ID value: "" securityContext: privileged: true ports: - containerPort: 25225 protocol: TCP - containerPort: 25224 protocol: UDP - containerPort: 25227 protocol: TCP name: in-rs-tcp volumeMounts: - mountPath: /var/run/host name: docker-sock - mountPath: /var/log name: host-log - mountPath: /var/lib/docker/containers name: containerlog-path - mountPath: /etc/kubernetes/host name: azure-json-path - mountPath: /etc/omsagent-secret name: omsagent-secret readOnly: true - mountPath : /etc/config name: omsagent-rs-config - mountPath: /etc/config/settings name: settings-vol-config readOnly: true {{- if .Values.omsagent.logsettings.custommountpath }} - mountPath: {{ .Values.omsagent.logsettings.custommountpath }} name: custom-mount-path {{- end }} - mountPath: /etc/config/settings/adx name: omsagent-adx-secret readOnly: true livenessProbe: exec: command: - /bin/bash - -c - "/opt/livenessprobe.sh" initialDelaySeconds: 60 periodSeconds: 60 {{- with .Values.omsagent.deployment.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.omsagent.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: docker-sock hostPath: path: /var/run - name: container-hostname hostPath: path: /etc/hostname - name: host-log hostPath: path: /var/log - name: containerlog-path hostPath: path: /var/lib/docker/containers - name: azure-json-path hostPath: path: /etc/kubernetes - name: omsagent-secret secret: secretName: omsagent-secret - name: omsagent-rs-config configMap: name: omsagent-rs-config - name: settings-vol-config configMap: name: container-azm-ms-agentconfig optional: true {{- if .Values.omsagent.logsettings.custommountpath }} - name: custom-mount-path hostPath: path: {{ .Values.omsagent.logsettings.custommountpath }} {{- end }} - name: omsagent-adx-secret secret: secretName: omsagent-adx-secret optional: true {{- end }} <|endoftext|> # istio_trafficextension.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** `TrafficExtension` API to the extensions package, enabling first-class support for Lua extensibility. <|endoftext|> # istio_47081.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 47081 releaseNotes: - | **Fixed** an issue where auto allocation is allocation incorrect ips. <|endoftext|> # istio_59078.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 59078 releaseNotes: - | **Fixed** error wrapping in file-based config store to use `%w` verb, enabling proper error chain propagation with `errors.Is()` and `errors.As()`. <|endoftext|> # istio_move-istio_cni-to-pilot-values.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 49290 releaseNotes: - | **Improved** helm value field names to configure whether an existing CNI install will be used. Instead of values.istio_cni the enablement fields will be in values.pilot.cni as istiod is the affected component. That is clearer than having values.cni for install config and values.istio_cni for enablement in istiod. The old values.istio_cni fields will still be supported for at least two releases. <|endoftext|> # istio_external-name.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issues: - 37331 releaseNotes: - | **Improved** support for `ExternalName` services. See Upgrade Notes for more information upgradeNotes: - title: "Upcoming `ExternalName` support changes" content: | Below describes *upcoming* changes to `ExternalName`. In this release, there is no behavioral changes by default. However, you can explicitly opt-in to the new behavior early if desired, and prepare your environments for the upcoming change. Kubernetes `ExternalName` `Service`s allow users to create new DNS entries. For example, you can create an `example` service that points to `example.com`. This is implemented by a DNS `CNAME` redirect. In Istio, the implementation of `ExternalName`, historically, was substantially different. Each `ExternalName` represented its own service, and traffic matching the service was sent to the configured DNS name. This caused a few issues: * Ports are required in Istio, but not in Kubernetes. This can result in broken traffic if ports are not configured as Istio expects, despite them working without Istio. * Ports not declared as `HTTP` would match *all* traffic on that port, making it easy to accidentally send all traffic on a port to the wrong place. * Because the destination DNS name is treated as opaque, we cannot apply Istio policies to it as expected. For example, if I point an external name at another in-cluster Service (for example, `example.default.svc.cluster.local`), mTLS would not be used. `ExternalName` support has been revamped to fix these problems. `ExternalName`s are now simply treated as aliases. Wherever we would match `Host: ` we additionally will match `Host: `. Note that the primary implementation of `ExternalName` -- DNS -- is handled outside of Istio in the Kubernetes DNS implementation, and remains unchanged. If you are using `ExternalName` with Istio, please be advised of the following behavioral changes: * The `ports` field is no longer needed, matching Kubernetes behavior. If it is set, it will have no impact. * `VirtualServices` that match on an `ExternalName` service will generally no longer match. Instead, the match should be rewritten to the referenced service. * `DestinationRule` can no longer apply to `ExternalName` services. Instead, create rules where the `host` references service. These changes are off-by-default in this release, but will be on-by-default in the near future. To opt-in early, the `ENABLE_EXTERNAL_NAME_ALIAS=true` environment variable can be set. <|endoftext|> # k8s_docs_dual-stack-ipfamilies-ipv6.yaml apiVersion: v1 kind: Service metadata: name: my-service labels: app: MyApp spec: ipFamilies: - IPv6 selector: app: MyApp ports: - protocol: TCP port: 80 <|endoftext|> # argocd_source_smd-deploy-live.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: '1' creationTimestamp: '2022-09-18T23:50:25Z' generation: 1 labels: app: missing applications.argoproj.io/app-name: nginx something-else: bla managedFields: - apiVersion: apps/v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:labels': 'f:app': {} 'f:applications.argoproj.io/app-name': {} 'f:something-else': {} 'f:spec': 'f:replicas': {} 'f:selector': {} 'f:template': 'f:metadata': 'f:labels': 'f:app': {} 'f:applications.argoproj.io/app-name': {} 'f:spec': 'f:containers': 'k:{"name":"nginx"}': .: {} 'f:image': {} 'f:imagePullPolicy': {} 'f:livenessProbe': 'f:exec': 'f:command': {} 'f:initialDelaySeconds': {} 'f:periodSeconds': {} 'f:name': {} 'f:ports': 'k:{"containerPort":80,"protocol":"TCP"}': .: {} 'f:containerPort': {} manager: argocd-controller operation: Apply time: '2022-09-18T23:50:25Z' - apiVersion: apps/v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': .: {} 'f:deployment.kubernetes.io/revision': {} 'f:status': 'f:availableReplicas': {} 'f:conditions': .: {} 'k:{"type":"Available"}': .: {} 'f:lastTransitionTime': {} 'f:lastUpdateTime': {} 'f:message': {} 'f:reason': {} 'f:status': {} 'f:type': {} 'k:{"type":"Progressing"}': .: {} 'f:lastTransitionTime': {} 'f:lastUpdateTime': {} 'f:message': {} 'f:reason': {} 'f:status': {} 'f:type': {} 'f:observedGeneration': {} 'f:readyReplicas': {} 'f:replicas': {} 'f:updatedReplicas': {} manager: kube-controller-manager operation: Update subresource: status time: '2022-09-23T18:30:59Z' name: nginx-deployment namespace: default resourceVersion: '7492752' uid: 731f7434-d3d9-47fa-b179-d9368a84f7c9 spec: progressDeadlineSeconds: 600 replicas: 2 revisionHistoryLimit: 10 selector: matchLabels: app: nginx strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: app: nginx applications.argoproj.io/app-name: nginx spec: containers: - image: 'nginx:1.23.1' imagePullPolicy: Never livenessProbe: exec: command: - cat - non-existent-file failureThreshold: 3 initialDelaySeconds: 5 periodSeconds: 180 successThreshold: 1 timeoutSeconds: 1 name: nginx ports: - containerPort: 80 protocol: TCP resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: availableReplicas: 2 conditions: - lastTransitionTime: '2022-09-18T23:50:25Z' lastUpdateTime: '2022-09-18T23:50:26Z' message: ReplicaSet "nginx-deployment-6d68ff5f86" has successfully progressed. reason: NewReplicaSetAvailable status: 'True' type: Progressing - lastTransitionTime: '2022-09-23T18:30:59Z' lastUpdateTime: '2022-09-23T18:30:59Z' message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: 'True' type: Available observedGeneration: 1 readyReplicas: 2 replicas: 2 updatedReplicas: 2 <|endoftext|> # helm_charts_test-config.yaml {{- if .Values.chain.testing }} kind: ConfigMap apiVersion: v1 metadata: labels: app: {{ template "burrow.name" . }} chart: {{ template "burrow.chart" $ }} heritage: {{ $.Release.Service }} release: {{ $.Release.Name }} name: {{ template "burrow.fullname" . }}-genesis data: genesis.json: | {"GenesisTime":"2018-12-20T09:43:49.505674605Z","ChainName":"agreements.network","Params":{"ProposalThreshold":3},"GlobalPermissions":{"Base":{"Perms":"send | call | createContract | createAccount | bond | name | proposal | input | batch | hasBase | hasRole","SetBit":"root | send | call | createContract | createAccount | bond | name | proposal | input | batch | hasBase | setBase | unsetBase | setGlobal | hasRole | addRole | removeRole"}},"Accounts":[{"Address":"744630EA9A7CBD310AE7B8EDAFCBF94E54D23F37","PublicKey":{"CurveType":"ed25519","PublicKey":"D0FCF06BC69C9A046D7249CDDBE5CC287349C8EB7C160A58680D807CB849BC7A"},"Amount":9999999999,"Name":"Validator_0","Permissions":{"Base":{"Perms":"bond","SetBit":"bond"}}},{"Address":"2C1B7046183387E63C17898235D3C0FDE4943BC7","PublicKey":{"CurveType":"ed25519","PublicKey":"7630B56CD8CAB7E2181EA4ADB4288466F035A0F74710E1E8E7EE4E4101C43BF0"},"Amount":9999999999,"Name":"Validator_1","Permissions":{"Base":{"Perms":"bond","SetBit":"bond"}}},{"Address":"C5291CE95749A2DE1D992946B683280D75EDBE8C","PublicKey":{"CurveType":"ed25519","PublicKey":"8912F216635661071EF50019D5AF6CA4AF878BF5216AE2582AD39D7F644A3AAB"},"Amount":9999999999,"Name":"Validator_2","Permissions":{"Base":{"Perms":"bond","SetBit":"bond"}}},{"Address":"A5BCAF761B774A61FADA691AB40C4E9A20D82B7B","PublicKey":{"CurveType":"ed25519","PublicKey":"E005A1D989A98B6A7910DA06A3942158676C83A057C98A08A9B5285E8E960A8B"},"Amount":9999999999,"Name":"Validator_3","Permissions":{"Base":{"Perms":"bond","SetBit":"bond"}}}],"Validators":[{"Address":"744630EA9A7CBD310AE7B8EDAFCBF94E54D23F37","PublicKey":{"CurveType":"ed25519","PublicKey":"D0FCF06BC69C9A046D7249CDDBE5CC287349C8EB7C160A58680D807CB849BC7A"},"Amount":9999999998,"NodeAddress":"9367CCE15205DC38DA61F5B348AF2AFEED2FE77A","Name":"Validator_0","UnbondTo":[{"Address":"744630EA9A7CBD310AE7B8EDAFCBF94E54D23F37","PublicKey":{"CurveType":"ed25519","PublicKey":"D0FCF06BC69C9A046D7249CDDBE5CC287349C8EB7C160A58680D807CB849BC7A"},"Amount":9999999998}]},{"Address":"2C1B7046183387E63C17898235D3C0FDE4943BC7","PublicKey":{"CurveType":"ed25519","PublicKey":"7630B56CD8CAB7E2181EA4ADB4288466F035A0F74710E1E8E7EE4E4101C43BF0"},"Amount":9999999998,"NodeAddress":"5B624373E8EE692ACDAF408F5B8E0831E78FEC50","Name":"Validator_1","UnbondTo":[{"Address":"2C1B7046183387E63C17898235D3C0FDE4943BC7","PublicKey":{"CurveType":"ed25519","PublicKey":"7630B56CD8CAB7E2181EA4ADB4288466F035A0F74710E1E8E7EE4E4101C43BF0"},"Amount":9999999998}]},{"Address":"C5291CE95749A2DE1D992946B683280D75EDBE8C","PublicKey":{"CurveType":"ed25519","PublicKey":"8912F216635661071EF50019D5AF6CA4AF878BF5216AE2582AD39D7F644A3AAB"},"Amount":9999999998,"NodeAddress":"C13AEAC6523429A1ED244255D2BBAA7CB4AB7CB4","Name":"Validator_2","UnbondTo":[{"Address":"C5291CE95749A2DE1D992946B683280D75EDBE8C","PublicKey":{"CurveType":"ed25519","PublicKey":"8912F216635661071EF50019D5AF6CA4AF878BF5216AE2582AD39D7F644A3AAB"},"Amount":9999999998}]},{"Address":"A5BCAF761B774A61FADA691AB40C4E9A20D82B7B","PublicKey":{"CurveType":"ed25519","PublicKey":"E005A1D989A98B6A7910DA06A3942158676C83A057C98A08A9B5285E8E960A8B"},"Amount":9999999998,"NodeAddress":"A85AE5C27FEDEFA57F425B7762A1BB5CCA095E64","Name":"Validator_3","UnbondTo":[{"Address":"A5BCAF761B774A61FADA691AB40C4E9A20D82B7B","PublicKey":{"CurveType":"ed25519","PublicKey":"E005A1D989A98B6A7910DA06A3942158676C83A057C98A08A9B5285E8E960A8B"},"Amount":9999999998}]}]} {{- end }} <|endoftext|> # k8s_examples_pvc-on-dedicated-hdd.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pv-dd-dedicated-hdd-5g annotations: volume.beta.kubernetes.io/storage-class: dedicatedhdd spec: accessModes: - ReadWriteOnce resources: requests: storage: 5Gi <|endoftext|> # grafana_charts_service-query-scheduler.yaml {{- if .Values.queryScheduler.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "loki.querySchedulerFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.querySchedulerLabels" . | nindent 4 }} {{- with .Values.queryScheduler.serviceLabels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.loki.serviceAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: ClusterIP clusterIP: None publishNotReadyAddresses: true ports: - name: http port: 3100 targetPort: http protocol: TCP - name: grpclb port: 9095 targetPort: grpc protocol: TCP {{- with .Values.queryScheduler.appProtocol.grpc }} appProtocol: {{ . }} {{- end }} selector: {{- include "loki.querySchedulerSelectorLabels" . | nindent 4 }} {{- end }} <|endoftext|> # helm_source_index.yaml apiVersion: v1 entries: nginx: - urls: - https://charts.helm.sh/stable/nginx-0.1.0.tgz name: nginx description: string version: 0.1.0 home: https://github.com/something digest: "sha256:1234567890abcdef" keywords: - popular - web server - proxy - urls: - https://charts.helm.sh/stable/nginx-0.2.0.tgz name: nginx description: string version: 0.2.0 home: https://github.com/something/else digest: "sha256:1234567890abcdef" keywords: - popular - web server - proxy alpine: - urls: - https://charts.helm.sh/stable/alpine-1.0.0.tgz - http://storage2.googleapis.com/kubernetes-charts/alpine-1.0.0.tgz name: alpine description: string version: 1.0.0 home: https://github.com/something keywords: - linux - alpine - small - sumtin digest: "sha256:1234567890abcdef" <|endoftext|> # istio_31853.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: releaseNotes: - | **Added** metrics for istiod informer errors. <|endoftext|> # k8s_examples_zeppelin-controller.yaml kind: ReplicationController apiVersion: v1 metadata: name: zeppelin-controller spec: replicas: 1 selector: component: zeppelin template: metadata: labels: component: zeppelin spec: containers: - name: zeppelin image: registry.k8s.io/zeppelin:v0.5.6_v1 ports: - containerPort: 8080 resources: requests: cpu: 100m <|endoftext|> # istio_34129.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 34129 releaseNotes: - | **Fixed** Gateway API xRoute does not forward the traffic to that backend when weight `0`. <|endoftext|> # istio_58032.yaml apiVersion: release-notes/v2 kind: bug-fix area: extensibility issue: [] releaseNotes: - | **Fixed** for waypoint, the envoyfilter with targetRef kind: GatewayClass with group: gateway.networking.k8s.io in the root namespace doesn't work. <|endoftext|> # helm_charts_default-backend-hpa.yaml {{- if .Values.defaultBackend.autoscaling.enabled }} apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.defaultBackend.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "nginx-ingress.defaultBackend.fullname" . }} spec: scaleTargetRef: apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment name: {{ template "nginx-ingress.defaultBackend.fullname" . }} minReplicas: {{ .Values.defaultBackend.autoscaling.minReplicas }} maxReplicas: {{ .Values.defaultBackend.autoscaling.maxReplicas }} metrics: {{- with .Values.defaultBackend.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu targetAverageUtilization: {{ . }} {{- end }} {{- with .Values.defaultBackend.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory targetAverageUtilization: {{ . }} {{- end }} {{- end }} <|endoftext|> # helm_charts_hub-deployment.yaml apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "selenium.hub.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: replicas: 1 selector: matchLabels: app: {{ template "selenium.hub.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.hub.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.hub.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.hub.podAnnotations }} annotations: {{ toYaml .Values.hub.podAnnotations | indent 8 }} {{- end}} spec: {{- if .Values.hub.securityContext }} securityContext: {{ toYaml .Values.hub.securityContext | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.hub.image }}:{{ .Values.hub.tag }}" imagePullPolicy: {{ .Values.hub.pullPolicy }} ports: {{- if .Values.hub.jmxPort }} - containerPort: {{ .Values.hub.jmxPort }} name: jmx protocol: TCP {{- end }} - containerPort: {{ .Values.hub.port }} name: http livenessProbe: httpGet: path: {{ .Values.hub.probePath }} port: {{ .Values.hub.port }} initialDelaySeconds: 30 periodSeconds: 5 timeoutSeconds: {{ .Values.hub.livenessTimeout }} readinessProbe: httpGet: path: {{ .Values.hub.probePath }} port: {{ .Values.hub.port }} initialDelaySeconds: {{ .Values.hub.readinessDelay }} timeoutSeconds: {{ .Values.hub.readinessTimeout }} env: - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.hub.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.hub.seOpts | quote }} {{- if .Values.hub.gridNewSessionWaitTimeout }} - name: GRID_NEW_SESSION_WAIT_TIMEOUT value: {{ .Values.hub.gridNewSessionWaitTimeout | quote }} {{- end }} {{- if .Values.hub.gridJettyMaxThreads }} - name: GRID_JETTY_MAX_THREADS value: {{ .Values.hub.gridJettyMaxThreads | quote }} {{- end }} {{- if .Values.hub.gridNodePolling }} - name: GRID_NODE_POLLING value: {{ .Values.hub.gridNodePolling | quote }} {{- end }} {{- if .Values.hub.gridCleanUpCycle }} - name: GRID_CLEAN_UP_CYCLE value: {{ .Values.hub.gridCleanUpCycle | quote }} {{- end }} {{- if .Values.hub.gridTimeout }} - name: GRID_TIMEOUT value: {{ .Values.hub.gridTimeout | quote }} {{- end }} {{- if .Values.hub.gridBrowserTimeout }} - name: GRID_BROWSER_TIMEOUT value: {{ .Values.hub.gridBrowserTimeout | quote }} {{- end }} {{- if .Values.hub.gridMaxSession }} - name: GRID_MAX_SESSION value: {{ .Values.hub.gridMaxSession | quote }} {{- end }} {{- if .Values.hub.gridUnregisterIfStillDownAfter }} - name: GRID_UNREGISTER_IF_STILL_DOWN_AFTER value: {{ .Values.hub.gridUnregisterIfStillDownAfter | quote }} {{- end }} {{- if .Values.hub.timeZone }} - name: TZ value: {{ .Values.hub.timeZone | quote }} {{- end }} {{- if .Values.hub.port }} - name: GRID_HUB_PORT value: {{ .Values.hub.port | quote }} {{- end }} {{- if .Values.hub.extraEnvs }} {{ toYaml .Values.hub.extraEnvs | indent 12 }} {{- end }} resources: {{ toYaml .Values.hub.resources | trim | indent 12 -}} {{- if or .Values.global.imagePullSecrets .Values.hub.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.hub.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} nodeSelector: {{- if .Values.hub.nodeSelector }} {{ toYaml .Values.hub.nodeSelector | trim | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | trim | indent 8 }} {{- end }} affinity: {{- if .Values.hub.affinity }} {{ toYaml .Values.hub.affinity | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | indent 8 }} {{- end }} tolerations: {{- if .Values.hub.tolerations }} {{ toYaml .Values.hub.tolerations | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | indent 8 }} {{- end }} <|endoftext|> # istio_33879.yaml apiVersion: release-notes/v2 kind: feature area: installation # issue is a list of GitHub issues resolved in this note. issue: - https://github.com/istio/istio/issues/33879 releaseNotes: - | **Added** labels on pod level for istio-operator and istiod. <|endoftext|> # istio_workload-entry-service-select.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Added** `PILOT_ENABLE_K8S_SELECT_WORKLOAD_ENTRIES` feature back to Istio which was removed in 1.14. Will persist until usecase is clarified and more permanent API added. <|endoftext|> # istio_56854.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support specifying proxy admin port for `istioctl experimental describe`. <|endoftext|> # helm_charts_elasticsearch-pvc.yaml {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ template "elasticsearch.fullname" . }} labels: app: {{ template "elasticsearch.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{- if .Values.persistence.storageClass }} {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_empty.yaml # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: proxy-service-instance spec: hosts: - example.com ports: - number: 80 name: http protocol: HTTP - number: 7070 name: tcp protocol: TCP - number: 443 name: https protocol: HTTPS - number: 9090 name: auto protocol: "" resolution: STATIC location: MESH_INTERNAL endpoints: - address: 1.1.1.1 labels: security.istio.io/tlsMode: istio --- # Set up .Services number of services. Each will have 4 ports (one for each protocol) {{- range $i := until .Services }} apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-{{$i}} spec: hosts: - random-{{$i}}.host.example addresses: - 127.0.0.{{$i}} ports: - number: 80 name: http protocol: HTTP - number: 7070 name: tcp protocol: TCP - number: 443 name: https protocol: HTTPS - number: 9090 name: auto resolution: STATIC location: MESH_INTERNAL endpoints: - address: 1.2.3.4 labels: security.istio.io/tlsMode: istio --- {{- end }} <|endoftext|> # k8s_examples_portworx-volume-pod.yaml apiVersion: v1 kind: Pod metadata: name: test-portworx-volume-pod spec: containers: - image: registry.k8s.io/test-webserver name: test-container volumeMounts: - mountPath: /test-portworx-volume name: test-volume volumes: - name: test-volume # This Portworx volume must already exist. portworxVolume: volumeID: "vol1" <|endoftext|> # cert_manager_rbac.yaml apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "example-webhook.fullname" . }} labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} --- # Grant the webhook permission to read the ConfigMap containing the Kubernetes # apiserver's requestheader-ca-certificate. # This ConfigMap is automatically created by the Kubernetes apiserver. apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "example-webhook.fullname" . }}:webhook-authentication-reader namespace: kube-system labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ include "example-webhook.fullname" . }}:webhook-authentication-reader subjects: - apiGroup: "" kind: ServiceAccount name: {{ include "example-webhook.fullname" . }} namespace: {{ .Release.Namespace }} --- # Once we no longer have to support Kubernetes versions lower than 1.17, we # can remove this custom defined Role in favour of the system-provisioned # extension-apiserver-authentication-reader Role resource in kube-system. # See https://github.com/kubernetes/kubernetes/issues/86359 for more details. apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "example-webhook.fullname" . }}:webhook-authentication-reader namespace: kube-system rules: - apiGroups: - "" resourceNames: - extension-apiserver-authentication resources: - configmaps verbs: - get - list - watch --- # apiserver gets the auth-delegator role to delegate auth decisions to # the core apiserver apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "example-webhook.fullname" . }}:auth-delegator labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - apiGroup: "" kind: ServiceAccount name: {{ include "example-webhook.fullname" . }} namespace: {{ .Release.Namespace }} --- # Grant cert-manager permission to validate using our apiserver apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ include "example-webhook.fullname" . }}:domain-solver labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} rules: - apiGroups: - {{ .Values.groupName }} resources: - '*' verbs: - 'create' --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "example-webhook.fullname" . }}:domain-solver labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ include "example-webhook.fullname" . }}:domain-solver subjects: - apiGroup: "" kind: ServiceAccount name: {{ .Values.certManager.serviceAccountName }} namespace: {{ .Values.certManager.namespace }} <|endoftext|> # istio_validation-warning.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 27179 releaseNotes: - | **Added** support for warnings to the validation webhook, allowing deprecated feature usage to be reported. This is only supported in Kubernetes 1.19+. <|endoftext|> # helm_charts_consul-ingress.yaml {{- if .Values.uiIngress.enabled -}} {{- $releaseName := .Release.Name -}} {{- $servicePort := .Values.HttpPort -}} {{- $serviceName := include "consul.fullname" . -}} {{- $serviceHost := .Values.uiIngress.path }} apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: {{- range $key, $value := .Values.uiIngress.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" {{- range $key, $value := .Values.uiIngress.labels }} {{ $key }}: {{ $value | quote }} {{- end }} name: "{{ template "consul.fullname" . }}-ui" spec: rules: {{- range .Values.uiIngress.hosts }} - host: {{ . }} http: paths: - backend: serviceName: {{ $serviceName }} servicePort: {{ $servicePort }} {{- if $serviceHost }} path: {{ $serviceHost }} {{- end }} {{- end -}} {{- if .Values.uiIngress.tls }} tls: {{ toYaml .Values.uiIngress.tls | indent 4 }} {{- end -}} {{- end }} <|endoftext|> # k8s_examples_es-discovery-svc.yaml apiVersion: v1 kind: Service metadata: name: elasticsearch-discovery labels: component: elasticsearch role: master spec: selector: component: elasticsearch role: master ports: - name: transport port: 9300 protocol: TCP <|endoftext|> # istio_sni-dnat-default.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 27749 releaseNotes: - | **Updated** the default installation of gateways to not configure clusters for `AUTO_PASSTHROUGH`, reducing memory costs. upgradeNotes: - title: "`AUTO_PASSTHROUGH` Gateway mode" content: | Previously, gateways were configured with multiple Envoy `cluster` configurations for each Service in the cluster, even those not referenced by any Gateway or VirtualService. This was added to support the `AUTO_PASSTHROUGH` mode on Gateway, generally used for exposing Services across networks. However, this came at an increased CPU and memory cost in the gateway and Istiod. As a result, we have disabled these by default on the `istio-ingressgateway` and `istio-egressgateway`. If you are relying on this feature for multi-network support, please ensure you apply one of the following changes: 1. Follow our new [Multicluster Installation](/docs/setup/install/multicluster/) documentation. This documentation will guide you through running a dedicate gateway deployment for this type of traffic (generally referred to as the `eastwest-gateway`). This `eastwest-gateway` will automatically be configured to support `AUTO_PASSTHROUGH`. 1. Modify your installation of the gateway deployment to include this configuration. This is controlled by the `ISTIO_META_ROUTER_MODE` environment variable. Setting this to `sni-dnat` enables these clusters, while `standard` (the new default) disables them. {{< text yaml >}} ingressGateways: - name: istio-ingressgateway enabled: true k8s: env: - name: ISTIO_META_ROUTER_MODE value: "sni-dnat" {{< /text >}} <|endoftext|> # kube_prometheus_grafana-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: grafana app.kubernetes.io/name: grafana app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 12.4.2 name: grafana namespace: monitoring spec: ports: - name: http port: 3000 targetPort: http selector: app.kubernetes.io/component: grafana app.kubernetes.io/name: grafana app.kubernetes.io/part-of: kube-prometheus <|endoftext|> # k8s_examples_persistent-volume-label-initializer-config.yaml kind: InitializerConfiguration apiVersion: admissionregistration.k8s.io/v1alpha1 metadata: name: pvlabel.kubernetes.io initializers: - name: pvlabel.kubernetes.io rules: - apiGroups: - "" apiVersions: - "*" resources: - persistentvolumes <|endoftext|> # istio_43060.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 41457 releaseNotes: - | **Added** `--profiling` flag to allow enabling or disabling profiling on pilot-agent status port. <|endoftext|> # cert_manager_crd-cert-manager.io_certificaterequests.yaml {{- if or .Values.crds.enabled .Values.installCRDs }} apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: "certificaterequests.cert-manager.io" {{- if .Values.crds.keep }} annotations: helm.sh/resource-policy: keep {{- end }} labels: {{- include "cert-manager.crd-labels" . | nindent 4 }} spec: group: cert-manager.io names: categories: - cert-manager kind: CertificateRequest listKind: CertificateRequestList plural: certificaterequests shortNames: - cr - crs singular: certificaterequest scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.conditions[?(@.type == "Approved")].status name: Approved type: string - jsonPath: .status.conditions[?(@.type == "Denied")].status name: Denied type: string - jsonPath: .status.conditions[?(@.type == "Ready")].status name: Ready type: string - jsonPath: .spec.issuerRef.name name: Issuer type: string - jsonPath: .spec.username name: Requester type: string - jsonPath: .status.conditions[?(@.type == "Ready")].message name: Status priority: 1 type: string - description: CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. jsonPath: .metadata.creationTimestamp name: Age type: date name: v1 schema: openAPIV3Schema: description: |- A CertificateRequest is used to request a signed certificate from one of the configured issuers. All fields within the CertificateRequest's `spec` are immutable after creation. A CertificateRequest will either succeed or fail, as denoted by its `Ready` status condition and its `status.failureTime` field. A CertificateRequest is a one-shot resource, meaning it represents a single point in time request for a certificate and cannot be re-used. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: description: |- Specification of the desired state of the CertificateRequest resource. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status properties: duration: description: |- Requested 'duration' (i.e. lifetime) of the Certificate. Note that the issuer may choose to ignore the requested duration, just like any other requested attribute. type: string extra: additionalProperties: items: type: string type: array description: |- Extra contains extra attributes of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. type: object groups: description: |- Groups contains group membership of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. items: type: string type: array x-kubernetes-list-type: atomic isCA: description: |- Requested basic constraints isCA value. Note that the issuer may choose to ignore the requested isCA value, just like any other requested attribute. NOTE: If the CSR in the `Request` field has a BasicConstraints extension, it must have the same isCA value as specified here. If true, this will automatically add the `cert sign` usage to the list of requested `usages`. type: boolean issuerRef: description: |- Reference to the issuer responsible for issuing the certificate. If the issuer is namespace-scoped, it must be in the same namespace as the Certificate. If the issuer is cluster-scoped, it can be used from any namespace. The `name` field of the reference must always be specified. properties: group: description: |- Group of the issuer being referred to. Defaults to 'cert-manager.io'. type: string kind: description: |- Kind of the issuer being referred to. Defaults to 'Issuer'. type: string name: description: Name of the issuer being referred to. type: string required: - name type: object request: description: |- The PEM-encoded X.509 certificate signing request to be submitted to the issuer for signing. If the CSR has a BasicConstraints extension, its isCA attribute must match the `isCA` value of this CertificateRequest. If the CSR has a KeyUsage extension, its key usages must match the key usages in the `usages` field of this CertificateRequest. If the CSR has a ExtKeyUsage extension, its extended key usages must match the extended key usages in the `usages` field of this CertificateRequest. format: byte type: string uid: description: |- UID contains the uid of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. type: string usages: description: |- Requested key usages and extended key usages. NOTE: If the CSR in the `Request` field has uses the KeyUsage or ExtKeyUsage extension, these extensions must have the same values as specified here without any additional values. If unset, defaults to `digital signature` and `key encipherment`. items: description: |- KeyUsage specifies valid usage contexts for keys. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 Valid KeyUsage values are as follows: "signing", "digital signature", "content commitment", "key encipherment", "key agreement", "data encipherment", "cert sign", "crl sign", "encipher only", "decipher only", "any", "server auth", "client auth", "code signing", "email protection", "s/mime", "ipsec end system", "ipsec tunnel", "ipsec user", "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" enum: - signing - digital signature - content commitment - key encipherment - key agreement - data encipherment - cert sign - crl sign - encipher only - decipher only - any - server auth - client auth - code signing - email protection - s/mime - ipsec end system - ipsec tunnel - ipsec user - timestamping - ocsp signing - microsoft sgc - netscape sgc type: string type: array x-kubernetes-list-type: atomic username: description: |- Username contains the name of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. type: string required: - issuerRef - request type: object status: description: |- Status of the CertificateRequest. This is set and managed automatically. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status properties: ca: description: |- The PEM encoded X.509 certificate of the signer, also known as the CA (Certificate Authority). This is set on a best-effort basis by different issuers. If not set, the CA is assumed to be unknown/not available. format: byte type: string certificate: description: |- The PEM encoded X.509 certificate resulting from the certificate signing request. If not set, the CertificateRequest has either not been completed or has failed. More information on failure can be found by checking the `conditions` field. format: byte type: string conditions: description: |- List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`, `InvalidRequest`, `Approved` and `Denied`. items: description: CertificateRequestCondition contains condition information for a CertificateRequest. properties: lastTransitionTime: description: |- LastTransitionTime is the timestamp corresponding to the last status change of this condition. format: date-time type: string message: description: |- Message is a human readable description of the details of the last transition, complementing reason. type: string reason: description: |- Reason is a brief machine readable explanation for the condition's last transition. type: string status: description: Status of the condition, one of (`True`, `False`, `Unknown`). enum: - "True" - "False" - Unknown type: string type: description: |- Type of the condition, known values are (`Ready`, `InvalidRequest`, `Approved`, `Denied`). type: string required: - status - type type: object type: array x-kubernetes-list-map-keys: - type x-kubernetes-list-type: map failureTime: description: |- FailureTime stores the time that this CertificateRequest failed. This is used to influence garbage collection and back-off. format: date-time type: string type: object type: object selectableFields: - jsonPath: .spec.issuerRef.group - jsonPath: .spec.issuerRef.kind - jsonPath: .spec.issuerRef.name served: true storage: true subresources: status: {} {{- end }} <|endoftext|> # helm_charts_meta-service.yaml {{ if .Values.enterprise.enabled -}} apiVersion: v1 kind: Service metadata: {{- if .Values.service.annotations }} annotations: {{ toYaml .Values.service.annotations | indent 4 }} {{- end }} name: {{ include "influxdb.fullname" . }}-meta labels: {{- include "influxdb.labels" . | nindent 4 }} app.kubernets.io/component: meta spec: type: ClusterIP clusterIP: None # publishNotReadyAddresses is used for service discovery of meta and data nodes by querying the service's SRV record. publishNotReadyAddresses: true ports: - name: meta port: {{ .Values.config.meta.bind_address | default 8091 }} targetPort: meta selector: {{- include "influxdb.selectorLabels" . | nindent 4 }} app.kubernets.io/component: meta {{- end }} <|endoftext|> # istio_ingressgateway_k8s_settings.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: pilot: enabled: false ingressGateways: - namespace: istio-system name: istio-ingressgateway enabled: true k8s: service: externalTrafficPolicy: Local serviceAnnotations: manifest-generate: "testserviceAnnotation" securityContext: sysctls: - name: "net.ipv4.ip_local_port_range" value: "80 65535" - namespace: istio-system name: istio-ingressgateway-custom enabled: true k8s: service: externalTrafficPolicy: Local <|endoftext|> # istio_east-west-ambient.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: eastwestgateway namespace: istio-system labels: topology.istio.io/network: "network-1" spec: gatewayClassName: istio-east-west listeners: - name: mesh port: 15008 protocol: HBONE tls: mode: Terminate # represents double-HBONE options: gateway.istio.io/tls-terminate-mode: ISTIO_MUTUAL --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: invalid namespace: istio-system labels: topology.istio.io/network: "network-1" spec: gatewayClassName: istio-east-west listeners: - name: mesh port: 15008 protocol: HBONE # No TLS mode terminate --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: with-tls-passthrough namespace: istio-system labels: topology.istio.io/network: "network-1" spec: gatewayClassName: istio-east-west listeners: - name: mesh port: 15008 protocol: HBONE tls: mode: Terminate options: gateway.istio.io/tls-terminate-mode: ISTIO_MUTUAL - name: tls-passthrough port: 6443 protocol: TLS tls: mode: Passthrough <|endoftext|> # helm_charts_secret-connections.yaml {{- if not .Values.scheduler.existingSecretConnections }} {{- if .Values.scheduler.connections }} apiVersion: v1 kind: Secret metadata: name: {{ include "airflow.fullname" . }}-connections labels: app: {{ include "airflow.labels.app" . }} chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque stringData: add-connections.sh: | #!/usr/bin/env bash {{- range .Values.scheduler.connections }} {{- if $.Values.scheduler.refreshConnections }} airflow connections --delete --conn_id {{ .id }} {{- end }} airflow connections --add --conn_id {{ .id }} {{- if .type }} --conn_type {{ .type | quote }} {{ end -}} {{- if .uri }} --conn_uri {{ .uri | quote }} {{ end -}} {{- if .host }} --conn_host {{ .host | quote }} {{ end -}} {{- if .login }} --conn_login {{ .login | quote }} {{ end -}} {{- if .password }} --conn_password {{ .password | quote }} {{ end -}} {{- if .schema }} --conn_schema {{ .schema | quote }} {{ end -}} {{- if .port }} --conn_port {{ .port }} {{ end -}} {{- if .extra }} --conn_extra {{ ( regexReplaceAll "[\r\n]+" .extra "" ) | quote }} {{ end -}} {{- end }} {{- end }} {{- end }} <|endoftext|> # argocd_source_argocd-notifications-cm.yaml apiVersion: v1 kind: ConfigMap metadata: name: argocd-notifications-cm data: # Triggers define the condition when the notification should be sent and list of templates required to generate the message # Recipients can subscribe to the trigger and specify the required message template and destination notification service. trigger.on-sync-status-unknown: | - when: app.status.sync.status == 'Unknown' send: [my-custom-template] # Optional 'oncePer' property ensure that notification is sent only once per specified field value # E.g. following is triggered once per sync revision trigger.on-deployed: | - when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy' oncePer: app.status.sync.revision send: [app-sync-succeeded] # Templates are used to generate the notification template message template.my-custom-template: | message: | Application details: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}. # Templates might have notification service specific fields. E.g. slack message might include annotations template.my-custom-template-slack-template: | message: | Application {{.app.metadata.name}} sync is {{.app.status.sync.status}}. Application details: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}. email: subject: Application {{.app.metadata.name}} sync status is {{.app.status.sync.status}} slack: attachments: | [{ "title": "{{.app.metadata.name}}", "title_link": "{{.context.argocdUrl}}/applications/{{.app.metadata.name}}", "color": "#18be52" }] # Holds list of triggers that are used by default if trigger is not specified explicitly in the subscription defaultTriggers: | - on-sync-status-unknown # Notification services are used to deliver message. # Service definition might reference values from argocd-notifications-secret Secret using $my-key format # Service format key is: service.. # Slack service.slack: | token: $slack-token username: # optional username icon: # optional icon for the message (supports both emoij and url notation) # Slack based notifier with name mattermost service.slack.mattermost: | apiURL: https://my-mattermost-url.com/api token: $slack-token username: # optional username icon: # optional icon for the message (supports both emoij and url notation) # Email service.email: | host: smtp.gmail.com port: 587 from: @gmail.com username: $email-username password: $email-password # Opsgenie service.opsgenie: | apiUrl: api.opsgenie.com apiKeys: $opsgenie-team-id: $opsgenie-team-api-key ... # Telegram service.telegram: | token: $telegram-token # Context holds list of variables that can be referenced in templates context: | argocdUrl: https://cd.apps.argoproj.io/ # Contains centrally managed global application subscriptions subscriptions: | # subscription for on-sync-status-unknown trigger notifications - recipients: - slack:test2 - email:test@gmail.com triggers: - on-sync-status-unknown # subscription restricted to applications with matching labels only - recipients: - slack:test3 selector: test=true triggers: - on-sync-status-unknown <|endoftext|> # istio_drop-reload-sidecar-ignore-port.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the `SIDECAR_IGNORE_PORT_IN_HOST_MATCH` feature flag. <|endoftext|> # helm_charts_mongodb-service-client.yaml {{- if .Values.clientService.enabled -}} # An optional headless service for client applications to use apiVersion: v1 kind: Service metadata: annotations: {{- if .Values.serviceAnnotations }} {{ toYaml .Values.serviceAnnotations | indent 4 }} {{- end }} labels: app: {{ template "mongodb-replicaset.name" . }} chart: {{ template "mongodb-replicaset.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 4 }} {{- end }} name: {{ template "mongodb-replicaset.fullname" . }}-client namespace: {{ template "mongodb-replicaset.namespace" . }} spec: type: ClusterIP clusterIP: None ports: - name: mongodb port: {{ .Values.port }} {{- if .Values.metrics.enabled }} - name: metrics port: {{ .Values.metrics.port }} targetPort: metrics {{- end }} selector: app: {{ template "mongodb-replicaset.name" . }} release: {{ .Release.Name }} {{- end -}} <|endoftext|> # istio_manual-ip.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: default template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none service.istio.io/canonical-name: default service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc. - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: ISTIO_META_POD_PORTS value: '[]' - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: default - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/default - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: test/proxyv2:test name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: default-istio volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - emptyDir: medium: Memory name: istio-envoy - emptyDir: {} name: istio-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: istio-token --- apiVersion: v1 kind: Service metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: null spec: ipFamilyPolicy: PreferDualStack loadBalancerIP: 1.2.3.4 ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: default type: LoadBalancer --- <|endoftext|> # grafana_charts_servicemonitor-compactor.yaml {{- if .Values.compactor.enabled }} {{- with .Values.serviceMonitor }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "loki.compactorFullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "loki.compactorLabels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 4 }} {{- end }} selector: matchLabels: {{- include "loki.compactorSelectorLabels" $ | nindent 6 }} {{- with .matchExpressions }} matchExpressions: {{- toYaml . | nindent 6 }} {{- end }} endpoints: - port: http {{- with .interval }} interval: {{ . }} {{- end }} {{- with .scrapeTimeout }} scrapeTimeout: {{ . }} {{- end }} {{- with .relabelings }} relabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .metricRelabelings }} metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .scheme }} scheme: {{ . }} {{- end }} {{- with .tlsConfig }} tlsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .targetLabels }} targetLabels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_worker-serviceaccount.yaml {{- if .Values.worker.enabled -}} {{- if .Values.rbac.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "concourse.worker.fullname" . }} labels: app: {{ template "concourse.worker.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- end -}} {{- end }} <|endoftext|> # helm_charts_sentinel-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "stolon.fullname" . }}-sentinel labels: app: {{ template "stolon.name" . }} chart: {{ template "stolon.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.sentinel.replicaCount }} selector: matchLabels: app: {{ template "stolon.name" . }} release: {{ .Release.Name }} component: stolon-sentinel template: metadata: labels: app: {{ template "stolon.name" . }} release: {{ .Release.Name }} component: stolon-sentinel stolon-cluster: {{ template "stolon.fullname" . }} annotations: checksum/config: {{ include (print .Template.BasePath "/hooks/update-cluster-spec-job.yaml") . | sha256sum }} {{- with .Values.sentinel.annotations }} {{ toYaml . | indent 8 }} {{- end }} spec: {{- if .Values.sentinel.priorityClassName }} priorityClassName: "{{ .Values.sentinel.priorityClassName }}" {{- end }} serviceAccountName: {{ template "stolon.serviceAccountName" . }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{ toYaml .Values.image.pullSecrets | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - "/bin/bash" - "-ec" - | exec gosu stolon stolon-sentinel env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: STSENTINEL_CLUSTER_NAME value: {{ template "stolon.clusterName" . }} - name: STSENTINEL_STORE_BACKEND value: {{ .Values.store.backend | quote}} {{- if eq .Values.store.backend "kubernetes" }} - name: STSENTINEL_KUBE_RESOURCE_KIND value: {{ .Values.store.kubeResourceKind | quote}} {{- else }} - name: STSENTINEL_STORE_ENDPOINTS value: {{ .Values.store.endpoints | quote}} {{- end }} - name: STSENTINEL_METRICS_LISTEN_ADDRESS value: "0.0.0.0:{{ .Values.ports.metrics.containerPort }}" - name: STSENTINEL_DEBUG value: {{ .Values.debug | quote}} {{- if .Values.sentinel.extraEnv }} {{ toYaml .Values.sentinel.extraEnv | indent 12 }} {{- end }} ports: {{- range $key, $value := .Values.ports }} - name: {{ $key }} {{ toYaml $value | indent 14 }} {{- end }} resources: {{ toYaml .Values.sentinel.resources | indent 12 }} {{- with .Values.sentinel.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.sentinel.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.sentinel.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # istio_istiod-cluster-metric.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Added** a new metric (`istiod_managed_clusters`) to `istiod` to track the number of clusters managed by an `istiod` instance. <|endoftext|> # k8s_docs_dual-stack-preferred-svc.yaml apiVersion: v1 kind: Service metadata: name: my-service labels: app: MyApp spec: ipFamilyPolicy: PreferDualStack selector: app: MyApp ports: - protocol: TCP port: 80 <|endoftext|> # istio_48466.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 48105 releaseNotes: - | **Added** message IST0167 to warn users that policies, such as Sidecar, will have no impact when applied to ambient namespaces. <|endoftext|> # helm_charts_secret.registry.yaml {{- range $name, $cred := dict "db" (.Values.image.credentials) "init-certs" (.Values.tls.init.image.credentials) }} {{- if not (empty $cred) }} {{- if or (and (eq $name "init-certs") $.Values.tls.enabled) (ne $name "init-certs") }} --- kind: Secret apiVersion: v1 metadata: name: {{ template "cockroachdb.fullname" $ }}.{{ $name }}.registry namespace: {{ $.Release.Namespace | quote }} labels: helm.sh/chart: {{ template "cockroachdb.chart" $ }} app.kubernetes.io/name: {{ template "cockroachdb.name" $ }} app.kubernetes.io/instance: {{ $.Release.Name | quote }} app.kubernetes.io/managed-by: {{ $.Release.Service | quote }} {{- with $.Values.labels }} {{- toYaml . | nindent 4 }} {{- end }} type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: {{ printf `{"auths":{%s:{"auth":"%s"}}}` ($cred.registry | quote) (printf "%s:%s" $cred.username $cred.password | b64enc) | b64enc | quote }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_operator-drop-diff.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Removed** `istioctl manifest diff` and `istioctl manifest profile diff` commands. Users looking to compare manifest can use generic YAML comparison tools. <|endoftext|> # istio_preserve-http1-header-case.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - https://github.com/istio/istio/issues/53680 releaseNotes: - | **Added** support to preserve the original case of HTTP/1.x headers. <|endoftext|> # istio_52519.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 52519 releaseNotes: - | **Fixed** DestinationRules on same host but with different ExportTo can behave inconsistently, so stop merging the destinationRules when the exportTo attributes are totally different. If you want to toggle this behavior, you can set the `ENABLE_ENHANCED_DESTINATIONRULE_MERGE` environment variable to `false` in the pilot deployment. <|endoftext|> # helm_charts_client-auth.yaml {{- if and ( .Values.client.ingress.user ) ( .Values.client.ingress.password ) }} --- apiVersion: v1 kind: Secret metadata: name: '{{ include "elasticsearch.client.fullname" . }}-auth' type: Opaque data: auth: {{ printf "%s:{PLAIN}%s\n" .Values.client.ingress.user .Values.client.ingress.password | b64enc | quote }} {{- end }} <|endoftext|> # k8s_examples_pod-uses-existing-managed-disk.yaml kind: Pod apiVersion: v1 metadata: name: pod-uses-managed-ssd-5g labels: name: storage spec: containers: - image: nginx name: az-c-01 command: - /bin/sh - -c - while true; do echo $(date) >> /mnt/managed/outfile; sleep 1; done volumeMounts: - name: managed01 mountPath: /mnt/managed volumes: - name: managed01 azureDisk: kind: Managed diskName: myDisk diskURI: /subscriptions//resourceGroups//providers/Microsoft.Compute/disks/ <|endoftext|> # k8s_docs_quota-vac.yaml apiVersion: v1 kind: ResourceQuota metadata: name: pvcs-gold spec: hard: requests.storage: "10Gi" persistentvolumeclaims: "10" scopeSelector: matchExpressions: - operator: In scopeName: VolumeAttributesClass values: ["gold"] --- apiVersion: v1 kind: ResourceQuota metadata: name: pvcs-silver spec: hard: requests.storage: "20Gi" persistentvolumeclaims: "10" scopeSelector: matchExpressions: - operator: In scopeName: VolumeAttributesClass values: ["silver"] --- apiVersion: v1 kind: ResourceQuota metadata: name: pvcs-copper spec: hard: requests.storage: "30Gi" persistentvolumeclaims: "10" scopeSelector: matchExpressions: - operator: In scopeName: VolumeAttributesClass values: ["copper"] <|endoftext|> # istio_wasm-https-insecure-support.yaml apiVersion: release-notes/v2 kind: feature area: extensibility issue: [] releaseNotes: - | **Added** WASM_INSECURE_REGISTRIES environment variable of istio-agent is also honored when the WasmPlugin is pointing http/https server. <|endoftext|> # k8s_docs_image-matches-namespace-environment.policy.yaml # This policy enforces that all containers of a deployment has the image repo match the environment label of its namespace. # Except for "exempt" deployments, or any containers that do not belong to the "example.com" organization (e.g. common sidecars). # For example, if the namespace has a label of {"environment": "staging"}, all container images must be either staging.example.com/* # or do not contain "example.com" at all, unless the deployment has {"exempt": "true"} label. apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: name: "image-matches-namespace-environment.policy.example.com" spec: failurePolicy: Fail matchConstraints: resourceRules: - apiGroups: ["apps"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["deployments"] variables: - name: environment expression: "'environment' in namespaceObject.metadata.labels ? namespaceObject.metadata.labels['environment'] : 'prod'" - name: exempt expression: "'exempt' in object.metadata.labels && object.metadata.labels['exempt'] == 'true'" - name: containers expression: "object.spec.template.spec.containers" - name: containersToCheck expression: "variables.containers.filter(c, c.image.contains('example.com/'))" validations: - expression: "variables.exempt || variables.containersToCheck.all(c, c.image.startsWith(variables.environment + '.'))" messageExpression: "'only ' + variables.environment + ' images are allowed in namespace ' + namespaceObject.metadata.name" <|endoftext|> # kustomize_fn-config.yaml # Copyright 2019 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 apiVersion: examples.config.kubernetes.io/v1beta1 kind: CreateApp metadata: annotations: config.kubernetes.io/function: | container: image: gcr.io/kustomize-functions/create-application:v0.1.0 spec: managedBy: jingfang name: example-app namespace: example-namespace <|endoftext|> # k8s_docs_redis-pod.yaml apiVersion: v1 kind: Pod metadata: name: redis-master labels: app: redis spec: containers: - name: master image: redis env: - name: MASTER value: "true" ports: - containerPort: 6379 <|endoftext|> # argocd_source_cronworkflow.yaml apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: annotations: cronworkflows.argoproj.io/last-used-schedule: CRON_TZ=America/Los_Angeles * * * * * labels: workflows.argoproj.io/controller-instanceid: test-instance app.kubernetes.io/instance: test name: hello-world namespace: default spec: concurrencyPolicy: Replace failedJobsHistoryLimit: 4 schedule: '* * * * *' startingDeadlineSeconds: 0 successfulJobsHistoryLimit: 4 suspend: true timezone: America/Los_Angeles workflowSpec: entrypoint: whalesay templates: - container: args: - "\U0001F553 hello world. Scheduled on: {{workflow.scheduledTime}}" command: - cowsay image: 'docker/whalesay:latest' name: whalesay workflowMetadata: labels: example: test annotations: another-example: another-test finalizers: [test-finalizer] <|endoftext|> # istio_grpc-echo.yaml apiVersion: v1 kind: Service metadata: labels: app: echo name: echo namespace: echo-grpc spec: selector: app: echo type: ClusterIP ports: - name: http port: 80 targetPort: 18080 - name: grpc port: 7070 targetPort: 17070 - name: tcp port: 9090 targetPort: 19090 --- apiVersion: apps/v1 kind: Deployment metadata: name: echo-v1 namespace: echo-grpc spec: replicas: 1 selector: matchLabels: app: echo version: v1 template: metadata: annotations: inject.istio.io/templates: grpc-agent proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' labels: app: echo version: v1 spec: containers: - args: - --metrics=15014 - --port - "18080" - --tcp - "19090" - --xds-grpc-server=17070 - --grpc - "17070" - --grpc - "17171" - --port - "3333" - --port - "8080" - --version - v1 - --crt=/cert.crt - --key=/cert.key env: - name: INSTANCE_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP image: registry.istio.io/testing/app:latest imagePullPolicy: Always livenessProbe: failureThreshold: 10 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: tcp-health-port timeoutSeconds: 1 name: app ports: - containerPort: 17070 protocol: TCP - containerPort: 17171 protocol: TCP - containerPort: 8080 protocol: TCP - containerPort: 3333 name: tcp-health-port protocol: TCP readinessProbe: failureThreshold: 10 httpGet: path: / port: 8080 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 startupProbe: failureThreshold: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: tcp-health-port timeoutSeconds: 1 --- apiVersion: apps/v1 kind: Deployment metadata: name: echo-v2 namespace: echo-grpc spec: replicas: 1 selector: matchLabels: app: echo version: v2 template: metadata: annotations: inject.istio.io/templates: grpc-agent proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}' labels: app: echo version: v2 spec: containers: - args: - --metrics=15014 - --xds-grpc-server=17070 - --port - "18080" - --tcp - "19090" - --grpc - "17070" - --grpc - "17171" - --port - "3333" - --port - "8080" - --version - v2 - --crt=/cert.crt - --key=/cert.key env: - name: INSTANCE_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP image: registry.istio.io/testing/app:latest imagePullPolicy: Always livenessProbe: failureThreshold: 10 initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: tcp-health-port timeoutSeconds: 1 name: app ports: - containerPort: 17070 protocol: TCP - containerPort: 17171 protocol: TCP - containerPort: 8080 protocol: TCP - containerPort: 3333 name: tcp-health-port protocol: TCP readinessProbe: failureThreshold: 10 httpGet: path: / port: 8080 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 startupProbe: failureThreshold: 10 periodSeconds: 10 successThreshold: 1 tcpSocket: port: tcp-health-port timeoutSeconds: 1 <|endoftext|> # argocd_source_three_replica_rollout.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: clusterName: "" creationTimestamp: 2019-03-22T21:04:31Z generation: 1 labels: app.kubernetes.io/instance: guestbook-bluegreen name: guestbook-bluegreen namespace: default resourceVersion: "888906" selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/guestbook-bluegreen uid: 16a1edf0-4ce6-11e9-994f-025000000001 spec: minReadySeconds: 30 replicas: 3 revisionHistoryLimit: 2 selector: matchLabels: app: guestbook-bluegreen strategy: blueGreen: activeService: guestbook-bluegreen-active previewService: guestbook-bluegreen-preview template: metadata: labels: app: guestbook-bluegreen spec: containers: - image: quay.io/argoprojlabs/argocd-e2e-container:0.2 name: guestbook-bluegreen ports: - containerPort: 80 status: availableReplicas: 1 blueGreen: activeSelector: 6c767bd46c conditions: - lastTransitionTime: 2019-04-01T22:31:44Z lastUpdateTime: 2019-04-01T22:31:44Z message: Rollout is serving traffic from the active service. reason: Available status: "True" type: Available currentPodHash: 6c767bd46c observedGeneration: 869957df4b pauseStartTime: 2019-03-26T05:47:32Z readyReplicas: 1 replicas: 1 updatedReplicas: 1 <|endoftext|> # istio_53153.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** `ambient.reconcileIptablesOnStartup` field in the `istio-cni` chart and the corresponding `AMBIENT_RECONCILE_POD_RULES_ON_STARTUP` flag to control whether the ambient CNI agent should reconcile the iptables of pods at startup. <|endoftext|> # istio_57434.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support display connections info for `istioctl ztunnel-config all` <|endoftext|> # istio_xds-debug-namespace-auth.yaml apiVersion: release-notes/v2 kind: security-fix area: security releaseNotes: - | **Fixed** XDS debug endpoint to pass caller namespace for proper authorization checks. <|endoftext|> # helm_charts_lock-cronjob.yaml {{- if .Values.autolock.enabled }} apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ template "kured.fullname" . }}-lock namespace: {{ .Release.Namespace }} labels: app: {{ template "kured.name" . }} chart: {{ template "kured.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: schedule: {{ .Values.autolock.schedulelock | quote }} jobTemplate: spec: template: metadata: labels: app: {{ template "kured.name" . }} chart: {{ template "kured.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: serviceAccountName: {{ template "kured.serviceAccountName" . }} containers: - name: {{ template "kured.fullname" . }}-lock image: "{{ .Values.autolock.image.repository }}:{{ .Values.autolock.image.tag }}" command: - kubectl args: - -n - {{ .Release.Namespace }} - annotate - ds - {{ template "kured.fullname" . }} - weave.works/kured-node-lock={"nodeID":"manual"} restartPolicy: Never backoffLimit: 1 {{- end -}} <|endoftext|> # istio_52017.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 52016 releaseNotes: - | **Fixed** the istiod chart installation for older Helm versions (v3.6 and v3.7) by ensuring that `.Values.profile` is set to a string. <|endoftext|> # cert_manager_webhook-rbac.yaml {{- if .Values.global.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ template "webhook.fullname" . }}:dynamic-serving namespace: {{ include "cert-manager.namespace" . }} labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} rules: - apiGroups: [""] resources: ["secrets"] resourceNames: - '{{ template "webhook.fullname" . }}-ca' {{- $certmanagerNamespace := include "cert-manager.namespace" . }} {{- with (.Values.webhook.config.metricsTLSConfig).dynamic }} {{- if $certmanagerNamespace | eq .secretNamespace }} # Allow webhook to read and update the metrics CA Secret when dynamic TLS is # enabled for the metrics server and if the Secret is configured to be in the # same namespace as cert-manager. - {{ .secretName | quote }} {{- end }} {{- end }} verbs: ["get", "list", "watch", "update"] # It's not possible to grant CREATE permission on a single resourceName. - apiGroups: [""] resources: ["secrets"] verbs: ["create"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ template "webhook.fullname" . }}:dynamic-serving namespace: {{ include "cert-manager.namespace" . }} labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "webhook.fullname" . }}:dynamic-serving subjects: - kind: ServiceAccount name: {{ template "webhook.serviceAccountName" . }} namespace: {{ include "cert-manager.namespace" . }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ template "webhook.fullname" . }}:subjectaccessreviews labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} rules: - apiGroups: ["authorization.k8s.io"] resources: ["subjectaccessreviews"] verbs: ["create"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "webhook.fullname" . }}:subjectaccessreviews labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "webhook.fullname" . }}:subjectaccessreviews subjects: - kind: ServiceAccount name: {{ template "webhook.serviceAccountName" . }} namespace: {{ include "cert-manager.namespace" . }} {{- end }} <|endoftext|> # istio_frontend.yaml kind: Service apiVersion: v1 metadata: name: frontend spec: selector: app: hello tier: frontend ports: - protocol: "TCP" port: 80 targetPort: 80 type: LoadBalancer --- apiVersion: apps/v1 kind: Deployment metadata: name: frontend spec: replicas: 1 selector: matchLabels: app: hello tier: frontend track: stable template: metadata: labels: app: hello tier: frontend track: stable spec: containers: - name: nginx image: "fake.docker.io/google-samples/hello-frontend:1.0" lifecycle: preStop: exec: command: ["/usr/sbin/nginx","-s","quit"] <|endoftext|> # helm_charts_default-backend-rolebinding.yaml {{- if and .Values.rbac.create .Values.podSecurityPolicy.enabled .Values.defaultBackend.enabled -}} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.fullname" . }}-backend roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "nginx-ingress.fullname" . }}-backend subjects: - kind: ServiceAccount name: {{ template "nginx-ingress.defaultBackend.serviceAccountName" . }} namespace: {{ .Release.Namespace }} {{- end -}} <|endoftext|> # istio_endpoint-before-pod.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 25112 releaseNotes: - | **Fixed** an issue when high pod churn rate can cause Istiod to get stuck. <|endoftext|> # istio_35475.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 35475 releaseNotes: - | **Added** the ability for users to specify Envoy's LOGICAL_DNS as a connection type for a cluster using 'DNS_ROUND_ROBIN' in ServiceEntry. <|endoftext|> # helm_charts_proxy-deployment.yaml {{- if .Values.proxy.enabled }} apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" . }} helm.sh/chart: {{ template "wavefront.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io.instance: {{ .Release.Name | quote }} app.kubernetes.io/component: proxy name: {{ template "wavefront.proxy.fullname" . }} spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name : {{ template "wavefront.fullname" .}} app.kubernetes.io/component: proxy template: metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" .}} app.kubernetes.io/component: proxy spec: containers: - name: wavefront-proxy image: {{ .Values.proxy.image.repository }}:{{ .Values.proxy.image.tag }} imagePullPolicy: {{ .Values.proxy.image.pullPolicy }} env: - name: WAVEFRONT_URL value: {{ .Values.wavefront.url }}/api - name: WAVEFRONT_TOKEN valueFrom: secretKeyRef: name: {{ template "wavefront.fullname" . }} key: api-token - name: WAVEFRONT_PROXY_ARGS value: {{ .Values.proxy.args }} {{- if .Values.proxy.tracePort }} --traceListenerPorts {{ .Values.proxy.tracePort }}{{- end -}} {{- if .Values.proxy.jaegerPort }} --traceJaegerListenerPorts {{ .Values.proxy.jaegerPort }}{{- end -}} {{- if .Values.proxy.zipkinPort }} --traceZipkinListenerPorts {{ .Values.proxy.zipkinPort }}{{- end -}} {{- if .Values.proxy.traceSamplingRate }} --traceSamplingRate {{ .Values.proxy.traceSamplingRate }}{{- end -}} {{- if .Values.proxy.traceSamplingDuration }} --traceSamplingDuration {{ .Values.proxy.traceSamplingDuration }}{{- end -}} {{- if .Values.proxy.preprocessor }} --preprocessorConfigFile /etc/wavefront/wavefront-proxy/preprocessor/rules.yaml{{- end -}} {{- if .Values.proxy.heap }} - name: JAVA_HEAP_USAGE value: {{ .Values.proxy.heap | quote }} {{- end }} ports: - containerPort: {{ .Values.proxy.port }} protocol: TCP {{- if .Values.proxy.tracePort }} - containerPort: {{ .Values.proxy.tracePort }} protocol: TCP {{- end }} {{- if .Values.proxy.jaegerPort }} - containerPort: {{ .Values.proxy.jaegerPort }} protocol: TCP {{- end }} {{- if .Values.proxy.zipkinPort }} - containerPort: {{ .Values.proxy.zipkinPort }} protocol: TCP {{- end }} securityContext: privileged: false volumeMounts: {{- if .Values.proxy.preprocessor }} - name: preprocessor mountPath: /etc/wavefront/wavefront-proxy/preprocessor {{- end }} volumes: {{- if .Values.proxy.preprocessor }} - name: preprocessor configMap: name: {{ template "wavefront.proxy.fullname" . }}-preprocessor {{- end }} {{- end }} <|endoftext|> # istio_51726.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 51726 releaseNotes: - | **Fixed** a bug where router's merged gateway was not immediately recomputed when a service was created or updated. <|endoftext|> # istio_install_package_path.golden.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio: pilot istio.io/rev: default operator.istio.io/component: Pilot release: istio name: istiod namespace: istio-system spec: selector: matchLabels: istio: pilot strategy: rollingUpdate: maxSurge: 100% maxUnavailable: 25% template: metadata: annotations: prometheus.io/port: "15014" prometheus.io/scrape: "true" sidecar.istio.io/inject: "false" labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio: pilot istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: Pilot sidecar.istio.io/inject: "false" spec: containers: - args: - discovery - --monitoringAddr=:15014 - --log_output_level=default:info - --domain - cluster.local - --keepaliveMaxServerConnectionAge - 30m env: - name: REVISION value: default - name: PILOT_CERT_PROVIDER value: istiod - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: SERVICE_ACCOUNT valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.serviceAccountName - name: KUBECONFIG value: /var/run/secrets/remote/config - name: CA_TRUSTED_NODE_ACCOUNTS value: istio-system/ztunnel - name: PILOT_TRACE_SAMPLING value: "1" - name: PILOT_ENABLE_ANALYSIS value: "false" - name: CLUSTER_ID value: Kubernetes - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PLATFORM value: "" image: registry.istio.io/release/pilot:1.1.4 name: discovery ports: - containerPort: 8080 name: http-debug protocol: TCP - containerPort: 15010 name: grpc-xds protocol: TCP - containerPort: 15012 name: tls-xds protocol: TCP - containerPort: 15017 name: https-webhooks protocol: TCP - containerPort: 15014 name: http-monitoring protocol: TCP readinessProbe: httpGet: path: /ready port: 8080 initialDelaySeconds: 1 periodSeconds: 3 timeoutSeconds: 5 resources: requests: cpu: 500m memory: 2048Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true volumeMounts: - mountPath: /var/run/secrets/tokens name: istio-token readOnly: true - mountPath: /var/run/secrets/istio-dns name: local-certs - mountPath: /etc/cacerts name: cacerts readOnly: true - mountPath: /var/run/secrets/remote name: istio-kubeconfig readOnly: true - mountPath: /var/run/secrets/istiod/tls name: istio-csr-dns-cert readOnly: true - mountPath: /var/run/secrets/istiod/ca name: istio-csr-ca-configmap readOnly: true serviceAccountName: istiod tolerations: - key: cni.istio.io/not-ready operator: Exists volumes: - emptyDir: medium: Memory name: local-certs - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - name: cacerts secret: optional: true secretName: cacerts - name: istio-kubeconfig secret: optional: true secretName: istio-kubeconfig - name: istio-csr-dns-cert secret: optional: true secretName: istiod-tls - configMap: defaultMode: 420 name: istio-ca-root-cert optional: true name: istio-csr-ca-configmap <|endoftext|> # kube_prometheus_alertmanager-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: alert-router app.kubernetes.io/instance: main app.kubernetes.io/name: alertmanager app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.31.1 name: alertmanager-main namespace: monitoring spec: ports: - name: web port: 9093 targetPort: web - name: reloader-web port: 8080 targetPort: reloader-web selector: app.kubernetes.io/component: alert-router app.kubernetes.io/instance: main app.kubernetes.io/name: alertmanager app.kubernetes.io/part-of: kube-prometheus sessionAffinity: ClientIP <|endoftext|> # argocd_source_progressing_addingMoreReplicas.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "7" clusterName: "" creationTimestamp: 2019-01-22T16:52:54Z generation: 1 labels: app.kubernetes.io/instance: guestbook-default name: ks-guestbook-ui namespace: default resourceVersion: "164023" selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/ks-guestbook-ui uid: 29802403-1e66-11e9-a6a4-025000000001 spec: minReadySeconds: 30 replicas: 3 selector: matchLabels: app: ks-guestbook-ui strategy: blueGreen: activeService: ks-guestbook-ui-active previewService: ks-guestbook-ui-preview type: BlueGreenUpdate template: metadata: creationTimestamp: null labels: app: ks-guestbook-ui spec: containers: - image: quay.io/argoprojlabs/argocd-e2e-container:0.1 name: ks-guestbook-ui ports: - containerPort: 83 resources: {} status: activeSelector: 85f9884f5d availableReplicas: 3 conditions: - lastTransitionTime: 2019-01-25T07:44:26Z lastUpdateTime: 2019-01-25T07:44:26Z message: Rollout is serving traffic from the active service. reason: Available status: "True" type: Available currentPodHash: 697fb9575c observedGeneration: 767f98959f previewSelector: "" readyReplicas: 3 replicas: 3 updatedReplicas: 0 <|endoftext|> # istio_54334.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 54334 releaseNotes: - | **Fixed** the wording of the status message when L7 rules are present in an AuthorizationPolicy which is bound to ztunnel to be clearer. <|endoftext|> # argocd_source_resumed_helmrelease.yaml apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: podinfo namespace: default spec: interval: 10m timeout: 5m chart: spec: chart: podinfo version: '6.5.*' sourceRef: kind: HelmRepository name: podinfo interval: 5m releaseName: podinfo install: remediation: retries: 3 upgrade: remediation: retries: 3 test: enable: true suspend: false driftDetection: mode: enabled ignore: - paths: ["/spec/replicas"] target: kind: Deployment values: replicaCount: 2 <|endoftext|> # istio_53933.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 49829 releaseNotes: - | **Added** `istio.io/reroute-virtual-interfaces` annotation, a comma separated list of virtual interfaces whose inbound traffic will be unconditionally treated as outbound. This allows workloads using virtualized networking (kubeVirt, VMs, docker-in-docker, etc) to function correctly with both sidecar and ambient mesh traffic capture. **Deprecated** `traffic.sidecar.istio.io/kubevirtInterfaces`, in favor of `istio.io/reroute-virtual-interfaces` <|endoftext|> # k8s_examples_minio-standalone-pvc.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: # This name uniquely identifies the PVC. Will be used in deployment below. name: minio-pv-claim labels: app: minio-storage-claim spec: # Read more about access modes here: http://kubernetes.io/docs/user-guide/persistent-volumes/#access-modes accessModes: - ReadWriteOnce storageClassName: standard resources: # This is the request for storage. Should be available in the cluster. requests: storage: 10Gi <|endoftext|> # kube_prometheus_kubeStateMetrics-clusterRoleBinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 2.18.0 name: kube-state-metrics roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: kube-state-metrics subjects: - kind: ServiceAccount name: kube-state-metrics namespace: monitoring <|endoftext|> # argocd_source_ssd-svc-label-live.yaml apiVersion: v1 kind: Service metadata: creationTimestamp: "2025-05-16T19:01:22Z" labels: app.kubernetes.io/instance: httpbin delete-me: delete-value managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:app.kubernetes.io/instance: {} f:delete-me: {} f:spec: f:ports: k:{"port":7777,"protocol":"TCP"}: .: {} f:name: {} f:port: {} f:protocol: {} f:targetPort: {} f:selector: {} manager: argocd-controller operation: Apply time: "2025-05-16T19:01:22Z" name: httpbin-svc namespace: httpbin resourceVersion: "159005" uid: 61a7a0c2-d973-4333-bbd6-c06ba1c00190 spec: clusterIP: 10.96.59.144 clusterIPs: - 10.96.59.144 internalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack ports: - name: http-port port: 7777 protocol: TCP targetPort: 80 selector: app: httpbin sessionAffinity: None type: ClusterIP status: loadBalancer: {} <|endoftext|> # helm_charts_hdfs-nn-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "hadoop.fullname" . }}-hdfs-nn annotations: checksum/config: {{ include (print $.Template.BasePath "/hadoop-configmap.yaml") . | sha256sum }} labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: hdfs-nn spec: serviceName: {{ include "hadoop.fullname" . }}-hdfs-nn replicas: 1 selector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: hdfs-nn template: metadata: labels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: hdfs-nn spec: affinity: podAntiAffinity: {{- if eq .Values.antiAffinity "hard" }} requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name | quote }} component: hdfs-nn {{- else if eq .Values.antiAffinity "soft" }} preferredDuringSchedulingIgnoredDuringExecution: - weight: 5 podAffinityTerm: topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name | quote }} component: hdfs-nn {{- end }} terminationGracePeriodSeconds: 0 containers: - name: hdfs-nn image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} command: - "/bin/bash" - "/tmp/hadoop-config/bootstrap.sh" - "-d" resources: {{ toYaml .Values.hdfs.nameNode.resources | indent 10 }} readinessProbe: httpGet: path: / port: 50070 initialDelaySeconds: 5 timeoutSeconds: 2 livenessProbe: httpGet: path: / port: 50070 initialDelaySeconds: 10 timeoutSeconds: 2 volumeMounts: - name: hadoop-config mountPath: /tmp/hadoop-config - name: dfs mountPath: /root/hdfs/namenode volumes: - name: hadoop-config configMap: name: {{ include "hadoop.fullname" . }} - name: dfs {{- if .Values.persistence.nameNode.enabled }} persistentVolumeClaim: claimName: {{ include "hadoop.fullname" . }}-hdfs-nn {{- else }} emptyDir: {} {{- end }} <|endoftext|> # istio_gateway-class-configmap.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} {{ range $key, $value := .Values.gatewayClasses }} apiVersion: v1 kind: ConfigMap metadata: name: istio-{{ $.Values.revision | default "default" }}-gatewayclass-{{$key}} namespace: {{ $.Release.Namespace }} labels: istio.io/rev: {{ $.Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ $.Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" release: {{ $.Release.Name }} app.kubernetes.io/name: "istiod" gateway.istio.io/defaults-for-class: {{$key|quote}} {{- include "istio.labels" $ | nindent 4 }} data: {{ range $kind, $overlay := $value }} {{$kind}}: | {{$overlay|toYaml|trim|indent 4}} {{ end }} --- {{ end }} {{- end }} <|endoftext|> # istio_drop-telemetry-envoyfilter.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Removed** legacy `EnvoyFilter` implementation for telemetry. For the majority of users, this change has no impact, and was already enabled in previous releases. However, the following fields are no longer respected: `prometheus.configOverride`, `stackdriver.configOverride`, `stackdriver.disableOutbound`, `stackdriver.outboundAccessLogging`. <|endoftext|> # helm_charts_config-jmx-exporter.yaml {{- if .Values.exporters.jmx.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ .Release.Name }}-jmx-exporter labels: app: {{ template "zookeeper.name" . }} chart: {{ template "zookeeper.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: config.yml: |- hostPort: 127.0.0.1:{{ .Values.env.JMXPORT }} lowercaseOutputName: {{ .Values.exporters.jmx.config.lowercaseOutputName }} rules: {{ .Values.exporters.jmx.config.rules | toYaml | indent 6 }} ssl: false startDelaySeconds: {{ .Values.exporters.jmx.config.startDelaySeconds }} {{- end }} <|endoftext|> # istio_51204.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 51182 releaseNotes: - | **Fixed** ZDS should not pass down trust_domain <|endoftext|> # istio_48780.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 47423 releaseNotes: - | **Fixed** an issue where the webhook generated with `istioctl tag set` is unexpectedly being removed by the installer. <|endoftext|> # helm_source_role.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ .Chart.Name }}-role rules: - resources: ["*"] verbs: ["get","list","watch"] <|endoftext|> # istio_43508.yaml apiVersion: release-notes/v2 kind: bug-fix area: documentation issue: - 43508 releaseNotes: - | **Fixed** add ambient test framework flag for quick running integration test. <|endoftext|> # helm_charts_daemonset-headers-values.yaml controller: kind: DaemonSet addHeaders: X-Frame-Options: deny proxySetHeaders: X-Forwarded-Proto: https <|endoftext|> # istio_30868.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management # issue is a list of GitHub issues resolved in this note. issue: - https://github.com/istio/istio/issues/30868 docs: - '[reference] https://istio.io/latest/docs/reference/config/annotations/' releaseNotes: - | **Fixed** an issue where IPv6 iptables rules were incorrect when `includeOutboundPorts` annotations were used. <|endoftext|> # istio_helm_chart_gateway_serviceaccount_annotations.yaml apiVersion: release-notes/v2 kind: feature area: security # issue is a list of GitHub issues resolved in this note. issue: [] docs: [] releaseNotes: - | **Added** values to the Istio Gateway Helm charts for configuring annotations on the ServiceAccount. Can be used to enable [IAM Roles for Service Accounts](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) on AWS EKS. upgradeNotes: [] securityNotes: [] <|endoftext|> # helm_charts_rolebindings.yaml {{- $values := .Values }} {{- range .Values.roleBindings }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ .name }} {{- if hasKey $values "namespace" }} namespace: {{ $values.namespace }} {{- end }} labels: chart: {{ template "magic-namespace.chart" $ }} release: {{ $.Release.Name }} heritage: {{ $.Release.Service }} roleRef: apiGroup: rbac.authorization.k8s.io kind: {{ .role.kind }} name: {{ .role.name }} subjects: - kind: {{ .subject.kind }} name: {{ .subject.name }} {{- end }} <|endoftext|> # flux_source_source-git-commit.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: GitRepository metadata: name: podinfo namespace: flux-system spec: interval: 1m0s ref: commit: c88a2f41 url: https://github.com/stefanprodan/podinfo <|endoftext|> # helm_charts_hotrod-deploy.yaml {{- if .Values.hotrod.enabled -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "jaeger.fullname" . }}-hotrod labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} jaeger-infra: hotrod-deployment helm.sh/chart: {{ include "jaeger.chart" . }} app.kubernetes.io/component: hotrod app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: replicas: {{ .Values.hotrod.replicaCount }} selector: matchLabels: app.kubernetes.io/name: {{ include "jaeger.name" . }} app.kubernetes.io/component: hotrod app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} app.kubernetes.io/component: hotrod app.kubernetes.io/instance: {{ .Release.Name }} spec: serviceAccountName: {{ template "jaeger.hotrod.serviceAccountName" . }} containers: - name: {{ include "jaeger.fullname" . }}-hotrod image: {{ .Values.hotrod.image.repository }}:{{ .Values.tag }} imagePullPolicy: {{ .Values.hotrod.image.pullPolicy }} env: - name: JAEGER_AGENT_HOST value: {{ template "jaeger.hotrod.tracing.host" . }} - name: JAEGER_AGENT_PORT value: {{ .Values.hotrod.tracing.port | quote }} ports: - name: http containerPort: 8080 protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: http resources: {{ toYaml .Values.hotrod.resources | indent 12 }} {{- if .Values.hotrod.nodeSelector }} nodeSelector: {{ toYaml .Values.hotrod.nodeSelector | indent 8 }} {{- end }} {{- end }} <|endoftext|> # istio_48786.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** prefix to WasmPlugin resource name. <|endoftext|> # istio_inject-disabled.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 35271 releaseNotes: - | **Fixed** and issues causing the `sidecar.istio.io/injection=true` label to be ineffective when `values.global.proxy.autoInject=disabled` is configured. <|endoftext|> # istio_redirect-dns-iptables.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 29908 releaseNotes: - | **Added** flag to enable capture of dns traffic to the istio-iptables script. <|endoftext|> # kube_prometheus_alertmanager-networkPolicy.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: labels: app.kubernetes.io/component: alert-router app.kubernetes.io/instance: main app.kubernetes.io/name: alertmanager app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.31.1 name: alertmanager-main namespace: monitoring spec: egress: - {} ingress: - from: - podSelector: matchLabels: app.kubernetes.io/name: prometheus ports: - port: 9093 protocol: TCP - port: 8080 protocol: TCP - from: - podSelector: matchLabels: app.kubernetes.io/name: alertmanager ports: - port: 9094 protocol: TCP - port: 9094 protocol: UDP podSelector: matchLabels: app.kubernetes.io/component: alert-router app.kubernetes.io/instance: main app.kubernetes.io/name: alertmanager app.kubernetes.io/part-of: kube-prometheus policyTypes: - Egress - Ingress <|endoftext|> # argocd_source_reconciled_helmrelease.yaml apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: podinfo namespace: default annotations: reconcile.fluxcd.io/requestedAt: 'By Argo CD at: 0001-01-01T00:00:00' spec: interval: 10m timeout: 5m chart: spec: chart: podinfo version: '6.5.*' sourceRef: kind: HelmRepository name: podinfo interval: 5m releaseName: podinfo install: remediation: retries: 3 upgrade: remediation: retries: 3 test: enable: true driftDetection: mode: enabled ignore: - paths: ["/spec/replicas"] target: kind: Deployment values: replicaCount: 2 <|endoftext|> # istio_57269.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 57269 releaseNotes: - | **Fixed** a goroutine leak in multicluster where krt collections with data from remote clusters would stay in memory even after that cluster was removed. <|endoftext|> # helm_charts_agent-psp.yaml {{- if .Values.agents.podSecurity.podSecurityPolicy.create}} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ template "datadog.fullname" . }} labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} annotations: seccomp.security.alpha.kubernetes.io/allowedProfileNames: {{ join "," .Values.agents.podSecurity.seccompProfiles | quote }} apparmor.security.beta.kubernetes.io/allowedProfileNames: {{ join "," .Values.agents.podSecurity.apparmorProfiles | quote }} seccomp.security.alpha.kubernetes.io/defaultProfileName: "runtime/default" apparmor.security.beta.kubernetes.io/defaultProfileName: "runtime/default" spec: privileged: {{ .Values.agents.podSecurity.privileged }} hostNetwork: {{ .Values.agents.useHostNetwork }} hostPID: {{ .Values.datadog.dogstatsd.useHostPID }} allowedCapabilities: {{ toYaml .Values.agents.podSecurity.capabilites | indent 4 }} volumes: {{ toYaml .Values.agents.podSecurity.volumes | indent 4 }} fsGroup: rule: RunAsAny runAsUser: rule: RunAsAny seLinux: {{ toYaml .Values.agents.podSecurity.securityContext | indent 4 }} supplementalGroups: rule: RunAsAny {{- end }} <|endoftext|> # istio_58891.yaml apiVersion: release-notes/v2 kind: security-fix area: installation issue: - 58891 releaseNotes: - | **Added** safeguards to the gateway deployment controller to validate object types, names, and namespaces, preventing creation of arbitrary Kubernetes resources through template injection. <|endoftext|> # helm_charts_deployment-runner.yaml {{- if and (not .Values.server.kubernetes.enabled) .Values.runner.enabled -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "drone.fullname" . }}-runner labels: app: {{ template "drone.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" component: runner spec: selector: matchLabels: app: {{ template "drone.name" . }} release: "{{ .Release.Name }}" component: runner replicas: {{ .Values.runner.replicas }} template: metadata: {{- if .Values.runner.annotations }} annotations: {{ toYaml .Values.runner.annotations | indent 8 }} {{- end }} labels: app: {{ template "drone.name" . }} release: "{{ .Release.Name }}" component: runner spec: {{- if .Values.runner.schedulerName }} schedulerName: "{{ .Values.runner.schedulerName }}" {{- end }} {{- if .Values.runner.affinity }} affinity: {{ toYaml .Values.runner.affinity | indent 8 }} {{- end }} {{- if .Values.runner.nodeSelector }} nodeSelector: {{ toYaml .Values.runner.nodeSelector | indent 8 }} {{- end }} {{- with .Values.runner.tolerations }} tolerations: {{- toYaml . | nindent 6 }} {{- end }} serviceAccountName: {{ template "drone.pipelineServiceAccount" . }} containers: - name: runner image: "{{ .Values.images.runner.repository }}:{{ .Values.images.runner.tag }}" imagePullPolicy: {{ .Values.images.runner.pullPolicy }} env: - name: DRONE_LOGS_DEBUG value: {{ .Values.runner.logs.debug | quote }} - name: DRONE_LOGS_TRACE value: {{ .Values.runner.logs.trace | quote }} - name: DRONE_LOGS_COLOR value: "false" - name: DRONE_LOGS_PRETTY value: "false" - name: DRONE_LOGS_TEXT value: "true" - name: DRONE_RPC_PROTO value: {{ .Values.server.rpcProtocol }} - name: DRONE_RPC_HOST value: "{{ template "drone.fullname" . }}" - name: DRONE_RPC_SECRET valueFrom: secretKeyRef: name: {{ template "drone.fullname" . }} key: secret - name: DRONE_NAMESPACE_DEFAULT value: {{ default .Release.Namespace .Values.runner.namespace }} {{- if .Values.secrets.enabled }} - name: DRONE_SECRET_PLUGIN_ENDPOINT value: http://{{ template "drone.fullname" . }}-secrets:{{ .Values.secrets.service.httpPort }} - name: DRONE_SECRET_PLUGIN_TOKEN valueFrom: secretKeyRef: name: {{ template "drone.fullname" . }} key: secret {{- end }} {{- range $key, $value := .Values.runner.env }} - name: {{ $key }} value: {{ $value | quote }} {{- end }} resources: {{ toYaml .Values.runner.resources | indent 10 }} {{- end }} <|endoftext|> # istio_vhost-name-generation.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 35676 releaseNotes: - | **Fixed** an issue causing hostnames overlapping the cluster domain (such as `example.local`) to generate invalid routes. <|endoftext|> # istio_pilot_k8s_settings.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: empty hub: registry.istio.io/release tag: 1.1.4 meshConfig: rootNamespace: istio-control components: pilot: enabled: true namespace: istio-control k8s: env: - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: new.path - name: GODEBUG value: gctrace=111 - name: NEW_VAR value: new_value hpaSpec: maxReplicas: 333 scaleTargetRef: name: istio-pilot metrics: - type: Resource resource: name: cpu target: type: Utilization averageUtilization: 444 - type: Resource resource: name: memory target: type: Utilization averageUtilization: 444 readinessProbe: httpGet: path: /ready port: 8080 initialDelaySeconds: 555 resources: requests: memory: 999Mi nodeSelector: master: "true" <|endoftext|> # istio_custom-class.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: custom gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-custom namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: custom gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-custom namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: default template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: custom gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none service.istio.io/canonical-name: default-custom service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc. - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: ISTIO_META_POD_PORTS value: '[]' - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: default-custom - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/default-custom - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: test/proxyv2:test name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: default-custom volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - emptyDir: medium: Memory name: istio-envoy - emptyDir: {} name: istio-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: istio-token --- apiVersion: v1 kind: Service metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: custom gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-custom namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: null spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: default type: LoadBalancer --- <|endoftext|> # istio_28797.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 28797 releaseNotes: - | **Fixed** istioctl wait now tracks resource's metadata.generation field, rather than metadata.resourceVersion. Command line arguments have been updated to reflect this. <|endoftext|> # k8s_docs_pod-configmap-env-var-valueFrom.yaml apiVersion: v1 kind: Pod metadata: name: dapi-test-pod spec: containers: - name: test-container image: registry.k8s.io/busybox command: [ "/bin/echo", "$(SPECIAL_LEVEL_KEY) $(SPECIAL_TYPE_KEY)" ] env: - name: SPECIAL_LEVEL_KEY valueFrom: configMapKeyRef: name: special-config key: SPECIAL_LEVEL - name: SPECIAL_TYPE_KEY valueFrom: configMapKeyRef: name: special-config key: SPECIAL_TYPE restartPolicy: Never <|endoftext|> # istio_support-features.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Removed** writing the experimental field `GatewayClass.status.supportedFeatures`, as it is unstable in the API. <|endoftext|> # helm_charts_backup-pv.yaml {{- if not .Values.statefulset.enabled }} {{- if .Values.nexusBackup.persistence.pdName -}} apiVersion: v1 kind: PersistentVolume metadata: name: {{ .Values.nexusBackup.persistence.pdName }} labels: {{ include "nexus.labels" . | indent 4 }} spec: capacity: storage: {{ .Values.nexusBackup.persistence.storageSize }} accessModes: - ReadWriteOnce claimRef: name: {{ template "nexus.fullname" . }}-backup namespace: {{ .Release.Namespace }} gcePersistentDisk: pdName: {{ .Values.nexusBackup.persistence.pdName }} fsType: {{ .Values.nexusBackup.persistence.fsType }} {{- end }} {{- end }} <|endoftext|> # argocd_source_restore_not_complete.yaml apiVersion: k8s.mariadb.com/v1alpha1 kind: MariaDB metadata: name: mariadb-server spec: rootPasswordSecretKeyRef: name: mariadb key: root-password image: repository: mariadb tag: "10.7.4" pullPolicy: IfNotPresent port: 3306 volumeClaimTemplate: resources: requests: storage: 100Mi storageClassName: standard accessModes: - ReadWriteOnce status: conditions: - lastTransitionTime: "2023-04-05T14:18:01Z" message: Restoring backup reason: RestoreNotComplete status: "False" type: Ready - lastTransitionTime: "2023-04-05T14:18:02Z" message: Not ready reason: RestoreNotComplete status: "False" type: Bootstrapped <|endoftext|> # argocd_source_sample.yaml {{ if .Capabilities.APIVersions.Has "sample/v2" }} apiVersion: "sample/v2" {{ else }} apiVersion: "sample/v1" {{ end }} kind: Test <|endoftext|> # k8s_docs_cronjob.yaml apiVersion: batch/v1 kind: CronJob metadata: name: hello spec: schedule: "* * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox:1.28 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure <|endoftext|> # istio_fix-remove-iop-not-work.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 43659 releaseNotes: - | **Fixed** `istioctl operator remove` cannot remove the operator controller due to a `no Deployment detected` error. <|endoftext|> # helm_charts_proxy-service.yaml {{- if .Values.proxy.enabled }} apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" . }} helm.sh/chart: {{ template "wavefront.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io.instance: {{ .Release.Name | quote }} app.kubernetes.io/component: proxy name: {{ template "wavefront.proxy.fullname" . }} spec: ports: - name: wavefront port: {{ .Values.proxy.port }} protocol: TCP {{- if .Values.proxy.tracePort }} - name: wavefront-trace port: {{ .Values.proxy.tracePort }} protocol: TCP {{- end }} {{- if .Values.proxy.jaegerPort }} - name: jaeger port: {{ .Values.proxy.jaegerPort }} protocol: TCP {{- end }} {{- if .Values.proxy.zipkinPort }} - name: zipkin port: {{ .Values.proxy.zipkinPort }} protocol: TCP {{- end }} selector: app.kubernetes.io/name : {{ template "wavefront.fullname" .}} app.kubernetes.io/component: proxy {{ end }} <|endoftext|> # istio_59709.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 59709 releaseNotes: - | **Fixed** an issue where all Gateways were restarted after istiod was restarted. <|endoftext|> # argocd_source_hpa-v2-degraded.yaml apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: creationTimestamp: "2022-01-17T14:22:27Z" name: sample uid: 0e6d855e-83ed-4ed5-b80a-461a750f14db spec: maxReplicas: 2 minReplicas: 1 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: argocd-server targetCPUUtilizationPercentage: 80 status: conditions: - lastTransitionTime: "2022-04-14T19:44:23Z" message: 'the HPA controller was unable to get the target''s current scale: deployments/scale.apps "sandbox-test-app-8" not found' reason: FailedGetScale status: "False" type: AbleToScale - lastTransitionTime: "2022-04-14T15:41:57Z" message: the HPA was able to successfully calculate a replica count from cpu resource utilization (percentage of request) reason: ValidMetricFound status: "True" type: ScalingActive - lastTransitionTime: "2022-01-17T14:24:13Z" message: the desired count is within the acceptable range reason: DesiredWithinRange status: "False" type: ScalingLimited currentMetrics: - resource: current: averageUtilization: 6 averageValue: 12m name: cpu type: Resource currentReplicas: 1 desiredReplicas: 1 <|endoftext|> # istio_51399.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 51399 releaseNotes: - | **Fixed** ENABLE_ENHANCED_RESOURCE_SCOPING not being part of helm compatibility profiles for Istio 1.20/1.21. <|endoftext|> # istio_49537.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 49537 releaseNotes: - | **Fixed** an issue that when using `withoutHeaders` to configure route matching rules in VirtualService, if the fields specified in `withoutHeaders` do not exist in the request header, istio cannot match the request. <|endoftext|> # istio_41114.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 41114 releaseNotes: - | **Fixed** an issue that default `idleTimeout` for passthrough cluster has been changed to `0s` since 1.14.0 and timeout is disabled. Previous behavior is using envoy's default value. <|endoftext|> # helm_charts_mixer-config.yaml {{- if and .Values.istio.install (not .Release.IsInstall) -}} {{- if not .Values.mixer.customConfigMap }} {{- $serviceName := include "istio.name" . -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ $serviceName }}-{{ .Values.mixer.deployment.name }} labels: {{ include "istio.labels.standard" . | indent 4 }} component: {{ $serviceName }}-{{ .Values.mixer.deployment.name }} istio: {{ $serviceName }}-{{ .Values.mixer.deployment.name }} data: mapping.conf: |- {{- end -}} {{- end -}} <|endoftext|> # grafana_charts_query-frontend-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "enterprise-metrics.fullname" . }}-query-frontend labels: app: {{ template "enterprise-metrics.name" . }}-query-frontend chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.query_frontend.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.query_frontend.annotations | nindent 4 }} spec: type: ClusterIP ports: - port: {{ .Values.config.server.http_listen_port }} protocol: TCP name: http-metrics targetPort: http-metrics - port: {{ .Values.config.server.grpc_listen_port }} protocol: TCP name: grpc targetPort: grpc selector: app: {{ template "enterprise-metrics.name" . }}-query-frontend release: {{ .Release.Name }} <|endoftext|> # argocd_source_all-healthy.yaml apiVersion: promoter.argoproj.io/v1alpha1 kind: PromotionStrategy metadata: name: test generation: 2 spec: {} status: conditions: - type: Ready status: True observedGeneration: 2 environments: - branch: dev active: dry: sha: abc1234 commitStatuses: [] proposed: dry: sha: abc1234 commitStatuses: [] - branch: prod active: dry: sha: abc1234 commitStatuses: [] proposed: dry: sha: abc1234 commitStatuses: [] <|endoftext|> # helm_charts_ingress-backendconfigs.yaml {{- if and .Values.ingress.enabled .Values.ingress.gcpBackendConfig }} apiVersion: cloud.google.com/v1beta1 kind: BackendConfig metadata: name: {{ template "buzzfeed-sso.fullname" . }} labels: app: {{ template "buzzfeed-sso.name" . }} chart: {{ template "buzzfeed-sso.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: {{- with .Values.ingress.gcpBackendConfig }} {{ toYaml . | indent 2 }} {{- end }} {{- end }} <|endoftext|> # helm_charts_configmap-logagent-custom-configs.yaml {{- if .Values.logagent.customConfigs }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "sematext-agent.fullname" . }}-logagent-custom-configs labels: app: {{ template "sematext-agent.name" . }}-logagent chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: {{ toYaml .Values.logagent.customConfigs | indent 2 }} {{- end }} <|endoftext|> # istio_sidecar-selector.yaml apiVersion: v1 kind: Pod metadata: labels: app: productpage name: productpage namespace: default --- apiVersion: v1 kind: Pod metadata: labels: app: productpage name: productpage-other namespace: other --- apiVersion: v1 kind: Pod metadata: labels: app: reviews name: reviews namespace: default --- apiVersion: v1 kind: Pod metadata: labels: app: ratings-app myapp: ratings-myapp name: ratings namespace: default --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: maps-correctly-no-conflicts namespace: default spec: workloadSelector: labels: app: productpage # Maps to an existing workload without conflicts in the same ns, no error egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: maps-to-nonexistent namespace: default spec: workloadSelector: labels: app: bogus # This doesn't exist, and should generate an error egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: maps-to-different-ns namespace: other spec: workloadSelector: labels: app: reviews # This doesn't exist in the current namespace, and should generate an error egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: dupe-1 namespace: default spec: workloadSelector: labels: app: reviews # Multiple sidecars have the same selector, should generate errors for both egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: dupe-2 namespace: default spec: workloadSelector: labels: app: reviews # Multiple sidecars have the same selector, should generate errors for both egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: overlap-1 namespace: default spec: workloadSelector: labels: app: ratings-app # Multiple sidecars select overlapping workloads, should generate errors for both egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: overlap-2 namespace: default spec: workloadSelector: labels: myapp: ratings-myapp # Multiple sidecars select overlapping workloads, should generate errors for both egress: - hosts: - "./*" <|endoftext|> # istio_eastwest-remote.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: eastwestgateway namespace: istio-system labels: topology.istio.io/network: "network-1" spec: addresses: - value: 1.1.1.1 type: IPAddress gatewayClassName: istio-remote listeners: - name: cross-network hostname: "*.local" port: 15443 protocol: TLS tls: mode: Passthrough --- # These routes should be ignored since this is an istio-remote gateway! apiVersion: gateway.networking.k8s.io/v1 kind: TLSRoute metadata: name: eastwestgateway-grpc namespace: istio-system spec: parentRefs: - name: eastwestgateway kind: Gateway sectionName: istiod-grpc hostnames: - "*.example.com" rules: - backendRefs: - name: istiod port: 15012 --- apiVersion: gateway.networking.k8s.io/v1 kind: TLSRoute metadata: name: eastwestgateway-webhook namespace: istio-system spec: parentRefs: - name: eastwestgateway kind: Gateway sectionName: istiod-webhook hostnames: - "*.example.com" rules: - backendRefs: - name: istiod port: 15017 <|endoftext|> # argocd_source_degraded_cluster_unknown.yaml apiVersion: rabbitmq.com/v1beta1 kind: RabbitmqCluster metadata: labels: app: example-rabbitmq name: example-rabbitmq namespace: example spec: image: docker.io/bitnami/rabbitmq:3.10.7-debian-11-r8 persistence: storage: 32Gi storageClassName: default rabbitmq: replicas: 3 resources: limits: cpu: 250m memory: 1792Mi requests: cpu: 250m memory: 1792Mi service: type: ClusterIP status: conditions: - lastTransitionTime: "2023-08-30T07:44:34Z" reason: NotAllPodsReady message: 0/3 Pods ready status: "False" type: AllReplicasReady - lastTransitionTime: "2023-08-30T07:37:06Z" reason: CouldNotRetrieveEndpoints message: Could not verify available service endpoints status: "Unknown" type: ClusterAvailable - lastTransitionTime: "2023-08-30T07:33:06Z" reason: NoWarnings status: "True" type: NoWarnings - lastTransitionTime: "2023-08-30T07:44:39Z" message: Finish reconciling reason: Success status: "True" type: ReconcileSuccess <|endoftext|> # helm_charts_redis-role.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ template "redis.fullname" . }} labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} rules: {{- if .Values.podSecurityPolicy.create }} - apiGroups: ['{{ template "podSecurityPolicy.apiGroup" . }}'] resources: ['podsecuritypolicies'] verbs: ['use'] resourceNames: [{{ template "redis.fullname" . }}] {{- end -}} {{- if .Values.rbac.role.rules }} {{ toYaml .Values.rbac.role.rules | indent 2 }} {{- end -}} {{- end -}} <|endoftext|> # k8s_docs_serviceaccount-token-secret.yaml apiVersion: v1 kind: Secret metadata: name: secret-sa-sample annotations: kubernetes.io/service-account.name: "sa-name" type: kubernetes.io/service-account-token data: extra: YmFyCg== <|endoftext|> # istio_destinationrule-simple-port-credentialname.yaml apiVersion: networking.istio.io/v1 kind: DestinationRule metadata: name: db-tls spec: host: mydbserver.prod.svc.cluster.local trafficPolicy: portLevelSettings: - port: number: 443 tls: mode: SIMPLE credentialName: db-credential <|endoftext|> # istio_revision-tags-svc.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} # Adapted from istio-discovery/templates/service.yaml {{- range $tagName := .Values.revisionTags }} apiVersion: v1 kind: Service metadata: name: istiod-revision-tag-{{ $tagName }} namespace: {{ $.Release.Namespace }} {{- if $.Values.serviceAnnotations }} annotations: {{ toYaml $.Values.serviceAnnotations | indent 4 }} {{- end }} labels: istio.io/rev: {{ $.Values.revision | default "default" | quote }} istio.io/tag: {{ $tagName }} install.operator.istio.io/owning-resource: {{ $.Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" app: istiod istio: pilot release: {{ $.Release.Name }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" $ | nindent 4 }} spec: ports: - port: 15010 name: grpc-xds # plaintext protocol: TCP - port: 15012 name: https-dns # mTLS with k8s-signed cert protocol: TCP - port: 443 name: https-webhook # validation and injection targetPort: 15017 protocol: TCP - port: 15014 name: http-monitoring # prometheus stats protocol: TCP selector: app: istiod {{- if ne $.Values.revision "" }} istio.io/rev: {{ $.Values.revision | quote }} {{- else }} # Label used by the 'default' service. For versioned deployments we match with app and version. # This avoids default deployment picking the canary istio: pilot {{- end }} {{- if $.Values.ipFamilyPolicy }} ipFamilyPolicy: {{ $.Values.ipFamilyPolicy }} {{- end }} {{- if $.Values.ipFamilies }} ipFamilies: {{- range $.Values.ipFamilies }} - {{ . }} {{- end }} {{- end }} --- {{- end -}} {{- end }} <|endoftext|> # helm_charts_server-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "parse.fullname" . }}-server labels: {{ include "parse.labels" . | nindent 4 }} app.kubernetes.io/component: server spec: selector: matchLabels: {{ include "parse.matchLabels" . | nindent 6 }} app.kubernetes.io/component: server replicas: 1 template: metadata: labels: {{ include "parse.labels" . | nindent 8 }} app.kubernetes.io/component: server spec: {{- if .Values.server.affinity }} affinity: {{- include "parse.tplValue" (dict "value" .Values.server.affinity "context" $) | nindent 8 }} {{- end }} {{- if .Values.server.nodeSelector }} nodeSelector: {{- include "parse.tplValue" (dict "value" .Values.server.nodeSelector "context" $) | nindent 8 }} {{- end }} {{- if .Values.server.tolerations }} tolerations: {{- include "parse.tplValue" (dict "value" .Values.server.tolerations "context" $) | nindent 8 }} {{- end }} {{- if .Values.server.securityContext.enabled }} securityContext: fsGroup: {{ .Values.server.securityContext.fsGroup }} runAsUser: {{ .Values.server.securityContext.runAsUser }} {{- end }} {{- include "parse.imagePullSecrets" . | indent 6 }} {{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }} initContainers: - name: volume-permissions image: {{ include "parse.volumePermissions.image" . }} imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} command: ["chown", "-R", "{{ .Values.server.securityContext.runAsUser }}:{{ .Values.server.securityContext.fsGroup }}", "/bitnami/parse"] securityContext: runAsUser: 0 resources: {{ toYaml .Values.volumePermissions.resources | nindent 12 }} volumeMounts: - name: parse-data mountPath: /bitnami/parse {{- end }} containers: - name: parse image: {{ include "parse.server.image" . }} imagePullPolicy: {{ .Values.server.image.pullPolicy | quote }} env: - name: PARSE_HOST value: "0.0.0.0" - name: PARSE_PORT_NUMBER value: {{ .Values.server.port | quote }} - name: PARSE_MOUNT_PATH value: {{ .Values.server.mountPath | quote }} - name: PARSE_APP_ID value: {{ .Values.server.appId | quote }} - name: PARSE_MASTER_KEY valueFrom: secretKeyRef: name: {{ include "parse.fullname" . }} key: master-key - name: PARSE_ENABLE_CLOUD_CODE value: {{ ternary "yes" "no" .Values.server.enableCloudCode | quote }} - name: MONGODB_HOST value: {{ include "parse.mongodb.fullname" . }} - name: MONGODB_PORT value: "27017" {{- if .Values.mongodb.usePassword }} - name: MONGODB_PASSWORD valueFrom: secretKeyRef: name: {{ include "parse.mongodb.fullname" . }} key: mongodb-root-password {{- end }} {{- if .Values.server.extraEnvVars }} {{- include "parse.tplValue" ( dict "value" .Values.server.extraEnvVars "context" $ ) | nindent 12 }} {{- end }} {{- if or .Values.server.extraEnvVarsCM .Values.server.extraEnvVarsSecret }} envFrom: {{- if .Values.server.extraEnvVarsCM }} - configMapRef: name: {{ include "parse.tplValue" ( dict "value" .Values.server.extraEnvVarsCM "context" $ ) }} {{- end }} {{- if .Values.server.extraEnvVarsSecret }} - secretRef: name: {{ include "parse.tplValue" ( dict "value" .Values.server.extraEnvVarsSecret "context" $ ) }} {{- end }} {{- end }} ports: - name: server-http containerPort: {{ .Values.server.port }} {{- if and .Values.server.livenessProbe.enabled }} livenessProbe: httpGet: path: {{ .Values.server.mountPath }}/users port: server-http httpHeaders: - name: X-Parse-Application-Id value: {{ .Values.server.appId }} initialDelaySeconds: {{ .Values.server.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.server.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.server.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.server.livenessProbe.successThreshold }} failureThreshold: {{ .Values.server.livenessProbe.failureThreshold }} {{- end }} {{- if and .Values.server.readinessProbe.enabled }} readinessProbe: httpGet: path: {{ .Values.server.mountPath }}/users port: server-http httpHeaders: - name: X-Parse-Application-Id value: {{ .Values.server.appId }} initialDelaySeconds: {{ .Values.server.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.server.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.server.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.server.readinessProbe.successThreshold }} failureThreshold: {{ .Values.server.readinessProbe.failureThreshold }} {{- end }} {{- if .Values.server.resources }} resources: {{- toYaml .Values.server.resources | nindent 12 }} {{- end }} volumeMounts: - name: parse-data mountPath: /bitnami/parse {{- if and .Values.server.enableCloudCode (or (.Files.Glob "files/cloud/*.js") .Values.server.cloudCodeScripts .Values.server.existingCloudCodeCM) }} - name: cloud-code-config mountPath: /opt/bitnami/parse/cloud {{- end }} volumes: {{- if and .Values.server.enableCloudCode (or (.Files.Glob "files/cloud/*.js") .Values.server.cloudCodeScripts .Values.server.existingCloudCodeCM) }} - name: cloud-code-config configMap: name: {{ include "parse.cloudCodeScriptsCMName" . }} {{- end }} - name: parse-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ include "parse.fullname" . }} {{- else }} emptyDir: {} {{- end }} <|endoftext|> # flux_source_gitrepositories.yaml --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.12.0 name: gitrepositories.source.toolkit.fluxcd.io spec: group: source.toolkit.fluxcd.io names: kind: GitRepository listKind: GitRepositoryList plural: gitrepositories shortNames: - gitrepo singular: gitrepository scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .spec.url name: URL type: string - jsonPath: .metadata.creationTimestamp name: Age type: date - jsonPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string name: v1 schema: openAPIV3Schema: description: GitRepository is the Schema for the gitrepositories API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: type: object spec: description: GitRepositorySpec specifies the required configuration to produce an Artifact for a Git repository. properties: ignore: description: Ignore overrides the set of excluded patterns in the .sourceignore format (which is the same as .gitignore). If not provided, a default will be used, consult the documentation for your version to find out what those are. type: string include: description: Include specifies a list of GitRepository resources which Artifacts should be included in the Artifact produced for this GitRepository. items: description: GitRepositoryInclude specifies a local reference to a GitRepository which Artifact (sub-)contents must be included, and where they should be placed. properties: fromPath: description: FromPath specifies the path to copy contents from, defaults to the root of the Artifact. type: string repository: description: GitRepositoryRef specifies the GitRepository which Artifact contents must be included. properties: name: description: Name of the referent. type: string required: - name type: object toPath: description: ToPath specifies the path to copy contents to, defaults to the name of the GitRepositoryRef. type: string required: - repository type: object type: array interval: description: Interval at which the GitRepository URL is checked for updates. This interval is approximate and may be subject to jitter to ensure efficient use of resources. pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ type: string proxySecretRef: description: ProxySecretRef specifies the Secret containing the proxy configuration to use while communicating with the Git server. properties: name: description: Name of the referent. type: string required: - name type: object recurseSubmodules: description: RecurseSubmodules enables the initialization of all submodules within the GitRepository as cloned from the URL, using their default settings. type: boolean ref: description: Reference specifies the Git reference to resolve and monitor for changes, defaults to the 'master' branch. properties: branch: description: Branch to check out, defaults to 'master' if no other field is defined. type: string commit: description: "Commit SHA to check out, takes precedence over all reference fields. \n This can be combined with Branch to shallow clone the branch, in which the commit is expected to exist." type: string name: description: "Name of the reference to check out; takes precedence over Branch, Tag and SemVer. \n It must be a valid Git reference: https://git-scm.com/docs/git-check-ref-format#_description Examples: \"refs/heads/main\", \"refs/tags/v0.1.0\", \"refs/pull/420/head\", \"refs/merge-requests/1/head\"" type: string semver: description: SemVer tag expression to check out, takes precedence over Tag. type: string tag: description: Tag to check out, takes precedence over Branch. type: string type: object secretRef: description: SecretRef specifies the Secret containing authentication credentials for the GitRepository. For HTTPS repositories the Secret must contain 'username' and 'password' fields for basic auth or 'bearerToken' field for token auth. For SSH repositories the Secret must contain 'identity' and 'known_hosts' fields. properties: name: description: Name of the referent. type: string required: - name type: object suspend: description: Suspend tells the controller to suspend the reconciliation of this GitRepository. type: boolean timeout: default: 60s description: Timeout for Git operations like cloning, defaults to 60s. pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$ type: string url: description: URL specifies the Git repository URL, it can be an HTTP/S or SSH address. pattern: ^(http|https|ssh)://.*$ type: string verify: description: Verification specifies the configuration to verify the Git commit signature(s). properties: mode: default: HEAD description: "Mode specifies which Git object(s) should be verified. \n The variants \"head\" and \"HEAD\" both imply the same thing, i.e. verify the commit that the HEAD of the Git repository points to. The variant \"head\" solely exists to ensure backwards compatibility." enum: - head - HEAD - Tag - TagAndHEAD type: string secretRef: description: SecretRef specifies the Secret containing the public keys of trusted Git authors. properties: name: description: Name of the referent. type: string required: - name type: object required: - secretRef type: object required: - interval - url type: object status: default: observedGeneration: -1 description: GitRepositoryStatus records the observed state of a Git repository. properties: artifact: description: Artifact represents the last successful GitRepository reconciliation. properties: digest: description: Digest is the digest of the file in the form of ':'. pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ type: string lastUpdateTime: description: LastUpdateTime is the timestamp corresponding to the last update of the Artifact. format: date-time type: string metadata: additionalProperties: type: string description: Metadata holds upstream information such as OCI annotations. type: object path: description: Path is the relative file path of the Artifact. It can be used to locate the file in the root of the Artifact storage on the local file system of the controller managing the Source. type: string revision: description: Revision is a human-readable identifier traceable in the origin source system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. type: string size: description: Size is the number of bytes in the file. format: int64 type: integer url: description: URL is the HTTP address of the Artifact as exposed by the controller managing the Source. It can be used to retrieve the Artifact for consumption, e.g. by another controller applying the Artifact contents. type: string required: - lastUpdateTime - path - revision - url type: object conditions: description: Conditions holds the conditions for the GitRepository. items: description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }" properties: lastTransitionTime: description: lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. format: date-time type: string message: description: message is a human readable message indicating details about the transition. This may be an empty string. maxLength: 32768 type: string observedGeneration: description: observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. format: int64 minimum: 0 type: integer reason: description: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. maxLength: 1024 minLength: 1 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ type: string status: description: status of the condition, one of True, False, Unknown. enum: - "True" - "False" - Unknown type: string type: description: type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) maxLength: 316 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ type: string required: - lastTransitionTime - message - reason - status - type type: object type: array includedArtifacts: description: IncludedArtifacts contains a list of the last successfully included Artifacts as instructed by GitRepositorySpec.Include. items: description: Artifact represents the output of a Source reconciliation. properties: digest: description: Digest is the digest of the file in the form of ':'. pattern: ^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$ type: string lastUpdateTime: description: LastUpdateTime is the timestamp corresponding to the last update of the Artifact. format: date-time type: string metadata: additionalProperties: type: string description: Metadata holds upstream information such as OCI annotations. type: object path: description: Path is the relative file path of the Artifact. It can be used to locate the file in the root of the Artifact storage on the local file system of the controller managing the Source. type: string revision: description: Revision is a human-readable identifier traceable in the origin source system. It can be a Git commit SHA, Git tag, a Helm chart version, etc. type: string size: description: Size is the number of bytes in the file. format: int64 type: integer url: description: URL is the HTTP address of the Artifact as exposed by the controller managing the Source. It can be used to retrieve the Artifact for consumption, e.g. by another controller applying the Artifact contents. type: string required: - lastUpdateTime - path - revision - url type: object type: array lastHandledReconcileAt: description: LastHandledReconcileAt holds the value of the most recent reconcile request value, so a change of the annotation value can be detected. type: string observedGeneration: description: ObservedGeneration is the last observed generation of the GitRepository object. format: int64 type: integer observedIgnore: description: ObservedIgnore is the observed exclusion patterns used for constructing the source artifact. type: string observedInclude: description: ObservedInclude is the observed list of GitRepository resources used to produce the current Artifact. items: description: GitRepositoryInclude specifies a local reference to a GitRepository which Artifact (sub-)contents must be included, and where they should be placed. properties: fromPath: description: FromPath specifies the path to copy contents from, defaults to the root of the Artifact. type: string repository: description: GitRepositoryRef specifies the GitRepository which Artifact contents must be included. properties: name: description: Name of the referent. type: string required: - name type: object toPath: description: ToPath specifies the path to copy contents to, defaults to the name of the GitRepositoryRef. type: string required: - repository type: object type: array observedRecurseSubmodules: description: ObservedRecurseSubmodules is the observed resource submodules configuration used to produce the current Artifact. type: boolean sourceVerificationMode: description: SourceVerificationMode is the last used verification mode indicating which Git object(s) have been verified. type: string type: object type: object served: true storage: true subresources: status: {} <|endoftext|> # istio_drop-reload-prioritized-leader-election.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the `PRIORITIZED_LEADER_ELECTION` feature flag. <|endoftext|> # k8s_examples_admin-service.yaml apiVersion: v1 kind: Service metadata: labels: db: rethinkdb name: rethinkdb-admin spec: ports: - port: 8080 targetPort: 8080 type: LoadBalancer selector: db: rethinkdb role: admin <|endoftext|> # helm_charts_mods-pvc.yaml {{- if .Values.persistence.mods.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "factorio.fullname" . }}-mods labels: app: {{ template "factorio.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: accessModes: - ReadWriteOnce resources: requests: storage: {{ .Values.persistence.mods.size | quote }} {{- if .Values.persistence.storageClass }} {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end -}} <|endoftext|> # k8s_docs_two-files-counter-pod-agent-sidecar.yaml apiVersion: v1 kind: Pod metadata: name: counter spec: containers: - name: count image: busybox:1.28 args: - /bin/sh - -c - > i=0; while true; do echo "$i: $(date)" >> /var/log/1.log; echo "$(date) INFO $i" >> /var/log/2.log; i=$((i+1)); sleep 1; done volumeMounts: - name: varlog mountPath: /var/log - name: count-agent image: registry.k8s.io/fluentd-gcp:1.30 env: - name: FLUENTD_ARGS value: -c /etc/fluentd-config/fluentd.conf volumeMounts: - name: varlog mountPath: /var/log - name: config-volume mountPath: /etc/fluentd-config volumes: - name: varlog emptyDir: {} - name: config-volume configMap: name: fluentd-config <|endoftext|> # istio_disabled.yaml # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: proxy-service-instance spec: hosts: - example.com ports: - number: 80 name: http protocol: HTTP - number: 7070 name: tcp protocol: TCP - number: 443 name: https protocol: HTTPS - number: 9090 name: auto protocol: "" resolution: STATIC endpoints: - address: 1.1.1.1 --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default spec: mtls: mode: DISABLE <|endoftext|> # istio_istiod_remote_config.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: remote values: global: multiCluster: clusterName: remote0 network: network2 remotePilotAddress: 169.10.112.88 omitSidecarInjectorConfigMap: false configCluster: true base: validationURL: https://xxx:15017/validate <|endoftext|> # k8s_examples_web-controller.yaml apiVersion: v1 kind: ReplicationController metadata: labels: name: web name: web-controller spec: replicas: 2 selector: name: web template: metadata: labels: name: web spec: containers: - image: name: web ports: - containerPort: 3000 name: http-server <|endoftext|> # argocd_source_sqljobs-failed.yaml apiVersion: k8s.mariadb.com/v1alpha1 kind: SqlJob metadata: name: jobname spec: backoffLimit: 5 database: dbname mariaDbRef: name: mariadb waitForIt: true passwordSecretKeyRef: key: password name: mariadb-root restartPolicy: OnFailure serviceAccountName: jobname sql: "Some SQL" username: root status: conditions: - lastTransitionTime: "2024-03-19T11:39:00Z" message: Failed reason: JobFailed status: "True" type: Complete <|endoftext|> # argocd_source_being_created_stack.yaml apiVersion: stacks.crossplane.io/v1alpha1 kind: ClusterStackInstall metadata: creationTimestamp: "2020-05-13T09:35:26Z" finalizers: - finalizer.stackinstall.crossplane.io generation: 1 labels: argocd.argoproj.io/instance: crossplane-cloudscale name: stack-cloudscale name: stack-cloudscale namespace: syn-crossplane resourceVersion: "20004" selfLink: /apis/stacks.crossplane.io/v1alpha1/namespaces/syn-crossplane/clusterstackinstalls/stack-cloudscale uid: cce4dfb5-185f-421d-be97-338408e0c712 spec: package: docker.io/vshn/stack-cloudscale:v0.0.2@sha256:8a9a94c3ef557da951d5c7f5bb0286a2f36c79f7ece499f61a8807383caed59b status: conditionedStatus: conditions: - lastTransitionTime: "2020-05-13T09:35:26Z" reason: Resource is being created status: "False" type: Ready - lastTransitionTime: "2020-05-13T09:35:26Z" reason: Successfully reconciled resource status: "True" type: Synced installJob: apiVersion: batch/v1 kind: Job name: stack-cloudscale namespace: syn-crossplane uid: e9c2d5d5-41b1-4b11-8193-e5029c37cc52 <|endoftext|> # helm_charts_pachd_cluster_role.yaml --- {{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: name: {{ template "fullname" . }} creationTimestamp: labels: app: '' suite: {{ template "fullname" . }} rules: - verbs: - get - list - watch apiGroups: - '' resources: - nodes - pods - pods/log - endpoints - verbs: - get - list - watch - create - update - delete apiGroups: - '' resources: - replicationcontrollers - services - verbs: - get - list - watch - create - update - delete apiGroups: - '' resources: - secrets resourceNames: - pachyderm-storage-secret {{- end }} <|endoftext|> # istio_remove-experimental-multicluster.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 29153 releaseNotes: - | **Removed** istioctl experimental multicluster command <|endoftext|> # istio_42576.yaml apiVersion: release-notes/v2 kind: test area: istioctl releaseNotes: - | **Removed** Remove useless code in grpc.go <|endoftext|> # argocd_source_argocd-server-rolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/name: argocd-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: server name: argocd-server roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: argocd-server subjects: - kind: ServiceAccount name: argocd-server <|endoftext|> # helm_charts_ingress-portal.yaml {{- if .Values.enterprise.enabled }} {{- if .Values.portal.ingress.enabled -}} {{- $serviceName := include "kong.fullname" . -}} {{- $servicePort := include "kong.ingress.servicePort" .Values.portal -}} {{- $path := .Values.portal.ingress.path -}} {{- $tls := .Values.portal.ingress.tls -}} {{- $hostname := .Values.portal.ingress.hostname -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ template "kong.fullname" . }}-portal labels: {{- include "kong.metaLabels" . | nindent 4 }} annotations: {{- range $key, $value := .Values.portal.ingress.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: - host: {{ $hostname }} http: paths: - path: {{ $path }} backend: serviceName: {{ $serviceName }}-portal servicePort: {{ $servicePort }} {{- if $tls }} tls: - hosts: - {{ $hostname }} secretName: {{ $tls }} {{- end -}} {{- end -}} {{- end -}} <|endoftext|> # istio_resource_annotations.yaml apiVersion: apps/v1 kind: Deployment metadata: name: resource spec: replicas: 7 selector: matchLabels: app: resource template: metadata: annotations: sidecar.istio.io/proxyCPU: "100m" sidecar.istio.io/proxyCPULimit: "1000m" sidecar.istio.io/proxyMemory: "1Gi" sidecar.istio.io/proxyMemoryLimit: "2Gi" labels: app: resource spec: containers: - name: resource image: "fake.docker.io/google-samples/traffic-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_examples_pvc.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: my-model-pvc spec: accessModes: - ReadOnlyMany resources: requests: storage: 1Gi volumeName: my-model-pv <|endoftext|> # istio_grpc-proxyless-traffic-management.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for `LEAST_REQUEST` load balancing policy in gRPC proxyless clients. - | **Fixed** warning about `CONSISTENT_HASH` load balancing policy in gRPC proxyless clients. - | **Added** support for circuit breaking (`http2MaxRequests`) in gRPC proxyless clients. <|endoftext|> # istio_deny-both-http-tcp-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-deny namespace: foo spec: action: DENY rules: # rule[0] `from`: HTTP field, `to`: HTTP field. - from: - source: requestPrincipals: ["id-1"] to: - operation: methods: ["GET"] # rule[1] `from`: nil, `to`: HTTP field. - to: - operation: methods: ["GET"] # rule[2] `from`: HTTP field, `to`: nil. - from: - source: requestPrincipals: ["id-1"] # rule[3] `from`: TCP field, `to`: HTTP field. - from: - source: namespaces: ["ns-1"] to: - operation: methods: ["GET"] # rule[4] `from`: HTTP field, `to`: TCP field. - from: - source: requestPrincipals: ["id-1"] to: - operation: ports: ["80"] # rule[5] `from`: HTTP field, `to`: HTTP + TCP field. - from: - source: requestPrincipals: ["id-1"] to: - operation: ports: ["8080"] methods: ["GET"] # rule[6] `from`: HTTP field, `to`: HTTP + TCP field. - from: - source: namespaces: ["ns-2"] requestPrincipals: ["id-1"] to: - operation: ports: ["8080"] methods: ["GET"] # rule[7] `from`: TCP field, `to`: TCP field. - from: - source: namespaces: ["ns-1"] to: - operation: ports: ["80"] # rule[8] `from`: nil, `to`: nil, `when`: HTTP field. - when: - key: "request.headers[:method]" values: ["GET"] # rule[9] `from`: nil, `to`: nil, `when`: TCP field. - when: - key: "destination.port" values: ["80"] # rule[10] `from`: all fields, `to`: all fields, `when`: all fields. - from: - source: principals: ["principal", "*principal-suffix", "principal-prefix*", "*"] requestPrincipals: ["requestPrincipals"] namespaces: ["ns", "*ns-suffix", "ns-prefix*", "*"] ipBlocks: ["1.2.3.4"] remoteIpBlocks: ["172.18.4.0/22"] notPrincipals: ["not-principal", "*not-principal-suffix", "not-principal-prefix*", "*"] notRequestPrincipals: ["not-requestPrincipals"] notNamespaces: ["not-ns", "*not-ns-suffix", "not-ns-prefix*", "*"] notIpBlocks: ["9.0.0.1"] notRemoteIpBlocks: ["192.168.244.139"] to: - operation: methods: ["method"] hosts: ["exact.com"] ports: ["80"] paths: ["/exact"] notMethods: ["not-method"] notHosts: ["not-exact.com"] notPorts: ["8000"] notPaths: ["/not-exact"] when: - key: "request.headers[X-header]" values: ["header"] notValues: ["not-header"] - key: "source.ip" values: ["10.10.10.10"] notValues: ["90.10.10.10"] - key: "remote.ip" values: ["192.168.3.3"] notValues: ["172.19.31.3"] - key: "source.namespace" values: ["ns", "*ns-suffix", "ns-prefix*", "*"] notValues: ["not-ns", "*not-ns-suffix", "not-ns-prefix*", "*"] - key: "source.principal" values: ["principal", "*principal-suffix", "principal-prefix*", "*"] notValues: ["not-principal", "*not-principal-suffix", "not-principal-prefix*", "*"] - key: "request.auth.principal" values: ["requestPrincipals"] notValues: ["not-requestPrincipals"] - key: "request.auth.audiences" values: ["audiences"] notValues: ["not-audiences"] - key: "request.auth.presenter" values: ["presenter"] notValues: ["not-presenter"] - key: "request.auth.claims[iss]" values: ["iss"] notValues: ["not-iss"] - key: "destination.ip" values: ["10.10.10.10"] notValues: ["90.10.10.10"] - key: "destination.port" values: ["91"] notValues: ["9001"] - key: "connection.sni" values: ["exact.com"] notValues: ["not-exact.com"] - key: "experimental.envoy.filters.a.b[c]" values: ["exact"] notValues: ["not-exact"] <|endoftext|> # helm_charts_hub-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "selenium.hub.fullname" . }} labels: app: {{ template "selenium.hub.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- if .Values.hub.serviceAnnotations }} annotations: {{ toYaml .Values.hub.serviceAnnotations | indent 4 }} {{- end }} spec: type: {{ .Values.hub.serviceType | quote }} {{- if .Values.hub.serviceLoadBalancerIP }} loadBalancerIP: {{ .Values.hub.serviceLoadBalancerIP | quote }} {{- end }} {{- if .Values.hub.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{ toYaml .Values.hub.loadBalancerSourceRanges | indent 4 }} {{- end }} sessionAffinity: {{ .Values.hub.serviceSessionAffinity | quote }} ports: - name: hub port: {{ .Values.hub.servicePort }} targetPort: {{ .Values.hub.port }} {{- if and ( eq .Values.hub.serviceType "NodePort") .Values.hub.nodePort }} nodePort: {{ .Values.hub.nodePort }} {{- end }} selector: app: {{ template "selenium.hub.fullname" . }} <|endoftext|> # istio_noble-base.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Upgraded** base images to use the latest Ubuntu LTS, `ubuntu:noble`. Previously, `ubuntu:focal` was used. <|endoftext|> # helm_charts_spark-serviceaccount.yaml {{- if .Values.serviceAccounts.spark.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "spark.serviceAccountName" . }} namespace: {{ .Values.sparkJobNamespace }} labels: app.kubernetes.io/name: {{ include "sparkoperator.name" . }} helm.sh/chart: {{ include "sparkoperator.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} <|endoftext|> # helm_charts_headless-service.yaml {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) (eq .Values.persistence.type "statefulset")}} apiVersion: v1 kind: Service metadata: name: {{ template "grafana.fullname" . }}-headless namespace: {{ template "grafana.namespace" . }} labels: {{- include "grafana.labels" . | nindent 4 }} {{- with .Values.annotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} spec: clusterIP: None selector: {{- include "grafana.selectorLabels" . | nindent 4 }} type: ClusterIP {{- end }} <|endoftext|> # istio_25669.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 25333 - 24300 releaseNotes: - | **Removed** all Mixer-related features and functionality. This is a scheduled removal of a deprecated Istio services and deployments, as well as Mixer-focused CRDs and component and related functionality. upgradeNotes: - title: Mixer is no longer supported in Istio. content: | If you are using the `istio-policy` or `istio-telemetry` services, or any related Mixer configuration, you will not be able to upgrade without taking action to either (a) convert your existing configuration and code to the new extension model for Istio or (b) using the gRPC shim developed to bridge transition to the new model. For more details, [please refer to the developer wiki](https://github.com/istio/istio/wiki/Enabling-Envoy-Authorization-Service-and-gRPC-Access-Log-Service-With-Mixer). <|endoftext|> # k8s_examples_newrelic-daemonset.yaml apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: DaemonSet metadata: name: newrelic-agent labels: tier: monitoring app: newrelic-agent version: v1 spec: selector: matchLabels: name: newrelic template: metadata: labels: name: newrelic spec: # Filter to specific nodes: # nodeSelector: # app: newrelic hostPID: true hostIPC: true hostNetwork: true containers: - resources: requests: cpu: 0.15 securityContext: privileged: true env: - name: NRSYSMOND_logfile value: "/var/log/nrsysmond.log" image: newrelic/nrsysmond name: newrelic command: [ "bash", "-c", "source /etc/kube-newrelic/config && /usr/sbin/nrsysmond -E -F" ] volumeMounts: - name: newrelic-config mountPath: /etc/kube-newrelic readOnly: true - name: dev mountPath: /dev - name: run mountPath: /var/run/docker.sock - name: sys mountPath: /sys - name: log mountPath: /var/log volumes: - name: newrelic-config secret: secretName: newrelic-config - name: dev hostPath: path: /dev - name: run hostPath: path: /var/run/docker.sock type: Socket - name: sys hostPath: path: /sys - name: log hostPath: path: /var/log <|endoftext|> # argocd_source_notready.yaml apiVersion: external-secrets.io/v1beta1 kind: ClusterExternalSecret metadata: name: ces spec: externalSecretName: hello-world-es externalSecretSpec: data: - remoteRef: conversionStrategy: Default decodingStrategy: None key: /foo property: key secretKey: mykey refreshInterval: 1h secretStoreRef: kind: ClusterSecretStore name: secretmanager target: creationPolicy: Owner deletionPolicy: Retain name: mysecret template: data: somekey: '{{ .somecreds }}' engineVersion: v2 type: Opaque namespaceSelector: matchLabels: cool: label status: conditions: - message: one or more namespaces failed status: "True" type: NotReady failedNamespaces: - namespace: default reason: external secret already exists in namespace <|endoftext|> # argocd_source_install_plan_failed.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: labels: operators.coreos.com/openshift-gitops-operator.openshift-operators: '' name: openshift-gitops-operator namespace: openshift-operators spec: channel: stable installPlanApproval: Automatic name: openshift-gitops-operator source: redhat-operators sourceNamespace: openshift-marketplace startingCSV: openshift-gitops-operator.v1.2.0 status: installplan: apiVersion: operators.coreos.com/v1alpha1 kind: InstallPlan name: install-rzdwt uuid: 7a772cec-f487-4cf9-8689-7c533c212c82 lastUpdated: '2021-08-24T03:46:16Z' installedCSV: openshift-gitops-operator.v1.2.0 currentCSV: openshift-gitops-operator.v1.2.0 installPlanRef: apiVersion: operators.coreos.com/v1alpha1 kind: InstallPlan name: install-rzdwt namespace: openshift-operators resourceVersion: '50025' uid: 7a772cec-f487-4cf9-8689-7c533c212c82 state: AtLatestKnown catalogHealth: - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: certified-operators namespace: openshift-marketplace resourceVersion: '48843' uid: 6c1dc387-00b4-4bb7-86f3-9e349a55abf0 healthy: true lastUpdated: '2021-08-24T02:43:15Z' - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: community-operators namespace: openshift-marketplace resourceVersion: '47352' uid: 7d63bae9-06a9-434b-be50-af60fc73c19d healthy: true lastUpdated: '2021-08-24T02:43:15Z' - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: redhat-marketplace namespace: openshift-marketplace resourceVersion: '48061' uid: ef6d3590-a326-4ceb-bced-e180c50ff314 healthy: true lastUpdated: '2021-08-24T02:43:15Z' - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: redhat-operators namespace: openshift-marketplace resourceVersion: '46591' uid: 1a6025d8-c166-4a9a-a608-c051cfc904a8 healthy: true lastUpdated: '2021-08-24T02:43:15Z' conditions: - lastTransitionTime: '2021-08-24T02:43:15Z' message: all available catalogsources are healthy reason: AllCatalogSourcesHealthy status: 'False' type: CatalogSourcesUnhealthy - lastTransitionTime: '2021-08-24T02:53:03Z' message: >- api-server resource not found installing CustomResourceDefinition gitopsservices.pipelines.openshift.io: GroupVersionKind apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition not found on the cluster. This API may have been deprecated and removed, see https://kubernetes.io/docs/reference/using-api/deprecation-guide/ for more information. reason: InstallComponentFailed status: 'True' type: InstallPlanFailed installPlanGeneration: 1 <|endoftext|> # istio_remote-cluster-respect-revision.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation # issue is a list of GitHub issues resolved in this note. issue: - 47552 releaseNotes: - | **Fixed** an issue that Endpoint and Service in istiod-remote chart do not respect the revision value <|endoftext|> # istio_51972.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** `values.cni.logLevel` is a no-op, and is now deprecated. Use `values.{cni|global}.logging.level` instead. <|endoftext|> # k8s_docs_run-as-username-container.yaml apiVersion: v1 kind: Pod metadata: name: run-as-username-container-demo spec: securityContext: windowsOptions: runAsUserName: "ContainerUser" containers: - name: run-as-username-demo image: mcr.microsoft.com/windows/servercore:ltsc2019 command: ["ping", "-t", "localhost"] securityContext: windowsOptions: runAsUserName: "ContainerAdministrator" nodeSelector: kubernetes.io/os: windows <|endoftext|> # helm_charts_health-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "redis.fullname" . }}-health labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} data: ping_readiness_local.sh: |- {{- if .Values.usePasswordFile }} password_aux=`cat ${REDIS_PASSWORD_FILE}` export REDIS_PASSWORD=$password_aux {{- end }} response=$( timeout -s 9 $1 \ redis-cli \ {{- if .Values.usePassword }} -a $REDIS_PASSWORD --no-auth-warning \ {{- end }} -h localhost \ -p $REDIS_PORT \ ping ) if [ "$response" != "PONG" ]; then echo "$response" exit 1 fi ping_liveness_local.sh: |- {{- if .Values.usePasswordFile }} password_aux=`cat ${REDIS_PASSWORD_FILE}` export REDIS_PASSWORD=$password_aux {{- end }} response=$( timeout -s 9 $1 \ redis-cli \ {{- if .Values.usePassword }} -a $REDIS_PASSWORD --no-auth-warning \ {{- end }} -h localhost \ -p $REDIS_PORT \ ping ) if [ "$response" != "PONG" ] && [ "$response" != "LOADING Redis is loading the dataset in memory" ]; then echo "$response" exit 1 fi {{- if .Values.sentinel.enabled }} ping_sentinel.sh: |- {{- if .Values.usePasswordFile }} password_aux=`cat ${REDIS_PASSWORD_FILE}` export REDIS_PASSWORD=$password_aux {{- end }} response=$( timeout -s 9 $1 \ redis-cli \ {{- if .Values.usePassword }} -a $REDIS_PASSWORD --no-auth-warning \ {{- end }} -h localhost \ -p $REDIS_SENTINEL_PORT \ ping ) if [ "$response" != "PONG" ]; then echo "$response" exit 1 fi parse_sentinels.awk: |- /ip/ {FOUND_IP=1} /port/ {FOUND_PORT=1} /runid/ {FOUND_RUNID=1} !/ip|port|runid/ { if (FOUND_IP==1) { IP=$1; FOUND_IP=0; } else if (FOUND_PORT==1) { PORT=$1; FOUND_PORT=0; } else if (FOUND_RUNID==1) { printf "\nsentinel known-sentinel {{ .Values.sentinel.masterSet }} %s %s %s", IP, PORT, $0; FOUND_RUNID=0; } } {{- end }} ping_readiness_master.sh: |- {{- if .Values.usePasswordFile }} password_aux=`cat ${REDIS_MASTER_PASSWORD_FILE}` export REDIS_MASTER_PASSWORD=$password_aux {{- end }} response=$( timeout -s 9 $1 \ redis-cli \ {{- if .Values.usePassword }} -a $REDIS_MASTER_PASSWORD --no-auth-warning \ {{- end }} -h $REDIS_MASTER_HOST \ -p $REDIS_MASTER_PORT_NUMBER \ ping ) if [ "$response" != "PONG" ]; then echo "$response" exit 1 fi ping_liveness_master.sh: |- {{- if .Values.usePasswordFile }} password_aux=`cat ${REDIS_MASTER_PASSWORD_FILE}` export REDIS_MASTER_PASSWORD=$password_aux {{- end }} response=$( timeout -s 9 $1 \ redis-cli \ {{- if .Values.usePassword }} -a $REDIS_MASTER_PASSWORD --no-auth-warning \ {{- end }} -h $REDIS_MASTER_HOST \ -p $REDIS_MASTER_PORT_NUMBER \ ping ) if [ "$response" != "PONG" ] && [ "$response" != "LOADING Redis is loading the dataset in memory" ]; then echo "$response" exit 1 fi ping_readiness_local_and_master.sh: |- script_dir="$(dirname "$0")" exit_status=0 "$script_dir/ping_readiness_local.sh" $1 || exit_status=$? "$script_dir/ping_readiness_master.sh" $1 || exit_status=$? exit $exit_status ping_liveness_local_and_master.sh: |- script_dir="$(dirname "$0")" exit_status=0 "$script_dir/ping_liveness_local.sh" $1 || exit_status=$? "$script_dir/ping_liveness_master.sh" $1 || exit_status=$? exit $exit_status <|endoftext|> # istio_drop-xds-v2.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** support for XDS v2 types in `EnvoyFilter`s. These should use the v3 interface. This has been a warning for multiple releases and is now upgraded to an error. <|endoftext|> # argocd_source_resourceNotUpdatedApplicationSet.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-git namespace: argocd spec: generators: - merge: generators: [] mergeKeys: - server template: metadata: name: '{{name}}' spec: destination: namespace: default server: '{{server}}' project: default source: path: helm-guestbook repoURL: https://github.com/argoproj/argocd-example-apps/ targetRevision: HEAD status: conditions: - lastTransitionTime: '2025-05-30T15:41:02Z' message: All applications have been generated successfully reason: ApplicationSetUpToDate status: 'False' type: ErrorOccurred - lastTransitionTime: '2025-05-27T18:45:48Z' message: Successfully generated parameters for all Applications reason: ParametersGenerated status: 'True' type: ParametersGenerated - lastTransitionTime: '2025-05-30T15:41:02Z' message: 'could not create application' reason: CreateApplicationError status: 'False' type: ResourcesUpToDate <|endoftext|> # argocd_source_live_validating_webhook.yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"admissionregistration.k8s.io/v1","kind":"ValidatingWebhookConfiguration","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"external-secrets","external-secrets.io/component":"webhook"},"name":"externalsecret-validate"},"webhooks":[{"admissionReviewVersions":["v1","v1beta1"],"clientConfig":{"caBundle":"Cg==","service":{"name":"external-secrets-webhook","namespace":"external-secrets","path":"/validate-external-secrets-io-v1beta1-externalsecret"}},"name":"validate.externalsecret.external-secrets.io","rules":[{"apiGroups":["external-secrets.io"],"apiVersions":["v1beta1"],"operations":["CREATE","UPDATE","DELETE"],"resources":["externalsecrets"],"scope":"Namespaced"}],"sideEffects":"None","timeoutSeconds":5}]} creationTimestamp: '2022-04-12T14:17:35Z' generation: 2 labels: app.kubernetes.io/instance: external-secrets external-secrets.io/component: webhook managedFields: - apiVersion: admissionregistration.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': .: {} 'f:kubectl.kubernetes.io/last-applied-configuration': {} 'f:labels': .: {} 'f:app.kubernetes.io/instance': {} 'f:external-secrets.io/component': {} 'f:webhooks': .: {} 'k:{"name":"validate.externalsecret.external-secrets.io"}': .: {} 'f:admissionReviewVersions': {} 'f:clientConfig': .: {} 'f:service': .: {} 'f:name': {} 'f:namespace': {} 'f:path': {} 'f:port': {} 'f:failurePolicy': {} 'f:matchPolicy': {} 'f:name': {} 'f:namespaceSelector': {} 'f:objectSelector': {} 'f:rules': {} 'f:sideEffects': {} 'f:timeoutSeconds': {} manager: argocd operation: Update time: '2022-04-12T14:17:35Z' - apiVersion: admissionregistration.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: 'f:webhooks': 'k:{"name":"validate.externalsecret.external-secrets.io"}': 'f:clientConfig': 'f:caBundle': {} manager: external-secrets operation: Update time: '2022-04-12T14:17:37Z' name: externalsecret-validate resourceVersion: '1644596' uid: b56ccc4e-30d6-4b32-8a6e-7eae41ab3155 webhooks: - admissionReviewVersions: - v1 - v1beta1 clientConfig: caBundle: >- LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURSakNDQWk2Z0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREEyTVJrd0Z3WURWUVFLRXhCbGVIUmwKY201aGJDMXpaV055WlhSek1Sa3dGd1lEVlFRREV4QmxlSFJsY201aGJDMXpaV055WlhSek1CNFhEVEl5TURReApNakV6TVRjek4xb1hEVE15TURRd09URTBNVGN6TjFvd05qRVpNQmNHQTFVRUNoTVFaWGgwWlhKdVlXd3RjMlZqCmNtVjBjekVaTUJjR0ExVUVBeE1RWlhoMFpYSnVZV3d0YzJWamNtVjBjekNDQVNJd0RRWUpLb1pJaHZjTkFRRUIKQlFBRGdnRVBBRENDQVFvQ2dnRUJBTU9RQmR2Z210RE1aVjRhNGQ2dUw5ZGNzT3c4SXRnbW9zZ3R1MGplTlF2Ygo4a291TmdRMVpxMlFSVFVNTTVCYlpNRTNGWHM3aWxwNVZVbzN3SnZsaVdVVHhxb3lIMUY2VUszbUsyYmp2aHRrCnVEYWVnNkh4ZzNjRlVybXRvNCtyVHNTT1BlN3ZRajVNbWZzeVEzb1BXamxFbExyMEE5b3RScGZnZGZtNWxncHgKVkE0SFdGeWZmQ3hpUEFaamNYNFdjd1hOdzJSN21aQnNNSW1xTk1YOUhzUEVOdTdzdk1DeXEzU0pvdzNqTXFpNgpHUFZaUmh2ZlRSY2hDcmV2UVE3OTRPNGkrSVk3ZVdvV00yZDgweVM3V09LcUUvNEE1SU9tNWVJK1BhNUlvd3E1CnppckxxU3lsYW15bzZxbWN3TDFEbFpiM2RmSE9GVUx0cFM1YkhTSzQyTWNDQXdFQUFhTmZNRjB3RGdZRFZSMFAKQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCL3dRRk1BTUJBZjh3SFFZRFZSME9CQllFRk1QMkF1aUh1d2FsczlTcgpYWk1XODdyb2l0UElNQnNHQTFVZEVRUVVNQktDRUdWNGRHVnlibUZzTFhObFkzSmxkSE13RFFZSktvWklodmNOCkFRRUxCUUFEZ2dFQkFMek5BczhnS2FqYjc1N3pyMjdHRzBMVzkxVG1ab1dPQ0ZHMXFrUWJ3T2U0d25kV2NiT08KbThsYkx6a291Wlo5d1I0aXN2OVFHYnNlS0V1UXpyWlZzZXlJTHZoUGVWcGZGd1ZkcVFsQ0laRXM5SSswd0hXawplblFWWGNEamZMTk9zdDhFcDlKVktwSkJwODRIY1NvZkJMY1RPcFdqdGZtZnNudmlzbU5ha2hGNzM2SmJrQUdmClZvdUJDQlU5Z3g2SGI5T2FDaDdpekZLMnVyWHo1NkV5eXhhUUlsckRyYVlZV3Mrb3ZhTlJwdEltKytqcnFBdUkKV0xxdWQvU0tQMy9Fc3o3cmVWb2xGODFIYmdEMEQ0RWlmZWJZeXpnWEJMcVlZcUxUZXIzQzVONFRwcGpJSi82NgpERVBNZ0xUaG9jRkpZNVFBYy9rbGl5Q2VnN3VoWSs5TnFLRT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= service: name: external-secrets-webhook namespace: external-secrets path: /validate-external-secrets-io-v1beta1-externalsecret port: 443 failurePolicy: Fail matchPolicy: Equivalent name: validate.externalsecret.external-secrets.io namespaceSelector: {} objectSelector: {} rules: - apiGroups: - external-secrets.io apiVersions: - v1beta1 operations: - CREATE - UPDATE - DELETE resources: - externalsecrets scope: Namespaced sideEffects: None timeoutSeconds: 5 <|endoftext|> # argocd_source_lastScheduleTime.yaml apiVersion: apps.kruise.io/v1alpha1 kind: AdvancedCronJob metadata: name: acj-test spec: schedule: "*/1 * * * *" template: broadcastJobTemplate: spec: template: spec: containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] restartPolicy: Never completionPolicy: type: Always ttlSecondsAfterFinished: 30 status: lastScheduleTime: "2023-09-16T16:29:00Z" type: BroadcastJob <|endoftext|> # grafana_charts_servicemonitor-ruler.yaml {{- if .Values.ruler.enabled }} {{- with .Values.serviceMonitor }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "loki.rulerFullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "loki.rulerLabels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 4 }} {{- end }} selector: matchLabels: {{- include "loki.rulerSelectorLabels" $ | nindent 6 }} {{- with .matchExpressions }} matchExpressions: {{- toYaml . | nindent 6 }} {{- end }} endpoints: - port: http {{- with .interval }} interval: {{ . }} {{- end }} {{- with .scrapeTimeout }} scrapeTimeout: {{ . }} {{- end }} {{- with .relabelings }} relabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .metricRelabelings }} metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .scheme }} scheme: {{ . }} {{- end }} {{- with .tlsConfig }} tlsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .targetLabels }} targetLabels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_53086.yaml apiVersion: release-notes/v2 kind: feature area: telemetry # issue is a list of GitHub issues resolved in this note. issue: - https://github.com/istio/istio/issues/53086 releaseNotes: - | **Added** support customized zipkin collector endpoint. <|endoftext|> # k8s_docs_qos-pod-4.yaml apiVersion: v1 kind: Pod metadata: name: qos-demo-4 namespace: qos-example spec: containers: - name: qos-demo-4-ctr-1 image: nginx resources: requests: memory: "200Mi" - name: qos-demo-4-ctr-2 image: redis <|endoftext|> # k8s_docs_share-process-namespace.yaml apiVersion: v1 kind: Pod metadata: name: nginx spec: shareProcessNamespace: true containers: - name: nginx image: nginx - name: shell image: busybox:1.28 command: ["sleep", "3600"] securityContext: capabilities: add: - SYS_PTRACE stdin: true tty: true <|endoftext|> # k8s_docs_nginx-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx spec: selector: matchLabels: app: nginx replicas: 3 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 <|endoftext|> # istio_grpc.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: default hostname: "*.domain.example" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All kinds: - kind: GRPCRoute --- apiVersion: gateway.networking.k8s.io/v1 kind: GRPCRoute metadata: name: grpc namespace: default spec: parentRefs: - name: gateway namespace: istio-system hostnames: ["first.domain.example", "another.domain.example"] rules: - matches: - method: service: "foo" headers: - name: my-header value: some-value type: Exact filters: - type: RequestHeaderModifier requestHeaderModifier: add: - name: my-added-header value: added-value remove: [my-removed-header] backendRefs: - name: httpbin port: 80 - matches: - method: type: RegularExpression method: "bar" backendRefs: - name: httpbin port: 80 <|endoftext|> # k8s_examples_cinder-storage-class.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: gold provisioner: kubernetes.io/cinder parameters: type: fast availability: nova <|endoftext|> # flux_source_source-git-refname.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: GitRepository metadata: name: podinfo namespace: flux-system spec: interval: 1m0s ref: name: refs/heads/main url: https://github.com/stefanprodan/podinfo <|endoftext|> # argocd_source_application.yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: guestbook # You'll usually want to add your resources to the argocd namespace. namespace: argocd # Add this finalizer ONLY if you want these to cascade delete. finalizers: # The default behaviour is foreground cascading deletion - resources-finalizer.argocd.argoproj.io # Alternatively, you can use background cascading deletion # - resources-finalizer.argocd.argoproj.io/background # Add labels to your application object. labels: name: guestbook spec: # The project the application belongs to. project: default # Source of the application manifests source: repoURL: https://github.com/argoproj/argocd-example-apps.git # Can point to either a Helm chart repo or a git repo. targetRevision: HEAD # For Helm, this refers to the chart version. path: guestbook # This has no meaning for Helm charts pulled directly from a Helm repo instead of git. # helm specific config chart: chart-name # Set this when pulling directly from a Helm repo. DO NOT set for git-hosted Helm charts. helm: passCredentials: false # If true then adds --pass-credentials to Helm commands to pass credentials to all domains # Extra parameters to set (same as setting through values.yaml, but these take precedence) parameters: - name: "nginx-ingress.controller.service.annotations.external-dns\\.alpha\\.kubernetes\\.io/hostname" value: mydomain.example.com - name: "ingress.annotations.kubernetes\\.io/tls-acme" value: "true" forceString: true # ensures that value is treated as a string # Use the contents of files as parameters (uses Helm's --set-file) fileParameters: - name: config path: files/config.json # Release name override (defaults to application name) releaseName: guestbook # Helm values files for overriding values in the helm chart # The path is relative to the spec.source.path directory defined above valueFiles: - values-prod.yaml # Ignore locally missing valueFiles when installing Helm chart. Defaults to false ignoreMissingValueFiles: false # Values file as block file. Prefer to use valuesObject if possible (see below) values: | ingress: enabled: true path: / hosts: - mydomain.example.com annotations: kubernetes.io/ingress.class: nginx kubernetes.io/tls-acme: "true" labels: {} tls: - secretName: mydomain-tls hosts: - mydomain.example.com # Values file as block file. This takes precedence over values valuesObject: ingress: enabled: true path: / hosts: - mydomain.example.com annotations: kubernetes.io/ingress.class: nginx kubernetes.io/tls-acme: "true" labels: {} tls: - secretName: mydomain-tls hosts: - mydomain.example.com # Skip custom resource definition installation if chart contains custom resource definitions. Defaults to false skipCrds: false # Skip schema validation if chart contains JSON schema validation. Defaults to false skipSchemaValidation: false # Optional Helm version to template with. If omitted it will fall back to look at the 'apiVersion' in Chart.yaml # and decide which Helm binary to use automatically. This field can be either 'v2' or 'v3'. version: v2 # You can specify the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses # the Kubernetes version of the target cluster. The value must be semver formatted. Do not prefix with `v`. kubeVersion: 1.30.0 # You can specify the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo # CD uses the API versions of the target cluster. The format is [group/]version/kind. apiVersions: - traefik.io/v1alpha1/TLSOption - v1/Service # Optional namespace to template with. If left empty, defaults to the app's destination namespace. namespace: custom-namespace # kustomize specific config kustomize: # Optional kustomize version. Note: version must be configured in argocd-cm ConfigMap version: v3.5.4 # Supported kustomize transformers. https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/ namePrefix: prod- nameSuffix: -some-suffix commonLabels: foo: bar commonAnnotations: beep: boop-${ARGOCD_APP_REVISION} # Toggle which enables/disables env variables substitution in commonAnnotations commonAnnotationsEnvsubst: true # Defines if the common label(s) should be applied to resource selectors. It also excludes common labels from # templates unless `labelIncludeTemplates` is set to true. labelWithoutSelector: false # Defines if the common label(s) should be applied to resource templates. labelIncludeTemplates: false forceCommonLabels: false forceCommonAnnotations: false images: - quay.io/argoprojlabs/argocd-e2e-container:0.2 - my-app=gcr.io/my-repo/my-app:0.1 namespace: custom-namespace replicas: - name: kustomize-guestbook-ui count: 4 components: - ../component # relative to the kustomization.yaml (`source.path`). # Ignore locally missing component directories when using Kustomize Components. Defaults to false ignoreMissingComponents: true patches: - target: kind: Deployment name: guestbook-ui patch: |- - op: add # Add new element to manifest path: /spec/template/spec/nodeSelector/ value: env: "pro" # You can specify the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD uses # the Kubernetes version of the target cluster. The value must be semver formatted. Do not prefix with `v`. kubeVersion: 1.30.0 # You can specify the Kubernetes resource API versions to pass to Helm when templating manifests. By default, Argo # CD uses the API versions of the target cluster. The format is [group/]version/kind. apiVersions: - traefik.io/v1alpha1/TLSOption - v1/Service # directory directory: recurse: true jsonnet: # A list of Jsonnet External Variables extVars: - name: foo value: bar # You can use "code" to determine if the value is either string (false, the default) or Jsonnet code (if code is true). - code: true name: baz value: "true" # A list of Jsonnet Top-level Arguments tlas: - code: false name: foo value: bar # Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during # manifest generation. This takes precedence over the `include` field. # To match multiple patterns, wrap the patterns in {} and separate them with commas. For example: '{config.yaml,env-use2/*}' exclude: 'config.yaml' # Include contains a glob pattern to match paths against that should be explicitly included during manifest # generation. If this field is set, only matching manifests will be included. # To match multiple patterns, wrap the patterns in {} and separate them with commas. For example: '{*.yml,*.yaml}' include: '*.yaml' # plugin specific config plugin: # If the plugin is defined as a sidecar and name is not passed, the plugin will be automatically matched with the # Application according to the plugin's discovery rules. name: mypluginname # environment variables passed to the plugin env: - name: FOO value: bar # Plugin parameters are new in v2.5. parameters: - name: string-param string: example-string - name: array-param array: [item1, item2] - name: map-param map: param-name: param-value # Sources field specifies the list of sources for the application sources: - repoURL: https://github.com/argoproj/argocd-example-apps.git # Can point to either a Helm chart repo or a git repo. targetRevision: HEAD # For Helm, this refers to the chart version. path: guestbook # This has no meaning for Helm charts pulled directly from a Helm repo instead of git. ref: my-repo # For Helm, acts as a reference to this source for fetching values files from this source. Has no meaning when under `source` field name: 'guestbook' # Optional source name. Can be used instead of the source position in multi-source Applications CLI # Destination cluster and namespace to deploy the application destination: # cluster API URL server: https://kubernetes.default.svc # or cluster name # name: in-cluster # The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace namespace: guestbook # Extra information to show in the Argo CD Application details tab info: - name: 'Example:' value: 'https://example.com' # Sync policy syncPolicy: automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field. enabled: true # Enables automated syncing of the application ( true by default ). prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ). selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ). allowEmpty: false # Allows deleting all application resources during automatic syncing ( false by default ). syncOptions: # Sync options which modifies sync behavior - Validate=false # disables resource validation (equivalent to 'kubectl apply --validate=false') ( true by default ). - CreateNamespace=true # Namespace Auto-Creation ensures that namespace specified as the application destination exists in the destination cluster. - PrunePropagationPolicy=foreground # Supported policies are background, foreground and orphan. - PruneLast=true # Allow the ability for resource pruning to happen as a final, implicit wave of a sync operation - RespectIgnoreDifferences=true # When syncing changes, respect fields ignored by the ignoreDifferences configuration - ApplyOutOfSyncOnly=true # Only sync out-of-sync resources, rather than applying every object in the application - SkipDryRunOnMissingResource=true # Allow skip dry run on missing resource - Replace=true # Argo CD will use kubectl replace or kubectl create command to apply changes. managedNamespaceMetadata: # Sets the metadata for the application namespace. Only valid if CreateNamespace=true (see above), otherwise it's a no-op. labels: # The labels to set on the application namespace any: label you: like annotations: # The annotations to set on the application namespace the: same applies: for annotations: on-the-namespace # The retry feature is available since v1.7 retry: limit: 5 # number of failed sync attempt retries; unlimited number of attempts if less than 0 backoff: duration: 5s # the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") factor: 2 # a factor to multiply the base duration after each failed retry maxDuration: 3m # the maximum amount of time allowed for the backoff strategy # Will ignore differences between live and desired states during the diff. Note that these configurations are not # used during the sync process unless the `RespectIgnoreDifferences=true` sync option is enabled. ignoreDifferences: # for the specified json pointers - group: apps kind: Deployment jsonPointers: - /spec/replicas - kind: ConfigMap jqPathExpressions: # Example: Ignore changes to a specific key inside a ConfigMap - '.data["config.yaml"]' # for the specified managedFields managers - group: "*" kind: "*" managedFieldsManagers: - kube-controller-manager # Name and namespace are optional. If specified, they must match exactly, these are not glob patterns. name: my-deployment namespace: my-namespace # RevisionHistoryLimit limits the number of items kept in the application's revision history, which is used for # informational purposes as well as for rollbacks to previous versions. This should only be changed in exceptional # circumstances. Setting to zero will store no history. This will reduce storage used. Increasing will increase the # space used to store the history, so we do not recommend increasing it. revisionHistoryLimit: 10 # sourceHydrator enables manifest hydration from a dry source to a sync source branch. # The drySource.helm, drySource.kustomize, drySource.directory, and drySource.plugin fields # are available and follow the same spec as the source field above. sourceHydrator: drySource: repoURL: https://github.com/argoproj/argocd-example-apps.git targetRevision: HEAD path: guestbook # helm, kustomize, directory, and plugin fields are available here. # See the source.helm, source.kustomize, source.directory, and source.plugin sections above for details. syncSource: targetBranch: env/prod path: guestbook-hydrated <|endoftext|> # istio_35485.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 35485 releaseNotes: - | **Added** `istioctl operator dump` now supports the `watchedNamespaces` argument to specify the namespaces the operator controller watches. <|endoftext|> # kustomize_replica_set.template.yaml # Copyright 2021 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 apiVersion: apps/v1 kind: ReplicaSet metadata: name: hello spec: selector: matchLabels: app: hello template: metadata: labels: app: hello spec: containers: - name: hello image: nginx env: - name: EXISTING value: variable <|endoftext|> # helm_charts_firefoxDebug-deployment.yaml {{- if and (eq true .Values.firefoxDebug.enabled) (eq false .Values.firefoxDebug.runAsDaemonSet) -}} apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "selenium.firefoxDebug.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: replicas: {{ .Values.firefoxDebug.replicas }} selector: matchLabels: app: {{ template "selenium.firefoxDebug.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.firefoxDebug.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.firefoxDebug.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.firefoxDebug.podAnnotations }} annotations: {{ toYaml .Values.firefoxDebug.podAnnotations | indent 8 }} {{- end}} spec: {{- if .Values.firefoxDebug.securityContext }} securityContext: {{ toYaml .Values.firefoxDebug.securityContext | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.firefoxDebug.image }}:{{ .Values.firefoxDebug.tag }}" imagePullPolicy: {{ .Values.firefoxDebug.pullPolicy }} ports: {{- if .Values.firefoxDebug.jmxPort }} - containerPort: {{ .Values.firefoxDebug.jmxPort }} name: jmx protocol: TCP {{- end }} - containerPort: 5900 name: vnc {{- if .Values.firefoxDebug.enableLivenessProbe }} livenessProbe: httpGet: path: /wd/hub/status port: {{ default "5555" .Values.firefoxDebug.nodePort }} initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 1 {{- end }} {{- if .Values.firefoxDebug.waitForRunningSessions }} lifecycle: preStop: exec: command: - /bin/bash - -c - "while [ $(wget -q -O - http://localhost:{{ default "5555" .Values.firefoxDebug.nodePort }}/wd/hub/sessions | grep -c capabilities) -gt 0 ]; do sleep 1; done" {{- end }} env: - name: HUB_PORT_4444_TCP_ADDR value: {{ template "selenium.hub.fullname" . }} - name: HUB_PORT_4444_TCP_PORT value: {{ .Values.hub.servicePort | quote }} - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.firefoxDebug.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.firefoxDebug.seOpts | quote }} {{- if .Values.firefoxDebug.firefoxVersion }} - name: FIREFOX_VERSION value: {{ .Values.firefoxDebug.firefoxVersion | quote }} {{- end }} {{- if .Values.firefoxDebug.nodeMaxInstances }} - name: NODE_MAX_INSTANCES value: {{ .Values.firefoxDebug.nodeMaxInstances | quote }} {{- end }} {{- if .Values.firefoxDebug.nodeMaxSession }} - name: NODE_MAX_SESSION value: {{ .Values.firefoxDebug.nodeMaxSession | quote }} {{- end }} {{- if .Values.firefoxDebug.nodeRegisterCycle }} - name: NODE_REGISTER_CYCLE value: {{ .Values.firefoxDebug.nodeRegisterCycle | quote }} {{- end }} {{- if .Values.firefoxDebug.nodePort }} - name: NODE_PORT value: {{ .Values.firefoxDebug.nodePort | quote }} {{- end }} {{- if .Values.firefoxDebug.screenWidth }} - name: SCREEN_WIDTH value: {{ .Values.firefoxDebug.screenWidth | quote }} {{- end }} {{- if .Values.firefoxDebug.screenHeight }} - name: SCREEN_HEIGHT value: {{ .Values.firefoxDebug.screenHeight | quote }} {{- end }} {{- if .Values.firefoxDebug.screenDepth }} - name: SCREEN_DEPTH value: {{ .Values.firefoxDebug.screenDepth | quote }} {{- end }} {{- if .Values.firefoxDebug.display }} - name: DISPLAY value: {{ .Values.firefoxDebug.display | quote }} {{- end }} {{- if .Values.firefoxDebug.timeZone }} - name: TZ value: {{ .Values.firefoxDebug.timeZone | quote }} {{- end }} {{- if .Values.firefoxDebug.extraEnvs }} {{ toYaml .Values.firefoxDebug.extraEnvs | indent 12 }} {{- end }} volumeMounts: {{ if .Values.firefoxDebug.volumeMounts -}} {{ toYaml .Values.firefoxDebug.volumeMounts | indent 12 }} {{- end }} resources: {{ toYaml .Values.firefoxDebug.resources | indent 12 }} {{- if or .Values.global.imagePullSecrets .Values.firefoxDebug.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.firefoxDebug.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} volumes: {{ if .Values.firefoxDebug.volumes -}} {{ toYaml .Values.firefoxDebug.volumes | indent 8 }} {{- end }} hostAliases: {{ toYaml .Values.global.hostAliases | indent 8 }} nodeSelector: {{- if .Values.firefoxDebug.nodeSelector }} {{ toYaml .Values.firefoxDebug.nodeSelector | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | indent 8 }} {{- end }} affinity: {{- if .Values.firefoxDebug.affinity }} {{ toYaml .Values.firefoxDebug.affinity | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | indent 8 }} {{- end }} tolerations: {{- if .Values.firefoxDebug.tolerations }} {{ toYaml .Values.firefoxDebug.tolerations | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | indent 8 }} {{- end }} {{- end -}} <|endoftext|> # helm_charts_secret-env.yaml {{- if .Values.envRenderSecret }} apiVersion: v1 kind: Secret metadata: name: {{ template "grafana.fullname" . }}-env namespace: {{ template "grafana.namespace" . }} labels: {{- include "grafana.labels" . | nindent 4 }} type: Opaque data: {{- range $key, $val := .Values.envRenderSecret }} {{ $key }}: {{ $val | b64enc | quote }} {{- end -}} {{- end }} <|endoftext|> # helm_charts_firefoxDebug-daemonset.yaml {{- if and (eq true .Values.firefoxDebug.enabled) (eq true .Values.firefoxDebug.runAsDaemonSet) -}} apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "selenium.firefoxDebug.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: replicas: {{ .Values.firefoxDebug.replicas }} selector: matchLabels: app: {{ template "selenium.firefoxDebug.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.firefoxDebug.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.firefoxDebug.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.firefoxDebug.podAnnotations }} annotations: {{ toYaml .Values.firefoxDebug.podAnnotations | indent 8 }} {{- end}} spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.firefoxDebug.image }}:{{ .Values.firefoxDebug.tag }}" imagePullPolicy: {{ .Values.firefoxDebug.pullPolicy }} ports: {{- if .Values.firefoxDebug.jmxPort }} - containerPort: {{ .Values.firefoxDebug.jmxPort }} name: jmx protocol: TCP {{- end }} - containerPort: 5900 name: vnc {{- if .Values.firefoxDebug.enableLivenessProbe }} livenessProbe: httpGet: path: /wd/hub/status port: {{ default "5555" .Values.firefoxDebug.nodePort }} initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 1 {{- end }} {{- if .Values.firefoxDebug.waitForRunningSessions }} lifecycle: preStop: exec: command: - /bin/bash - -c - "while [ $(wget -q -O - http://localhost:{{ default "5555" .Values.firefoxDebug.nodePort }}/wd/hub/sessions | grep -c capabilities) -gt 0 ]; do sleep 1; done" {{- end }} env: - name: HUB_PORT_4444_TCP_ADDR value: {{ template "selenium.hub.fullname" . }} - name: HUB_PORT_4444_TCP_PORT value: {{ .Values.hub.servicePort | quote }} - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.firefoxDebug.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.firefoxDebug.seOpts | quote }} {{- if .Values.firefoxDebug.firefoxVersion }} - name: FIREFOX_VERSION value: {{ .Values.firefoxDebug.firefoxVersion | quote }} {{- end }} {{- if .Values.firefoxDebug.nodeMaxInstances }} - name: NODE_MAX_INSTANCES value: {{ .Values.firefoxDebug.nodeMaxInstances | quote }} {{- end }} {{- if .Values.firefoxDebug.nodeMaxSession }} - name: NODE_MAX_SESSION value: {{ .Values.firefoxDebug.nodeMaxSession | quote }} {{- end }} {{- if .Values.firefoxDebug.nodeRegisterCycle }} - name: NODE_REGISTER_CYCLE value: {{ .Values.firefoxDebug.nodeRegisterCycle | quote }} {{- end }} {{- if .Values.firefoxDebug.nodePort }} - name: NODE_PORT value: {{ .Values.firefoxDebug.nodePort | quote }} {{- end }} {{- if .Values.firefoxDebug.screenWidth }} - name: SCREEN_WIDTH value: {{ .Values.firefoxDebug.screenWidth | quote }} {{- end }} {{- if .Values.firefoxDebug.screenHeight }} - name: SCREEN_HEIGHT value: {{ .Values.firefoxDebug.screenHeight | quote }} {{- end }} {{- if .Values.firefoxDebug.screenDepth }} - name: SCREEN_DEPTH value: {{ .Values.firefoxDebug.screenDepth | quote }} {{- end }} {{- if .Values.firefoxDebug.display }} - name: DISPLAY value: {{ .Values.firefoxDebug.display | quote }} {{- end }} {{- if .Values.firefoxDebug.timeZone }} - name: TZ value: {{ .Values.firefoxDebug.timeZone | quote }} {{- end }} {{- if .Values.firefoxDebug.extraEnvs }} {{ toYaml .Values.firefoxDebug.extraEnvs | indent 12 }} {{- end }} volumeMounts: {{ if .Values.firefoxDebug.volumeMounts -}} {{ toYaml .Values.firefoxDebug.volumeMounts | indent 12 }} {{- end }} resources: {{ toYaml .Values.firefoxDebug.resources | indent 12 }} {{- if or .Values.global.imagePullSecrets .Values.firefoxDebug.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.firefoxDebug.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} volumes: {{ if .Values.firefoxDebug.volumes -}} {{ toYaml .Values.firefoxDebug.volumes | indent 8 }} {{- end }} hostAliases: {{ toYaml .Values.global.hostAliases | indent 8 }} nodeSelector: {{- if .Values.firefoxDebug.nodeSelector }} {{ toYaml .Values.firefoxDebug.nodeSelector | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | indent 8 }} {{- end }} affinity: {{- if .Values.firefoxDebug.affinity }} {{ toYaml .Values.firefoxDebug.affinity | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | indent 8 }} {{- end }} tolerations: {{- if .Values.firefoxDebug.tolerations }} {{ toYaml .Values.firefoxDebug.tolerations | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | indent 8 }} {{- end }} {{- end -}} <|endoftext|> # argocd_source_statefulset-ondelete.yaml apiVersion: apps/v1 kind: StatefulSet metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"apps/v1beta2","kind":"StatefulSet","metadata":{"annotations":{},"labels":{"app":"redis","app.kubernetes.io/instance":"redis","chart":"redis-3.6.5","heritage":"Tiller","release":"redis"},"name":"redis-master","namespace":"default"},"spec":{"selector":{"matchLabels":{"app":"redis","release":"redis","role":"master"}},"serviceName":"redis-master","template":{"metadata":{"labels":{"app":"redis","app.kubernetes.io/instance":"redis","release":"redis","role":"master"}},"spec":{"containers":[{"env":[{"name":"REDIS_REPLICATION_MODE","value":"master"},{"name":"REDIS_PASSWORD","valueFrom":{"secretKeyRef":{"key":"redis-password","name":"redis"}}},{"name":"REDIS_DISABLE_COMMANDS","value":"FLUSHDB,FLUSHALL"}],"image":"docker.io/bitnami/redis:4.0.10-debian-9","imagePullPolicy":"Always","livenessProbe":{"exec":{"command":["redis-cli","ping"]},"failureThreshold":5,"initialDelaySeconds":30,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5},"name":"redis","ports":[{"containerPort":6379,"name":"redis"}],"readinessProbe":{"exec":{"command":["redis-cli","ping"]},"failureThreshold":5,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"resources":{},"volumeMounts":[{"mountPath":"/bitnami/redis/data","name":"redis-data"}]}],"securityContext":{"fsGroup":1001,"runAsUser":1001},"serviceAccountName":"default"}},"updateStrategy":{"type":"OnDelete"},"volumeClaimTemplates":[{"metadata":{"labels":{"app":"redis","chart":"redis-3.6.5","component":"master","heritage":"Tiller","release":"redis"},"name":"redis-data"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"8Gi"}}}}]}} creationTimestamp: 2018-07-20T08:23:04Z generation: 1 labels: app: redis app.kubernetes.io/instance: redis chart: redis-3.6.5 heritage: Tiller release: redis name: redis-master namespace: default resourceVersion: "514251" selfLink: /apis/apps/v1/namespaces/default/statefulsets/redis-master uid: 1f80ab97-8bf6-11e8-aff0-42010a8a0fc6 spec: podManagementPolicy: OrderedReady replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: redis release: redis role: master serviceName: redis-master updateStrategy: type: OnDelete template: metadata: creationTimestamp: null labels: app: redis app.kubernetes.io/instance: redis release: redis role: master spec: containers: - env: - name: REDIS_REPLICATION_MODE value: master - name: REDIS_PASSWORD valueFrom: secretKeyRef: key: redis-password name: redis - name: REDIS_DISABLE_COMMANDS value: FLUSHDB,FLUSHALL image: docker.io/bitnami/redis:4.0.10-debian-9 imagePullPolicy: Always livenessProbe: exec: command: - redis-cli - ping failureThreshold: 5 initialDelaySeconds: 30 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 name: redis ports: - containerPort: 6379 name: redis protocol: TCP readinessProbe: exec: command: - redis-cli - ping failureThreshold: 5 initialDelaySeconds: 5 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /bitnami/redis/data name: redis-data dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: fsGroup: 1001 runAsUser: 1001 serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 updateStrategy: type: OnDelete volumeClaimTemplates: - kind: PersistentVolumeClaim apiVersion: v1 metadata: creationTimestamp: null labels: app: redis chart: redis-3.6.5 component: master heritage: Tiller release: redis name: redis-data spec: accessModes: - ReadWriteOnce resources: requests: storage: 8Gi status: phase: Pending status: collisionCount: 0 currentReplicas: 1 currentRevision: redis-master-7b8f75b98 observedGeneration: 1 readyReplicas: 1 replicas: 1 updateRevision: redis-master-7b8f75b98 <|endoftext|> # istio_45831.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** creating `istioin` and `istioout` geneve links on nodes which already have configured an external geneve link or another geneve link for the same VNI and remote IP. To avoid getting errors in these cases, istio-cni dynamically determines available destination ports for created geneve links. <|endoftext|> # argocd_examples_user-db-svc.yaml --- apiVersion: v1 kind: Service metadata: name: user-db labels: name: user-db spec: ports: # the port that this service should serve on - port: 27017 targetPort: 27017 selector: name: user-db <|endoftext|> # istio_26001.yaml apiVersion: release-notes/v2 kind: feature area: pilot issue: - 25339 releaseNotes: - | **Added** sets timeout to fetch workload certs to 0 because workload certs are guaranteed to exist, making a timeout irrelevant. <|endoftext|> # cert_manager_servicemonitor.yaml {{- if and .Values.prometheus.enabled (and .Values.prometheus.podmonitor.enabled .Values.prometheus.servicemonitor.enabled) }} {{- fail "Either .Values.prometheus.podmonitor.enabled or .Values.prometheus.servicemonitor.enabled can be enabled at a time, but not both." }} {{- else if and .Values.prometheus.enabled .Values.prometheus.servicemonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ template "cert-manager.fullname" . }} {{- if .Values.prometheus.servicemonitor.namespace }} namespace: {{ .Values.prometheus.servicemonitor.namespace }} {{- else }} namespace: {{ include "cert-manager.namespace" . }} {{- end }} labels: app: {{ include "cert-manager.name" . }} app.kubernetes.io/name: {{ include "cert-manager.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "controller" {{- include "labels" . | nindent 4 }} {{- if .Values.prometheus.servicemonitor.prometheusInstance }} prometheus: {{ .Values.prometheus.servicemonitor.prometheusInstance }} {{- end }} {{- with .Values.prometheus.servicemonitor.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- if .Values.prometheus.servicemonitor.annotations }} annotations: {{- with .Values.prometheus.servicemonitor.annotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- end }} spec: jobLabel: app.kubernetes.io/name selector: matchExpressions: - key: app.kubernetes.io/name operator: In values: - {{ include "cainjector.name" . }} - {{ template "cert-manager.name" . }} - {{ include "webhook.name" . }} - key: app.kubernetes.io/instance operator: In values: - {{ .Release.Name }} - key: app.kubernetes.io/component operator: In values: - cainjector - controller - webhook {{- if .Values.prometheus.servicemonitor.namespace }} namespaceSelector: matchNames: - {{ include "cert-manager.namespace" . }} {{- end }} endpoints: - targetPort: {{ .Values.prometheus.servicemonitor.targetPort }} path: {{ .Values.prometheus.servicemonitor.path }} {{- if .Values.prometheus.servicemonitor.interval }} interval: {{ .Values.prometheus.servicemonitor.interval }} {{- end }} {{- if .Values.prometheus.servicemonitor.scrapeTimeout }} scrapeTimeout: {{ .Values.prometheus.servicemonitor.scrapeTimeout }} {{- end }} honorLabels: {{ .Values.prometheus.servicemonitor.honorLabels }} {{- with .Values.prometheus.servicemonitor.endpointAdditionalProperties }} {{- toYaml . | nindent 4 }} {{- end }} {{- end }} <|endoftext|> # k8s_docs_pod-nginx-preferred-affinity.yaml apiVersion: v1 kind: Pod metadata: name: nginx spec: affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 preference: matchExpressions: - key: disktype operator: In values: - ssd containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent <|endoftext|> # istio_auto.yaml # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: proxy-service-instance spec: hosts: - example.com ports: - number: 7070 name: auto protocol: "" resolution: STATIC location: MESH_INTERNAL endpoints: - address: 1.1.1.1 labels: security.istio.io/tlsMode: istio --- # Set up .Services number of services. {{- range $i := until .Services }} apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-{{$i}} spec: addresses: - 240.240.{{div $i 255 }}.{{mod $i 255 }} hosts: - random-{{$i}}.host.example ports: - number: 7070 name: auto protocol: "" resolution: STATIC location: MESH_INTERNAL endpoints: - address: 240.241.{{div $i 255 }}.{{mod $i 255 }} labels: security.istio.io/tlsMode: istio --- {{- end }} <|endoftext|> # flux_source_secret-receiver-gcr-audience.yaml --- apiVersion: v1 kind: Secret metadata: annotations: notification.toolkit.fluxcd.io/webhook: https://flux.example.com/hook/6d6c55e9affb9d1e0d101ce604ae4270880ec1ff24d1bd2d928fcd64243d21a4 name: gcr-secret namespace: my-namespace stringData: audience: https://custom.audience.example.com email: sa@project.iam.gserviceaccount.com token: test-token <|endoftext|> # helm_charts_configmap-jmx.yaml {{- if and .Values.prometheus.jmx.enabled .Values.jmx.configMap.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "kafka.fullname" . }}-metrics labels: {{- include "kafka.monitor.labels" . | nindent 4 }} data: jmx-kafka-prometheus.yml: |+ {{- if .Values.jmx.configMap.overrideConfig }} {{ toYaml .Values.jmx.configMap.overrideConfig | indent 4 }} {{- else }} jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:{{ .Values.jmx.port }}/jmxrmi lowercaseOutputName: true lowercaseOutputLabelNames: true ssl: false {{ if .Values.jmx.whitelistObjectNames }} whitelistObjectNames: ["{{ join "\",\"" .Values.jmx.whitelistObjectNames }}"] {{ end }} rules: - pattern: kafka.controller<>(Value) name: kafka_controller_$1_$2_$4 labels: broker_id: "$3" - pattern: kafka.controller<>(Value) name: kafka_controller_$1_$2_$3 - pattern: kafka.controller<>(Value) name: kafka_controller_$1_$2_$3 - pattern: kafka.controller<>(Count) name: kafka_controller_$1_$2_$3 - pattern: kafka.server<>(Value) name: kafka_server_$1_$2_$4 labels: client_id: "$3" - pattern : kafka.network<>(Value) name: kafka_network_$1_$2_$4 labels: network_processor: $3 - pattern : kafka.network<>(Count) name: kafka_network_$1_$2_$4 labels: request: $3 - pattern: kafka.server<>(Count|OneMinuteRate) name: kafka_server_$1_$2_$4 labels: topic: $3 - pattern: kafka.server<>(Value) name: kafka_server_$1_$2_$3_$4 - pattern: kafka.server<>(Count|Value|OneMinuteRate) name: kafka_server_$1_total_$2_$3 - pattern: kafka.server<>(queue-size) name: kafka_server_$1_$2 - pattern: java.lang<(.+)>(\w+) name: java_lang_$1_$4_$3_$2 - pattern: java.lang<>(\w+) name: java_lang_$1_$3_$2 - pattern : java.lang - pattern: kafka.log<>Value name: kafka_log_$1_$2 labels: topic: $3 partition: $4 {{- end }} {{- end }} <|endoftext|> # helm_charts_metrics-server-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "metrics-server.fullname" . }} namespace: {{ .Release.Namespace }} labels: app: {{ template "metrics-server.name" . }} chart: {{ template "metrics-server.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: selector: matchLabels: app: {{ template "metrics-server.name" . }} release: {{ .Release.Name }} replicas: {{ .Values.replicas }} template: metadata: labels: app: {{ template "metrics-server.name" . }} release: {{ .Release.Name }} {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} {{- with .Values.podAnnotations }} annotations: {{- range $key, $value := . }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} spec: {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} {{- if .Values.imagePullSecrets }} imagePullSecrets: {{- range .Values.imagePullSecrets }} - name: {{ . }} {{- end }} {{- end }} serviceAccountName: {{ template "metrics-server.serviceAccountName" . }} {{- if .Values.hostNetwork.enabled }} hostNetwork: true {{- end }} containers: {{- if .Values.extraContainers }} {{- ( tpl (toYaml .Values.extraContainers) . ) | nindent 8 }} {{- end }} - name: metrics-server image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - /metrics-server - --cert-dir=/tmp - --logtostderr - --secure-port=8443 {{- range .Values.args }} - {{ . }} {{- end }} ports: - containerPort: 8443 name: https livenessProbe: {{- toYaml .Values.livenessProbe | trim | nindent 12 }} readinessProbe: {{- toYaml .Values.readinessProbe | trim | nindent 12 }} resources: {{- toYaml .Values.resources | trim | nindent 12 }} securityContext: {{- toYaml .Values.securityContext | trim | nindent 12 }} volumeMounts: - name: tmp mountPath: /tmp {{- with .Values.extraVolumeMounts }} {{- toYaml . | nindent 10 }} {{- end }} nodeSelector: {{- toYaml .Values.nodeSelector | trim | nindent 8 }} affinity: {{- toYaml .Values.affinity | trim | nindent 8 }} tolerations: {{- toYaml .Values.tolerations | trim | nindent 8 }} volumes: - name: tmp emptyDir: {} {{- with .Values.extraVolumes }} {{- toYaml . | nindent 6}} {{- end }} <|endoftext|> # istio_48021.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue where `istioctl experimental version` has no proxy info shown. <|endoftext|> # istio_49012.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue where the Kubernetes gateway was not working correctly with the namespace waypoint. <|endoftext|> # istio_tcp-echo-all-v1.yaml # Copyright 2018 Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: tcp-echo-gateway spec: selector: istio: ingressgateway servers: - port: number: 31400 name: tcp protocol: TCP hosts: - "*" --- apiVersion: networking.istio.io/v1 kind: DestinationRule metadata: name: tcp-echo-destination spec: host: tcp-echo subsets: - name: v1 labels: version: v1 - name: v2 labels: version: v2 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: tcp-echo spec: hosts: - "*" gateways: - tcp-echo-gateway tcp: - match: - port: 31400 route: - destination: host: tcp-echo port: number: 9000 subset: v1 <|endoftext|> # k8s_docs_projected-service-account-token.yaml apiVersion: v1 kind: Pod metadata: name: sa-token-test spec: containers: - name: container-test image: busybox volumeMounts: - name: token-vol mountPath: "/service-account" readOnly: true serviceAccountName: default volumes: - name: token-vol projected: sources: - serviceAccountToken: audience: api expirationSeconds: 3600 path: token <|endoftext|> # istio_56600.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support reset log level or stack trace level separately for `istioctl admin log`. <|endoftext|> # grafana_charts_statefulset-ingester.yaml {{- $dict := dict "ctx" . "component" "ingester" "memberlist" true -}} {{- $zonesMap := include "ingester.zoneAwareReplicationMap" $dict | fromYaml -}} {{- range $zoneName, $rolloutZone := $zonesMap -}} {{- with $ -}} {{- $_ := set $dict "rolloutZoneName" $zoneName -}} apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "ingester.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "ingester.labels" $dict | indent 4 }} {{- if .Values.ingester.zoneAwareReplication.enabled }} annotations: {{- include "ingester.Annotations" $dict | nindent 4}} {{- with $rolloutZone.annotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- else }} {{- with .Values.ingester.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} spec: {{- if not .Values.ingester.autoscaling.enabled }} replicas: {{ $rolloutZone.replicas }} {{- end }} revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }} selector: matchLabels: {{- include "ingester.selectorLabels" $dict | nindent 6}} serviceName: ingester podManagementPolicy: Parallel updateStrategy: {{- if .Values.ingester.zoneAwareReplication.enabled }} type: OnDelete {{- else }} {{- toYaml .Values.ingester.statefulStrategy | nindent 4 }} {{- end }} template: metadata: labels: {{- include "ingester.podLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} {{- if .Values.ingester.persistence.enabled }} storage/size: {{ .Values.ingester.persistence.size | quote }} {{- end }} {{- with .Values.tempo.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingester.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with $rolloutZone.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if or (.Values.ingester.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.ingester.priorityClassName .Values.global.priorityClassName }} {{- end }} serviceAccountName: {{ include "tempo.serviceAccountName" . }} {{- with .Values.tempo.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} enableServiceLinks: false {{- include "tempo.ingesterImagePullSecrets" . | nindent 6 -}} {{- with .Values.ingester.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: {{- toYaml .Values.ingester.initContainers | nindent 8 }} containers: - args: - -target=ingester - -config.file=/conf/tempo.yaml {{- if ne $zoneName ""}} - -ingester.availability-zone={{ $zoneName }} {{- end }} {{- with .Values.ingester.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.imageReference" $dict }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: ingester ports: - name: grpc containerPort: 9095 - name: http-memberlist containerPort: {{ include "tempo.memberlistBindPort" . }} - name: http-metrics containerPort: 3200 {{- if or .Values.global.extraEnv .Values.ingester.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.ingester.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.ingester.extraEnvFrom }} envFrom: {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.ingester.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} livenessProbe: {{- toYaml .Values.tempo.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.tempo.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.ingester.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config - mountPath: /runtime-config name: runtime-config - mountPath: /var/tempo name: data {{- if .Values.enterprise.enabled }} - name: license mountPath: /license {{- end }} {{- with .Values.ingester.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} terminationGracePeriodSeconds: {{ .Values.ingester.terminationGracePeriodSeconds }} {{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }} {{- with .Values.ingester.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- if eq $zoneName ""}} {{- with $rolloutZone.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- if ne $zoneName "" }} {{- with $rolloutZone.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- end }} {{- with $rolloutZone.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingester.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- include "tempo.configVolume" . | nindent 10 }} - name: runtime-config {{- include "tempo.runtimeVolume" . | nindent 10 }} {{- if .Values.enterprise.enabled }} - name: license secret: secretName: {{ tpl .Values.license.secretName . }} {{- end }} {{- with .Values.ingester.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- if not .Values.ingester.persistence.enabled }} - name: data emptyDir: {} {{- else if .Values.ingester.persistence.inMemory }} - name: data {{- if .Values.ingester.persistence.inMemory }} emptyDir: medium: Memory {{- end }} {{- if .Values.ingester.persistence.size }} sizeLimit: {{ .Values.ingester.persistence.size }} {{- end }} {{- else }} {{- if .Values.ingester.persistentVolumeClaimRetentionPolicy.enabled }} persistentVolumeClaimRetentionPolicy: whenDeleted: {{ .Values.ingester.persistentVolumeClaimRetentionPolicy.whenDeleted }} whenScaled: {{ .Values.ingester.persistentVolumeClaimRetentionPolicy.whenScaled }} {{- end }} volumeClaimTemplates: - apiVersion: v1 kind: PersistentVolumeClaim metadata: {{- with .Values.ingester.persistence.annotations }} annotations: {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.ingester.persistence.labels }} labels: {{- toYaml . | nindent 10 }} {{- end }} name: data spec: {{- $storageClass := coalesce $rolloutZone.storageClass .Values.ingester.persistence.storageClass .Values.global.storageClass }} {{- if eq $storageClass "-" }} storageClassName: "" {{- else if $storageClass }} storageClassName: {{ $storageClass }} {{- end }} accessModes: - ReadWriteOnce resources: requests: storage: {{ .Values.ingester.persistence.size | quote }} {{- end }} --- {{ end }} {{ end }} <|endoftext|> # istio_57219.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 57219 releaseNotes: - | **Removed** support for the v1alpha2 InferencePool API type. **Added** support for the v1 InferencePool API type. upgradeNotes: - title: InferencePool content: | The v1alpha2 InferencePool API type has been removed. Please use the v1 InferencePool API type instead. Update your configurations to use the new API version. <|endoftext|> # cert_manager_gwconfig.yaml apiVersion: gateway.kgateway.dev/v1alpha1 kind: GatewayParameters metadata: name: custom-gw-params namespace: kgateway-system spec: kube: envoyContainer: bootstrap: logLevel: debug service: type: ClusterIP # This is the documented ip for gateway setup here https://cert-manager.io/docs/contributing/e2e/#cluster-ip-details clusterIP: __SERVICE_IP__ extraLabels: gateway: custom externalTrafficPolicy: "" <|endoftext|> # istio_52743.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 52731 releaseNotes: - | **Added** stats tags configuration for watchdog metrics. <|endoftext|> # helm_charts_joomla-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "joomla.fullname" . }}-joomla labels: app: {{ template "joomla.fullname" . }} chart: {{ template "joomla.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: accessModes: - {{ .Values.persistence.joomla.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.joomla.size | quote }} {{ include "joomla.storageClass" . }} {{- end -}} <|endoftext|> # argocd_source_degraded_failed.yaml apiVersion: clickhouse-keeper.altinity.com/v1 kind: ClickHouseKeeperInstallation metadata: name: test-clickhouse-keeper namespace: default spec: configuration: clusters: - name: cluster layout: shards: - name: shard replicas: - name: replica port: 9181 template: spec: containers: - name: clickhouse-keeper image: clickhouse/clickhouse-keeper:latest status: status: Failed <|endoftext|> # argocd_source_list-fasttemplate.yaml # The list generator specifies a literal list of argument values to the app spec template. apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: generators: - list: elements: - cluster: engineering-dev url: https://1.2.3.4 values: project: dev - cluster: engineering-prod url: https://2.4.6.8 values: project: prod - cluster: finance-preprod url: https://9.8.7.6 values: project: preprod template: metadata: name: '{{cluster}}-guestbook' spec: project: '{{values.project}}' source: repoURL: https://github.com/infra-team/cluster-deployments.git targetRevision: HEAD path: guestbook/{{cluster}} destination: server: '{{url}}' namespace: guestbook <|endoftext|> # kustomize_mysql-statefulset.resource.yaml # Copyright 2019 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 # apiVersion: apps/v1 kind: StatefulSet metadata: name: mysql spec: replicas: 3 selector: matchLabels: app: mysql template: metadata: labels: app: mysql spec: initContainers: - name: init-mysql image: mysql:5.7 command: - bash - -c - | set -ex # Generate mysql server-id from pod ordinal index. [[ `hostname` =~ -([0-9]+)$ ]] || exit 1 ordinal=${BASH_REMATCH[1]} echo [mysqld] > /mnt/conf.d/server-id.cnf # Add an offset to avoid reserved server-id=0 value. echo server-id=$((100 + $ordinal)) >> /mnt/conf.d/server-id.cnf # Copy appropriate conf.d files from config-map to emptyDir. if [[ $ordinal -eq 0 ]]; then cp /mnt/config-map/master.cnf /mnt/conf.d/ else cp /mnt/config-map/slave.cnf /mnt/conf.d/ fi volumeMounts: - name: conf mountPath: /mnt/conf.d - name: config-map mountPath: /mnt/config-map - name: clone-mysql image: gcr.io/google-samples/xtrabackup:1.0 command: - bash - -c - | set -ex # Skip the clone if data already exists. [[ -d /var/lib/mysql/mysql ]] && exit 0 # Skip the clone on master (ordinal index 0). [[ `hostname` =~ -([0-9]+)$ ]] || exit 1 ordinal=${BASH_REMATCH[1]} [[ $ordinal -eq 0 ]] && exit 0 # Clone data from previous peer. ncat --recv-only mysql-$(($ordinal-1)).mysql 3307 | xbstream -x -C /var/lib/mysql # Prepare the backup. xtrabackup --prepare --target-dir=/var/lib/mysql volumeMounts: - name: data mountPath: /var/lib/mysql subPath: mysql - name: conf mountPath: /etc/mysql/conf.d containers: - name: mysql image: mysql:5.7 ports: - name: mysql containerPort: 3306 env: - name: MYSQL_ALLOW_EMPTY_PASSWORD value: "1" resources: requests: cpu: 500m memory: 1Gi volumeMounts: - name: data mountPath: /var/lib/mysql subPath: mysql - name: conf mountPath: /etc/mysql/conf.d livenessProbe: exec: command: - mysqladmin - ping initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 5 readinessProbe: exec: command: - mysql - -h - 127.0.0.1 - -e - SELECT 1 initialDelaySeconds: 5 periodSeconds: 2 timeoutSeconds: 1 - name: xtrabackup image: gcr.io/google-samples/xtrabackup:1.0 command: - bash - -c - | set -ex cd /var/lib/mysql # Determine binlog position of cloned data, if any. if [[ -f xtrabackup_slave_info ]]; then # XtraBackup already generated a partial "CHANGE MASTER TO" query # because we're cloning from an existing slave. mv xtrabackup_slave_info change_master_to.sql.in # Ignore xtrabackup_binlog_info in this case (it's useless). rm -f xtrabackup_binlog_info elif [[ -f xtrabackup_binlog_info ]]; then # We're cloning directly from master. Parse binlog position. [[ `cat xtrabackup_binlog_info` =~ ^(.*?)[[:space:]]+(.*?)$ ]] || exit 1 rm xtrabackup_binlog_info echo "CHANGE MASTER TO MASTER_LOG_FILE='${BASH_REMATCH[1]}',\ MASTER_LOG_POS=${BASH_REMATCH[2]}" > change_master_to.sql.in fi # Check if we need to complete a clone by starting replication. if [[ -f change_master_to.sql.in ]]; then echo "Waiting for mysqld to be ready (accepting connections)" until mysql -h 127.0.0.1 -e "SELECT 1"; do sleep 1; done echo "Initializing replication from clone position" # In case of container restart, attempt this at-most-once. mv change_master_to.sql.in change_master_to.sql.orig mysql -h 127.0.0.1 < # argocd_source_progressing_reconciling.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: creationTimestamp: "2020-06-04T17:46:57Z" finalizers: - istio-finalizer.install.istio.io generation: 1 labels: argocd.argoproj.io/instance: istio-default name: istio-control-plane namespace: istio-system resourceVersion: "270068" selfLink: /apis/install.istio.io/v1alpha1/namespaces/istio-system/istiooperators/istio-control-plane uid: d4ff8619-f3b0-4fb3-8bdb-a44ff44a401a spec: {} status: componentStatus: AddonComponents: status: HEALTHY Base: status: RECONCILING IngressGateways: status: HEALTHY Pilot: status: HEALTHY status: RECONCILING <|endoftext|> # istio_37737.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 33052 releaseNotes: - | **Fixed** Removing caBundle default value from Chart to allow a GitOps approach <|endoftext|> # k8s_docs_quota-pod-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: pod-quota-demo spec: selector: matchLabels: purpose: quota-demo replicas: 3 template: metadata: labels: purpose: quota-demo spec: containers: - name: pod-quota-demo image: nginx <|endoftext|> # grafana_charts_deployment-query-scheduler.yaml {{- if .Values.queryScheduler.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "loki.querySchedulerFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.querySchedulerLabels" . | nindent 4 }} {{- with .Values.loki.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: replicas: {{ .Values.queryScheduler.replicas }} strategy: rollingUpdate: maxSurge: 0 maxUnavailable: 1 revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} selector: matchLabels: {{- include "loki.querySchedulerSelectorLabels" . | nindent 6 }} template: metadata: annotations: {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryScheduler.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "loki.querySchedulerSelectorLabels" . | nindent 8 }} {{- with .Values.loki.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryScheduler.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} app.kubernetes.io/part-of: memberlist spec: serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryScheduler.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- include "loki.querySchedulerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.queryScheduler.terminationGracePeriodSeconds }} containers: - name: query-scheduler image: {{ include "loki.querySchedulerImage" . }} imagePullPolicy: {{ .Values.loki.image.pullPolicy }} args: - -config.file=/etc/loki/config/config.yaml - -target=query-scheduler {{- with .Values.queryScheduler.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} ports: - name: http containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP - name: http-memberlist containerPort: 7946 protocol: TCP {{- with .Values.queryScheduler.extraEnv }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.queryScheduler.extraEnvFrom }} envFrom: {{- toYaml . | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.loki.containerSecurityContext | nindent 12 }} readinessProbe: {{- toYaml .Values.loki.readinessProbe | nindent 12 }} livenessProbe: {{- toYaml .Values.loki.livenessProbe | nindent 12 }} volumeMounts: - name: config mountPath: /etc/loki/config - name: runtime-config mountPath: /var/{{ include "loki.name" . }}-runtime {{- with .Values.queryScheduler.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.queryScheduler.resources }} resources: {{- toYaml . | nindent 12 }} {{- end }} {{- if .Values.queryScheduler.extraContainers }} {{- toYaml .Values.queryScheduler.extraContainers | nindent 8}} {{- end }} {{- with .Values.queryScheduler.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.queryScheduler.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.queryScheduler.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- if .Values.loki.existingSecretForConfig }} secret: secretName: {{ .Values.loki.existingSecretForConfig }} {{- else if .Values.loki.configAsSecret }} secret: secretName: {{ include "loki.fullname" . }}-config {{- else }} configMap: name: {{ include "loki.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "loki.fullname" . }}-runtime {{- with .Values.queryScheduler.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # helm_charts_controller-webhook-service.yaml {{- if .Values.controller.admissionWebhooks.enabled }} apiVersion: v1 kind: Service metadata: {{- if .Values.controller.admissionWebhooks.service.annotations }} annotations: {{- range $key, $value := .Values.controller.admissionWebhooks.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.controller.fullname" . }}-admission spec: {{- if not .Values.controller.admissionWebhooks.service.omitClusterIP }} {{- with .Values.controller.admissionWebhooks.service.clusterIP }} clusterIP: {{ if eq "-" . }}""{{ else }}{{ . | quote }}{{ end }} {{- end }} {{- end }} {{- if .Values.controller.admissionWebhooks.service.externalIPs }} externalIPs: {{ toYaml .Values.controller.admissionWebhooks.service.externalIPs | indent 4 }} {{- end }} {{- if .Values.controller.admissionWebhooks.service.loadBalancerIP }} loadBalancerIP: "{{ .Values.controller.admissionWebhooks.service.loadBalancerIP }}" {{- end }} {{- if .Values.controller.admissionWebhooks.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{ toYaml .Values.controller.admissionWebhooks.service.loadBalancerSourceRanges | indent 4 }} {{- end }} ports: - name: https-webhook port: 443 targetPort: webhook selector: app: {{ template "nginx-ingress.name" . }} release: {{ template "nginx-ingress.releaseLabel" . }} {{ .Values.controller.componentLabelKeyOverride | default "app.kubernetes.io/component" }}: controller type: "{{ .Values.controller.admissionWebhooks.service.type }}" {{- end }} <|endoftext|> # istio_desc-to-admin-log-scope.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** description to `admin log` - | **Improved** output format of the active logging levels. <|endoftext|> # argocd_source_different-proposed-commits.yaml apiVersion: promoter.argoproj.io/v1alpha1 kind: PromotionStrategy metadata: name: promotion-strategy namespace: gitops-promoter spec: activeCommitStatuses: - key: argocd-health environments: - autoMerge: false branch: wave/0/west - autoMerge: false branch: wave/1/west - autoMerge: false branch: wave/2/west - autoMerge: false branch: wave/3/west - autoMerge: false branch: wave/4/west - autoMerge: false branch: wave/5/west gitRepositoryRef: name: cdp-deployments status: conditions: - lastTransitionTime: '2025-08-02T06:43:44Z' message: Reconciliation succeeded observedGeneration: 6 reason: ReconciliationSuccess status: 'True' type: Ready environments: - active: commitStatuses: - key: argocd-health phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-24T14:14:21Z' sha: 6b1095752ea7bef9c5c4251cb0722ce33dfd68d1 subject: >- This is a no-op commit merging from wave/0/west-next into wave/0/west branch: wave/0/west history: - active: dry: author: Fake Person commitTime: '2025-09-23T17:33:12Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 28f351384c8b8e58624726c4c3713979d0143775 subject: 'chore: fake old commit message' hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-23T17:36:40Z' sha: 3ebd45b702bc23619c8ae6724e81955afc644555 subject: Promote 28f35 to `wave/0/west` (#2929) proposed: hydrated: {} pullRequest: {} - active: dry: author: asingh51 commitTime: '2025-09-22T21:04:40Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 9dc9529ddba077fcdf8cffef716b7d20e1e8b844 subject: >- Onboarding new cluster to argocd-genai on wave 5 [ARGO-2499] (#2921) hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-22T21:56:33Z' sha: 2fefa5165e46988666cbb1d2d4f39e21871fa671 subject: Promote 9dc95 to `wave/0/west` (#2925) proposed: hydrated: {} pullRequest: {} - active: dry: author: Fake Person commitTime: '2025-09-22T19:29:53Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 7f91282cc8146644d0721efde1b9069ccbd475a1 subject: >- chore: temporarily disable server-side diff on argo-argo (ARGO-2528) (#2917) hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-22T19:32:09Z' sha: 6c6493caa0d5b7211bb09c93a7047c90db393cd6 subject: Promote 7f912 to `wave/0/west` (#2922) proposed: hydrated: {} pullRequest: {} proposed: dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-24T14:14:16Z' sha: 9dfd6245b7b2e86660a13743ecc85d26bf3df04c subject: Merge branch 'wave/0/west' into wave/0/west-next - active: commitStatuses: - key: argocd-health phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-24T14:14:01Z' sha: 580bbde2b775a8c6dc1484c4ba970426029e63b4 subject: >- This is a no-op commit merging from wave/1/west-next into wave/1/west branch: wave/1/west history: - active: dry: author: Fake Person commitTime: '2025-09-23T17:33:12Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 28f351384c8b8e58624726c4c3713979d0143775 subject: 'chore: fake old commit message' hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-23T17:37:46Z' sha: c2b69cd2186df736ee4e27a6de5590135a3c5823 subject: Promote 28f35 to `wave/1/west` (#2928) proposed: hydrated: {} pullRequest: {} - active: dry: author: Fake Person commitTime: '2025-09-22T19:29:53Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 7f91282cc8146644d0721efde1b9069ccbd475a1 subject: >- chore: temporarily disable server-side diff on argo-argo (ARGO-2528) (#2917) hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-22T20:15:13Z' sha: baf2f21f5085adaa7fe4720ca41d4f7ff918d4fd subject: Promote 7f912 to `wave/1/west` (#2883) proposed: hydrated: {} pullRequest: {} - active: dry: author: Fake Person commitTime: '2025-09-16T16:32:32Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 789df516a84b1d3beb2f8ffe56e052b5b411aa74 subject: >- chore: upgrade to 3.2.0-rc1, argo and team instances (ARGO-2412) (#2875) hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-16T16:45:40Z' sha: 728e1a237732a20281f986916301a5dca254e3a4 subject: Promote 789df to `wave/1/west` (#2876) proposed: hydrated: {} pullRequest: {} proposed: commitStatuses: - key: promoter-previous-environment phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-24T14:13:56Z' sha: 50b7c73718813b9b92a0e1e166798cbd55874bbd subject: Merge branch 'wave/1/west' into wave/1/west-next - active: commitStatuses: - key: argocd-health phase: pending dry: author: Fake Person commitTime: '2025-09-23T17:33:12Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 28f351384c8b8e58624726c4c3713979d0143775 subject: 'chore: fake old commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-23T17:34:05Z' sha: 169626417d1863434901c9225ded78963b7bd691 subject: >- This is a no-op commit merging from wave/2/west-next into wave/2/west branch: wave/2/west history: - active: dry: author: Fake Person commitTime: '2025-09-22T19:29:53Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 7f91282cc8146644d0721efde1b9069ccbd475a1 subject: >- chore: temporarily disable server-side diff on argo-argo (ARGO-2528) (#2917) hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-22T20:59:45Z' sha: 1bfe993b41fe27b298c0aab9a5f185b29a478178 subject: Promote 7f912 to `wave/2/west` (#2884) proposed: hydrated: {} pullRequest: {} proposed: commitStatuses: - key: promoter-previous-environment phase: pending dry: author: Fake Person commitTime: '2025-09-23T17:33:12Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 28f351384c8b8e58624726c4c3713979d0143775 subject: 'chore: fake old commit message' hydrated: author: Argo CD body: "Fake commit message" commitTime: '2025-09-23T17:33:50Z' sha: 6e0e11f0102faa5779223159a2b16ccee63a8ac0 subject: '28f3513: chore: fake old commit message' - active: commitStatuses: - key: argocd-health phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-24T14:14:08Z' sha: 73cf41db84a6e97a74c967243e65ffce66dd4198 subject: >- This is a no-op commit merging from wave/3/west-next into wave/3/west branch: wave/3/west history: - active: dry: author: Fake Person commitTime: '2025-09-22T19:29:53Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 7f91282cc8146644d0721efde1b9069ccbd475a1 subject: >- chore: fake super old commit message hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-22T21:00:07Z' sha: e7456f8ff4a5943ace3bb425e2d4e7dd43a53e46 subject: Promote 7f912 to `wave/3/west` (#2887) proposed: hydrated: {} pullRequest: {} proposed: commitStatuses: - key: promoter-previous-environment phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: Argo CD body: "Fake commit message" commitTime: '2025-09-24T14:13:49Z' sha: daf0534e9db36334c82870cbb2e5d14cc687e0f5 subject: 'f94c9d4: chore: fake new commit message' - active: commitStatuses: - key: argocd-health phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-24T14:14:30Z' sha: 5abc8f1fd4056ad9f78723f3a83ac2291e87c821 subject: >- This is a no-op commit merging from wave/4/west-next into wave/4/west branch: wave/4/west history: - active: dry: author: Fake Person commitTime: '2025-09-22T19:29:53Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 7f91282cc8146644d0721efde1b9069ccbd475a1 subject: >- chore: temporarily disable server-side diff on argo-argo (ARGO-2528) (#2917) hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-22T21:00:29Z' sha: 1d6e2b279108f6430825c889f6d2248fe4388aba subject: Promote 7f912 to `wave/4/west` (#2885) proposed: hydrated: {} pullRequest: {} proposed: commitStatuses: - key: promoter-previous-environment phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: Argo CD body: "Fake commit message" commitTime: '2025-09-24T14:14:09Z' sha: 91d942a1da3799d6027a7c407eee98b1f9cdcde0 subject: 'f94c9d4: chore: fake new commit message' - active: commitStatuses: - key: argocd-health phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: GitOps Promoter commitTime: '2025-09-24T14:14:40Z' sha: 7bee0fcb985ac4ecccddf70a8b2d02cc0c41f231 subject: >- This is a no-op commit merging from wave/5/west-next into wave/5/west branch: wave/5/west history: - active: dry: author: Fake Person commitTime: '2025-09-22T19:29:53Z' repoURL: https://git.example.com/fake-org/fake-repo sha: 7f91282cc8146644d0721efde1b9069ccbd475a1 subject: >- chore: temporarily disable server-side diff on argo-argo (ARGO-2528) (#2917) hydrated: author: argo-cd[bot] body: "Fake commit message" commitTime: '2025-09-22T21:00:59Z' sha: a9d26ef79a1cc786a2a90446f7e8bbef2e5be653 subject: Promote 7f912 to `wave/5/west` (#2888) proposed: hydrated: {} pullRequest: {} proposed: commitStatuses: - key: promoter-previous-environment phase: pending dry: author: Fake Person commitTime: '2025-09-24T14:13:27Z' repoURL: https://git.example.com/fake-org/fake-repo sha: f94c9d42993145d9f10bb2c404b74da14ee3f74e subject: 'chore: fake new commit message' hydrated: author: Argo CD body: "Fake commit message" commitTime: '2025-09-24T14:14:24Z' sha: 20c41602695addbf7760236eff562f5692e585aa subject: 'f94c9d4: chore: fake new commit message' <|endoftext|> # flux_source_secret-ca-multi.yaml --- apiVersion: v1 kind: Secret metadata: name: notation-config namespace: my-namespace stringData: ca.crt: ca-data-crt ca.pem: ca-data-pem trustpolicy.json: | { "version": "1.0", "trustPolicies": [ { "name": "fluxcd.io", "registryScopes": [ "*" ], "signatureVerification": { "level" : "strict" }, "trustStores": [ "ca:fluxcd.io" ], "trustedIdentities": [ "*" ] } ] } <|endoftext|> # istio_55047.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 51979 releaseNotes: - | **Fixed** an issue where customizing the workload identity SDS socketname via `WORKLOAD_IDENTITY_SOCKET_FILE` did not work, due to envoy bootstrap not being updated. <|endoftext|> # helm_charts_admission-webhook.yaml {{- if .Values.ingressController.admissionWebhook.enabled }} {{- $cn := printf "%s.%s.svc" ( include "kong.service.validationWebhook" . ) .Release.Namespace }} {{- $ca := genCA "kong-admission-ca" 3650 -}} {{- $cert := genSignedCert $cn nil nil 3650 $ca -}} kind: ValidatingWebhookConfiguration {{- if .Capabilities.APIVersions.Has "admissionregistration.k8s.io/v1" }} apiVersion: admissionregistration.k8s.io/v1 {{- else }} apiVersion: admissionregistration.k8s.io/v1beta1 {{- end }} metadata: name: {{ template "kong.fullname" . }}-validations labels: {{- include "kong.metaLabels" . | nindent 4 }} webhooks: - name: validations.kong.konghq.com failurePolicy: {{ .Values.ingressController.admissionWebhook.failurePolicy }} sideEffects: None admissionReviewVersions: ["v1beta1"] rules: - apiGroups: - configuration.konghq.com apiVersions: - '*' operations: - CREATE - UPDATE resources: - kongconsumers - kongplugins clientConfig: caBundle: {{ b64enc $ca.Cert }} service: name: {{ template "kong.service.validationWebhook" . }} namespace: {{ .Release.Namespace }} --- apiVersion: v1 kind: Service metadata: name: {{ template "kong.service.validationWebhook" . }} labels: {{- include "kong.metaLabels" . | nindent 4 }} spec: ports: - name: webhook port: 443 protocol: TCP targetPort: webhook selector: {{- include "kong.metaLabels" . | nindent 4 }} app.kubernetes.io/component: app --- apiVersion: v1 kind: Secret metadata: name: {{ template "kong.fullname" . }}-validation-webhook-keypair labels: {{- include "kong.metaLabels" . | nindent 4 }} type: kubernetes.io/tls data: tls.crt: {{ b64enc $cert.Cert }} tls.key: {{ b64enc $cert.Key }} {{ end }} <|endoftext|> # k8s_docs_ingress-resource-backend.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress-resource-backend spec: defaultBackend: resource: apiGroup: k8s.example.com kind: StorageBucket name: static-assets rules: - http: paths: - path: /icons pathType: ImplementationSpecific backend: resource: apiGroup: k8s.example.com kind: StorageBucket name: icon-assets <|endoftext|> # istio_ambient-hostnetwork.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Fixed** an issue causing `hostNetwork` pods to be ignored in ambient mode. <|endoftext|> # k8s_examples_rbd.yaml apiVersion: v1 kind: Pod metadata: name: rbd spec: containers: - image: kubernetes/pause name: rbd-rw volumeMounts: - name: rbdpd mountPath: /mnt/rbd volumes: - name: rbdpd rbd: monitors: - '10.16.154.78:6789' - '10.16.154.82:6789' - '10.16.154.83:6789' pool: kube image: foo fsType: ext4 readOnly: true user: admin keyring: /etc/ceph/keyring imageformat: "2" imagefeatures: "layering" <|endoftext|> # k8s_examples_shared.yaml apiVersion: v1 kind: Pod metadata: name: shared spec: containers: - image: quay.io/connordoyle/cpuset-visualizer name: shared resources: requests: cpu: 100m <|endoftext|> # k8s_docs_env-configmap.yaml apiVersion: v1 kind: Pod metadata: name: env-configmap spec: containers: - name: app command: ["/bin/sh", "-c", "printenv"] image: busybox:latest envFrom: - configMapRef: name: myconfigmap <|endoftext|> # argocd_source_merge-two-matrixes.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: merge-two-matrixes spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - merge: mergeKeys: - server - environment generators: - matrix: generators: - clusters: values: replicaCount: '2' - list: elements: - environment: staging namespace: guestbook-non-prod - environment: prod namespace: guestbook - list: elements: - server: https://kubernetes.default.svc environment: staging values.replicaCount: '1' template: metadata: name: '{{.name}}-guestbook-{{.environment}}' spec: project: default source: repoURL: https://github.com/argoproj/argocd-example-apps/ targetRevision: HEAD path: helm-guestbook helm: parameters: - name: replicaCount value: '{{.values.replicaCount}}' destination: server: '{{.server}}' namespace: '{{.namespace}}' <|endoftext|> # flux_source_helm-release.yaml --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: flux-system namespace: {{ .fluxns }} spec: chart: spec: chart: podinfo reconcileStrategy: ChartVersion sourceRef: kind: HelmRepository name: flux-systen namespace: {{ .fluxns }} version: '*' interval: 5m0s <|endoftext|> # istio_helloworld-gateway.yaml apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: helloworld-gateway spec: selector: istio: ingressgateway # use istio default controller servers: - port: number: 80 name: http protocol: HTTP hosts: - "*" --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: helloworld spec: hosts: - "*" gateways: - helloworld-gateway http: - match: - uri: exact: /hello route: - destination: host: helloworld port: number: 5000 <|endoftext|> # k8s_examples_pxc-node3.yaml apiVersion: v1 kind: Service metadata: name: pxc-node3 labels: node: pxc-node3 spec: ports: - port: 3306 name: mysql - port: 4444 name: state-snapshot-transfer - port: 4567 name: replication-traffic - port: 4568 name: incremental-state-transfer selector: node: pxc-node3 --- apiVersion: v1 kind: ReplicationController metadata: name: pxc-node3 spec: replicas: 1 template: metadata: labels: node: pxc-node3 unit: pxc-cluster spec: containers: - resources: limits: cpu: 0.3 image: capttofu/percona_xtradb_cluster_5_6:beta name: pxc-node3 ports: - containerPort: 3306 - containerPort: 4444 - containerPort: 4567 - containerPort: 4568 env: - name: GALERA_CLUSTER value: "true" - name: WSREP_CLUSTER_ADDRESS value: gcomm:// - name: WSREP_SST_USER value: sst - name: WSREP_SST_PASSWORD value: sst - name: MYSQL_USER value: mysql - name: MYSQL_PASSWORD value: mysql - name: MYSQL_ROOT_PASSWORD value: c-krit <|endoftext|> # istio_sidecar-spire.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: annotations: inject.istio.io/templates: "sidecar,spire" labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_prometheus-scrape2.yaml apiVersion: v1 kind: Pod metadata: annotations: prometheus.io.scrape: "false" name: hellopod spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_56827.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: - 56825 releaseNotes: - | **Fixed** an issue where access log not being updated when referenced service created later than the Telemetry resource. <|endoftext|> # istio_istiod-pdb-unhealthy-pod-eviction-policy.golden.yaml # Not created if istiod is running remotely # a workaround for https://github.com/kubernetes/kubernetes/issues/93476 apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: istiod namespace: istio-system labels: app: istiod istio.io/rev: "default" install.operator.istio.io/owning-resource: unknown operator.istio.io/component: "Pilot" release: istiod istio: pilot app.kubernetes.io/name: "istiod" app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istiod" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: istiod-1.0.0 spec: minAvailable: 1 unhealthyPodEvictionPolicy: AlwaysAllow selector: matchLabels: app: istiod istio: pilot <|endoftext|> # istio_gateway-v1beta1.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Upgraded** the gateway-api integration to read `v1beta1` resources for `HTTPRoute`, `Gateway`, and `GatewayClass`. Users of the gateway-api must be on v0.5.0+ before upgrading Istio. <|endoftext|> # istio_44916.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Updated** `ProxyConfig` resources with workload selector will be applied to Kubernetes `Gateway` pods only if the specified label is `istio.io/gateway-name`. Other labels are ignored. - | **Removed** support for `proxy.istio.io/config` annotation applied to Kubernetes `Gateway` pods. <|endoftext|> # k8s_docs_security-context-5.yaml apiVersion: v1 kind: Pod metadata: name: security-context-demo spec: securityContext: runAsUser: 1000 runAsGroup: 3000 supplementalGroups: [4000] containers: - name: sec-ctx-demo image: registry.k8s.io/e2e-test-images/agnhost:2.45 command: [ "sh", "-c", "sleep 1h" ] securityContext: allowPrivilegeEscalation: false <|endoftext|> # helm_charts_solr-xml-configmap.yaml --- apiVersion: "v1" kind: "ConfigMap" metadata: name: "{{ include "solr.configmap-name" . }}" labels: {{ include "solr.common.labels" . | indent 4}} data: solr.xml: | ${host:} ${jetty.port:8983} ${hostContext:solr} ${genericCoreNodeNames:true} ${zkClientTimeout:30000} ${distribUpdateSoTimeout:600000} ${distribUpdateConnTimeout:60000} ${zkCredentialsProvider:org.apache.solr.common.cloud.DefaultZkCredentialsProvider} ${zkACLProvider:org.apache.solr.common.cloud.DefaultZkACLProvider} ${socketTimeout:600000} ${connTimeout:60000} <|endoftext|> # helm_charts_xray-role.yaml {{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app: {{ template "xray.name" . }} chart: {{ template "xray.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} name: {{ template "xray.fullname" . }} rules: {{ toYaml .Values.rbac.role.rules }} {{- end }} <|endoftext|> # helm_charts_redis-haproxy-service.yaml {{- if .Values.haproxy.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "redis-ha.fullname" . }}-haproxy namespace: {{ .Release.Namespace }} labels: {{ include "labels.standard" . | indent 4 }} component: {{ template "redis-ha.fullname" . }}-haproxy annotations: {{- if .Values.haproxy.service.annotations }} {{ toYaml .Values.haproxy.service.annotations | indent 4 }} {{- end }} spec: type: {{ default "ClusterIP" .Values.haproxy.service.type }} {{- if and (eq .Values.haproxy.service.type "LoadBalancer") .Values.haproxy.service.loadBalancerIP }} loadBalancerIP: {{ .Values.haproxy.service.loadBalancerIP }} {{- end }} ports: - name: haproxy port: {{ .Values.redis.port }} protocol: TCP targetPort: redis {{- if and (eq .Values.haproxy.service.type "NodePort") .Values.haproxy.service.nodePort }} nodePort: {{ .Values.haproxy.service.nodePort }} {{- end }} {{- if .Values.haproxy.readOnly.enabled }} - name: haproxyreadonly port: {{ .Values.haproxy.readOnly.port }} protocol: TCP targetPort: {{ .Values.haproxy.readOnly.port }} {{- end }} {{- if .Values.haproxy.metrics.enabled }} - name: {{ .Values.haproxy.metrics.portName }} port: {{ .Values.haproxy.metrics.port }} protocol: TCP targetPort: metrics-port {{- end }} selector: release: {{ .Release.Name }} app: {{ template "redis-ha.name" . }}-haproxy {{- end }} <|endoftext|> # helm_charts_test-runner.yaml {{- if .Values.tests.enabled }} apiVersion: v1 kind: Pod metadata: name: "{{ template "mariadb.fullname" . }}-test-{{ randAlphaNum 5 | lower }}" annotations: "helm.sh/hook": test-success spec: initContainers: - name: "test-framework" image: {{ template "mariadb.tests.testFramework.image" . }} command: - "bash" - "-c" - | set -ex # copy bats to tools dir cp -R /usr/local/libexec/ /tools/bats/ {{- if .Values.tests.testFramework.resources }} resources: {{ toYaml .Values.tests.testFramework.resources | nindent 8 }} {{- end }} volumeMounts: - mountPath: /tools name: tools containers: - name: mariadb-test image: {{ template "mariadb.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} command: ["/tools/bats/bats", "-t", "/tests/run.sh"] env: - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.secretName" . }} key: mariadb-root-password {{- if .Values.tests.resources }} resources: {{ toYaml .Values.tests.resources | nindent 8 }} {{- end }} volumeMounts: - mountPath: /tests name: tests readOnly: true - mountPath: /tools name: tools volumes: - name: tests configMap: name: {{ template "mariadb.fullname" . }}-tests - name: tools emptyDir: {} restartPolicy: Never {{- end }} <|endoftext|> # argocd_source_noConditionsCronWorkflow.yaml apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: name: test-cron-wf namespace: argocd spec: entrypoint: sampleEntryPoint <|endoftext|> # argocd_examples_catalogue-db-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: catalogue-db labels: name: catalogue-db spec: replicas: 1 selector: matchLabels: name: catalogue-db template: metadata: labels: name: catalogue-db spec: containers: - name: catalogue-db image: weaveworksdemos/catalogue-db:0.3.0 env: - name: MYSQL_ROOT_PASSWORD value: fake_password - name: MYSQL_DATABASE value: socksdb ports: - name: mysql containerPort: 3306 nodeSelector: kubernetes.io/os: linux <|endoftext|> # argocd_source_argocd-application-controller-clusterrole.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: argocd-application-controller app.kubernetes.io/part-of: argocd app.kubernetes.io/component: application-controller name: argocd-application-controller rules: - apiGroups: - '*' resources: - '*' verbs: - '*' - nonResourceURLs: - '*' verbs: - '*' <|endoftext|> # istio_jwks-private-key-leak.yaml apiVersion: release-notes/v2 kind: security-fix area: security issue: - https://github.com/istio/istio-private/issues/TBD releaseNotes: - | **Fixed** a critical security vulnerability where Istio's JWKS fallback mechanism leaked an RSA private key, allowing attackers to forge JWT tokens and bypass authentication when JWKS fetch fails. securityNotes: - | __[ISTIO-SECURITY-TBD](TBD)__: Fixed JWKS private key leakage vulnerability When RequestAuthentication JWKS fetch failed (network issues, invalid URLs, rate limits), Istio fell back to a hardcoded `FakeJwks` constant that contained a complete RSA keypair including the private key (d, p, q, dp, dq, qi fields). Attackers could extract this private key from Istio source code or Envoy configuration dumps and forge arbitrary JWT tokens that would be accepted as valid during the failure window. The fix replaces the vulnerable `FakeJwks` with a public-only JWKS where the private key was generated once and immediately discarded. Since nobody has the corresponding private key, it is cryptographically impossible to forge JWTs that would validate against this public key, ensuring fail-closed behavior. CVSS Score: 8.7 [AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N&version=3.1) **Credit**: This vulnerability was discovered and reported by 1seal (https://github.com/1seal). <|endoftext|> # argocd_source_withConditionButHealthyCronWorkflow.yaml apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: name: test-cron-wf namespace: argocd spec: entrypoint: sampleEntryPoint status: conditions: - lastTransitionTime: "2021-11-12T14:28:01Z" message: this status may be outdated and we may still be progressing status: "False" type: SpecError <|endoftext|> # istio_redirect-only.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- # Exact config from https://github.com/istio/istio/issues/59043 apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: default namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: http hostname: "*.domain.example" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All - name: https hostname: "*.domain.example" port: 443 protocol: HTTPS tls: mode: Terminate certificateRefs: - name: my-cert-http allowedRoutes: namespaces: from: All --- # Test case for issue https://github.com/istio/istio/issues/59043 # HTTPRoute with RequestRedirect filter and no backendRefs should produce # a valid VirtualService with redirect action (not a route action with no cluster_specifier) apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: http-to-https-redirect namespace: istio-system spec: parentRefs: - name: default namespace: istio-system sectionName: http rules: - filters: - type: RequestRedirect requestRedirect: scheme: https statusCode: 301 <|endoftext|> # istio_27509-lease-duration.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 27509 releaseNotes: - | **Fixed** ensure lease duration is always larger than the user configured `RENEW_DEADLINE` for Istio operator manager. <|endoftext|> # k8s_docs_image-volumes-subpath.yaml apiVersion: v1 kind: Pod metadata: name: image-volume spec: containers: - name: shell command: ["sleep", "infinity"] image: debian volumeMounts: - name: volume mountPath: /volume subPath: dir volumes: - name: volume image: reference: quay.io/crio/artifact:v2 pullPolicy: IfNotPresent <|endoftext|> # helm_charts_lego-configmap.yaml {{- if .Values.lego.enabled }} apiVersion: v1 metadata: name: {{ template "nginx-lego.fullname" . }}-lego data: # modify this to specify your address lego.email: {{ .Values.lego.configmap.email | quote }} # configure letencrypt's production api lego.url: {{ .Values.lego.configmap.url | quote }} kind: ConfigMap {{- end }} <|endoftext|> # istio_47063.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: [] releaseNotes: - | **Added** support for plugged root cert rotation. <|endoftext|> # cert_manager_pki.yaml --- # Create a selfsigned Issuer, in order to create a root CA certificate for # signing webhook serving certificates apiVersion: cert-manager.io/v1 kind: Issuer metadata: name: {{ include "example-webhook.selfSignedIssuer" . }} namespace: {{ .Release.Namespace | quote }} labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: selfSigned: {} --- # Generate a CA Certificate used to sign certificates for the webhook apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: {{ include "example-webhook.rootCACertificate" . }} namespace: {{ .Release.Namespace | quote }} labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: secretName: {{ include "example-webhook.rootCACertificate" . }} duration: 43800h # 5y issuerRef: name: {{ include "example-webhook.selfSignedIssuer" . }} commonName: "ca.example-webhook.cert-manager" isCA: true --- # Create an Issuer that uses the above generated CA certificate to issue certs apiVersion: cert-manager.io/v1 kind: Issuer metadata: name: {{ include "example-webhook.rootCAIssuer" . }} namespace: {{ .Release.Namespace | quote }} labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: ca: secretName: {{ include "example-webhook.rootCACertificate" . }} --- # Finally, generate a serving certificate for the webhook to use apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: {{ include "example-webhook.servingCertificate" . }} namespace: {{ .Release.Namespace | quote }} labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: secretName: {{ include "example-webhook.servingCertificate" . }} duration: 8760h # 1y issuerRef: name: {{ include "example-webhook.rootCAIssuer" . }} dnsNames: - {{ include "example-webhook.fullname" . }} - {{ include "example-webhook.fullname" . }}.{{ .Release.Namespace }} - {{ include "example-webhook.fullname" . }}.{{ .Release.Namespace }}.svc <|endoftext|> # helm_charts_mission-control-rolebinding.yaml {{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.missionControl.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "mission-control.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "mission-control.serviceAccountName" . }} roleRef: kind: Role apiGroup: rbac.authorization.k8s.io name: {{ template "mission-control.fullname" . }} {{- end }} <|endoftext|> # istio_gateway-env-var-from.golden.yaml apiVersion: apps/v1 kind: Deployment metadata: name: istio-ingress namespace: istio-ingress labels: app.kubernetes.io/name: istio-ingress app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istio-ingress" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: gateway-1.0.0 app: istio-ingress istio: ingress "istio.io/dataplane-mode": "none" annotations: {} spec: selector: matchLabels: app: istio-ingress istio: ingress template: metadata: annotations: inject.istio.io/templates: gateway prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" sidecar.istio.io/inject: "true" labels: sidecar.istio.io/inject: "true" app: istio-ingress istio: ingress app.kubernetes.io/name: istio-ingress app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istio-ingress" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: gateway-1.0.0 "istio.io/dataplane-mode": "none" spec: serviceAccountName: istio-ingress securityContext: # Safe since 1.22: https://github.com/kubernetes/kubernetes/pull/103326 sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" containers: - name: istio-proxy # "auto" will be populated at runtime by the mutating webhook. See https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#customizing-injection image: auto securityContext: capabilities: drop: - ALL allowPrivilegeEscalation: false privileged: false readOnlyRootFilesystem: true runAsNonRoot: true env: - name: TEST_ENV value: "test" - name: TEST_SECRET valueFrom: secretKeyRef: key: test-key name: test-name ports: - containerPort: 15090 protocol: TCP name: http-envoy-prom resources: limits: cpu: 2000m memory: 1024Mi requests: cpu: 100m memory: 128Mi terminationGracePeriodSeconds: 30 <|endoftext|> # istio_layer1.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: base: enabled: false pilot: enabled: false ingressGateways: - namespace: istio-system name: istio-ingressgateway enabled: true label: api: default k8s: service: externalTrafficPolicy: Local serviceAnnotations: manifest-generate: "testserviceAnnotation" <|endoftext|> # helm_charts_additional-profile-configmaps.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "spinnaker.fullname" . }}-additional-profile-config-maps labels: {{ include "spinnaker.standard-labels" . | indent 4 }} {{/* Render profiles for each service by merging predefined defaults with values passed by .Values.halyard.additionalProfileConfigMaps.data */}} {{- $profiles := dict "gate-local.yml" dict -}} {{- /* Defaults: Disable S3 versioning on Front50 if Minio storage is used */}} {{- /* https://www.spinnaker.io/setup/install/storage/minio/#editing-your-storage-settings */}} {{- if .Values.minio.enabled -}} {{- $_ := set $profiles "front50-local.yml" (dict "spinnaker" (dict "s3" (dict "versioning" false))) -}} {{- end -}} {{- /* Defaults: Add special settings for gate if GCE or ALB ingress is used */}} {{- /* https://github.com/spinnaker/spinnaker/issues/1630#issuecomment-467359999 */}} {{- if index $.Values.ingress "annotations" -}} {{- if eq (index $.Values.ingress.annotations "kubernetes.io/ingress.class" | default "") "gce" "alb" "nsx" }} {{- $tomcatProxySettings := dict -}} {{- $_ := set $tomcatProxySettings "protocolHeader" "X-Forwarded-Proto" -}} {{- $_ := set $tomcatProxySettings "remoteIpHeader" "X-Forwarded-For" -}} {{- $_ := set $tomcatProxySettings "internalProxies" ".*" -}} {{- $_ := set $tomcatProxySettings "httpsServerPort" "X-Forwarded-Port" -}} {{- $_ := set $profiles "gate-local.yml" (dict "server" (dict "tomcat" $tomcatProxySettings)) -}} {{- end -}} {{- end -}} {{- /* Merge dictionaries with passed values */}} {{- $customProfilesEnabled := .Values.halyard.additionalProfileConfigMaps.create | default true -}} {{- if and $customProfilesEnabled .Values.halyard.additionalProfileConfigMaps.data -}} {{- $_ := mergeOverwrite $profiles .Values.halyard.additionalProfileConfigMaps.data -}} {{- end -}} {{- /* Convert the content of profiles to string unless it's already a string */}} {{- range $filename, $content := $profiles -}} {{- if not (typeIs "string" $content) -}} {{- $_ := set $profiles $filename ($content | toYaml) -}} {{- end -}} {{- end -}} {{- /* Pass content of profiles through tpl */}} {{- range $filename, $content := $profiles -}} {{- $_ := set $profiles $filename (tpl $content $) -}} {{- end -}} data: {{ $profiles | toYaml | indent 2 }} <|endoftext|> # istio_backpressure.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - https://github.com/istio/istio/issues/25685 releaseNotes: - | **Added** support for backpressure on XDS pushes to avoid overloading Envoy during periods of high configuration churn. This is disabled by default and can be enabled by setting the PILOT_ENABLE_FLOW_CONTROL environment variable in Istiod. <|endoftext|> # k8s_docs_daemonset-label-selector.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: ssd-driver labels: app: nginx spec: selector: matchLabels: app: ssd-driver-pod template: metadata: labels: app: ssd-driver-pod spec: nodeSelector: ssd: "true" containers: - name: example-container image: example-image <|endoftext|> # istio_41018.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 40919 releaseNotes: - | **Added** Allow creating inbound listeners for service ports and sidecar and ingress listener both using environment variable PILOT_ALLOW_SIDECAR_SERVICE_INBOUND_LISTENER_MERGE. This way traffic for service port is not sent via pass-through tcp even though its regular http traffic when sidecar ingress listener is defined. In case same port number is defined in both sidecar ingress and service, sidecar always takes precedence. <|endoftext|> # istio_telemetry-invalid.yaml _err: "name in body should be at least 1 chars long" apiVersion: telemetry.istio.io/v1alpha1 kind: Telemetry metadata: name: bad-provider spec: metrics: - providers: - name: "" --- _err: "customMetric in body should be at least 1 chars lon" apiVersion: telemetry.istio.io/v1alpha1 kind: Telemetry metadata: name: bad-custom-metric spec: metrics: - overrides: - match: customMetric: "" --- _err: "value must be set when operation is UPSERT" apiVersion: telemetry.istio.io/v1alpha1 kind: Telemetry metadata: name: bad-tag-upsert spec: metrics: - overrides: - tagOverrides: foo: operation: UPSERT --- _err: "value must not be set when operation is REMOVE" apiVersion: telemetry.istio.io/v1alpha1 kind: Telemetry metadata: name: bad-tag-remove spec: metrics: - overrides: - tagOverrides: foo: operation: REMOVE value: oops --- <|endoftext|> # helm_charts_deployment-statefulset.yaml {{- if .Values.statefulset.enabled }} apiVersion: apps/v1 kind: StatefulSet {{- else }} apiVersion: apps/v1 kind: Deployment {{- end }} metadata: name: {{ template "nexus.fullname" . }} labels: {{ include "nexus.labels" . | indent 4 }} {{- if .Values.nexus.labels }} {{ toYaml .Values.nexus.labels | indent 4 }} {{- end }} {{- if .Values.deployment.annotations }} annotations: {{ toYaml .Values.deployment.annotations | indent 4 }} {{- end }} spec: replicas: {{ .Values.replicaCount }} {{- if .Values.statefulset.enabled }} {{- if .Values.nexusProxy.svcName }} serviceName: {{ .Values.nexusProxy.svcName }} {{- else }} serviceName: {{ template "nexus.fullname" . }} {{- end }} {{- end }} {{- if .Values.deploymentStrategy }} strategy: {{ toYaml .Values.deploymentStrategy | indent 4 }} {{- end }} selector: matchLabels: app: {{ template "nexus.name" . }} release: {{ .Release.Name }} template: metadata: {{- if .Values.nexus.podAnnotations }} annotations: {{ toYaml .Values.nexus.podAnnotations | indent 8}} {{- end }} labels: app: {{ template "nexus.name" . }} release: {{ .Release.Name }} spec: {{- if .Values.deployment.initContainers }} initContainers: {{ toYaml .Values.deployment.initContainers | indent 6 }} {{- end }} {{- if .Values.nexus.nodeSelector }} nodeSelector: {{ toYaml .Values.nexus.nodeSelector | indent 8 }} {{- end }} {{- if .Values.nexus.hostAliases }} hostAliases: {{ toYaml .Values.nexus.hostAliases | indent 8 }} {{- end }} {{- if .Values.nexus.imagePullSecret }} imagePullSecrets: - name: {{ .Values.nexus.imagePullSecret }} {{- end }} {{- if .Values.serviceAccount.create }} serviceAccountName: {{ template "nexus.fullname" . }} {{- else }} serviceAccountName: {{ .Values.serviceAccount.name | quote }} {{- end }} containers: - name: nexus image: {{ .Values.nexus.imageName }}:{{ .Values.nexus.imageTag }} imagePullPolicy: {{ .Values.nexus.imagePullPolicy }} {{- if .Values.deployment.postStart.command }} lifecycle: postStart: exec: command: {{ .Values.deployment.postStart.command }} {{- end }} env: {{ toYaml .Values.nexus.env | indent 12 }} resources: {{ toYaml .Values.nexus.resources | indent 12 }} ports: - containerPort: {{ .Values.nexus.dockerPort }} name: nexus-docker-g - containerPort: {{ .Values.nexus.nexusPort }} name: nexus-http livenessProbe: httpGet: path: {{ .Values.nexus.livenessProbe.path }} port: {{ .Values.nexus.nexusPort }} initialDelaySeconds: {{ .Values.nexus.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.nexus.livenessProbe.periodSeconds }} failureThreshold: {{ .Values.nexus.livenessProbe.failureThreshold }} {{- if .Values.nexus.livenessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.nexus.livenessProbe.timeoutSeconds }} {{- end }} readinessProbe: httpGet: path: {{ .Values.nexus.readinessProbe.path }} port: {{ .Values.nexus.nexusPort }} initialDelaySeconds: {{ .Values.nexus.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.nexus.readinessProbe.periodSeconds }} failureThreshold: {{ .Values.nexus.readinessProbe.failureThreshold }} {{- if .Values.nexus.readinessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.nexus.readinessProbe.timeoutSeconds }} {{- end }} volumeMounts: - mountPath: /nexus-data name: {{ template "nexus.fullname" . }}-data - mountPath: /nexus-data/backup name: {{ template "nexus.fullname" . }}-backup {{- if .Values.config.enabled }} - mountPath: {{ .Values.config.mountPath }} name: {{ template "nexus.name" . }}-conf {{- end }} {{- if .Values.secret.enabled }} - mountPath: {{ .Values.secret.mountPath }} name: {{ template "nexus.name" . }}-secret readOnly: {{ .Values.secret.readOnly }} {{- end }} {{- if .Values.deployment.additionalVolumeMounts}} {{ toYaml .Values.deployment.additionalVolumeMounts | indent 12 }} {{- end }} {{- if .Values.nexusProxy.enabled }} - name: nexus-proxy image: {{ .Values.nexusProxy.imageName }}:{{ .Values.nexusProxy.imageTag }} resources: {{ toYaml .Values.nexusProxy.resources | indent 12 }} imagePullPolicy: {{ .Values.nexusProxy.imagePullPolicy }} env: - name: ALLOWED_USER_AGENTS_ON_ROOT_REGEX value: "GoogleHC" - name: CLOUD_IAM_AUTH_ENABLED value: {{ .Values.nexusProxy.env.cloudIamAuthEnabled | quote }} - name: BIND_PORT value: {{ .Values.nexusProxy.targetPort | quote }} - name: ENFORCE_HTTPS value: {{ .Values.nexusProxy.env.enforceHttps | quote }} - name: NEXUS_DOCKER_HOST value: {{ .Values.nexusProxy.env.nexusDockerHost | quote }} - name: NEXUS_HTTP_HOST value: {{ .Values.nexusProxy.env.nexusHttpHost | quote }} - name: UPSTREAM_DOCKER_PORT value: {{ .Values.nexus.dockerPort | quote }} - name: UPSTREAM_HTTP_PORT value: {{ .Values.nexus.nexusPort | quote }} - name: UPSTREAM_HOST value: "localhost" {{- if .Values.nexusProxy.env.cloudIamAuthEnabled }} - name: NEXUS_RUT_HEADER value: "X-Forwarded-User" - name: CLIENT_ID value: {{ .Values.nexusProxy.env.clientId | quote }} - name: CLIENT_SECRET value: {{ .Values.nexusProxy.env.clientSecret | quote }} - name: ORGANIZATION_ID value: {{ .Values.nexusProxy.env.organizationId | quote }} - name: REDIRECT_URL value: {{ .Values.nexusProxy.env.redirectUrl | quote }} - name: KEYSTORE_PASS valueFrom: secretKeyRef: name: {{ template "nexus.proxy-ks.name" . }} key: password - name: KEYSTORE_PATH value: "/nexus-proxy-ks/keystore" - name: AUTH_CACHE_TTL value: "60000" - name: SESSION_TTL value: "86400000" - name: JWT_REQUIRES_MEMBERSHIP_VERIFICATION value: {{ .Values.nexusProxy.env.requiredMembershipVerification | quote }} {{- end }} ports: - containerPort: {{ .Values.nexusProxy.targetPort }} name: nexus-proxy {{- if .Values.nexusProxy.env.cloudIamAuthEnabled }} volumeMounts: - mountPath: /nexus-proxy-ks name: {{ template "nexus.proxy-ks.name" . }} readOnly: true {{- end }} {{- end }} {{- if .Values.nexusBackup.enabled }} - name: nexus-backup image: {{ .Values.nexusBackup.imageName }}:{{ .Values.nexusBackup.imageTag }} imagePullPolicy: {{ .Values.nexusBackup.imagePullPolicy }} resources: {{ toYaml .Values.nexusBackup.resources | indent 12 }} env: - name: NEXUS_AUTHORIZATION valueFrom: secretKeyRef: key: nexus.nexusAdminPassword name: {{ template "nexus.fullname" . }} - name: NEXUS_BACKUP_DIRECTORY value: /nexus-data/backup - name: NEXUS_DATA_DIRECTORY value: /nexus-data - name: NEXUS_LOCAL_HOST_PORT value: "localhost:{{ .Values.nexus.nexusPort }}" - name: OFFLINE_REPOS value: "maven-central maven-public maven-releases maven-snapshots" - name: TARGET_BUCKET value: {{ .Values.nexusBackup.env.targetBucket | quote }} - name: GRACE_PERIOD value: "60" - name: TRIGGER_FILE value: .backup volumeMounts: - mountPath: /nexus-data name: {{ template "nexus.fullname" . }}-data - mountPath: /nexus-data/backup name: {{ template "nexus.fullname" . }}-backup {{- end }} {{- if .Values.deployment.additionalContainers }} {{ toYaml .Values.deployment.additionalContainers | indent 8 }} {{- end }} {{- if .Values.nexus.securityContext }} securityContext: {{ toYaml .Values.nexus.securityContext | indent 8 }} {{- end }} volumes: {{- if .Values.nexusProxy.env.cloudIamAuthEnabled }} - name: {{ template "nexus.proxy-ks.name" . }} secret: secretName: {{ template "nexus.proxy-ks.name" . }} {{- end }} {{- if .Values.statefulset.enabled }} {{- if not .Values.persistence.enabled }} - name: {{ template "nexus.fullname" . }}-data emptyDir: {} {{- end }} {{- if not (and .Values.nexusBackup.enabled .Values.nexusBackup.persistence.enabled) }} - name: {{ template "nexus.fullname" . }}-backup emptyDir: {} {{- end }} {{- else }} - name: {{ template "nexus.fullname" . }}-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ .Values.persistence.existingClaim | default (printf "%s-%s" (include "nexus.fullname" .) "data") }} {{- else }} emptyDir: {} {{- end }} - name: {{ template "nexus.fullname" . }}-backup {{- if and .Values.nexusBackup.enabled (.Values.nexusBackup.persistence.enabled) }} persistentVolumeClaim: claimName: {{ .Values.nexusBackup.persistence.existingClaim | default (printf "%s-%s" (include "nexus.fullname" .) "backup") }} {{- else }} emptyDir: {} {{- end }} {{- end }} {{- if .Values.config.enabled }} - name: {{ template "nexus.name" . }}-conf configMap: name: {{ template "nexus.name" . }}-conf {{- end }} {{- if .Values.secret.enabled }} - name: {{ template "nexus.name" . }}-secret secret: secretName: {{ template "nexus.name" . }}-secret {{- end }} {{- if .Values.deployment.additionalVolumes }} {{ toYaml .Values.deployment.additionalVolumes | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} ## create pvc in case of statefulsets {{- if .Values.statefulset.enabled }} volumeClaimTemplates: {{- if .Values.persistence.enabled }} - metadata: name: {{ template "nexus.fullname" . }}-data labels: {{ include "nexus.labels" . | indent 10 }} {{- if .Values.persistence.annotations }} annotations: {{ toYaml .Values.persistence.annotations | indent 10 }} {{- end }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.storageSize | quote }} {{- if .Values.persistence.storageClass }} {{- if (eq "-" .Values.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} {{- if and .Values.nexusBackup.enabled (.Values.nexusBackup.persistence.enabled) }} - metadata: name: {{ template "nexus.fullname" . }}-backup labels: {{ include "nexus.labels" . | indent 10 }} {{- if .Values.nexusBackup.persistence.annotations }} annotations: {{ toYaml .Values.nexusBackup.persistence.annotations | indent 10 }} {{- end }} spec: accessModes: - {{ .Values.nexusBackup.persistence.accessMode }} resources: requests: storage: {{ .Values.nexusBackup.persistence.storageSize | quote }} {{- if .Values.nexusBackup.persistence.storageClass }} {{- if (eq "-" .Values.nexusBackup.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.nexusBackup.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # argocd_source_degraded_recording_rule.yaml apiVersion: coralogix.com/v1alpha1 kind: RecordingRuleGroupSet metadata: name: rules spec: groups: - name: k8s_rules rules: - expr: >- sum(rate(container_cpu_usage_seconds_total{job="kubelet", metrics_path="/metrics/cadvisor", image!="", container!="POD"}[5m])) by (namespace) status: conditions: - lastTransitionTime: "2025-07-17T14:41:18Z" message: |- error on creating remote recordingRuleGroupSet: SDK API error from /com.coralogixapis.metrics_rule_manager.v1.RuleGroupSets/Create for feature group recording-rules: rpc error: code = InvalidArgument desc = { "groups": { "0": { "rules": { "0": { "record": [ { "code": "length", "message": null, "params": { "value": "", "min": 1 } }, { "code": "invalid_promql", "message": "SingleExpr: unexpected token ; want \"\"(\", \"{\", \"-\", \"+\"\"", "params": { "value": "" } } ] } } } } } observedGeneration: 1 reason: RemoteCreationFailed status: "False" type: RemoteSynced <|endoftext|> # istio_51506.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 51506 releaseNotes: - | **Added** Istiod's readiness check is now also available over https for use in clusters utilizing a remote control plane for sidecar injection. <|endoftext|> # helm_charts_exporter-deployment.yaml {{- if .Values.exporter.enabled }} --- apiVersion: "v1" kind: "Service" metadata: name: "{{ include "solr.exporter-name" . }}" labels: {{ include "solr.common.labels" . | indent 4 }} app.kubernetes.io/component: "exporter" annotations: {{ toYaml .Values.exporter.service.annotations | indent 4}} spec: type: "{{ .Values.exporter.service.type }}" ports: - port: {{ .Values.exporter.port }} name: "solr-client" selector: app.kubernetes.io/name: "{{ include "solr.name" . }}" app.kubernetes.io/instance: "{{ .Release.Name }}" app.kubernetes.io/component: "exporter" --- apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "solr.exporter-name" . }} labels: {{ include "solr.common.labels" . | indent 4 }} app.kubernetes.io/component: "exporter" spec: selector: matchLabels: app.kubernetes.io/name: "{{ include "solr.name" . }}" app.kubernetes.io/instance: "{{ .Release.Name }}" app.kubernetes.io/component: "exporter" replicas: 1 strategy: {{ toYaml .Values.exporter.updateStrategy | indent 4}} template: metadata: labels: {{ include "solr.common.labels" . | indent 8 }} app.kubernetes.io/component: "exporter" annotations: {{ toYaml .Values.exporter.podAnnotations | indent 8 }} spec: {{- include "solr.imagePullSecrets" . | indent 6 }} affinity: {{ tpl (toYaml .Values.affinity) . | indent 8 }} containers: - name: exporter image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} resources: {{ toYaml .Values.exporter.resources | indent 12 }} ports: - containerPort: {{ .Values.port }} name: solr-client command: - "/opt/solr/contrib/prometheus-exporter/bin/solr-exporter" - "-p" - "{{ .Values.exporter.port }}" - "-z" - "{{ include "solr.zookeeper-service-name" . }}:2181" - "-n" - "{{ .Values.exporter.threads }}" - "-f" - "{{ .Values.exporter.configFile }}" livenessProbe: initialDelaySeconds: {{ .Values.exporter.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.exporter.livenessProbe.periodSeconds }} httpGet: path: "/metrics" port: {{ .Values.exporter.port }} readinessProbe: initialDelaySeconds: {{ .Values.exporter.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.exporter.readinessProbe.periodSeconds }} httpGet: path: "/metrics" port: {{ .Values.exporter.port }} initContainers: - name: solr-init image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - 'sh' - '-c' - | {{- if .Values.tls.enabled }} PROTOCOL="https://" {{ else }} PROTOCOL="http://" {{- end }} COUNTER=0; while [ $COUNTER -lt 30 ]; do curl -k -s --connect-timeout 10 "${PROTOCOL}{{ include "solr.service-name" . }}:{{ .Values.port }}/solr/admin/info/system" && exit 0 sleep 2 done; echo "Did NOT see a Running Solr instance after 60 secs!"; exit 1; {{ end }} <|endoftext|> # istio_istio-upgrade-to-1.24.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: test-upgrade topology.istio.io/network: network-1 name: test-upgrade namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: test-upgrade uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: test-upgrade topology.istio.io/network: network-1 name: test-upgrade namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: test-upgrade uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: test-upgrade istio.io/gateway-name: test-upgrade template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: test-upgrade istio.io/dataplane-mode: none istio.io/gateway-name: test-upgrade service.istio.io/canonical-name: test-upgrade service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" topology.istio.io/network: network-1 spec: containers: - args: - proxy - waypoint - --domain - $(POD_NAMESPACE).svc. - --serviceCluster - test-upgrade.$(POD_NAMESPACE) - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: ISTIO_META_SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {} - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NETWORK value: network-1 - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: test-upgrade - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/test-upgrade - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: test/proxyv2:test name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/istio name: istiod-ca-cert - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo serviceAccountName: test-upgrade volumes: - emptyDir: {} name: workload-socket - emptyDir: medium: Memory name: istio-envoy - emptyDir: medium: Memory name: go-proxy-envoy - emptyDir: {} name: istio-data - emptyDir: {} name: go-proxy-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - configMap: name: istio-ca-root-cert name: istiod-ca-cert --- apiVersion: v1 kind: Service metadata: annotations: networking.istio.io/traffic-distribution: PreferClose labels: gateway.istio.io/managed: istio.io-mesh-controller gateway.networking.k8s.io/gateway-class-name: istio-waypoint gateway.networking.k8s.io/gateway-name: test-upgrade topology.istio.io/network: network-1 name: test-upgrade namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: test-upgrade uid: "" spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP - appProtocol: all name: mesh port: 15008 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: test-upgrade type: ClusterIP --- <|endoftext|> # helm_source_ingress.yaml {{- if .Values.ingress.enabled -}} {{- $fullName := include "v3-fail.fullname" . -}} {{- $svcPort := .Values.service.port -}} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} {{- end }} {{- end }} {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1 {{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1beta1 {{- else -}} apiVersion: extensions/v1beta1 {{- end }} kind: Ingress metadata: name: {{ $fullName }} labels: {{- include "v3-fail.labels" . | nindent 4 }} {{- with .Values.ingress.annotations }} annotations: "helm.sh/hook": crd-install {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} ingressClassName: {{ .Values.ingress.className }} {{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} - hosts: {{- range .hosts }} - {{ . | quote }} {{- end }} secretName: {{ .secretName }} {{- end }} {{- end }} rules: {{- range .Values.ingress.hosts }} - host: {{ .host | quote }} http: paths: {{- range .paths }} - path: {{ .path }} {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} pathType: {{ .pathType }} {{- end }} backend: {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} service: name: {{ $fullName }} port: number: {{ $svcPort }} {{- else }} serviceName: {{ $fullName }} servicePort: {{ $svcPort }} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # argocd_source_argocd-ssh-known-hosts-cm.yaml apiVersion: v1 kind: ConfigMap metadata: labels: app.kubernetes.io/name: argocd-ssh-known-hosts-cm app.kubernetes.io/part-of: argocd name: argocd-ssh-known-hosts-cm data: ssh_known_hosts: | # This file was automatically generated by hack/update-ssh-known-hosts.sh. DO NOT EDIT [ssh.github.com]:443 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [ssh.github.com]:443 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl [ssh.github.com]:443 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk= bitbucket.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPIQmuzMBuKdWeF4+a2sjSSpBK0iqitSQ+5BM9KhpexuGt20JpTVM7u5BDZngncgrqDMbWdxMWWOGtZ9UgbqgZE= bitbucket.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIazEu89wgQZ4bqs3d63QSMzYVa0MuJ2e2gKTKqu+UUO bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDQeJzhupRu0u0cdegZIa8e86EG2qOCsIsD1Xw0xSeiPDlCr7kq97NLmMbpKTX6Esc30NuoqEEHCuc7yWtwp8dI76EEEB1VqY9QJq6vk+aySyboD5QF61I/1WeTwu+deCbgKMGbUijeXhtfbxSxm6JwGrXrhBdofTsbKRUsrN1WoNgUa8uqN1Vx6WAJw1JHPhglEGGHea6QICwJOAr/6mrui/oB7pkaWKHj3z7d1IC4KWLtY47elvjbaTlkN04Kc/5LFEirorGYVbt15kAUlqGM65pk6ZBxtaO3+30LVlORZkxOh+LKL/BvbZ/iRNhItLqNyieoQj/uh/7Iv4uyH/cV/0b4WDSd3DptigWq84lJubb9t/DnZlrJazxyDCulTmKdOR7vs9gMTo+uoIrPSb8ScTtvw65+odKAlBj59dhnVp9zd7QUojOpXlL62Aw56U4oO+FALuevvMjiWeavKhJqlR7i5n9srYcrNV7ttmDw7kf/97P5zauIhxcjX+xHv4M= github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk= gitlab.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSMqzJeV9rUzU4kWitGjeR4PWSa29SPqJ1fVkhtj3Hw9xjLVXVYrU9QlYWrOLXBpQ6KWjbjTDTdDkoohFzgbEY= gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf gitlab.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bNKTBSpIYDEGk9KxsGh3mySTRgMtXL583qmBpzeQ+jqCMRgBqB98u3z++J1sKlXHWfM9dyhSevkMwSbhoR8XIq/U0tCNyokEi/ueaBMCvbcTHhO7FcwzY92WK4Yt0aGROY5qX2UKSeOvuP4D6TPqKF1onrSzH9bx9XUf2lEdWT/ia1NEKjunUqu1xOB/StKDHMoX4/OKyIzuS0q/T1zOATthvasJFoPrAjkohTyaDUz2LN5JoH839hViyEG82yB+MjcFV5MU3N1l1QL3cVUCh93xSaua1N85qivl+siMkPGbO5xR/En4iEY6K2XPASUEMaieWVNTRCtJ4S8H+9 ssh.dev.azure.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H vs-ssh.visualstudio.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H <|endoftext|> # istio_istio-cni-chart-termgrace.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 58572 releaseNotes: - | **Added** support for configuring terminationGracePeriodSeconds on the istio-cni pod, and updated the default value from 5 secs to 30 secs. <|endoftext|> # argocd_source_git-generator-files.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - git: repoURL: https://github.com/argoproj/argo-cd.git revision: HEAD files: - path: "applicationset/examples/git-generator-files-discovery/cluster-config/**/config.json" template: metadata: name: '{{.cluster.name}}-guestbook' spec: project: default source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: "applicationset/examples/git-generator-files-discovery/apps/guestbook" destination: server: https://kubernetes.default.svc #server: '{{.cluster.address}}' namespace: guestbook <|endoftext|> # grafana_charts_configmap-runtime.yaml {{- if not .Values.useExternalConfig }} apiVersion: v1 kind: ConfigMap metadata: name: {{ tpl .Values.externalRuntimeConfigName . }} labels: {{- include "tempo.labels" (dict "ctx" .) | nindent 4 }} namespace: {{ .Release.Namespace | quote }} data: overrides.yaml: | {{ include "tempo.overridesConfig" . | nindent 4 }} {{- end }} <|endoftext|> # istio_48461.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for concurrent SidecarScope conversion. You can use `PILOT_CONVERT_SIDECAR_SCOPE_CONCURRENCY` to adjust the number of concurrencies. Its default value is 1 and will not be executed concurrently. When `initSidecarScopes` consumes a lot of time and you want to reduce time consumption by increasing CPU consumption, you can increase the number of concurrent executions by increasing the value of `PILOT_CONVERT_SIDECAR_SCOPE_CONCURRENCY`. <|endoftext|> # istio_update-se-instances.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** potential memory leak when updating service entries hostname. <|endoftext|> # argocd_source_degraded_expectedMachines.yaml apiVersion: cluster.x-k8s.io/v1beta1 kind: MachineHealthCheck metadata: labels: cluster.x-k8s.io/cluster-name: test name: test-node-unhealthy-5m spec: clusterName: test maxUnhealthy: 100% nodeStartupTimeout: 10m0s selector: matchLabels: cluster.x-k8s.io/deployment-name: test-md-workers-0 unhealthyConditions: - status: Unknown timeout: 5m type: Ready - status: "False" timeout: 5m type: Ready status: conditions: - lastTransitionTime: "2022-10-07T10:33:46Z" status: "True" type: RemediationAllowed currentHealthy: 1 expectedMachines: 3 observedGeneration: 3 remediationsAllowed: 1 targets: - test-md-workers-0-76f7db5786-8nl6m - test-md-workers-0-76f7db5786-jjzvf - test-md-workers-0-76f7db5786-l4vfb <|endoftext|> # helm_charts_appdaemon-ingress.yaml {{- if and (.Values.appdaemon.enabled) (.Values.appdaemon.ingress.enabled) }} {{- $fullName := include "home-assistant.fullname" . -}} {{- $servicePort := .Values.appdaemon.service.port -}} {{- $ingressPath := .Values.appdaemon.ingress.path -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ $fullName }}-appdaemon labels: app.kubernetes.io/name: {{ include "home-assistant.name" . }} helm.sh/chart: {{ include "home-assistant.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- with .Values.appdaemon.ingress.annotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} spec: {{- if .Values.appdaemon.ingress.tls }} tls: {{- range .Values.appdaemon.ingress.tls }} - hosts: {{- range .hosts }} - {{ . }} {{- end }} secretName: {{ .secretName }} {{- end }} {{- end }} rules: {{- range .Values.appdaemon.ingress.hosts }} - host: {{ . }} http: paths: - path: {{ $ingressPath }} backend: serviceName: {{ $fullName }} servicePort: {{ $servicePort }} {{- end }} {{- end }} <|endoftext|> # istio_random-dns-upstream-selection.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 53414 releaseNotes: - | **Updated** randomly select which upstreams to forward DNS requests to <|endoftext|> # helm_charts_data-pvc.yaml {{- if .Values.persistence.gitlabData.enabled }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "gitlab-ee.fullname" . }}-data annotations: {{- if .Values.persistence.gitlabData.storageClass }} volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.gitlabData.storageClass | quote }} {{- else }} volume.alpha.kubernetes.io/storage-class: default {{- end }} spec: accessModes: - {{ .Values.persistence.gitlabData.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.gitlabData.size | quote }} {{- end }} <|endoftext|> # istio_virtualservice.yaml # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: proxy-service-instance spec: hosts: - example.com ports: - number: 80 name: http protocol: HTTP resolution: STATIC endpoints: - address: 1.1.1.1 --- # Set up .Services VirtualServices, each pointing to a different Service {{- range $i := until .Services }} apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: vs-{{$i}} spec: hosts: - random-{{$i}}.host.example http: - name: "match-route" match: - uri: prefix: "/foo" - uri: regex: "/bar" rewrite: uri: "/new-url" route: - destination: host: random-{{$i}}.host.example --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-{{$i}} spec: hosts: - random-{{$i}}.host.example ports: - number: 80 name: http protocol: HTTP resolution: STATIC endpoints: - address: 1.2.3.4 --- {{- end }} <|endoftext|> # helm_charts_management-center-service.yaml apiVersion: v1 kind: Service metadata: {{- if .Values.managementcenter.service.annotations }} annotations: {{ toYaml .Values.managementcenter.service.annotations | indent 4 }} {{- end }} name: {{ template "hazelcast-jet-management-center.fullname" . }} labels: app.kubernetes.io/name: {{ template "hazelcast-jet.name" . }} helm.sh/chart: {{ template "hazelcast-jet.chart" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" app.kubernetes.io/managed-by: "{{ .Release.Service }}" spec: type: {{ .Values.managementcenter.service.type }} {{- if .Values.managementcenter.service.clusterIP }} clusterIP: {{ .Values.managementcenter.service.clusterIP }} {{- end }} selector: app.kubernetes.io/name: {{ template "hazelcast-jet.name" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" role: hazelcast-jet-management-center ports: - protocol: TCP port: {{ .Values.managementcenter.service.port }} targetPort: mc-port name: mc-port - protocol: TCP port: {{ .Values.managementcenter.service.httpsPort }} targetPort: mc-port name: mc-https-port <|endoftext|> # istio_vm-registration.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: releaseNotes: - | **Added** Automated creation of WorkloadEntries from WorkloadGroup when the associated workload connects to istiod. <|endoftext|> # istio_51568.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 51567 releaseNotes: - | **Fixed** false positives in IST0128 and IST0129 when credentialName and workloadSelector are set. <|endoftext|> # argocd_source_degraded-invalid.yaml apiVersion: capabilities.3scale.net/v1beta1 kind: Backend status: backendId: 59978 conditions: - status: "False" type: Failed - status: "True" type: Invalid - status: "False" type: Synced <|endoftext|> # kustomize_execfn.yaml apiVersion: v1 kind: ConfigMap metadata: name: label_namespace annotations: config.kubernetes.io/function: |- exec: path: ./fn.sh data: label_name: my-ns-name label_value: function-test <|endoftext|> # istio_openmetrics-merging.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: - 33474 releaseNotes: - | **Fixed** Prometheus [metrics merging](/docs/ops/integrations/prometheus/#option-1-metrics-merging) to correctly handle the case where the application metrics are exposed as [OpenMetrics](https://github.com/OpenObservability/OpenMetrics). <|endoftext|> # istio_54909.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: [54909] releaseNotes: - | **Fixed** missing `topology.istio.io/network` label on gateway pods when `--set networkGateway` is used. <|endoftext|> # istio_service-attribute-enrichment.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - https://github.com/istio/istio/issues/55026 releaseNotes: - | **Added** support for OpenTelemetry semantic convention-aligned service attribute enrichment for trace spans. When `serviceAttributeEnrichment: OTEL_SEMANTIC_CONVENTIONS` is set on the `OpenTelemetryTracingProvider` in `MeshConfig`, `service.name` is computed following the OTel K8s service attributes specification fallback chain. Additionally, `service.namespace`, `service.version`, and `service.instance.id` are injected as `OTEL_RESOURCE_ATTRIBUTES` on the sidecar at injection time, and the Environment resource detector is auto-enabled so Envoy picks up these attributes at startup. <|endoftext|> # helm_charts_psp-halyard-role.yaml {{- if .Values.rbac.pspEnabled }} kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ template "spinnaker.fullname" . }}-halyard-psp labels: {{ include "spinnaker.standard-labels" . | indent 4 }} rules: - apiGroups: ['extensions'] resources: ['podsecuritypolicies'] verbs: ['use'] resourceNames: - {{ template "spinnaker.fullname" . }}-halyard {{- end }} <|endoftext|> # istio_29414.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 29414 releaseNotes: - | **Fixed** an bug if global sidecar is defined in root namespace, no xDS pushes happen when cluster scoped configs(EnvoyFilter, AuthorizationPolicy, RequestAuthentication) changes. <|endoftext|> # helm_charts_pod-dist-budget.yaml {{- if .Values.maxUnavailable }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: "{{ template "consul.fullname" . }}-pdb" labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" spec: maxUnavailable: {{ .Values.maxUnavailable }} selector: matchLabels: component: "{{ .Release.Name }}-{{ .Values.Component }}" {{- end }} <|endoftext|> # argocd_source_keda-progressing.yaml apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: annotations: finalizers: - finalizer.keda.sh labels: argocd.argoproj.io/instance: keda-default name: keda namespace: keda resourceVersion: '160591442' uid: 73ee438a-f383-43f3-9346-b901d9773f4b spec: maxReplicaCount: 3 minReplicaCount: 0 scaleTargetRef: name: backstage triggers: - metadata: desiredReplicas: '1' end: 00 17 * * 1-5 start: 00 08 * * 1-5 timezone: Europe/Stockholm type: cron status: conditions: - message: Creating HorizontalPodAutoscaler Object reason: Running status: 'True' type: Running <|endoftext|> # istio_45758.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 45758 releaseNotes: - | **Added** ambient support for workload entries without an address. Fixes (#45758)[https://github.com/istio/istio/issues/45758). <|endoftext|> # k8s_docs_cpu-request-limit.yaml apiVersion: v1 kind: Pod metadata: name: cpu-demo namespace: cpu-example spec: containers: - name: cpu-demo-ctr image: vish/stress resources: limits: cpu: "1" requests: cpu: "0.5" args: - -cpus - "2" <|endoftext|> # k8s_docs_list-events-default-service-account.yaml apiVersion: flowcontrol.apiserver.k8s.io/v1 kind: FlowSchema metadata: name: list-events-default-service-account spec: distinguisherMethod: type: ByUser matchingPrecedence: 8000 priorityLevelConfiguration: name: catch-all rules: - resourceRules: - apiGroups: - '*' namespaces: - default resources: - events verbs: - list subjects: - kind: ServiceAccount serviceAccount: name: default namespace: default <|endoftext|> # helm_charts_pod-nanny-role.yaml {{- if .Values.rbac.create -}} {{- if .Values.resizer.enabled -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: name: {{ template "heapster.fullname" . }}-pod-nanny labels: app: {{ template "heapster.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} rules: - apiGroups: - "" resources: - pods verbs: - get - apiGroups: - "extensions" resources: - deployments verbs: - get - update {{- end -}} {{- end -}} <|endoftext|> # istio_make-httpbin-work-ocp.yaml apiVersion: release-notes/v2 kind: bug-fix area: documentation releaseNotes: - | **Fixed** `httpbin` sample manifests to deploy correctly on OpenShift. <|endoftext|> # istio_fix-44318.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - https://github.com/istio/istio/issues/44318 releaseNotes: - |- **Fixed** `istioctl analyze` to prevent panic when the server port in Gateway is nil. <|endoftext|> # istio_validate-unknown.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 24861 releaseNotes: - | **Improved** `istioctl validate` to check for unknown fields in resources. <|endoftext|> # helm_charts_agent-svc.yaml {{- if .Values.agent.enabled -}} apiVersion: v1 kind: Service metadata: name: {{ template "jaeger.agent.name" . }} labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} helm.sh/chart: {{ include "jaeger.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: agent {{- if .Values.agent.service.annotations }} annotations: {{ toYaml .Values.agent.service.annotations | indent 4 }} {{- end }} spec: ports: - name: zipkin-compact port: {{ .Values.agent.service.zipkinThriftPort }} protocol: UDP targetPort: zipkin-compact - name: jaeger-compact port: {{ .Values.agent.service.compactPort }} protocol: UDP targetPort: jaeger-compact - name: jaeger-binary port: {{ .Values.agent.service.binaryPort }} protocol: UDP targetPort: jaeger-binary - name: http port: {{ .Values.agent.service.samplingPort }} protocol: TCP targetPort: http type: {{ .Values.agent.service.type }} selector: app.kubernetes.io/name: {{ include "jaeger.name" . }} app.kubernetes.io/component: agent app.kubernetes.io/instance: {{ .Release.Name }} {{- template "loadBalancerSourceRanges" .Values.agent }} {{- end -}} <|endoftext|> # istio_helm-configurable-scaling-behavior.yaml apiVersion: release-notes/v2 kind: feature area: installation # issue is a list of GitHub issues resolved in this note. issue: - 42634 docs: - '[usage] https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior' releaseNotes: - | **Added** configurable scaling behavior for Istiod's HPA in helm chart upgradeNotes: [] securityNotes: [] <|endoftext|> # helm_charts_gocd-server-pvc.yaml {{- if .Values.server.enabled }} {{- if and .Values.server.persistence.enabled (not .Values.server.persistence.existingClaim) -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "gocd.fullname" . }}-server labels: app: {{ template "gocd.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} component: server spec: accessModes: - {{ .Values.server.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.server.persistence.size | quote }} {{- if .Values.server.persistence.storageClass }} {{- if (eq "-" .Values.server.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: {{ .Values.server.persistence.storageClass }} {{- end }} {{- end }} {{- if .Values.server.persistence.pvSelector }} selector: {{ toYaml .Values.server.persistence.pvSelector | indent 4 }} {{- end }} {{- end }} {{- end -}} <|endoftext|> # helm_charts_gocd-ea-cluster-role.yaml {{ if and .Values.rbac.create (not .Values.rbac.roleRef) }} apiVersion: rbac.authorization.k8s.io/{{ required "A valid .Values.rbac.apiVersion entry required!" .Values.rbac.apiVersion }} kind: ClusterRole metadata: name: {{ template "gocd.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: "{{ template "gocd.name" . }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" rules: - apiGroups: [""] resources: - pods - pods/log verbs: ["*"] - apiGroups: [""] resources: - nodes verbs: ["get", "list"] - apiGroups: [""] resources: - events verbs: ["list", "watch"] - apiGroups: [""] resources: - namespaces verbs: ["get"] {{ end }} <|endoftext|> # helm_charts_create-user.yaml {{- if .Values.mongodb.enabled }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "mission-control.fullname" . }}-create-user labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: mongodb annotations: "helm.sh/hook": post-install "helm.sh/hook-delete-policy": hook-succeeded spec: template: metadata: labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} restartPolicy: OnFailure containers: - name: post-install-job image: "{{ .Values.postInstallHook.image.repository }}:{{ .Values.postInstallHook.image.tag }}" env: - name: MONGODB_ADMIN_PASSWORD valueFrom: secretKeyRef: name: {{ template "mission-control.fullname" . }}-mongodb-cred key: adminPassword - name: MONGODB_MC_PASSWORD valueFrom: secretKeyRef: name: {{ template "mission-control.fullname" . }}-mongodb-cred key: mcPassword - name: MONGODB_INSIGHT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mission-control.fullname" . }}-mongodb-cred key: insightPassword command: - 'sh' - '-c' - 'sh /scripts/setup.sh' volumeMounts: - name: mongodb-setup mountPath: "/scripts" volumes: - name: mongodb-setup configMap: name: {{ template "mission-control.fullname" . }}-setup-script {{- end }} <|endoftext|> # istio_drop-118-ingress.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** support for `Ingress` version `networking.k8s.io/v1beta1`. The `v1` version has been available since Kubernetes 1.19. <|endoftext|> # istio_31522.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 31522 releaseNotes: - | **Added** support to istiod to notice cacerts file changes via the `AUTO_RELOAD_PLUGIN_CERTS` env var. <|endoftext|> # istio_48019.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Removed** support for `policy/v1beta1` API version of `PodDisruptionBudget`. <|endoftext|> # argocd_source_ui-service.yaml apiVersion: v1 kind: Service metadata: name: argocd-ui spec: selector: app: argocd-ui ports: - port: 4000 targetPort: http <|endoftext|> # istio_remove-remote-profile.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 38832 releaseNotes: - | **Removed** the deprecated istio operator `remote.yaml` profile which is equivalent to the default profile. <|endoftext|> # istio_mcs.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: default port: 34000 protocol: TCP --- apiVersion: gateway.networking.k8s.io/v1alpha2 kind: TCPRoute metadata: name: tcp namespace: istio-system spec: parentRefs: - name: gateway namespace: istio-system rules: - backendRefs: - group: multicluster.x-k8s.io kind: ServiceImport name: echo port: 80 <|endoftext|> # istio_53402.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 53402 upgradeNotes: - title: Envoy default internalAddressConfig value change content: | As of Envoy 1.33, the default internalAddressConfig is set to an empty set. In previous versions the default was all private IPs. To preserve internal headers when useRemoteAddress is set or at the gateway, the internalAddressConfig must be set explicitly to all IPs in the mesh network by setting `ENABLE_HCM_INTERNAL_NETWORKS` to true and configuring MeshNetworks. Alternatively, Envoy's `envoy.reloadable_features.explicit_internal_address_config` flag could be set to false to revert to Envoy's previous behavior prior to 1.33. Setting `ENABLE_HCM_INTERNAL_NETWORKS` and configuring MeshNetworks to all private IPs or reverting to Envoy's previous behavior will leave users with an Istio Ingress Gateway potentially vulnerable to `x-envoy` header manipulation by external sources. More information about this vulnerability can be found here: https://github.com/envoyproxy/envoy/security/advisories/GHSA-ffhv-fvxq-r6mf Instructions for setting `explicit_internal_address_config` can be found [here](https://istio.io/v1.23/news/security/istio-security-2024-006/#am-i-impacted). Examples for explicitly configuring `MeshNetworks` can be found [here](https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/#MeshNetworks). docs: - '[MeshNetworks] https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/#MeshNetworks' - '[ENABLE_HCM_INTERNAL_NETWORKS] https://istio.io/latest/docs/reference/commands/pilot-discovery/#envvars' <|endoftext|> # k8s_examples_azure.yaml apiVersion: v1 kind: Pod metadata: name: azure spec: containers: - image: kubernetes/pause name: azure volumeMounts: - name: azure mountPath: /mnt/azure volumes: - name: azure azureDisk: diskName: test.vhd diskURI: https://someaccount.blob.microsoft.net/vhds/test.vhd <|endoftext|> # helm_charts_mongodb-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: labels: app: {{ template "mongodb-replicaset.name" . }} chart: {{ template "mongodb-replicaset.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 4 }} {{- end }} {{- if .Values.statefulSetAnnotations }} annotations: {{ toYaml .Values.statefulSetAnnotations | indent 4 }} {{- end }} name: {{ template "mongodb-replicaset.fullname" . }} namespace: {{ template "mongodb-replicaset.namespace" . }} spec: {{- if .Values.updateStrategy }} updateStrategy: {{ toYaml .Values.updateStrategy | indent 4 }} {{- end }} selector: matchLabels: app: {{ template "mongodb-replicaset.name" . }} release: {{ .Release.Name }} serviceName: {{ template "mongodb-replicaset.fullname" . }} replicas: {{ .Values.replicas }} template: metadata: labels: app: {{ template "mongodb-replicaset.name" . }} release: {{ .Release.Name }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/mongodb-mongodb-configmap.yaml") . | sha256sum }} {{- if and (.Values.metrics.prometheusServiceDiscovery) (.Values.metrics.enabled) }} prometheus.io/scrape: "true" prometheus.io/port: {{ .Values.metrics.port | quote }} prometheus.io/path: {{ .Values.metrics.path | quote }} {{- end }} {{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} {{- end }} spec: {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} {{- if .Values.imagePullSecrets }} imagePullSecrets: {{- range .Values.imagePullSecrets }} - name: {{ . }} {{- end}} {{- end }} {{- if .Values.securityContext.enabled }} securityContext: runAsUser: {{ .Values.securityContext.runAsUser }} fsGroup: {{ .Values.securityContext.fsGroup }} runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }} {{- end }} terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- if .Values.serviceAccount }} serviceAccountName: {{ .Values.serviceAccount }} {{- end }} initContainers: - name: copy-config image: "{{ .Values.copyConfigImage.repository }}:{{ .Values.copyConfigImage.tag }}" imagePullPolicy: {{ .Values.copyConfigImage.pullPolicy | quote }} command: - "sh" args: - "-c" - | set -e set -x cp /configdb-readonly/mongod.conf /data/configdb/mongod.conf {{- if .Values.tls.enabled }} cp /ca-readonly/tls.key /data/configdb/tls.key cp /ca-readonly/tls.crt /data/configdb/tls.crt {{- end }} {{- if .Values.auth.enabled }} cp /keydir-readonly/key.txt /data/configdb/key.txt chmod 600 /data/configdb/key.txt {{- end }} volumeMounts: - name: workdir mountPath: /work-dir - name: config mountPath: /configdb-readonly - name: configdir mountPath: /data/configdb {{- if .Values.tls.enabled }} - name: ca mountPath: /ca-readonly {{- end }} {{- if .Values.auth.enabled }} - name: keydir mountPath: /keydir-readonly {{- end }} resources: {{ toYaml .Values.init.resources | indent 12 }} - name: install image: "{{ .Values.installImage.repository }}:{{ .Values.installImage.tag }}" args: - --work-dir=/work-dir imagePullPolicy: "{{ .Values.installImage.pullPolicy }}" volumeMounts: - name: workdir mountPath: /work-dir resources: {{ toYaml .Values.init.resources | indent 12 }} - name: bootstrap image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" command: - /work-dir/peer-finder args: - -on-start=/init/on-start.sh - "-service={{ template "mongodb-replicaset.fullname" . }}" imagePullPolicy: "{{ .Values.image.pullPolicy }}" env: - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: REPLICA_SET value: {{ .Values.replicaSetName }} - name: TIMEOUT value: "{{ .Values.init.timeout }}" - name: SKIP_INIT value: "{{ .Values.skipInitialization }}" - name: TLS_MODE value: {{ .Values.tls.mode }} {{- if .Values.auth.enabled }} - name: AUTH value: "true" - name: ADMIN_USER valueFrom: secretKeyRef: name: "{{ template "mongodb-replicaset.adminSecret" . }}" key: user - name: ADMIN_PASSWORD valueFrom: secretKeyRef: name: "{{ template "mongodb-replicaset.adminSecret" . }}" key: password {{- if .Values.metrics.enabled }} - name: METRICS value: "true" - name: METRICS_USER valueFrom: secretKeyRef: name: "{{ template "mongodb-replicaset.metricsSecret" . }}" key: user - name: METRICS_PASSWORD valueFrom: secretKeyRef: name: "{{ template "mongodb-replicaset.metricsSecret" . }}" key: password {{- end }} {{- end }} volumeMounts: - name: workdir mountPath: /work-dir - name: init mountPath: /init - name: configdir mountPath: /data/configdb - name: datadir mountPath: /data/db resources: {{ toYaml .Values.init.resources | indent 12 }} containers: - name: {{ template "mongodb-replicaset.name" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: "{{ .Values.image.pullPolicy }}" {{- if .Values.extraVars }} env: {{ toYaml .Values.extraVars | indent 12 }} {{- end }} ports: - name: mongodb containerPort: 27017 resources: {{ toYaml .Values.resources | indent 12 }} command: - mongod args: - --config=/data/configdb/mongod.conf - --dbpath=/data/db - --replSet={{ .Values.replicaSetName }} - --port=27017 - --bind_ip=0.0.0.0 {{- if .Values.auth.enabled }} - --auth - --keyFile=/data/configdb/key.txt {{- end }} {{- if .Values.tls.enabled }} - --sslMode={{ .Values.tls.mode }} - --sslCAFile=/data/configdb/tls.crt - --sslPEMKeyFile=/work-dir/mongo.pem {{- end }} livenessProbe: exec: command: - mongo {{- if .Values.tls.enabled }} - --ssl - --sslCAFile=/data/configdb/tls.crt - --sslPEMKeyFile=/work-dir/mongo.pem {{- end }} - --eval - "db.adminCommand('ping')" initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} failureThreshold: {{ .Values.livenessProbe.failureThreshold }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} successThreshold: {{ .Values.livenessProbe.successThreshold }} {{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }} startupProbe: exec: command: - mongo {{- if .Values.tls.enabled }} - --ssl - --sslCAFile=/data/configdb/tls.crt - --sslPEMKeyFile=/work-dir/mongo.pem {{- end }} - --eval - "db.adminCommand('ping')" initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }} failureThreshold: {{ .Values.startupProbe.failureThreshold }} periodSeconds: {{ .Values.startupProbe.periodSeconds }} successThreshold: {{ .Values.startupProbe.successThreshold }} {{- end }} readinessProbe: exec: command: - mongo {{- if .Values.tls.enabled }} - --ssl - --sslCAFile=/data/configdb/tls.crt - --sslPEMKeyFile=/work-dir/mongo.pem {{- end }} - --eval - "db.adminCommand('ping')" initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} failureThreshold: {{ .Values.readinessProbe.failureThreshold }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} successThreshold: {{ .Values.readinessProbe.successThreshold }} volumeMounts: - name: datadir mountPath: /data/db - name: configdir mountPath: /data/configdb - name: workdir mountPath: /work-dir {{ if .Values.metrics.enabled }} - name: metrics image: "{{ .Values.metrics.image.repository }}:{{ .Values.metrics.image.tag }}" imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} command: - sh - -c - >- /bin/mongodb_exporter --mongodb.uri {{ template "mongodb-replicaset.connection-string" . }} --web.telemetry-path={{ .Values.metrics.path }} --web.listen-address=:{{ .Values.metrics.port }} volumeMounts: {{- if and (.Values.tls.enabled) }} - name: ca mountPath: /ca readOnly: true {{- end }} - name: workdir mountPath: /work-dir readOnly: true env: {{- if .Values.auth.enabled }} - name: METRICS_USER valueFrom: secretKeyRef: name: "{{ template "mongodb-replicaset.metricsSecret" . }}" key: user - name: METRICS_PASSWORD valueFrom: secretKeyRef: name: "{{ template "mongodb-replicaset.metricsSecret" . }}" key: password {{- end }} ports: - name: metrics containerPort: {{ .Values.metrics.port }} resources: {{ toYaml .Values.metrics.resources | indent 12 }} {{- if .Values.metrics.securityContext.enabled }} securityContext: runAsUser: {{ .Values.metrics.securityContext.runAsUser }} {{- end }} livenessProbe: exec: command: - sh - -c - >- /bin/mongodb_exporter --mongodb.uri {{ template "mongodb-replicaset.connection-string" . }} --test initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} {{- if semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion }} startupProbe: exec: command: - sh - -c - >- /bin/mongodb_exporter --mongodb.uri {{ template "mongodb-replicaset.connection-string" . }} --test initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }} failureThreshold: {{ .Values.startupProbe.failureThreshold }} periodSeconds: {{ .Values.startupProbe.periodSeconds }} successThreshold: {{ .Values.startupProbe.successThreshold }} {{- end }} {{ end }} {{- if .Values.extraContainers }} {{- tpl (toYaml .Values.extraContainers) . | nindent 8 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: config configMap: name: {{ template "mongodb-replicaset.fullname" . }}-mongodb - name: init configMap: defaultMode: 0755 name: {{ template "mongodb-replicaset.fullname" . }}-init {{- if .Values.tls.enabled }} - name: ca secret: defaultMode: 0400 secretName: {{ template "mongodb-replicaset.fullname" . }}-ca {{- end }} {{- if .Values.auth.enabled }} - name: keydir secret: defaultMode: 0400 secretName: {{ template "mongodb-replicaset.keySecret" . }} {{- end }} - name: workdir emptyDir: {} - name: configdir emptyDir: {} {{- if .Values.extraVolumes }} {{- tpl (toYaml .Values.extraVolumes) . | nindent 8 }} {{- end }} {{- if .Values.persistentVolume.enabled }} volumeClaimTemplates: - metadata: name: datadir annotations: {{- range $key, $value := .Values.persistentVolume.annotations }} {{ $key }}: "{{ $value }}" {{- end }} spec: accessModes: {{- range .Values.persistentVolume.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.persistentVolume.size | quote }} {{- if .Values.persistentVolume.storageClass }} {{- if (eq "-" .Values.persistentVolume.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.persistentVolume.storageClass }}" {{- end }} {{- end }} {{- else }} - name: datadir emptyDir: {} {{- end }} <|endoftext|> # istio_29942.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 29943 releaseNotes: - | **Added** option to enable STS token fetch and exchange for XDS flow. <|endoftext|> # istio_inconsistent-service-1.yaml # Same service as cluster2, should not report warning. apiVersion: v1 kind: Service metadata: name: my-service namespace: my-namespace spec: selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service with extra port in cluster2, should generate warning. apiVersion: v1 kind: Service metadata: name: extra-port namespace: my-namespace spec: selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service with inconsistent port name, should generate warning. apiVersion: v1 kind: Service metadata: name: inconsistent-port-name namespace: my-namespace spec: selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service is mixed mode(clusterIP and headless), should generate warning. apiVersion: v1 kind: Service metadata: name: mixed-mode namespace: my-namespace spec: clusterIP: 1.2.3.4 selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service is mixed type, should generate warning. apiVersion: v1 kind: Service metadata: name: mixed-type namespace: my-namespace spec: type: ClusterIP selector: app: my-service ports: - name: tcp-foo protocol: TCP port: 8080 targetPort: 8080 --- # Service is mixed with port protocols, should generate warning. apiVersion: v1 kind: Service metadata: name: mixed-port-protocol namespace: my-namespace spec: type: ClusterIP selector: app: my-service ports: - name: tcp protocol: TCP port: 8080 targetPort: 8080 <|endoftext|> # istio_59700.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 59700 releaseNotes: - | **Fixed** serivceAccount matcher regex in AuthorizationPolicy to properly quote the service account name, allowing for correct matching of service accounts with special characters in their names. <|endoftext|> # istio_xds-push-deadlock.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: [39209] releaseNotes: - | **Fixed** any issue that can cause xDS configuration updates to be blocked during high traffic. <|endoftext|> # istio_53861.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Added** a pod `dnsPolicy` of ClusterFirstWithHostNet to `istio-cni` when it runs with `hostNetwork=true` (i.e. ambient mode). <|endoftext|> # k8s_docs_clusterrole-sign.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: csr-signer rules: - apiGroups: - certificates.k8s.io resources: - certificatesigningrequests verbs: - get - list - watch - apiGroups: - certificates.k8s.io resources: - certificatesigningrequests/status verbs: - update - apiGroups: - certificates.k8s.io resources: - signers resourceNames: - example.com/my-signer-name # example.com/* can be used to authorize for all signers in the 'example.com' domain verbs: - sign <|endoftext|> # helm_charts_job-chroots.yaml {{- if .Values.jobs.chroots.enabled }} {{- $root := . }} {{- $job := .Values.jobs.chroots }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "zookeeper.chroots" . }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-weight": "-5" "helm.sh/hook-delete-policy": hook-succeeded labels: app: {{ template "zookeeper.name" . }} chart: {{ template "zookeeper.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: jobs job: chroots spec: activeDeadlineSeconds: {{ $job.activeDeadlineSeconds }} backoffLimit: {{ $job.backoffLimit }} completions: {{ $job.completions }} parallelism: {{ $job.parallelism }} template: metadata: labels: app: {{ template "zookeeper.name" . }} release: {{ .Release.Name }} component: jobs job: chroots spec: restartPolicy: {{ $job.restartPolicy }} {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} containers: - name: main image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - /bin/bash - -o - pipefail - -euc {{- $port := .Values.service.ports.client.port }} - > sleep 15; export SERVER={{ template "zookeeper.fullname" $root }}:{{ $port }}; {{- range $job.config.create }} echo '==> {{ . }}'; echo '====> Create chroot if does not exist.'; zkCli.sh -server {{ template "zookeeper.fullname" $root }}:{{ $port }} get {{ . }} 2>&1 >/dev/null | grep 'cZxid' || zkCli.sh -server {{ template "zookeeper.fullname" $root }}:{{ $port }} create {{ . }} ""; echo '====> Confirm chroot exists.'; zkCli.sh -server {{ template "zookeeper.fullname" $root }}:{{ $port }} get {{ . }} 2>&1 >/dev/null | grep 'cZxid'; echo '====> Chroot exists.'; {{- end }} env: {{- range $key, $value := $job.env }} - name: {{ $key | upper | replace "." "_" }} value: {{ $value | quote }} {{- end }} resources: {{ toYaml $job.resources | indent 12 }} {{- end -}} <|endoftext|> # kube_prometheus_prometheus-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: monitoring spec: ports: - name: web port: 9090 targetPort: web - name: reloader-web port: 8080 targetPort: reloader-web selector: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus sessionAffinity: ClientIP <|endoftext|> # kube_prometheus_prometheusOperator-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.90.1 name: prometheus-operator namespace: monitoring spec: replicas: 1 selector: matchLabels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus template: metadata: annotations: kubectl.kubernetes.io/default-container: prometheus-operator labels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.90.1 spec: automountServiceAccountToken: true containers: - args: - --kubelet-service=kube-system/kubelet - --prometheus-config-reloader=quay.io/prometheus-operator/prometheus-config-reloader:v0.90.1 - --watch-referenced-objects-in-all-namespaces=true - --disable-unmanaged-prometheus-configuration=true - --kubelet-endpoints=true - --kubelet-endpointslice=true env: - name: GOGC value: "30" image: quay.io/prometheus-operator/prometheus-operator:v0.90.1 name: prometheus-operator ports: - containerPort: 8080 name: http resources: limits: cpu: 200m memory: 200Mi requests: cpu: 100m memory: 100Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true - args: - --secure-listen-address=:8443 - --tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 - --upstream=http://127.0.0.1:8080/ image: quay.io/brancz/kube-rbac-proxy:v0.21.2 name: kube-rbac-proxy ports: - containerPort: 8443 name: https resources: limits: cpu: 20m memory: 40Mi requests: cpu: 10m memory: 20Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsGroup: 65532 runAsNonRoot: true runAsUser: 65532 seccompProfile: type: RuntimeDefault nodeSelector: kubernetes.io/os: linux securityContext: runAsGroup: 65534 runAsNonRoot: true runAsUser: 65534 seccompProfile: type: RuntimeDefault serviceAccountName: prometheus-operator <|endoftext|> # istio_25832.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 25832 releaseNotes: - | **Added** validation warning message for L7 Deny rules which will block all tcp traffic under the scope of the policy having that rule. <|endoftext|> # helm_charts_pvc-logs.yaml {{- if and (.Values.logs.persistence.enabled) (not .Values.logs.persistence.existingClaim) }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ printf "%s-logs" (include "airflow.fullname" . | trunc 58) }} labels: app: {{ include "airflow.labels.app" . }} chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: accessModes: - {{ .Values.logs.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.logs.persistence.size | quote }} {{- if .Values.logs.persistence.storageClass }} {{- if (eq "-" .Values.logs.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.logs.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # helm_charts_service-eg-admin.yaml apiVersion: v1 kind: Service metadata: name: {{ template "eg.fullname" . }}-admin annotations: {{- range $key, $value := .Values.admin.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} labels: app: {{ template "eg.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: type: {{ .Values.admin.type }} {{- if and (eq .Values.admin.type "LoadBalancer") .Values.admin.loadBalancerIP }} loadBalancerIP: {{ .Values.admin.loadBalancerIP }} {{- end }} ports: - name: eg-admin port: {{ .Values.admin.servicePort }} targetPort: {{ .Values.admin.containerPort }} {{- if (and (eq .Values.admin.type "NodePort") (not (empty .Values.admin.nodePort))) }} nodePort: {{ .Values.admin.nodePort }} {{- end }} protocol: TCP selector: app: {{ template "eg.name" . }} release: {{ .Release.Name }} <|endoftext|> # istio_46312.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 45825 releaseNotes: - | **Fixed** an issue that istio should using IMDSv2 as possible on AWS. <|endoftext|> # k8s_docs_pod-level-resources.yaml apiVersion: v1 kind: Pod metadata: name: pod-resources-demo namespace: pod-resources-example spec: resources: limits: cpu: "1" memory: "200Mi" requests: cpu: "1" memory: "100Mi" containers: - name: pod-resources-demo-ctr-1 image: nginx resources: limits: cpu: "0.5" memory: "100Mi" requests: cpu: "0.5" memory: "50Mi" - name: pod-resources-demo-ctr-2 image: fedora command: - sleep - inf <|endoftext|> # grafana_charts_config-secret.yaml {{- if and (.Values.loki.configAsSecret) (not .Values.loki.existingSecretForConfig) -}} apiVersion: v1 kind: Secret metadata: name: {{ include "loki.fullname" . }}-config namespace: {{ .Release.Namespace }} labels: {{- include "loki.labels" . | nindent 4 }} {{- with .Values.loki.configSecretLabels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.loki.configSecretAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} stringData: config.yaml: | {{- tpl (mergeOverwrite (tpl .Values.loki.config . | fromYaml) .Values.loki.structuredConfig | toYaml) . | nindent 4 }} {{- end -}} <|endoftext|> # istio_48580.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/48580 releaseNotes: - | **Fixed** an issue where updating service TargetPort does not trigger xDS push. <|endoftext|> # grafana_charts_prometheusrule.yaml {{- with .Values.prometheusRule }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ include "tempo.fullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "tempo.labels" (dict "ctx" $) | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: groups: {{- toYaml .groups | nindent 4 }} {{- end }} {{- end }} <|endoftext|> # k8s_docs_storageclass-topology.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: standard provisioner: example.com/example parameters: type: pd-standard volumeBindingMode: WaitForFirstConsumer allowedTopologies: - matchLabelExpressions: - key: topology.kubernetes.io/zone values: - us-central-1a - us-central-1b <|endoftext|> # istio_conflicting-gateways-invalid-port.yaml apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: beta spec: selector: istio: ingressgateway servers: - hosts: - "foo.bar" --- apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: alpha spec: selector: istio: ingressgateway servers: - hosts: - "bar.bar" <|endoftext|> # istio_dry-run-mix-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-1 namespace: foo annotations: "istio.io/dry-run": "true" spec: selector: matchLabels: app: httpbin version: v1 action: ALLOW rules: - to: - operation: paths: ["/allow"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-2 namespace: foo annotations: "istio.io/dry-run": "false" spec: selector: matchLabels: app: httpbin version: v1 action: ALLOW rules: - to: - operation: paths: ["/another"] <|endoftext|> # istio_38703.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 35657 releaseNotes: - | **Fixed** the in-cluster operator can't create resources on recreation of same IstioOperator resource <|endoftext|> # istio_route-collapse.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 28659 releaseNotes: - | **Optimized** generated routing configuration to merge virtual hosts with the same routing configuration. This improves performance for Virtual Services with multiple hostnames defined. upgradeNotes: - title: EnvoyFilter `match.routeConfiguration.vhost.name` semantics change content: | `EnvoyFilter` matches rely on internal implementation details to match generated XDS segments, which is subject to change at any time. In this release, the [virtual host name match](https://istio.io/latest/docs/reference/config/networking/envoy-filter/#EnvoyFilter-RouteConfigurationMatch-VirtualHostMatch) may have different results. Previously, each domain name had its own virtual host. As an optimization, multiple domains may use a single virtual host. This means that a Envoy Filter previously matching a specific virtual host may now apply to more domains than in previous releases. This optimization may be temporarily disabled by setting `PILOT_ENABLE_ROUTE_COLLAPSE_OPTIMIZATION=false` on the Istiod deployment. <|endoftext|> # argocd_source_install_plan_missing.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: selfLink: >- /apis/operators.coreos.com/v1alpha1/namespaces/openshift-operators/subscriptions/openshift-gitops-operator resourceVersion: '147969' name: openshift-gitops-operator uid: 59318244-d23a-47c1-9f23-38a3ccaaf6f8 creationTimestamp: '2021-08-30T21:43:17Z' generation: 1 managedFields: - apiVersion: operators.coreos.com/v1alpha1 fieldsType: FieldsV1 fieldsV1: 'f:spec': .: {} 'f:channel': {} 'f:installPlanApproval': {} 'f:name': {} 'f:source': {} 'f:sourceNamespace': {} 'f:startingCSV': {} manager: Mozilla operation: Update time: '2021-08-30T21:43:17Z' - apiVersion: operators.coreos.com/v1alpha1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:labels': .: {} 'f:operators.coreos.com/openshift-gitops-operator.openshift-operators': {} manager: olm operation: Update time: '2021-08-30T21:43:17Z' - apiVersion: operators.coreos.com/v1alpha1 fieldsType: FieldsV1 fieldsV1: 'f:status': 'f:installedCSV': {} 'f:currentCSV': {} 'f:catalogHealth': {} 'f:installPlanRef': .: {} 'f:apiVersion': {} 'f:kind': {} 'f:name': {} 'f:namespace': {} 'f:resourceVersion': {} 'f:uid': {} 'f:installPlanGeneration': {} 'f:conditions': {} .: {} 'f:installplan': .: {} 'f:apiVersion': {} 'f:kind': {} 'f:name': {} 'f:uuid': {} 'f:lastUpdated': {} 'f:state': {} manager: catalog operation: Update time: '2021-08-30T21:43:19Z' namespace: openshift-operators labels: operators.coreos.com/openshift-gitops-operator.openshift-operators: '' spec: channel: stable installPlanApproval: Automatic name: openshift-gitops-operator source: redhat-operators sourceNamespace: openshift-marketplace startingCSV: openshift-gitops-operator.v1.2.0 status: installplan: apiVersion: operators.coreos.com/v1alpha1 kind: InstallPlan name: install-jx26v uuid: 8566ad1f-c3ea-4367-aba5-db021b8cef45 lastUpdated: '2021-08-30T21:43:30Z' installedCSV: openshift-gitops-operator.v1.2.0 currentCSV: openshift-gitops-operator.v1.2.0 installPlanRef: apiVersion: operators.coreos.com/v1alpha1 kind: InstallPlan name: install-jx26v namespace: openshift-operators resourceVersion: '147595' uid: 8566ad1f-c3ea-4367-aba5-db021b8cef45 state: AtLatestKnown catalogHealth: - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: certified-operators namespace: openshift-marketplace resourceVersion: '145894' uid: 12fb6b00-6839-4360-89ea-0ed98cdc94f1 healthy: true lastUpdated: '2021-08-30T21:43:17Z' - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: community-operators namespace: openshift-marketplace resourceVersion: '145058' uid: e8913c52-5002-404f-92a4-d7b6eb35ea54 healthy: true lastUpdated: '2021-08-30T21:43:17Z' - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: redhat-marketplace namespace: openshift-marketplace resourceVersion: '143953' uid: 5bc9368c-50ee-4079-b66c-e32c8f75fa52 healthy: true lastUpdated: '2021-08-30T21:43:17Z' - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: redhat-operators namespace: openshift-marketplace resourceVersion: '143604' uid: 57a67470-3344-48db-8790-91853b62b650 healthy: true lastUpdated: '2021-08-30T21:43:17Z' conditions: - lastTransitionTime: '2021-08-30T21:43:17Z' message: all available catalogsources are healthy reason: AllCatalogSourcesHealthy status: 'False' type: CatalogSourcesUnhealthy - lastTransitionTime: '2021-08-30T21:43:30Z' reason: ReferencedInstallPlanNotFound status: 'True' type: InstallPlanMissing installPlanGeneration: 1 <|endoftext|> # helm_charts_spark-zeppelin-config-pvc.yaml {{ $persistence := .Values.Zeppelin.Persistence.Config }} {{- if $persistence.Enabled }} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "zeppelin-fullname" . }}-config spec: accessModes: - {{ $persistence.AccessMode | quote }} resources: requests: storage: {{ $persistence.Size | quote }} {{- if $persistence.StorageClass }} {{- if (eq "-" $persistence.StorageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ $persistence.StorageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # argocd_source_degraded_replicated.yaml apiVersion: policy.open-cluster-management.io/v1 kind: Policy metadata: name: open-cluster-management-global-set.argo-example namespace: local-cluster labels: policy.open-cluster-management.io/cluster-name: local-cluster policy.open-cluster-management.io/cluster-namespace: local-cluster policy.open-cluster-management.io/root-policy: open-cluster-management-global-set.argo-example spec: disabled: false policy-templates: - objectDefinition: apiVersion: policy.open-cluster-management.io/v1 kind: ConfigurationPolicy metadata: name: example-namespace spec: object-templates: - complianceType: musthave objectDefinition: apiVersion: v1 kind: Namespace metadata: name: example remediationAction: inform severity: low - objectDefinition: apiVersion: policy.open-cluster-management.io/v1 kind: ConfigurationPolicy metadata: name: example-pod spec: namespaceSelector: exclude: - kube-* include: - default object-templates: - complianceType: musthave objectDefinition: apiVersion: v1 kind: Pod metadata: name: foobar spec: containers: - image: 'registry.redhat.io/rhel9/httpd-24:latest' name: httpd securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false runAsNonRoot: true remediationAction: enforce severity: low status: compliant: NonCompliant details: - compliant: NonCompliant history: - eventName: open-cluster-management-global-set.argo-example.17e701cc5101e3a4 lastTimestamp: '2024-07-30T13:49:19Z' message: 'NonCompliant; violation - namespaces [example] not found' templateMeta: creationTimestamp: null name: example-namespace - compliant: Compliant history: - eventName: open-cluster-management-global-set.argo-example.17e7034c879045a3 lastTimestamp: '2024-07-30T14:16:49Z' message: 'Compliant; notification - pods [foobar] was created successfully in namespace default' - eventName: open-cluster-management-global-set.argo-example.17e7020b47782ddc lastTimestamp: '2024-07-30T13:53:49Z' message: 'NonCompliant; violation - pods [foobar] not found in namespace default' templateMeta: creationTimestamp: null name: example-pod <|endoftext|> # argocd_source_progressing_pod_rollout.yaml --- apiVersion: operator.openshift.io/v1 kind: IngressController metadata: name: apps-shard-2 namespace: openshift-ingress-operator spec: domain: openshift-apps-shard-2.example.com endpointPublishingStrategy: hostNetwork: httpPort: 80 httpsPort: 443 statsPort: 1936 type: HostNetwork nodePlacement: nodeSelector: matchLabels: node-role.kubernetes.io/worker: "" replicas: 1 status: availableReplicas: 0 conditions: - lastTransitionTime: "2023-01-28T09:34:36Z" reason: Valid status: "True" type: Admitted - lastTransitionTime: "2023-01-28T09:34:36Z" message: 'Some pods are not scheduled: Pod "router-apps-shard-2-7b5cb5f98d-gk4hj" cannot be scheduled: 0/6 nodes are available: 2 node(s) didn''t have free ports for the requested pod ports, 3 node(s) had untolerated taint {node-role.kubernetes.io/master: }, 5 node(s) didn''t match Pod''s node affinity/selector. preemption: 0/6 nodes are available: 1 node(s) didn''t have free ports for the requested pod ports, 5 Preemption is not helpful for scheduling. Make sure you have sufficient worker nodes.' reason: PodsNotScheduled status: "False" type: PodsScheduled - lastTransitionTime: "2023-01-28T09:34:36Z" message: The deployment has Available status condition set to True reason: DeploymentAvailable status: "True" type: DeploymentAvailable - lastTransitionTime: "2023-01-28T09:34:36Z" message: Minimum replicas requirement is met reason: DeploymentMinimumReplicasMet status: "True" type: DeploymentReplicasMinAvailable - lastTransitionTime: "2023-01-28T09:34:36Z" message: 0/1 of replicas are available reason: DeploymentReplicasNotAvailable status: "False" type: DeploymentReplicasAllAvailable - lastTransitionTime: "2023-01-28T09:34:36Z" message: The configured endpoint publishing strategy does not include a managed load balancer reason: EndpointPublishingStrategyExcludesManagedLoadBalancer status: "False" type: LoadBalancerManaged - lastTransitionTime: "2023-01-28T09:34:36Z" message: No DNS zones are defined in the cluster dns config. reason: NoDNSZones status: "False" type: DNSManaged - lastTransitionTime: "2023-01-28T09:34:36Z" status: "True" type: Available - lastTransitionTime: "2023-01-28T09:34:36Z" status: "False" type: Progressing - lastTransitionTime: "2023-01-28T09:34:36Z" status: "False" type: Degraded - lastTransitionTime: "2023-01-28T09:34:36Z" message: IngressController is upgradeable. reason: Upgradeable status: "True" type: Upgradeable domain: openshift-apps-shard-2.example.com endpointPublishingStrategy: hostNetwork: httpPort: 80 httpsPort: 443 protocol: TCP statsPort: 1936 type: HostNetwork observedGeneration: 2 selector: ingresscontroller.operator.openshift.io/deployment-ingresscontroller=apps-shard-2 tlsProfile: ciphers: - ECDHE-ECDSA-AES128-GCM-SHA256 - ECDHE-RSA-AES128-GCM-SHA256 - ECDHE-ECDSA-AES256-GCM-SHA384 - ECDHE-RSA-AES256-GCM-SHA384 - ECDHE-ECDSA-CHACHA20-POLY1305 - ECDHE-RSA-CHACHA20-POLY1305 - DHE-RSA-AES128-GCM-SHA256 - DHE-RSA-AES256-GCM-SHA384 - TLS_AES_128_GCM_SHA256 - TLS_AES_256_GCM_SHA384 - TLS_CHACHA20_POLY1305_SHA256 minTLSVersion: VersionTLS12 <|endoftext|> # k8s_docs_optional-secret.yaml apiVersion: v1 kind: Pod metadata: name: mypod spec: containers: - name: mypod image: redis volumeMounts: - name: foo mountPath: "/etc/foo" readOnly: true volumes: - name: foo secret: secretName: mysecret optional: true <|endoftext|> # istio_shimservice.yaml {{- if ((.Values.base.tags.default).revision) }} apiVersion: v1 kind: Service metadata: labels: install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" app: istiod istio: pilot release: {{ .Release.Name }} name: istiod namespace: istio-system spec: ports: - name: grpc-xds port: 15010 protocol: TCP - name: https-dns port: 15012 protocol: TCP - name: https-webhook port: 443 protocol: TCP targetPort: 15017 - name: http-monitoring port: 15014 protocol: TCP selector: app: istiod istio.io/rev: {{ .Values.base.istiodservice }} {{- end }} <|endoftext|> # k8s_examples_ceph-secret.yaml apiVersion: v1 kind: Secret metadata: name: ceph-secret stringData: key: QVFCMTZWMVZvRjVtRXhBQTVrQ1FzN2JCajhWVUxSdzI2Qzg0SEE9PQ== # the base64-encoded string of the already-base64-encoded key `ceph auth get-key` outputs <|endoftext|> # istio_43998.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 40027 releaseNotes: - | **Added** an analyzer for showing warning messages when the deprecated `lightstep` provider is still being used. <|endoftext|> # kustomize_wordpress-statefulset.resource.yaml # Copyright 2019 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 # apiVersion: apps/v1 kind: StatefulSet metadata: name: wordpress labels: app: wordpress spec: selector: matchLabels: app: wordpress tier: frontend template: metadata: labels: app: wordpress tier: frontend spec: containers: - name: wordpress image: buddy/wordpress:latest ports: - name: wordpress containerPort: 80 env: - name: WORDPRESS_DB_HOST value: wordpress-mysql - name: WORDPRESS_DB_PASSWORD valueFrom: secretKeyRef: name: mysql-pass key: password volumeMounts: - name: wordpress-persistent-storage mountPath: /var/www/html volumes: - name: wordpress-persistent-storage persistentVolumeClaim: claimName: wp-pv-claim serviceName: wordpress-identity <|endoftext|> # helm_charts_psp-clusterrolebinding.yaml {{- if .Values.rbac.pspEnabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "external-dns.fullname" . }}-psp labels: {{ include "external-dns.labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "external-dns.fullname" . }}-psp subjects: - kind: ServiceAccount name: {{ template "external-dns.fullname" . }} namespace: {{ .Release.Namespace }} {{- end }} <|endoftext|> # helm_charts_firefox-daemonset.yaml {{- if and (eq true .Values.firefox.enabled) (eq true .Values.firefox.runAsDaemonSet) -}} apiVersion: {{ template "deployment.apiVersion" . }} kind: DaemonSet metadata: name: {{ template "selenium.firefox.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: selector: matchLabels: app: {{ template "selenium.firefox.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.firefox.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.firefox.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.firefox.podAnnotations }} annotations: {{ toYaml .Values.firefox.podAnnotations | indent 8 }} {{- end}} spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.firefox.image }}:{{ .Values.firefox.tag }}" imagePullPolicy: {{ .Values.firefox.pullPolicy }} ports: {{- if .Values.hub.jmxPort }} - containerPort: {{ .Values.hub.jmxPort }} name: jmx protocol: TCP {{- end }} {{- if .Values.firefox.enableLivenessProbe }} livenessProbe: httpGet: path: /wd/hub/status port: {{ default "5555" .Values.firefox.nodePort }} initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 1 {{- end }} {{- if .Values.firefox.waitForRunningSessions }} lifecycle: preStop: exec: command: - /bin/bash - -c - "while [ $(wget -q -O - http://localhost:{{ default "5555" .Values.firefox.nodePort }}/wd/hub/sessions | grep -c capabilities) -gt 0 ]; do sleep 1; done" {{- end }} env: - name: HUB_PORT_4444_TCP_ADDR value: {{ template "selenium.hub.fullname" . }} - name: HUB_PORT_4444_TCP_PORT value: {{ .Values.hub.servicePort | quote }} - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.firefox.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.firefox.seOpts | quote }} {{- if .Values.firefox.firefoxVersion }} - name: FIREFOX_VERSION value: {{ .Values.firefox.firefoxVersion | quote }} {{- end }} {{- if .Values.firefox.nodeMaxInstances }} - name: NODE_MAX_INSTANCES value: {{ .Values.firefox.nodeMaxInstances | quote }} {{- end }} {{- if .Values.firefox.nodeMaxSession }} - name: NODE_MAX_SESSION value: {{ .Values.firefox.nodeMaxSession | quote }} {{- end }} {{- if .Values.firefox.nodeRegisterCycle }} - name: NODE_REGISTER_CYCLE value: {{ .Values.firefox.nodeRegisterCycle | quote }} {{- end }} {{- if .Values.firefox.nodePort }} - name: NODE_PORT value: {{ .Values.firefox.nodePort | quote }} {{- end }} {{- if .Values.firefox.screenWidth }} - name: SCREEN_WIDTH value: {{ .Values.firefox.screenWidth | quote }} {{- end }} {{- if .Values.firefox.screenHeight }} - name: SCREEN_HEIGHT value: {{ .Values.firefox.screenHeight | quote }} {{- end }} {{- if .Values.firefox.screenDepth }} - name: SCREEN_DEPTH value: {{ .Values.firefox.screenDepth | quote }} {{- end }} {{- if .Values.firefox.display }} - name: DISPLAY value: {{ .Values.firefox.display | quote }} {{- end }} {{- if .Values.firefox.timeZone }} - name: TZ value: {{ .Values.firefox.timeZone | quote }} {{- end }} {{- if .Values.firefox.extraEnvs }} {{ toYaml .Values.firefox.extraEnvs | indent 12 }} {{- end }} volumeMounts: {{ if .Values.firefox.volumeMounts -}} {{ toYaml .Values.firefox.volumeMounts | trim | indent 12 }} {{- end }} resources: {{ toYaml .Values.firefox.resources | indent 12 }} {{- if or .Values.global.imagePullSecrets .Values.firefox.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.firefox.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} volumes: {{ if .Values.firefox.volumes -}} {{ toYaml .Values.firefox.volumes | trim | indent 8 }} {{- end }} hostAliases: {{ toYaml .Values.global.hostAliases | indent 8 }} nodeSelector: {{- if .Values.firefox.nodeSelector }} {{ toYaml .Values.firefox.nodeSelector | trim | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | trim | indent 8 }} {{- end }} affinity: {{- if .Values.firefox.affinity }} {{ toYaml .Values.firefox.affinity | trim | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | trim | indent 8 }} {{- end }} tolerations: {{- if .Values.firefox.tolerations }} {{ toYaml .Values.firefox.tolerations | trim | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | trim | indent 8 }} {{- end }} {{- end -}} <|endoftext|> # helm_charts_metrics-server-crb.yaml {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: system:{{ template "metrics-server.fullname" . }} labels: app: {{ template "metrics-server.name" . }} chart: {{ template "metrics-server.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:{{ template "metrics-server.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "metrics-server.serviceAccountName" . }} namespace: {{ .Release.Namespace }} {{- end -}} <|endoftext|> # grafana_charts_servicemonitor-query-frontend.yaml {{- with .Values.serviceMonitor }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "loki.queryFrontendFullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "loki.queryFrontendLabels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 4 }} {{- end }} selector: matchLabels: {{- include "loki.queryFrontendSelectorLabels" $ | nindent 6 }} {{- with .matchExpressions }} matchExpressions: {{- toYaml . | nindent 6 }} {{- end }} endpoints: - port: http {{- with .interval }} interval: {{ . }} {{- end }} {{- with .scrapeTimeout }} scrapeTimeout: {{ . }} {{- end }} {{- with .relabelings }} relabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .metricRelabelings }} metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .scheme }} scheme: {{ . }} {{- end }} {{- with .tlsConfig }} tlsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .targetLabels }} targetLabels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_2309-gateway-api.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/kubernetes-sigs/gateway-api/issues/2309 releaseNotes: - | **Fixed** Istio's Gateway API implementation to adhere to the Gateway API requirement that a `group: ""` field must be set for a `parentRef` of `kind: Service`. Istio previously tolerated the missing group for Service-kind parent references. This is a breaking change; see the upgrade notes for details. <|endoftext|> # istio_bookinfo-ratings-v2-mysql-vm.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v2-mysql-vm labels: app: ratings version: v2-mysql-vm spec: replicas: 1 selector: matchLabels: app: ratings version: v2-mysql-vm template: metadata: labels: app: ratings version: v2-mysql-vm spec: containers: - name: ratings image: registry.istio.io/release/examples-bookinfo-ratings-v2:1.20.3 imagePullPolicy: IfNotPresent env: # This assumes you registered your mysql vm as # istioctl register -n vm mysqldb 1.2.3.4 3306 - name: DB_TYPE value: "mysql" - name: MYSQL_DB_HOST value: mysqldb.vm.svc.cluster.local - name: MYSQL_DB_PORT value: "3306" - name: MYSQL_DB_USER value: root - name: MYSQL_DB_PASSWORD value: password ports: - containerPort: 9080 --- <|endoftext|> # k8s_docs_storageclass-portworx-volume.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: portworx-io-priority-high provisioner: kubernetes.io/portworx-volume # This provisioner is deprecated parameters: repl: "1" snap_interval: "70" priority_io: "high" <|endoftext|> # istio_53351.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry # issue is a list of GitHub issues resolved in this note. issue: [] docs: [] releaseNotes: - | **Fixed** Added the metrics port in the kube-gateway containers spec of the istio-discovery chart. upgradeNotes: [] securityNotes: [] <|endoftext|> # argocd_source_argocd-known-hosts.yaml --- apiVersion: v1 kind: ConfigMap metadata: name: argocd-known-hosts data: known_hosts: |- <|endoftext|> # istio_gw-allow-labels.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 41057 - 43585 releaseNotes: - | **Added** support for labels to be added to the Gateway pod template via `.Values.labels`. <|endoftext|> # helm_charts_service-kong-admin.yaml {{- if .Values.admin.enabled -}} apiVersion: v1 kind: Service metadata: name: {{ template "kong.fullname" . }}-admin annotations: {{- range $key, $value := .Values.admin.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} labels: {{- include "kong.metaLabels" . | nindent 4 }} spec: type: {{ .Values.admin.type }} {{- if eq .Values.admin.type "LoadBalancer" }} {{- if .Values.admin.loadBalancerIP }} loadBalancerIP: {{ .Values.admin.loadBalancerIP }} {{- end }} {{- if .Values.admin.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- range $cidr := .Values.admin.loadBalancerSourceRanges }} - {{ $cidr }} {{- end }} {{- end }} {{- end }} ports: - name: kong-admin port: {{ .Values.admin.servicePort }} targetPort: {{ .Values.admin.containerPort }} {{- if (and (eq .Values.admin.type "NodePort") (not (empty .Values.admin.nodePort))) }} nodePort: {{ .Values.admin.nodePort }} {{- end }} protocol: TCP selector: {{- include "kong.selectorLabels" . | nindent 4 }} {{- end -}} <|endoftext|> # istio_helm_chart_istiodiscovery_defaultvalues.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 45855 releaseNotes: - | **Fixed** Null traversal issue when using datadog or stackdriver with no tracing options. <|endoftext|> # argocd_source_apiservice-v1-true.yaml apiVersion: apiregistration.k8s.io/v1 kind: APIService metadata: name: v1beta1.admission.cert-manager.io labels: app: webhook app.kubernetes.io/instance: external-dns spec: group: admission.cert-manager.io groupPriorityMinimum: 1000 versionPriority: 15 service: name: cert-manager-webhook namespace: external-dns version: v1beta1 status: conditions: - lastTransitionTime: "2019-07-09T14:48:15Z" message: all checks passed reason: Passed status: "True" type: Available <|endoftext|> # istio_networkpolicy.yaml {{- if (.Values.global.networkPolicy).enabled }} apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ include "ztunnel.release-name" . }}{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} namespace: {{ .Release.Namespace }} labels: app: ztunnel app.kubernetes.io/name: ztunnel istio.io/rev: {{ .Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Ztunnel" release: {{ .Release.Name }} {{- include "istio.labels" . | nindent 4 }} spec: podSelector: matchLabels: app: ztunnel policyTypes: - Ingress - Egress ingress: # Readiness probe - ports: - protocol: TCP port: 15021 # Monitoring/prometheus - ports: - protocol: TCP port: 15020 # Metrics # Admin interface - ports: - protocol: TCP port: 15000 # Admin interface # HBONE traffic - ports: - protocol: TCP port: 15008 # Outbound traffic endpoint - ports: - protocol: TCP port: 15001 # Traffic endpoint for inbound plaintext - ports: - protocol: TCP port: 15006 # DNS Captures - ports: - protocol: TCP port: 15053 - protocol: UDP port: 15053 egress: # Allow all egress - {} {{- end }} <|endoftext|> # argocd_source_target-deployment-new-entries.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: argocd.argoproj.io/tracking-id: 'guestbook:apps/Deployment:default/kustomize-guestbook-ui' iksm-version: '1.0' name: kustomize-guestbook-ui namespace: default spec: replicas: 1 revisionHistoryLimit: 3 selector: matchLabels: app: guestbook-ui template: metadata: labels: app: guestbook-ui spec: containers: - name: guestbook-ui image: 'quay.io/argoprojlabs/argocd-e2e-container:0.1' env: - name: SOME_ENV_VAR value: some_value - name: NEW_ENV_VAR value: new_value ports: - containerPort: 80 - grpcPort: 8081 resources: requests: cpu: 50m memory: 100Mi - name: new-container image: 'new-image:1.0' <|endoftext|> # istio_fix-peer-veth-lookup-on-openshift.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** veth lookup for ztunnel pod on OpenShift where default CNIs do not create routes for each veth interface. <|endoftext|> # k8s_docs_replicalimit-param-prod.yaml apiVersion: rules.example.com/v1 kind: ReplicaLimit metadata: name: "replica-limit-prod.example.com" maxReplicas: 100 <|endoftext|> # k8s_examples_pxc-cluster-service.yaml apiVersion: v1 kind: Service metadata: name: pxc-cluster labels: unit: pxc-cluster spec: ports: - port: 3306 name: mysql selector: unit: pxc-cluster <|endoftext|> # kustomize_job_worker.template.yaml --- apiVersion: apps/v1 kind: Deployment metadata: labels: name: {{ .Name }} env: {{ .Environment }} type: jobs name: {{ .Name }} spec: replicas: {{ .Replicas }} selector: matchLabels: type: jobs name: {{ .Name }} env: {{ .Environment }} template: metadata: labels: type: jobs name: {{ .Name }} env: {{ .Environment }} spec: automountServiceAccountToken: false containers: - name: app image: {{ .AppImage }} args: [ "job-worker", "--queues", "{{ .QueueList }}", "--workers", "{{ .ProcessPoolSize }}", ] readinessProbe: exec: command: - "bin/job-worker-readiness-probe" resources: {{ .Resources }} env: - name: KUBE_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: ENV value: {{ .Environment }} <|endoftext|> # istio_reader-serviceaccount.yaml {{- if and (or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace")) (dig "global" "enableReaderRBAC" true .Values) }} # This singleton service account aggregates reader permissions for the revisions in a given cluster # ATM this is a singleton per cluster with Istio installed, and is not revisioned. It maybe should be, # as otherwise compromising the token for this SA would give you access to *every* installed revision. # Should be used for multicluster remote secret creation. apiVersion: v1 kind: ServiceAccount {{- if .Values.global.imagePullSecrets }} imagePullSecrets: {{- range .Values.global.imagePullSecrets }} - name: {{ . }} {{- end }} {{- end }} metadata: name: istio-reader-service-account namespace: {{ .Values.global.istioNamespace }} labels: app: istio-reader release: {{ .Release.Name }} app.kubernetes.io/name: "istio-reader" {{- include "istio.labels" . | nindent 4 }} {{- end }} <|endoftext|> # argocd_source_progressing_updating.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: finalizers: - istio-finalizer.install.istio.io generation: 1 labels: argocd.argoproj.io/instance: istio-default name: istio-control-plane namespace: istio-system resourceVersion: "270068" selfLink: /apis/install.istio.io/v1alpha1/namespaces/istio-system/istiooperators/istio-control-plane uid: d4ff8619-f3b0-4fb3-8bdb-a44ff44a401a spec: {} status: componentStatus: AddonComponents: status: HEALTHY Base: status: HEALTHY IngressGateways: status: UPDATING Pilot: status: HEALTHY status: UPDATING <|endoftext|> # argocd_source_finalising.yaml apiVersion: flagger.app/v1beta1 kind: Canary metadata: generation: 1 labels: app.kubernetes.io/instance: podinfo name: podinfo namespace: default resourceVersion: "2268395" selfLink: /apis/flagger.app/v1beta1/namespaces/default/canaries/podinfo uid: 82df0136-0248-4a95-9c60-3184792614ea spec: {} status: canaryWeight: 0 conditions: - lastTransitionTime: "2020-07-03T18:53:02Z" lastUpdateTime: "2020-07-03T18:55:12Z" message: Canary analysis completed, routing all traffic to primary. reason: Finalising status: Unknown type: Promoted failedChecks: 0 iterations: 0 lastAppliedSpec: fc74df5fc lastPromotedSpec: 744b467645 lastTransitionTime: "2020-07-03T18:55:12Z" phase: Finalising trackedConfigs: {} <|endoftext|> # istio_41785.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 41170 releaseNotes: - | **Added** analyzer for telemetry resource. <|endoftext|> # istio_47703.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue where sometimes control plane revisions and proxy versions were not obtained in the bug report. <|endoftext|> # istio_virtualservice_conflictingmeshgatewayhosts.yaml apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: productpage namespace: foo spec: hosts: - productpage # should generate an error as this conflicts with VirtualService foo/bogus http: - route: - destination: host: productpage --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: bogus-productpage namespace: foo spec: hosts: - productpage # should generate an error as this conflicts with VirtualService foo/productpage http: - route: - destination: host: reviews --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews namespace: foo spec: hosts: - reviews # shouldn't generate an error as there's no conflicting VirtualService http: - route: - destination: host: reviews --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews namespace: bar spec: hosts: - reviews.foo.svc.cluster.local # shouldn't generate an error as the gateway is different even though host is the same gateways: - istio-ingressgateway http: - route: - destination: host: reviews --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: ratings namespace: foo spec: hosts: - ratings # should generate an error as this conflicts with VirtualService bar/ratings gateways: - mesh http: - route: - destination: host: ratings --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: ratings namespace: bar spec: hosts: - ratings.foo.svc.cluster.local # should generate an error as mesh gateway is specified and hosts conflict with VirtualService foo/ratings - google.com gateways: - istio-ingressgateway - mesh http: - route: - destination: host: ratings --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: ratings namespace: team1 spec: hosts: - ratings # shouldn't generate an error as this doesn't conflict with VirtualService ratings.team2 due to exportTo setting gateways: - mesh exportTo: - "." http: - route: - destination: host: ratings --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: ratings namespace: team2 spec: hosts: - ratings.team1.svc.cluster.local # shouldn't generate an error as this VirtualService doesn't conflict with VirtualService ratings.team1 due to exportTo setting - google.com # conflict with bar/ratings host `google.com` which export to all namespaces exportTo: - "." gateways: - istio-ingressgateway - mesh http: - route: - destination: host: ratings --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: ratings namespace: team3 spec: hosts: - ratings # should generate an error as this conflicts with VirtualService ratings.team4 gateways: - mesh exportTo: - "*" http: - route: - destination: host: ratings --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: ratings namespace: team4 spec: hosts: - ratings.team3.svc.cluster.local # should generate an error as this conflicts with VirtualService ratings.team3 gateways: - istio-ingressgateway - mesh http: - route: - destination: host: ratings <|endoftext|> # argocd_source_partition_suspended.yaml apiVersion: apps.kruise.io/v1alpha1 kind: CloneSet metadata: name: cloneset-test namespace: kruise generation: 2 labels: app: sample spec: replicas: 5 selector: matchLabels: app: sample template: metadata: labels: app: sample spec: containers: - name: nginx image: nginx:alpine updateStrategy: partition: 3 status: observedGeneration: 2 replicas: 5 expectedUpdatedReplicas: 2 updatedReadyReplicas: 1 updatedAvailableReplicas: 1 updatedReplicas: 3 <|endoftext|> # helm_charts_pods.yaml {{- /* Generated from 'pods' from https://raw.githubusercontent.com/coreos/kube-prometheus/release-0.1/manifests/grafana-dashboardDefinitions.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.10.0-0" $kubeTargetVersion) (semverCompare "<1.14.0-0" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} apiVersion: v1 kind: ConfigMap metadata: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "pods" | trunc 63 | trimSuffix "-" }} annotations: {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} labels: {{- if $.Values.grafana.sidecar.dashboards.label }} {{ $.Values.grafana.sidecar.dashboards.label }}: "1" {{- end }} app: {{ template "prometheus-operator.name" $ }}-grafana {{ include "prometheus-operator.labels" $ | indent 4 }} data: pods.json: |- { "__inputs": [ ], "__requires": [ ], "annotations": { "list": [ { "builtIn": 1, "datasource": "$datasource", "enable": true, "expr": "time() == BOOL timestamp(rate(kube_pod_container_status_restarts_total{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}[2m]) > 0)", "hide": false, "iconColor": "rgba(215, 44, 44, 1)", "name": "Restarts", "showIn": 0, "tags": [ "restart" ], "type": "rows" } ] }, "editable": false, "gnetId": null, "graphTooltip": 0, "hideControls": false, "id": null, "links": [ ], "refresh": "", "rows": [ { "collapse": false, "collapsed": false, "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "gridPos": { }, "id": 2, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum by(container_name) (container_memory_usage_bytes{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\", container_name=~\"$container\", container_name!=\"POD\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "Current: {{`{{`}} container_name {{`}}`}}", "refId": "A" }, { "expr": "sum by(container) (kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\", pod=\"$pod\", container=~\"$container\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "Requested: {{`{{`}} container {{`}}`}}", "refId": "B" }, { "expr": "sum by(container) (kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"memory\", pod=\"$pod\", container=~\"$container\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "Limit: {{`{{`}} container {{`}}`}}", "refId": "C" }, { "expr": "sum by(container_name) (container_memory_cache{job=\"kubelet\", namespace=\"$namespace\", pod_name=~\"$pod\", container_name=~\"$container\", container_name!=\"POD\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "Cache: {{`{{`}} container_name {{`}}`}}", "refId": "D" } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Memory Usage", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "bytes", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "bytes", "label": null, "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6", "type": "row" }, { "collapse": false, "collapsed": false, "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "gridPos": { }, "id": 3, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum by (container_name) (rate(container_cpu_usage_seconds_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", image!=\"\", pod_name=\"$pod\", container_name=~\"$container\", container_name!=\"POD\"}[1m]))", "format": "time_series", "intervalFactor": 2, "legendFormat": "Current: {{`{{`}} container_name {{`}}`}}", "refId": "A" }, { "expr": "sum by(container) (kube_pod_container_resource_requests{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\", pod=\"$pod\", container=~\"$container\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "Requested: {{`{{`}} container {{`}}`}}", "refId": "B" }, { "expr": "sum by(container) (kube_pod_container_resource_limits{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", resource=\"cpu\", pod=\"$pod\", container=~\"$container\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "Limit: {{`{{`}} container {{`}}`}}", "refId": "C" } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "CPU Usage", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6", "type": "row" }, { "collapse": false, "collapsed": false, "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "gridPos": { }, "id": 4, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "targets": [ { "expr": "sort_desc(sum by (pod_name) (rate(container_network_receive_bytes_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\"}[1m])))", "format": "time_series", "intervalFactor": 2, "legendFormat": "RX: {{`{{`}} pod_name {{`}}`}}", "refId": "A" }, { "expr": "sort_desc(sum by (pod_name) (rate(container_network_transmit_bytes_total{job=\"kubelet\", cluster=\"$cluster\", namespace=\"$namespace\", pod_name=\"$pod\"}[1m])))", "format": "time_series", "intervalFactor": 2, "legendFormat": "TX: {{`{{`}} pod_name {{`}}`}}", "refId": "B" } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Network I/O", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "bytes", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "bytes", "label": null, "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6", "type": "row" }, { "collapse": false, "collapsed": false, "panels": [ { "aliasColors": { }, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "fill": 1, "gridPos": { }, "id": 5, "legend": { "alignAsTable": true, "avg": true, "current": true, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [ ], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "seriesOverrides": [ ], "spaceLength": 10, "span": 12, "stack": false, "steppedLine": false, "targets": [ { "expr": "max by (container) (kube_pod_container_status_restarts_total{job=\"kube-state-metrics\", cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\", container=~\"$container\"})", "format": "time_series", "intervalFactor": 2, "legendFormat": "Restarts: {{`{{`}} container {{`}}`}}", "refId": "A" } ], "thresholds": [ ], "timeFrom": null, "timeShift": null, "title": "Total Restarts Per Container", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ ] }, "yaxes": [ { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Dashboard Row", "titleSize": "h6", "type": "row" } ], "schemaVersion": 14, "style": "dark", "tags": [ "kubernetes-mixin" ], "templating": { "list": [ { "current": { "text": "Prometheus", "value": "Prometheus" }, "hide": 0, "label": null, "name": "datasource", "options": [ ], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": null, "current": { }, "datasource": "$datasource", "hide": 2, "includeAll": false, "label": "cluster", "multi": false, "name": "cluster", "options": [ ], "query": "label_values(kube_pod_info, cluster)", "refresh": 2, "regex": "", "sort": 0, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { }, "datasource": "$datasource", "hide": 0, "includeAll": false, "label": "Namespace", "multi": false, "name": "namespace", "options": [ ], "query": "label_values(kube_pod_info{cluster=\"$cluster\"}, namespace)", "refresh": 2, "regex": "", "sort": 0, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { }, "datasource": "$datasource", "hide": 0, "includeAll": false, "label": "Pod", "multi": false, "name": "pod", "options": [ ], "query": "label_values(kube_pod_info{cluster=\"$cluster\", namespace=~\"$namespace\"}, pod)", "refresh": 2, "regex": "", "sort": 0, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { }, "datasource": "$datasource", "hide": 0, "includeAll": true, "label": "Container", "multi": false, "name": "container", "options": [ ], "query": "label_values(kube_pod_container_info{cluster=\"$cluster\", namespace=\"$namespace\", pod=\"$pod\"}, container)", "refresh": 2, "regex": "", "sort": 0, "tagValuesQuery": "", "tags": [ ], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "Kubernetes / Pods", "uid": "ab4f13a9892a76a4d21ce8c2445bf4ea", "version": 0 } {{- end }} <|endoftext|> # grafana_charts_pod-logs.yaml {{- with (.Values.metaMonitoring).grafanaAgent }} {{- if .enabled }} apiVersion: monitoring.grafana.com/v1alpha1 kind: PodLogs metadata: name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "meta-monitoring") }} namespace: {{ .namespace | default $.Release.Namespace | quote }} labels: {{- include "tempo.labels" (dict "ctx" $ "component" "meta-monitoring") | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: pipelineStages: - cri: { } relabelings: - action: replace # For consistency with metrics replacement: $1 separator: / sourceLabels: - __meta_kubernetes_namespace - __meta_kubernetes_pod_container_name targetLabel: job - action: replace # Necessary for slow queries dashboard sourceLabels: - __meta_kubernetes_pod_container_name targetLabel: name - targetLabel: cluster replacement: {{ include "tempo.clusterName" $ }} namespaceSelector: matchNames: - {{ $.Release.Namespace | quote }} selector: matchLabels: # Scrape logs from all components {{- include "tempo.selectorLabels" (dict "ctx" $) | nindent 6 }} {{- end -}} {{- end -}} <|endoftext|> # kube_prometheus_kubeStateMetrics-clusterRole.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 2.18.0 name: kube-state-metrics rules: - apiGroups: - "" resources: - configmaps - secrets - nodes - pods - services - serviceaccounts - resourcequotas - replicationcontrollers - limitranges - persistentvolumeclaims - persistentvolumes - namespaces - endpoints verbs: - list - watch - apiGroups: - apps resources: - statefulsets - daemonsets - deployments - replicasets verbs: - list - watch - apiGroups: - batch resources: - cronjobs - jobs verbs: - list - watch - apiGroups: - autoscaling resources: - horizontalpodautoscalers verbs: - list - watch - apiGroups: - authentication.k8s.io resources: - tokenreviews verbs: - create - apiGroups: - authorization.k8s.io resources: - subjectaccessreviews verbs: - create - apiGroups: - policy resources: - poddisruptionbudgets verbs: - list - watch - apiGroups: - certificates.k8s.io resources: - certificatesigningrequests verbs: - list - watch - apiGroups: - discovery.k8s.io resources: - endpointslices verbs: - list - watch - apiGroups: - storage.k8s.io resources: - storageclasses - volumeattachments verbs: - list - watch - apiGroups: - admissionregistration.k8s.io resources: - mutatingwebhookconfigurations - validatingwebhookconfigurations verbs: - list - watch - apiGroups: - networking.k8s.io resources: - networkpolicies - ingressclasses - ingresses verbs: - list - watch - apiGroups: - coordination.k8s.io resources: - leases verbs: - list - watch - apiGroups: - rbac.authorization.k8s.io resources: - clusterrolebindings - clusterroles - rolebindings - roles verbs: - list - watch <|endoftext|> # istio_cni-promote.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - https://github.com/istio/enhancements/issues/86 releaseNotes: - | **Promoted** CNI to beta. <|endoftext|> # helm_charts_values.yaml # Default values for the katafygio chart. # This is a YAML-formatted file. # Declare variables to be passed into your templates. # gitUrl (optional) is a remote git repository that Katafygio can clone, and where # it can push changes. If gitUrl is not defined, Katafygio will still maintain a # pod-local git repository, which can be on a persistent volume (see above). # gitUrl: https://user:token@github.com/myorg/myrepos.git # noGit disable git versioning when true (will only keep an unversioned local dump up-to-date). noGit: false # healthcheckPort is the TCP port Katafygio will listen for health check requests. healthcheckPort: 8080 # logLevel can be info, warning, error, or fatal. logLevel: warning # logOutput can be stdout, stderr, or syslog. logOutput: stdout # logServer (optional) provide the address of a remote syslog server. # logServer: "localhost:514" # filter is an (optional) label selector used to restrict backups to selected objects. # filter: "app in (foo, bar)" # excludeKind is an array of excluded (not backuped) Kubernetes objects kinds. excludeKind: - replicaset - endpoints - event # excludeObject is an array of specific Kubernetes objects to exclude from dumps # (the format is: objectkind:namespace/objectname). # excludeObject: # - "configmap:kube-system/leader-elector" # resyncInterval is the interval (in seconds) between full catch-up resyncs # (to catch possibly missed events). Set to 0 to disable resyncs. resyncInterval: 300 # localDir is the path where we'll dump and commit cluster objects. localDir: "/var/lib/katafygio/data" # persistence for the localDir dump directory. Note that configuring gitUrl # is an other way to achieve persistence. persistence: enabled: true ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning ## If undefined (the default) or set to null, no storageClassName spec is ## set, choosing the default provisioner. (gp2 on AWS, standard on ## GKE, AWS & OpenStack) ## storageClass: "" accessMode: ReadWriteOnce size: 1Gi # existingClaim: "" # rbac allow to enable or disable RBAC role and binding. Katafygio needs # read-only access to all Kubernetes API groups and resources. rbac: # Specifies whether RBAC resources should be created create: true # serviceAccount is used to provide a dedicated serviceAccount when using RBAC # (or to fallback to the namespace's "default" SA if name is left empty). serviceAccount: # Specifies whether a ServiceAccount should be created create: true # The name of the ServiceAccount to use. # If not set and create is true, a name is generated using the fullname template name: image: repository: bpineau/katafygio tag: v0.8.1 pullPolicy: IfNotPresent # resources define the deployment's cpu and memory resources. # Katafygio only needs about 50Mi of memory as a baseline, and more depending # on the cluster's content. For instance, on a 45 nodes cluster with about 2k # pods and 1k services, Katafygio use about 250Mi. resources: {} # limits: # cpu: 100m # memory: 128Mi # requests: # cpu: 100m # memory: 128Mi replicaCount: 1 nodeSelector: {} tolerations: [] affinity: {} <|endoftext|> # istio_traffic-distribution.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for the `Service.spec.trafficDistribution` field and `networking.istio.io/traffic-distribution` annotation, allowing a simpler mechanism to make traffic prefer geographically close endpoints. Note: this feature previously existed only for ztunnel, but is now supported across all data planes. <|endoftext|> # istio_kubevirtInterfaces_list.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: annotations: traffic.sidecar.istio.io/kubevirtInterfaces: "net1,net2" labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_51987.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 51987 releaseNotes: - | **Removed** some fields from the helm values API that had been without effect and in some cases long-deprecated. Removed fields are: pilot.configNamespace, pilot.configSource, pilot.enableProtocolSniffingForOutbound, pilot.enableProtocolSniffingForInbound, pilot.useMCP, global.autoscalingV2API, global.configRootNamespace, global.defaultConfigVisibilitySettings, global.useMCP, sidecarInjectorWebhook.objectSelector and sidecarInjectorWebhook.useLegacySelectors. <|endoftext|> # k8s_docs_cpu-request-limit-2.yaml apiVersion: v1 kind: Pod metadata: name: cpu-demo-2 namespace: cpu-example spec: containers: - name: cpu-demo-ctr-2 image: vish/stress resources: limits: cpu: "100" requests: cpu: "100" args: - -cpus - "2" <|endoftext|> # helm_charts_orangehrm-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "orangehrm.fullname" . }}-orangehrm labels: app: {{ template "orangehrm.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: accessModes: - {{ .Values.persistence.orangehrm.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.orangehrm.size | quote }} {{ include "orangehrm.storageClass" . }} {{- end -}} <|endoftext|> # k8s_docs_dapi-volume.yaml apiVersion: v1 kind: Pod metadata: name: kubernetes-downwardapi-volume-example labels: zone: us-est-coast cluster: test-cluster1 rack: rack-22 annotations: build: two builder: john-doe spec: containers: - name: client-container image: registry.k8s.io/busybox command: ["sh", "-c"] args: - while true; do if [[ -e /etc/podinfo/labels ]]; then echo -en '\n\n'; cat /etc/podinfo/labels; fi; if [[ -e /etc/podinfo/annotations ]]; then echo -en '\n\n'; cat /etc/podinfo/annotations; fi; sleep 5; done; volumeMounts: - name: podinfo mountPath: /etc/podinfo volumes: - name: podinfo downwardAPI: items: - path: "labels" fieldRef: fieldPath: metadata.labels - path: "annotations" fieldRef: fieldPath: metadata.annotations <|endoftext|> # kube_prometheus_nodeExporter-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: node-exporter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 1.10.2 name: node-exporter namespace: monitoring spec: clusterIP: None ports: - name: https port: 9100 targetPort: https selector: app.kubernetes.io/component: exporter app.kubernetes.io/name: node-exporter app.kubernetes.io/part-of: kube-prometheus <|endoftext|> # k8s_examples_simple-storageclass.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: thin-disk provisioner: kubernetes.io/vsphere-volume parameters: diskformat: thin <|endoftext|> # argocd_source_weird-list.yaml apiVersion: v1 kind: NotAList items: spec: foo: bar --- apiVersion: v1 kind: ServiceAccount metadata: name: prometheus-operator-operator <|endoftext|> # istio_27084.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 26692 releaseNotes: - | **Added** support for `INSERT_FIRST`, `INSERT_BEFORE`, `INSERT_AFTER` insert operations for `HTTP_ROUTE` in EnvoyFilter <|endoftext|> # istio_destinationrule-subsets-not-select-pods.yaml apiVersion: networking.istio.io/v1 kind: DestinationRule metadata: name: subsets-not-select-pods namespace: default spec: host: httpbin.default.svc.cluster.local trafficPolicy: loadBalancer: simple: LEAST_REQUEST subsets: - name: fake labels: version: v3 --- apiVersion: v1 kind: Service metadata: name: httpbin namespace: default spec: ports: - name: http port: 8000 selector: app: httpbin <|endoftext|> # k8s_docs_memory-constraints.yaml apiVersion: v1 kind: LimitRange metadata: name: mem-min-max-demo-lr spec: limits: - max: memory: 1Gi min: memory: 500Mi type: Container <|endoftext|> # istio_40797.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 40796 releaseNotes: - | **Fixed** an issue where user can not delete iop resource with revision if istiod is not running. <|endoftext|> # k8s_examples_portworx-volume-pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: pv0001 spec: capacity: storage: 2Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain portworxVolume: volumeID: "pv0001" <|endoftext|> # istio_46531.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 46510 releaseNotes: - | **Fixed** an issue where the creation of a Telemetry object without any providers throws the IST0157 error. <|endoftext|> # istio_25737.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 25737 releaseNotes: - | **Removed** `istioctl manifest apply`. The simpler `install` command replaces manifest apply. <|endoftext|> # argocd_source_pull-request-example-fasttemplate.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: myapp spec: generators: - pullRequest: github: # The GitHub organization or user. owner: myorg # The Github repository repo: myrepo # For GitHub Enterprise. (optional) api: https://git.example.com/ # Reference to a Secret containing an access token. (optional) tokenRef: secretName: github-token key: token # Labels is used to filter the PRs that you want to target. (optional) labels: - preview template: metadata: name: 'myapp-{{ branch }}-{{ number }}' spec: source: repoURL: 'https://github.com/myorg/myrepo.git' targetRevision: '{{ head_sha }}' path: helm-guestbook helm: parameters: - name: "image.tag" value: "pull-{{ head_sha }}" project: default destination: server: https://kubernetes.default.svc namespace: "{{ branch }}-{{ number }}" syncPolicy: syncOptions: - CreateNamespace=true <|endoftext|> # k8s_docs_external-lb.yaml apiVersion: networking.k8s.io/v1 kind: IngressClass metadata: name: external-lb spec: controller: example.com/ingress-controller parameters: apiGroup: k8s.example.com kind: IngressParameters name: external-lb <|endoftext|> # helm_charts_secret-fernet-key.yaml apiVersion: v1 kind: Secret metadata: name: airflow-cluster1-fernet-key namespace: airflow-cluster1 stringData: value: "7T512UXSSmBOkpWimFHIVb8jK6lfmSAvx4mO6Arehnc=" <|endoftext|> # helm_charts_schedule.yaml {{- range $scheduleName, $schedule := .Values.schedules }} apiVersion: velero.io/v1 kind: Schedule metadata: name: {{ include "velero.fullname" $ }}-{{ $scheduleName }} labels: app.kubernetes.io/name: {{ include "velero.name" $ }} app.kubernetes.io/instance: {{ $.Release.Name }} app.kubernetes.io/managed-by: {{ $.Release.Service }} helm.sh/chart: {{ include "velero.chart" $ }} spec: schedule: {{ $schedule.schedule | quote }} {{- with $schedule.template }} template: {{- toYaml . | nindent 4 }} {{- end }} --- {{- end }} <|endoftext|> # istio_43535.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 39111 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** provision to provide overridden/explicit value for `failoverPriority` label. This provided value is used while assigning priority for endpoints instead of the client's value. <|endoftext|> # helm_charts_service-eg-proxy.yaml apiVersion: v1 kind: Service metadata: name: {{ template "eg.fullname" . }}-proxy annotations: {{- range $key, $value := .Values.proxy.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} labels: app: {{ template "eg.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: type: {{ .Values.proxy.type }} {{- if and (eq .Values.proxy.type "LoadBalancer") .Values.proxy.loadBalancerIP }} loadBalancerIP: {{ .Values.proxy.loadBalancerIP }} {{- end }} ports: - name: eg-proxy port: {{ .Values.proxy.servicePort }} targetPort: {{ .Values.proxy.containerPort }} {{- if (and (eq .Values.proxy.type "NodePort") (not (empty .Values.proxy.nodePort))) }} nodePort: {{ .Values.proxy.nodePort }} {{- end }} protocol: TCP selector: app: {{ template "eg.name" . }} release: {{ .Release.Name }} <|endoftext|> # k8s_docs_qos-pod-5.yaml apiVersion: v1 kind: Pod metadata: name: qos-demo-5 namespace: qos-example spec: containers: - name: qos-demo-ctr-5 image: nginx resources: limits: memory: "200Mi" cpu: "700m" requests: memory: "200Mi" cpu: "700m" <|endoftext|> # k8s_docs_cpu-constraints-pod-2.yaml apiVersion: v1 kind: Pod metadata: name: constraints-cpu-demo-2 spec: containers: - name: constraints-cpu-demo-2-ctr image: nginx resources: limits: cpu: "1.5" requests: cpu: "500m" <|endoftext|> # istio_55258.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 55243 releaseNotes: - | **Fixed** `istioctl experimental describe` ignores `--namespace` flag. <|endoftext|> # helm_charts_hdfs-nn-svc.yaml # A headless service to create DNS records apiVersion: v1 kind: Service metadata: name: {{ include "hadoop.fullname" . }}-hdfs-nn labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: hdfs-nn spec: ports: - name: dfs port: 9000 protocol: TCP - name: webhdfs port: 50070 clusterIP: None selector: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: hdfs-nn <|endoftext|> # istio_38429.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: [] releaseNotes: - | **Added** pod name and cluster name to bookinfo's reviews. Cluster is defined by `CLUSTER_NAME` environment variable on the reviews deployments. <|endoftext|> # istio_peer-authn-permissive-root-permissive-namespace-strict-workload-ports-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-mesh namespace: istio-system spec: mtls: mode: PERMISSIVE --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-foo namespace: foo spec: mtls: mode: PERMISSIVE --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: workload namespace: foo spec: selector: matchLabels: app: a portLevelMtls: 9090: mode: STRICT 8080: mode: STRICT <|endoftext|> # istio_40727.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 39599 releaseNotes: - | **Fixed** an issue where `AddRunningKubeSourceWithRevision` returns an error causing the Istio Operator to go into an error loop. <|endoftext|> # argocd_source_argocd-notifications-controller-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/component: notifications-controller app.kubernetes.io/name: argocd-notifications-controller app.kubernetes.io/part-of: argocd name: argocd-notifications-controller spec: strategy: type: Recreate selector: matchLabels: app.kubernetes.io/name: argocd-notifications-controller template: metadata: labels: app.kubernetes.io/name: argocd-notifications-controller spec: volumes: - name: tls-certs configMap: name: argocd-tls-certs-cm - name: argocd-repo-server-tls secret: secretName: argocd-repo-server-tls optional: true items: - key: tls.crt path: tls.crt - key: tls.key path: tls.key - key: ca.crt path: ca.crt containers: - args: - /usr/local/bin/argocd-notifications env: - name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGFORMAT valueFrom: configMapKeyRef: key: notificationscontroller.log.format name: argocd-cmd-params-cm optional: true - name: ARGOCD_NOTIFICATIONS_CONTROLLER_LOGLEVEL valueFrom: configMapKeyRef: key: notificationscontroller.log.level name: argocd-cmd-params-cm optional: true - name: ARGOCD_NOTIFICATION_CONTROLLER_PROCESSORS_COUNT valueFrom: configMapKeyRef: key: notificationscontroller.processors.count name: argocd-cmd-params-cm optional: true - name: ARGOCD_LOG_FORMAT_TIMESTAMP valueFrom: configMapKeyRef: name: argocd-cmd-params-cm key: log.format.timestamp optional: true - name: ARGOCD_APPLICATION_NAMESPACES valueFrom: configMapKeyRef: key: application.namespaces name: argocd-cmd-params-cm optional: true - name: ARGOCD_NOTIFICATION_CONTROLLER_SELF_SERVICE_NOTIFICATION_ENABLED valueFrom: configMapKeyRef: key: notificationscontroller.selfservice.enabled name: argocd-cmd-params-cm optional: true - name: ARGOCD_NOTIFICATION_CONTROLLER_REPO_SERVER_PLAINTEXT valueFrom: configMapKeyRef: key: notificationscontroller.repo.server.plaintext name: argocd-cmd-params-cm optional: true workingDir: /app livenessProbe: tcpSocket: port: 9001 image: quay.io/argoproj/argocd:latest imagePullPolicy: Always name: argocd-notifications-controller volumeMounts: - name: tls-certs mountPath: /app/config/tls - name: argocd-repo-server-tls mountPath: /app/config/reposerver/tls securityContext: capabilities: drop: - ALL allowPrivilegeEscalation: false readOnlyRootFilesystem: true serviceAccountName: argocd-notifications-controller securityContext: runAsNonRoot: true seccompProfile: type: RuntimeDefault nodeSelector: kubernetes.io/os: linux <|endoftext|> # argocd_source_argocd-redis-role.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: labels: app.kubernetes.io/component: redis app.kubernetes.io/name: argocd-redis app.kubernetes.io/part-of: argocd name: argocd-redis rules: - apiGroups: - "" resources: - secrets resourceNames: - argocd-redis verbs: - get - apiGroups: - "" resources: - secrets verbs: - create <|endoftext|> # argocd_source_job-failed-ignore-healthcheck.yaml apiVersion: batch/v1 kind: Job metadata: annotations: argocd.argoproj.io/ignore-healthcheck: "true" labels: job-name: fail name: fail namespace: argoci-workflows selfLink: /apis/batch/v1/namespaces/argoci-workflows/jobs/fail spec: backoffLimit: 0 completions: 1 parallelism: 1 template: metadata: creationTimestamp: null labels: job-name: fail spec: containers: - command: - sh - -c - exit 1 image: alpine:latest imagePullPolicy: Always name: fail resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Never schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 <|endoftext|> # grafana_charts_grafana-agent-cluster-role.yaml {{- with (.Values.metaMonitoring).grafanaAgent }} {{- if .enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ include "tempo.resourceName" (dict "ctx" $ "component" "grafana-agent") }} namespace: {{ .namespace | default $.Release.Namespace | quote }} labels: {{- include "tempo.labels" (dict "ctx" $ "component" "meta-monitoring" ) | nindent 4 }} rules: - apiGroups: - "" resources: - nodes - nodes/proxy - nodes/metrics - services - endpoints - pods - events verbs: - get - list - watch - apiGroups: - networking.k8s.io resources: - ingresses verbs: - get - list - watch - nonResourceURLs: - /metrics - /metrics/cadvisor verbs: - get {{- end }} {{- end }} <|endoftext|> # istio_kiali-update-v1.76.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** Kiali addon to version v1.76.0. <|endoftext|> # istio_dns-round-robin.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: [31064] releaseNotes: - | **Fixed** an issue with DNS proxying causing StatefulSets addresses to not be load balanced. <|endoftext|> # helm_charts_prometheus-service-monitor.yaml {{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ template "mongodb.fullname" . }} {{- if .Values.metrics.serviceMonitor.namespace }} namespace: {{ .Values.metrics.serviceMonitor.namespace }} {{- end }} labels: app: {{ template "mongodb.name" . }} chart: {{ template "mongodb.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.metrics.serviceMonitor.additionalLabels }} {{ toYaml .Values.metrics.serviceMonitor.additionalLabels | indent 4 }} {{- end }} spec: endpoints: - interval: 30s port: metrics {{- if .Values.metrics.serviceMonitor.relabellings }} metricRelabelings: {{ toYaml .Values.metrics.serviceMonitor.relabellings | indent 4 }} {{- end }} jobLabel: {{ template "mongodb.fullname" . }} namespaceSelector: matchNames: - "{{ $.Release.Namespace }}" selector: matchLabels: app: {{ template "mongodb.name" . }} chart: {{ template "mongodb.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- end }} <|endoftext|> # helm_charts_default-backend-deployment.yaml {{- if .Values.defaultBackend.enabled }} apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} {{ .Values.defaultBackend.componentLabelKeyOverride | default "app.kubernetes.io/component" }}: default-backend {{- if .Values.defaultBackend.deploymentLabels }} {{ toYaml .Values.defaultBackend.deploymentLabels | indent 4 }} {{- end }} name: {{ template "nginx-ingress.defaultBackend.fullname" . }} spec: selector: matchLabels: app: {{ template "nginx-ingress.name" . }} release: {{ template "nginx-ingress.releaseLabel" . }} {{- if .Values.defaultBackend.useComponentLabel }} {{ .Values.defaultBackend.componentLabelKeyOverride | default "app.kubernetes.io/component" }}: default-backend {{- end }} {{- if not .Values.defaultBackend.autoscaling.enabled }} replicas: {{ .Values.defaultBackend.replicaCount }} {{- end }} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} template: metadata: {{- if .Values.defaultBackend.podAnnotations }} annotations: {{- range $key, $value := .Values.defaultBackend.podAnnotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} labels: app: {{ template "nginx-ingress.name" . }} release: {{ template "nginx-ingress.releaseLabel" . }} {{ .Values.defaultBackend.componentLabelKeyOverride | default "app.kubernetes.io/component" }}: default-backend {{- if .Values.defaultBackend.podLabels }} {{ toYaml .Values.defaultBackend.podLabels | indent 8 }} {{- end }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.imagePullSecrets | indent 8 }} {{- end }} {{- if .Values.defaultBackend.priorityClassName }} priorityClassName: "{{ .Values.defaultBackend.priorityClassName }}" {{- end }} {{- if .Values.defaultBackend.podSecurityContext }} securityContext: {{ toYaml .Values.defaultBackend.podSecurityContext | indent 8 }} {{- end }} containers: - name: {{ template "nginx-ingress.name" . }}-{{ .Values.defaultBackend.name }} {{- with .Values.defaultBackend.image }} image: "{{.repository}}{{- if (.digest) -}} @{{.digest}} {{- else -}} :{{ .tag }} {{- end -}}" {{- end }} imagePullPolicy: "{{ .Values.defaultBackend.image.pullPolicy }}" args: {{- range $key, $value := .Values.defaultBackend.extraArgs }} {{- if $value }} - --{{ $key }}={{ $value }} {{- else }} - --{{ $key }} {{- end }} {{- end }} securityContext: runAsUser: {{ .Values.defaultBackend.image.runAsUser }} {{- if .Values.defaultBackend.extraEnvs }} env: {{ toYaml .Values.defaultBackend.extraEnvs | indent 12 }} {{- end }} livenessProbe: httpGet: path: /healthz port: {{ .Values.defaultBackend.port }} scheme: HTTP initialDelaySeconds: {{ .Values.defaultBackend.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.defaultBackend.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.defaultBackend.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.defaultBackend.livenessProbe.successThreshold }} failureThreshold: {{ .Values.defaultBackend.livenessProbe.failureThreshold }} readinessProbe: httpGet: path: /healthz port: {{ .Values.defaultBackend.port }} scheme: HTTP initialDelaySeconds: {{ .Values.defaultBackend.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.defaultBackend.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.defaultBackend.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.defaultBackend.readinessProbe.successThreshold }} failureThreshold: {{ .Values.defaultBackend.readinessProbe.failureThreshold }} ports: - name: http containerPort: {{ .Values.defaultBackend.port }} protocol: TCP resources: {{ toYaml .Values.defaultBackend.resources | indent 12 }} {{- if .Values.defaultBackend.nodeSelector }} nodeSelector: {{ toYaml .Values.defaultBackend.nodeSelector | indent 8 }} {{- end }} serviceAccountName: {{ template "nginx-ingress.defaultBackend.serviceAccountName" . }} {{- if .Values.defaultBackend.tolerations }} tolerations: {{ toYaml .Values.defaultBackend.tolerations | indent 8 }} {{- end }} {{- if .Values.defaultBackend.affinity }} affinity: {{ toYaml .Values.defaultBackend.affinity | indent 8 }} {{- end }} terminationGracePeriodSeconds: 60 {{- end }} <|endoftext|> # argocd_source_pvc-pending.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"working-pvc"},"name":"testpvc-2","namespace":"argocd"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"2Gi"}},"storageClassName":"slow"}} volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/aws-ebs creationTimestamp: 2018-08-27T23:00:54Z finalizers: - kubernetes.io/pvc-protection labels: app.kubernetes.io/instance: working-pvc name: testpvc-2 namespace: argocd resourceVersion: "323141" selfLink: /api/v1/namespaces/argocd/persistentvolumeclaims/testpvc-2 uid: 0cedfc44-aa4d-11e8-a271-025000000001 spec: accessModes: - ReadWriteOnce resources: requests: storage: 2Gi storageClassName: slow status: phase: Pending <|endoftext|> # istio_54667.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** 'istioctl --as' implicitly sets `--as-group=""` when `--as` is used without `--as-group`. <|endoftext|> # istio_yaml_layer1.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: base: enabled: false pilot: enabled: false ingressGateways: - namespace: istio-system name: istio-ingressgateway enabled: true label: api: default k8s: service: externalTrafficPolicy: Local serviceAnnotations: manifest-generate: "testserviceAnnotation" <|endoftext|> # flux_source_verify_basic.yaml ✚ generating HelmChart source --- apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmChart metadata: name: podinfo namespace: {{ .fluxns }} spec: chart: podinfo interval: 0s reconcileStrategy: ChartVersion sourceRef: kind: HelmRepository name: podinfo verify: provider: cosign <|endoftext|> # k8s_examples_exclusive-2.yaml apiVersion: v1 kind: Pod metadata: name: exclusive-2 spec: containers: - image: quay.io/connordoyle/cpuset-visualizer name: exclusive-2 resources: requests: cpu: 2 memory: "256M" limits: cpu: 2 memory: "256M" <|endoftext|> # k8s_examples_iscsi-chap.yaml --- apiVersion: v1 kind: Pod metadata: name: iscsipd spec: containers: - name: iscsipd-ro image: kubernetes/pause volumeMounts: - mountPath: "/mnt/iscsipd" name: iscsivol volumes: - name: iscsivol iscsi: targetPortal: 127.0.0.1 iqn: iqn.2015-02.example.com:test lun: 0 fsType: ext4 readOnly: true chapAuthDiscovery: true chapAuthSession: true secretRef: name: chap-secret <|endoftext|> # k8s_docs_redis-service.yaml apiVersion: v1 kind: Service metadata: name: redis spec: ports: - port: 6379 targetPort: 6379 selector: app: redis <|endoftext|> # k8s_docs_pod-level-resize.yaml apiVersion: v1 kind: Pod metadata: name: pod-level-resize-demo spec: containers: - name: pause image: registry.k8s.io/pause:3.9 resizePolicy: - resourceName: cpu restartPolicy: NotRequired # Default, but explicit here - resourceName: memory restartPolicy: RestartContainer resources: requests: cpu: 100m memory: 100Mi - name: nginx-server image: registry.k8s.io/nginx:latest resizePolicy: - resourceName: cpu restartPolicy: RestartContainer - resourceName: memory restartPolicy: RestartContainer resources: # Pod-level resources requests: cpu: 200m memory: 200Mi limits: cpu: 200m memory: 200Mi <|endoftext|> # helm_charts_authorize-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "pomerium.authorize.fullname" . }} labels: app.kubernetes.io/name: {{ template "pomerium.authorize.name" . }} helm.sh/chart: {{ template "pomerium.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: authorize {{- if .Values.service.labels }} {{ toYaml .Values.service.labels | indent 4 }} {{- end }} {{- if or .Values.authorize.service.annotations .Values.service.annotations }} annotations: {{- if .Values.authorize.service.annotations }} {{- range $key, $value := .Values.authorize.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- else if .Values.service.annotations }} {{- range $key, $value := .Values.service.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} {{- end }} spec: {{- if .Values.service.authorize.headless }} clusterIP: None type: ClusterIP {{- else }}} type: {{ .Values.service.type }} {{- end }} ports: - port: {{ .Values.service.externalPort }} targetPort: https protocol: TCP name: https - name: metrics port: {{ .Values.metrics.port }} protocol: TCP targetPort: metrics {{- if hasKey .Values.service "nodePort" }} nodePort: {{ .Values.service.nodePort }} {{- end }} selector: app.kubernetes.io/name: {{ template "pomerium.authorize.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} <|endoftext|> # k8s_examples_prometheus-rule.yaml # This PrometheusRule defines a recording rule that is essential for making # the raw DCGM GPU metrics usable by the HPA. The raw 'DCGM_FI_DEV_GPU_UTIL' # metric scraped by Prometheus does not have the standard 'pod' and 'namespace' # labels that the Prometheus Adapter needs to associate the metric with a # specific workload pod. # # This rule creates a NEW metric, 'dcgm_fi_dev_gpu_util_relabelled', # and uses the 'label_replace' function to copy the pod and namespace # information from the 'exported_pod' and 'exported_namespace' labels into # the standard 'pod' and 'namespace' labels. The Prometheus Adapter will then # use this new, correctly-labelled metric. apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: dcgm-relabel-rules namespace: monitoring labels: # This label ensures the Prometheus instance discovers this rule. release: prometheus spec: groups: - name: dcgm.rules rules: # 'record' specifies the name of the new metric to be created. - record: dcgm_fi_dev_gpu_util_relabelled # 'expr' contains the PromQL expression that generates the new metric. expr: | label_replace( label_replace( DCGM_FI_DEV_GPU_UTIL, "pod", "$1", "exported_pod", "(.+)" ), "namespace", "$1", "exported_namespace", "(.+)" ) <|endoftext|> # helm_charts_ambassador-pro-license-key-secret.yaml {{- if and .Values.pro.enabled .Values.pro.licenseKey.secret.create -}} apiVersion: v1 kind: Secret metadata: name: ambassador-pro-license-key type: Opaque data: key: {{ .Values.pro.licenseKey.value | b64enc }} {{- end -}} <|endoftext|> # istio_44071.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 44062 releaseNotes: - | **Added** istiod metrics to `bug-report`, and a few more debug points like `telemetryz`. <|endoftext|> # istio_azureTags.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - 31176 releaseNotes: - | **Fixed** issue with metadata handling for Azure platform. Support added for tagsList serialization of tags on instance metadata. <|endoftext|> # helm_charts_server-rolebinding.yaml {{- if and .Values.server.enabled .Values.rbac.create .Values.server.useExistingClusterRoleName .Values.server.namespaces -}} {{ range $.Values.server.namespaces -}} --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: labels: {{- include "prometheus.server.labels" $ | nindent 4 }} name: {{ template "prometheus.server.fullname" $ }} namespace: {{ . }} subjects: - kind: ServiceAccount name: {{ template "prometheus.serviceAccountName.server" $ }} {{ include "prometheus.namespace" $ | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ $.Values.server.useExistingClusterRoleName }} {{ end -}} {{ end -}} <|endoftext|> # istio_knative-gateway.yaml # Simulate the same configuration knative would generate from some basic KServices # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: external namespace: istio-system spec: hosts: - istio-ingressgateway.istio-system.svc.cluster.local ports: - number: 80 targetPort: 8080 name: http protocol: HTTP resolution: STATIC endpoints: - address: 1.1.1.1 labels: istio.io/benchmark: "true" --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: internal namespace: istio-system spec: hosts: - knative-local-gateway.istio-system.svc.cluster.local ports: - number: 80 targetPort: 8081 name: http protocol: HTTP resolution: STATIC endpoints: - address: 1.1.1.1 labels: istio.io/benchmark: "true" --- apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: knative-ingress-gateway namespace: knative-serving spec: selector: istio.io/benchmark: "true" servers: - hosts: - '*' port: name: http number: 80 protocol: HTTP --- apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: knative-local-gateway namespace: knative-serving spec: selector: istio.io/benchmark: "true" servers: - hosts: - '*' port: name: http number: 8081 protocol: HTTP --- {{- range $i := until .Services }} apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: hello-ingress-{{$i}} namespace: default spec: gateways: - knative-serving/knative-ingress-gateway - knative-serving/knative-local-gateway hosts: - hello.default - hello.default.external.domain - hello.default.svc - hello.default.svc.cluster.local http: - headers: request: set: K-Network-Hash: 0647dfaebda7111f09cd1ee30dfb4cbdf540bcd47575c5f948106757b7110384 match: - authority: prefix: hello.default gateways: - knative-serving/knative-local-gateway headers: K-Network-Hash: exact: override route: - destination: host: hello-{{$i}}.default.svc.cluster.local port: number: 80 headers: request: set: Knative-Serving-Namespace: default Knative-Serving-Revision: hello-{{$i}} weight: 100 - match: - authority: prefix: hello.default gateways: - knative-serving/knative-local-gateway route: - destination: host: hello-{{$i}}.default.svc.cluster.local port: number: 80 headers: request: set: Knative-Serving-Namespace: default Knative-Serving-Revision: hello-{{$i}} weight: 100 - headers: request: set: K-Network-Hash: 0647dfaebda7111f09cd1ee30dfb4cbdf540bcd47575c5f948106757b7110384 match: - authority: prefix: hello.default.external.domain gateways: - knative-serving/knative-ingress-gateway headers: K-Network-Hash: exact: override route: - destination: host: hello-{{$i}}.default.svc.cluster.local port: number: 80 headers: request: set: Knative-Serving-Namespace: default Knative-Serving-Revision: hello-{{$i}} weight: 100 - match: - authority: prefix: hello.default.external.domain gateways: - knative-serving/knative-ingress-gateway route: - destination: host: hello-{{$i}}.default.svc.cluster.local port: number: 80 headers: request: set: Knative-Serving-Namespace: default Knative-Serving-Revision: hello-{{$i}} weight: 100 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: hello-private-ingress-{{$i}} namespace: default spec: gateways: - knative-serving/knative-local-gateway hosts: - hello-private.default - hello-private.default.svc - hello-private.default.svc.cluster.local http: - headers: request: set: K-Network-Hash: 1235d057c5abf876f0b1fa3cb9e5d04730d98fb236badc4705aecc1159309b2b match: - authority: prefix: hello-private.default gateways: - knative-serving/knative-local-gateway headers: K-Network-Hash: exact: override route: - destination: host: hello-private-{{$i}}.default.svc.cluster.local port: number: 80 headers: request: set: Knative-Serving-Namespace: default Knative-Serving-Revision: hello-private-{{$i}} weight: 100 - match: - authority: prefix: hello-private.default gateways: - knative-serving/knative-local-gateway route: - destination: host: hello-private-{{$i}}.default.svc.cluster.local port: number: 80 headers: request: set: Knative-Serving-Namespace: default Knative-Serving-Revision: hello-private-{{$i}} weight: 100 {{- end }} <|endoftext|> # argocd_source_promote-full_rollout.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "2" creationTimestamp: "2020-11-13T08:25:35Z" generation: 3 name: basic namespace: argocd-e2e resourceVersion: "201579" selfLink: /apis/argoproj.io/v1alpha1/namespaces/argocd-e2e/rollouts/basic uid: 201161e2-c761-4e52-91a1-d4872be9ead4 spec: replicas: 1 selector: matchLabels: app: basic strategy: canary: steps: - setWeight: 50 - pause: {} template: metadata: creationTimestamp: null labels: app: basic spec: containers: - image: nginx:1.18-alpine name: basic resources: requests: cpu: 1m memory: 16Mi status: promoteFull: true HPAReplicas: 1 abort: true abortedAt: "2020-11-13T08:25:53Z" availableReplicas: 1 blueGreen: {} canary: {} conditions: - lastTransitionTime: "2020-11-13T08:25:36Z" lastUpdateTime: "2020-11-13T08:25:36Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available - lastTransitionTime: "2020-11-13T08:25:53Z" lastUpdateTime: "2020-11-13T08:25:53Z" message: Rollout is aborted reason: RolloutAborted status: "False" type: Progressing currentPodHash: 75fdb4ccf6 currentStepHash: 757f5f97b currentStepIndex: 0 observedGeneration: "3" readyReplicas: 1 replicas: 1 selector: app=basic stableRS: 754cb84d5 <|endoftext|> # helm_charts__configmap.yaml {{- define "common.configmap.tpl" -}} apiVersion: v1 kind: ConfigMap {{ template "common.metadata" . }} data: {} {{- end -}} {{- define "common.configmap" -}} {{- template "common.util.merge" (append . "common.configmap.tpl") -}} {{- end -}} <|endoftext|> # helm_charts_crd-cleanup-job.yaml {{ if .Values.installCrds }} apiVersion: batch/v1 kind: Job metadata: name: {{ include "sparkoperator.fullname" . }}-crd-cleanup namespace: {{ .Release.Namespace }} annotations: "helm.sh/hook": pre-delete "helm.sh/hook-delete-policy": hook-succeeded labels: app.kubernetes.io/name: {{ include "sparkoperator.name" . }} helm.sh/chart: {{ include "sparkoperator.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: template: metadata: name: {{ include "sparkoperator.fullname" . }}-crd-cleanup {{- if .Values.istio.enabled }} annotations: "sidecar.istio.io/inject": "false" {{- end }} spec: serviceAccountName: {{ include "sparkoperator.serviceAccountName" . }} restartPolicy: OnFailure imagePullSecrets: {{ toYaml .Values.imagePullSecrets | trim | indent 8 }} containers: - name: delete-sparkapp-crd image: {{ .Values.operatorImageName }}:{{ .Values.operatorVersion }} imagePullPolicy: {{ .Values.imagePullPolicy }} {{- if .Values.securityContext }} securityContext: {{- range $securityPolicy, $value := .Values.securityContext }} {{ $securityPolicy }}: {{ $value }} {{- end }} {{- end }} command: - "/bin/sh" - "-c" - "curl -ik \ -X DELETE \ -H \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" \ -H \"Accept: application/json\" \ -H \"Content-Type: application/json\" \ https://kubernetes.default.svc/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/sparkapplications.sparkoperator.k8s.io" - name: delete-scheduledsparkapp-crd image: {{ .Values.operatorImageName }}:{{ .Values.operatorVersion }} imagePullPolicy: {{ .Values.imagePullPolicy }} {{- if .Values.securityContext }} securityContext: {{- range $securityPolicy, $value := .Values.securityContext }} {{ $securityPolicy }}: {{ $value }} {{- end }} {{- end }} command: - "/bin/sh" - "-c" - "curl -ik \ -X DELETE \ -H \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" \ -H \"Accept: application/json\" \ -H \"Content-Type: application/json\" \ https://kubernetes.default.svc/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/scheduledsparkapplications.sparkoperator.k8s.io" {{ end }} <|endoftext|> # argocd_source_argocd-dex-server-sa.yaml apiVersion: v1 kind: ServiceAccount metadata: labels: app.kubernetes.io/name: argocd-dex-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: dex-server name: argocd-dex-server <|endoftext|> # istio_destination-rule-tunneling.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for tunneling outbound traffic via external HTTP forward proxies using HTTP CONNECT or POST methods. Tunnel settings can be applied only to TCP and TLS listeners. HTTP listeners are not supported for now. <|endoftext|> # istio_istiod-pdb-max-unavailable.golden.yaml # Not created if istiod is running remotely # a workaround for https://github.com/kubernetes/kubernetes/issues/93476 apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: istiod namespace: istio-system labels: app: istiod istio.io/rev: "default" install.operator.istio.io/owning-resource: unknown operator.istio.io/component: "Pilot" release: istiod istio: pilot app.kubernetes.io/name: "istiod" app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istiod" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: istiod-1.0.0 spec: maxUnavailable: 1 selector: matchLabels: app: istiod istio: pilot <|endoftext|> # k8s_docs_memory-request-limit-3.yaml apiVersion: v1 kind: Pod metadata: name: memory-demo-3 namespace: mem-example spec: containers: - name: memory-demo-3-ctr image: polinux/stress resources: requests: memory: "1000Gi" limits: memory: "1000Gi" command: ["stress"] args: ["--vm", "1", "--vm-bytes", "150M", "--vm-hang", "1"] <|endoftext|> # istio_28003.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 28003 releaseNotes: - | **Added** Istio resource status now includes Observed Generation <|endoftext|> # istio_36278.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for proxying 100 continue headers. This can be disabled by setting ENABLE_100_CONTINUE_HEADERS to false. <|endoftext|> # k8s_examples_aws-ebs-web.yaml apiVersion: v1 kind: Pod metadata: name: aws-web spec: containers: - name: web image: nginx ports: - name: web containerPort: 80 protocol: tcp volumeMounts: - name: html-volume mountPath: "/usr/share/nginx/html" volumes: - name: html-volume awsElasticBlockStore: # Enter the volume ID below volumeID: volume_ID fsType: ext4 <|endoftext|> # grafana_charts_service-metrics.yaml {{- if or .Values.serviceMonitor.enabled .Values.service.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "promtail.fullname" . }}-metrics namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} {{- with .Values.service.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.service.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: clusterIP: None ports: - name: http-metrics port: {{ .Values.config.serverPort }} targetPort: http-metrics protocol: TCP selector: {{- include "promtail.selectorLabels" . | nindent 4 }} {{- end }} <|endoftext|> # istio_54141.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** GKE platform profile for ambient mode. When installing on GKE, use `--set global.platform=gke` (Helm) or `--set values.global.platform=gke` (istioctl) to apply GKE-specific value overrides. This replaces the previous GKE autodetection based on K8S version used in the `istio-cni` chart. <|endoftext|> # helm_charts_hl-composer-pg-deployment.yaml {{- if .Values.pg.enabled -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "hl-composer.fullname" . }}-pg labels: name: {{ include "hl-composer.fullname" . }}-pg {{ include "labels.standard" . | indent 4 }} spec: replicas: 1 selector: matchLabels: app: {{ include "hl-composer.name" . }} release: {{ .Release.Name }} template: metadata: name: {{ include "hl-composer.fullname" . }}-pg labels: name: {{ include "hl-composer.fullname" . }}-pg {{ include "labels.standard" . | indent 8 }} spec: volumes: - name: persistent-volume {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ .Values.persistence.existingClaim | default (include "hl-composer.fullname" .) }} {{- else }} emptyDir: {} {{- end }} containers: - name: composer-playground image: "{{ .Values.pg.image.repository }}:{{ .Values.pg.image.tag }}" imagePullPolicy: {{ .Values.pg.image.pullPolicy }} # TODO: Add liveness and readiness probes volumeMounts: - mountPath: /home/composer/.composer name: persistent-volume resources: {{ toYaml .Values.pg.resources | indent 12 }} {{- with .Values.pg.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.pg.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.pg.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- end }} <|endoftext|> # istio_43945.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 42485 releaseNotes: - | **Fixed** SELinux issue on CentOS9/RHEL9 where iptables-restore isn't allowed to open files in /tmp. Rules passed to iptables-restore are no longer written to a file, but are passed via stdin. <|endoftext|> # grafana_charts_service-headless.yaml {{- if .Values.serviceMonitor.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "fluent-bit-loki.fullname" . }}-headless namespace: {{ .Release.Namespace }} labels: app: {{ template "fluent-bit-loki.name" . }} chart: {{ template "fluent-bit-loki.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: clusterIP: None ports: - port: {{ .Values.config.port }} protocol: TCP name: http-metrics targetPort: http-metrics selector: app: {{ template "fluent-bit-loki.name" . }} release: {{ .Release.Name }} {{- end }} <|endoftext|> # argocd_source_desired_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/instance: guestbook name: kustomize-guestbook-ui namespace: default spec: replicas: 3 revisionHistoryLimit: 1 selector: matchLabels: app: guestbook-ui template: metadata: labels: app: guestbook-ui spec: containers: - image: 'quay.io/argoprojlabs/argocd-e2e-container:0.1' name: guestbook-ui ports: - containerPort: 80 <|endoftext|> # helm_charts_configurator-ingress.yaml {{- if and (.Values.configurator.enabled) (.Values.configurator.ingress.enabled) }} {{- $fullName := include "home-assistant.fullname" . -}} {{- $servicePort := .Values.configurator.service.port -}} {{- $ingressPath := .Values.configurator.ingress.path -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ $fullName }}-configurator labels: app.kubernetes.io/name: {{ include "home-assistant.name" . }} helm.sh/chart: {{ include "home-assistant.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- with .Values.configurator.ingress.annotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} spec: {{- if .Values.configurator.ingress.tls }} tls: {{- range .Values.configurator.ingress.tls }} - hosts: {{- range .hosts }} - {{ . }} {{- end }} secretName: {{ .secretName }} {{- end }} {{- end }} rules: {{- range .Values.configurator.ingress.hosts }} - host: {{ . }} http: paths: - path: {{ $ingressPath }} backend: serviceName: {{ $fullName }} servicePort: {{ $servicePort }} {{- end }} {{- end }} <|endoftext|> # istio_pilot_override_values.golden.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio: pilot istio.io/rev: default operator.istio.io/component: Pilot release: istio name: istiod namespace: istio-control spec: selector: matchLabels: istio: pilot strategy: rollingUpdate: maxSurge: 100% maxUnavailable: 30% template: metadata: annotations: prometheus.io/port: "15014" prometheus.io/scrape: "true" sidecar.istio.io/inject: "false" labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio: pilot istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: Pilot sidecar.istio.io/inject: "false" spec: containers: - args: - discovery - --monitoringAddr=:15014 - --log_output_level=default:info - --domain - cluster.local - --keepaliveMaxServerConnectionAge - 30m env: - name: REVISION value: default - name: PILOT_CERT_PROVIDER value: istiod - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: SERVICE_ACCOUNT valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.serviceAccountName - name: KUBECONFIG value: /var/run/secrets/remote/config - name: CA_TRUSTED_NODE_ACCOUNTS value: istio-control/ztunnel - name: PILOT_TRACE_SAMPLING value: "1" - name: PILOT_ENABLE_ANALYSIS value: "false" - name: CLUSTER_ID value: Kubernetes - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PLATFORM value: "" image: registry.istio.io/release/pilot:1.1.4 name: discovery ports: - containerPort: 8080 name: http-debug protocol: TCP - containerPort: 15010 name: grpc-xds protocol: TCP - containerPort: 15012 name: tls-xds protocol: TCP - containerPort: 15017 name: https-webhooks protocol: TCP - containerPort: 15014 name: http-monitoring protocol: TCP readinessProbe: httpGet: path: /ready port: 8080 initialDelaySeconds: 1 periodSeconds: 3 timeoutSeconds: 5 resources: requests: cpu: 222m memory: 333Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true volumeMounts: - mountPath: /var/run/secrets/tokens name: istio-token readOnly: true - mountPath: /var/run/secrets/istio-dns name: local-certs - mountPath: /etc/cacerts name: cacerts readOnly: true - mountPath: /var/run/secrets/remote name: istio-kubeconfig readOnly: true - mountPath: /var/run/secrets/istiod/tls name: istio-csr-dns-cert readOnly: true - mountPath: /var/run/secrets/istiod/ca name: istio-csr-ca-configmap readOnly: true nodeSelector: node-name: test serviceAccountName: istiod tolerations: - key: cni.istio.io/not-ready operator: Exists volumes: - emptyDir: medium: Memory name: local-certs - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - name: cacerts secret: optional: true secretName: cacerts - name: istio-kubeconfig secret: optional: true secretName: istio-kubeconfig - name: istio-csr-dns-cert secret: optional: true secretName: istiod-tls - configMap: defaultMode: 420 name: istio-ca-root-cert optional: true name: istio-csr-ca-configmap --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio.io/rev: default operator.istio.io/component: Pilot release: istio name: istiod namespace: istio-control spec: maxReplicas: 8 metrics: - resource: name: cpu target: averageUtilization: 80 type: Utilization type: Resource minReplicas: 2 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: istiod <|endoftext|> # istio_50728.yaml apiVersion: release-notes/v2 kind: feature area: security releaseNotes: - | **Added** An environment variable METRICS_LOCALHOST_ACCESS_ONLY for disabling metrics endpoint from outside of the pod, to allow only localhost access. User can use set this with command `--set values.pilot.env.METRICS_LOCALHOST_ACCESS_ONLY=true` for Control plane and `--set meshConfig.defaultConfig.proxyMetadata.METRICS_LOCALHOST_ACCESS_ONLY=true` for proxy while istioctl installation. <|endoftext|> # helm_charts_cron.yaml {{- if ne .Values.schedule "now" -}} apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ template "mysqldump.fullname" . }} labels: {{ include "mysqldump.labels" . | indent 4 }} spec: schedule: "{{ .Values.schedule }}" successfulJobsHistoryLimit: {{ .Values.successfulJobsHistoryLimit }} failedJobsHistoryLimit: {{ .Values.failedJobsHistoryLimit }} concurrencyPolicy: Forbid jobTemplate: metadata: labels: app: {{ template "mysqldump.name" . }} chart: {{ template "mysqldump.chart" . }} cronjob-name: {{ template "mysqldump.fullname" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: backoffLimit: 1 template: {{- $file := .Files.Get "files/job.tpl" }} {{ tpl $file . | indent 8 }} {{ end }} <|endoftext|> # istio_clusterrolebinding.yaml # Created if cluster resources are not omitted {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "cluster") }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "name" . }} labels: app: {{ template "name" . }} release: {{ .Release.Name }} istio.io/rev: {{ .Values.revision | default "default" }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Cni" app.kubernetes.io/name: {{ template "name" . }} {{- include "istio.labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "name" . }} subjects: - kind: ServiceAccount name: {{ template "name" . }} namespace: {{ .Release.Namespace }} --- {{- if .Values.repair.enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "name" . }}-repair-rolebinding labels: k8s-app: {{ template "name" . }}-repair release: {{ .Release.Name }} istio.io/rev: {{ .Values.revision | default "default" }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Cni" app.kubernetes.io/name: {{ template "name" . }} {{- include "istio.labels" . | nindent 4 }} subjects: - kind: ServiceAccount name: {{ template "name" . }} namespace: {{ .Release.Namespace}} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "name" . }}-repair-role {{- end }} --- {{- if .Values.ambient.enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "name" . }}-ambient labels: k8s-app: {{ template "name" . }}-repair release: {{ .Release.Name }} istio.io/rev: {{ .Values.revision | default "default" }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Cni" app.kubernetes.io/name: {{ template "name" . }} {{- include "istio.labels" . | nindent 4 }} subjects: - kind: ServiceAccount name: {{ template "name" . }} namespace: {{ .Release.Namespace}} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "name" . }}-ambient {{- end }} {{- end }} <|endoftext|> # argocd_source_degraded_configError.yaml apiVersion: cert-manager.io/v1alpha2 kind: Certificate metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"cert-manager.io/v1alpha2","kind":"Certificate","metadata":{"annotations":{},"name":"test-cert","namespace":"argocd"},"spec":{"acme":{"config":[{"domains":["cd.apps.argoproj.io"],"http01":{"ingress":"http01"}}]},"commonName":"cd.apps.argoproj.io","dnsNames":["cd.apps.argoproj.io"],"issuerRef":{"kind":"Issuer","name":"argo-cd-issuer"}}} creationTimestamp: "2019-02-15T18:17:06Z" generation: 1 name: test-cert namespace: argocd resourceVersion: "68338442" selfLink: /apis/cert-manager.io/v1alpha2/namespaces/argocd/certificates/test-cert uid: e6cfba50-314d-11e9-be3f-42010a800011 spec: acme: config: - domains: - cd.apps.argoproj.io123 http01: ingress: http01 commonName: cd.apps.argoproj.io dnsNames: - cd.apps.argoproj.io issuerRef: kind: Issuer name: argo-cd-issuer secretName: test-secret status: conditions: - lastTransitionTime: "2019-02-15T18:26:37Z" message: 'Resource validation failed: spec.acme.config: Required value: no ACME solver configuration specified for domain "cd.apps.argoproj.io"' reason: ConfigError status: "False" type: Ready <|endoftext|> # helm_charts_svc-read.yaml {{- if .Values.replication.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "postgresql.fullname" . }}-read labels: app: {{ template "postgresql.name" . }} chart: {{ template "postgresql.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- with .Values.service.annotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} spec: type: {{ .Values.service.type }} {{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} ports: - name: tcp-postgresql port: {{ template "postgresql.port" . }} targetPort: tcp-postgresql {{- if .Values.service.nodePort }} nodePort: {{ .Values.service.nodePort }} {{- end }} selector: app: {{ template "postgresql.name" . }} release: {{ .Release.Name | quote }} role: slave {{- end }} <|endoftext|> # k8s_docs_job-backoff-limit-per-index-example.yaml apiVersion: batch/v1 kind: Job metadata: name: job-backoff-limit-per-index-example spec: completions: 10 parallelism: 3 completionMode: Indexed # required for the feature backoffLimitPerIndex: 1 # maximal number of failures per index maxFailedIndexes: 5 # maximal number of failed indexes before terminating the Job execution template: spec: restartPolicy: Never # required for the feature containers: - name: example image: python command: # The jobs fails as there is at least one failed index # (all even indexes fail in here), yet all indexes # are executed as maxFailedIndexes is not exceeded. - python3 - -c - | import os, sys print("Hello world") if int(os.environ.get("JOB_COMPLETION_INDEX")) % 2 == 0: sys.exit(1) <|endoftext|> # istio_38689.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 38689 releaseNotes: - | **Fixed** an issue when network gateway names could not be properly resolved in some cases <|endoftext|> # istio_57385.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 57380 releaseNotes: - | **Fixed** iptables detection logic to fall back to `iptables-nft` when the `iptable_nat` module is missing. <|endoftext|> # helm_charts_localdata-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "cloudserver.localdata.fullname" . }} labels: app: {{ template "cloudserver.name" . }} chart: {{ template "cloudserver.chart" . }} component: localdata heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.localdata.replicaCount }} selector: matchLabels: app: {{ template "cloudserver.name" . }} component: localdata release: {{ .Release.Name }} template: metadata: labels: app: {{ template "cloudserver.name" . }} component: localdata release: {{ .Release.Name }} spec: serviceAccountName: {{ template "cloudserver.serviceAccountName.localdata" . }} initContainers: - name: {{ .Chart.Name }}-localdata-init image: busybox command: ['sh', '-x', '-c', 'if ! test -d /data/3511; then for i in `seq 1 3511`; do mkdir -p /data/$i; done; fi'] volumeMounts: - name: persistent-storage mountPath: /data containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: localdata containerPort: 9991 args: ['npm', 'run', 'start_dataserver'] volumeMounts: - name: persistent-storage mountPath: /data env: - name: S3DATAPATH value: /data - name: LISTEN_ADDR value: "0.0.0.0" - name: HEALTHCHECKS_ALLOWFROM value: "0.0.0.0/0" livenessProbe: tcpSocket: port: localdata initialDelaySeconds: 5 readinessProbe: tcpSocket: port: localdata initialDelaySeconds: 5 resources: {{ toYaml .Values.localdata.resources | indent 12 }} {{- if .Values.localdata.nodeSelector }} nodeSelector: {{ toYaml .Values.localdata.nodeSelector | indent 8 }} {{- end }} volumes: - name: persistent-storage {{- if .Values.localdata.persistentVolume.enabled }} persistentVolumeClaim: claimName: {{ if .Values.localdata.persistentVolume.existingClaim }}{{ .Values.localdata.persistentVolume.existingClaim }}{{- else }}{{ template "cloudserver.localdata.fullname" . }}{{- end }} {{- else }} emptyDir: {} {{- end }} <|endoftext|> # istio_ambient-peer-authentication.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: security # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 42696 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** support for PeerAuthentication policies in Ambient <|endoftext|> # k8s_docs_counter-pod-err.yaml apiVersion: v1 kind: Pod metadata: name: counter-err spec: containers: - name: count image: busybox:1.28 args: [/bin/sh, -c, 'i=0; while true; do echo "$i: $(date)"; echo "$i: err" >&2 ; i=$((i+1)); sleep 1; done'] <|endoftext|> # istio_invalid-rbac-filter.yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - https://github.com/istio/istio/issues/43785 releaseNotes: - | **Fixed** an issue where RBAC updates were not sent to older proxies after upgrading istiod to 1.17. <|endoftext|> # istio_yaml_layer3.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: base: enabled: true ingressGateways: - namespace: istio-system name: istio-ingressgateway enabled: false k8s: service: externalTrafficPolicy: Test <|endoftext|> # helm_charts_insight-server-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "insight-server.fullname" . }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.insightServer.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.insightServer.replicaCount }} selector: matchLabels: app: {{ template "mission-control.name" . }} component: {{ .Values.insightServer.name }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "mission-control.name" . }} component: {{ .Values.insightServer.name }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "mission-control.serviceAccountName" . }} {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: init-data image: "{{ .Values.initContainerImage }}" command: - 'sh' - '-c' - > until nc -z -w 2 {{ .Release.Name }}-mongodb 27017 && echo mongodb ok && \ nc -z -w 2 {{ .Release.Name }}-elasticsearch 9200 && echo elasticsearch ok; do sleep 2; done; sleep 10 containers: - name: {{ .Values.insightServer.name }} image: {{ .Values.insightServer.image }}:{{ default .Chart.AppVersion .Values.insightServer.version }} imagePullPolicy: {{ .Values.imagePullPolicy }} env: - name: CORE_URL value: 'http://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpPort }}' - name: EXECUTOR_URL value: 'http://{{ template "insight-executor.fullname" . }}:{{ .Values.insightExecutor.internalPort }}/executorservice' - name: SCHEDULER_URL value: 'http://{{ template "insight-scheduler.fullname" . }}:{{ .Values.insightScheduler.internalPort }}/schedulerservice' - name: MONGO_URL value: '{{ .Release.Name }}-mongodb:27017' - name: MONGODB_USERNAME value: '{{ .Values.mongodb.db.insightUser }}' - name: MONGODB_PASSWORD value: '{{ .Values.mongodb.db.insightPassword }}' - name: MONGODB_ADMIN_USERNAME value: '{{ .Values.mongodb.db.adminUser }}' - name: MONGODB_ADMIN_PASSWORD valueFrom: secretKeyRef: name: {{ template "mission-control.fullname" . }}-mongodb-cred key: adminPassword - name: JFMC_URL value: 'http://{{ template "mission-control.fullname" . }}:{{ .Values.missionControl.internalPort }}' - name: ELASTIC_SEARCH_URL value: 'http://{{ .Release.Name }}-elasticsearch:9200' - name: ELASTIC_CLUSTER_NAME value: '{{ .Values.elasticsearch.env.clusterName }}' - name: ELASTIC_SEARCH_USERNAME value: '{{ .Values.elasticsearch.env.esUsername }}' - name: ELASTIC_SEARCH_PASSWORD valueFrom: secretKeyRef: name: {{ .Release.Name }}-elasticsearch key: esPassword - name: ELASTIC_COMMUNICATION_NODE_URL value: '{{ .Release.Name }}-elasticsearch:9300' - name: JFI_HOME value: '/var/cloudbox' - name: JFI_HOME_CORE value: '/var/cloudbox/core' - name: JFMC_MISSION_CONTROL_CERT value: "/var/cloudbox/core/_MASTER_/data/contexts/security/jfmc.crt" - name: JFMC_INSIGHT_SERVER_CERT value: "/var/cloudbox/core/_MASTER_/data/contexts/security/insight.crt" - name: JFMC_INSIGHT_SERVER_KEY value: "/var/cloudbox/core/_MASTER_/data/contexts/security/insight.key" - name: JFMC_INSIGHT_SERVER_PORT value: "{{ .Values.insightServer.internalHttpPort }}" - name: JFMC_INSIGHT_SERVER_SSL_PORT value: "{{ .Values.insightServer.internalHttpsPort }}" ports: - containerPort: {{ .Values.insightServer.internalHttpPort }} protocol: TCP - containerPort: {{ .Values.insightServer.internalHttpsPort }} protocol: TCP volumeMounts: - name: mission-control-certs mountPath: /var/cloudbox/core/_MASTER_/data/contexts/security/insight.key subPath: insight.key - name: mission-control-certs mountPath: /var/cloudbox/core/_MASTER_/data/contexts/security/insight.crt subPath: insight.crt - name: mission-control-certs mountPath: /var/cloudbox/core/_MASTER_/data/contexts/security/jfmc.crt subPath: jfmc.crt livenessProbe: httpGet: path: /api/status port: 8082 initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: path: /api/status port: 8082 initialDelaySeconds: 300 periodSeconds: 10 resources: {{ toYaml .Values.insightServer.resources | indent 10 }} {{- with .Values.insightServer.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.insightServer.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.insightServer.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: mission-control-certs secret: {{- if .Values.existingCertsSecret }} secretName: {{ .Values.existingCertsSecret }} {{- else }} secretName: {{ template "mission-control.fullname" . }}-certs {{- end }} <|endoftext|> # argocd_source_ssd-deploy-composite-key-config.yaml apiVersion: apps/v1 kind: Deployment metadata: name: test-container-ports namespace: default labels: app: test-app spec: replicas: 1 selector: matchLabels: app: test-app template: metadata: labels: app: test-app spec: containers: - name: nginx image: nginx:1.21 ports: - containerPort: 80 name: http - containerPort: 443 name: https - containerPort: 8080 name: metrics - name: sidecar image: busybox:1.35 command: ["sleep", "3600"] ports: - containerPort: 9090 name: sidecar-port <|endoftext|> # kustomize_configMap.yaml apiVersion: v1 kind: ConfigMap metadata: name: the-map data: altGreeting: "Good Morning!" enableRisky: "false" <|endoftext|> # istio_proxy-override-args.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: selector: matchLabels: app: hello template: metadata: labels: app: hello spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" - name: istio-proxy image: auto # Test that we can override a complex field like the command args: ["-c", "my-config.yaml"] command: - envoy <|endoftext|> # helm_source_horizontalpodautoscaler.yaml apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: deprecated spec: scaleTargetRef: kind: Pod name: pod maxReplicas: 3 <|endoftext|> # k8s_docs_pod2.yaml apiVersion: v1 kind: Pod metadata: name: annotation-default-scheduler labels: name: multischeduler-example spec: schedulerName: default-scheduler containers: - name: pod-with-default-annotation-container image: registry.k8s.io/pause:3.8 <|endoftext|> # k8s_examples_nfs-busybox-deployment.yaml # This mounts the nfs volume claim into /mnt and continuously # overwrites /mnt/index.html with the time and hostname of the pod. apiVersion: apps/v1 kind: Deployment metadata: name: nfs-busybox spec: replicas: 2 selector: matchLabels: name: nfs-busybox template: metadata: labels: name: nfs-busybox spec: containers: - image: busybox command: - sh - -c - 'while true; do date > /mnt/index.html; hostname >> /mnt/index.html; sleep $(($RANDOM % 5 + 5)); done' imagePullPolicy: IfNotPresent name: busybox volumeMounts: # name must match the volume name below - name: nfs mountPath: "/mnt" volumes: - name: nfs persistentVolumeClaim: claimName: nfs <|endoftext|> # istio_startupProbe.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 32569 releaseNotes: - | **Added** a `startupProbe` by default for the sidecar. This optimizes startup time and minimizes load throughout the pod lifecycle. See Upgrade Notes for more information. upgradeNotes: - title: StartupProbe added to sidecar by default content: | The sidecar container now comes with a `startupProbe` enabled by default. Startup probes run only at the start of the pod. Once the startup probe completes, readiness probes will continue. By using a startup probe, we can poll for the sidecar to start more aggressively, without polling as aggressively throughout the entire pod's lifecycle. On average, this improves pod startup time by roughly 1s. If the startup probe does not pass after 10 minutes, the pod will be terminated. Previously, the pod would never be terminated even if it was unable to start indefinitely. If you do not want this feature, it can be disabled. However, you will want to tune the readiness probe with it. The recommended values with the startup probe enabled (the new defaults): ``` readinessInitialDelaySeconds: 0 readinessPeriodSeconds: 15 readinessFailureThreshold: 4 startupProbe: enabled: true failureThreshold: 600 ``` The recommended values to disable the startup probe (reverting the behavior to match older Istio versions): ``` readinessInitialDelaySeconds: 1 readinessPeriodSeconds: 2 readinessFailureThreshold: 30 startupProbe: enabled: false ``` <|endoftext|> # helm_charts_svc-headless-rs.yaml {{- if .Values.replicaSet.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "mongodb.fullname" . }}-headless labels: app: {{ template "mongodb.name" . }} chart: {{ template "mongodb.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.service.annotations }} annotations: {{ tpl (toYaml .) $ | nindent 4 }} {{- end }} spec: type: ClusterIP clusterIP: None ports: - name: mongodb port: {{ .Values.service.port }} selector: app: {{ template "mongodb.name" . }} release: {{ .Release.Name }} {{- end }} <|endoftext|> # helm_charts_clusterrole.yaml {{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }} kind: ClusterRole metadata: name: {{ template "external-dns.fullname" . }} labels: {{ include "external-dns.labels" . | nindent 4 }} rules: - apiGroups: - "" resources: - services - pods - nodes verbs: - get - list - watch - apiGroups: - extensions - "networking.k8s.io" # k8s 1.14+ resources: - ingresses verbs: - get - list - watch - apiGroups: - networking.istio.io resources: - gateways verbs: - get - list - watch {{- if or .Values.crd.create .Values.crd.apiversion }} - apiGroups: {{- if .Values.crd.create }} - externaldns.k8s.io {{- else }} - {{ $api := splitn "/" 2 .Values.crd.apiversion }}{{ $api._0 }} {{- end }} resources: {{- if .Values.crd.create }} - dnsendpoints {{- else }} - {{ printf "%ss" (.Values.crd.kind | lower) }} {{- end }} verbs: - get - list - watch - apiGroups: {{- if .Values.crd.create }} - externaldns.k8s.io {{- else }} - {{ $api := splitn "/" 2 .Values.crd.apiversion }}{{ $api._0 }} {{- end }} resources: {{- if .Values.crd.create }} - dnsendpoints/status {{- else }} - {{ printf "%ss/status" (.Values.crd.kind | lower) }} {{- end }} verbs: - update {{- end }} {{- end }} <|endoftext|> # istio_sidecarInjectorWebhook-custom-annotations.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** Allow user to add customized annotation to MutatingWebhookConfiguration for revision-tags through helm chart. <|endoftext|> # istio_custom-bad-multiple-providers-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-1 namespace: foo spec: action: CUSTOM provider: name: default selector: matchLabels: app: httpbin version: v1 rules: - to: - operation: paths: ["/httpbin1"] --- apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: httpbin-2 namespace: foo spec: action: CUSTOM provider: name: another selector: matchLabels: app: httpbin version: v1 rules: - to: - operation: paths: ["/httpbin2"] <|endoftext|> # istio_34896.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 34896 releaseNotes: - | **Fixed** `istioctl operator` subcommands now support remote URLs specified in the `--manifests` argument. <|endoftext|> # istio_Chart.yaml apiVersion: v1 name: tags version: 1.1.0 tillerVersion: ">=2.7.2" description: Helm chart for deploying Istio cluster resources and CRDs keywords: - istio sources: - http://github.com/istio/istio engine: gotpl icon: https://istio.io/latest/favicons/android-192x192.png <|endoftext|> # istio_fix-custom-injection-runas.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation docs: - 'https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#customizing-injection' releaseNotes: - | **Fixed** Custom injection of the `istio-proxy` container was not working properly if `SecurityContext.RunAs` fields were set. <|endoftext|> # helm_charts_app-secrets.yaml {{- if .Values.app.key }} apiVersion: v1 kind: Secret metadata: name: {{ printf "%s-%s" .Release.Name "app" }} labels: app: {{ printf "%s-%s" .Release.Name "app" }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque data: app-key: {{ .Values.app.key | b64enc | quote }} {{- end }} <|endoftext|> # istio_empty-backend-refs.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: default hostname: "*.domain.example" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All --- # Test case for https://github.com/istio/istio/issues/59356 # HTTPRoute with empty backendRefs should return 404 (not 500). # Currently the code does not distinguish between empty backendRefs # (no backends at all) and zero-weight backendRefs. apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: no-backend namespace: default spec: parentRefs: - name: gateway namespace: istio-system hostnames: ["no-backend.domain.example"] rules: # Rule with no backendRefs at all - should return 404 per spec, but currently returns 500 - matches: - path: type: PathPrefix value: /no-backend # Rule with empty backendRefs list - should also return 404 per spec, but currently returns 500 - matches: - path: type: PathPrefix value: /empty-list backendRefs: [] --- # HTTPRoute with zero-weight backendRefs should return 500 per spec apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: zero-weight-backend namespace: default spec: parentRefs: - name: gateway namespace: istio-system hostnames: ["zero-weight.domain.example"] rules: - matches: - path: type: PathPrefix value: /zero-weight backendRefs: - name: httpbin port: 80 weight: 0 <|endoftext|> # helm_source_repositories.yaml apiVersion: v1 generated: 2017-04-28T12:34:38.551693035-06:00 repositories: - caFile: "" cache: repository/cache/stable-index.yaml certFile: "" keyFile: "" name: stable url: https://charts.helm.sh/stable - caFile: "" cache: repository/cache/local-index.yaml certFile: "" keyFile: "" name: local url: http://127.0.0.1:8879/charts <|endoftext|> # helm_source_slave-svc.yaml {{- if .Values.replication.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "slave.fullname" . }} labels: app: "{{ template "mariadb.name" . }}" chart: {{ template "mariadb.chart" . }} component: "slave" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- if .Values.metrics.enabled }} annotations: {{ toYaml .Values.metrics.annotations | indent 4 }} {{- end }} spec: type: {{ .Values.service.type }} ports: - name: mysql port: {{ .Values.service.port }} targetPort: mysql {{- if .Values.metrics.enabled }} - name: metrics port: 9104 targetPort: metrics {{- end }} selector: app: "{{ template "mariadb.name" . }}" component: "slave" release: "{{ .Release.Name }}" {{- end }} <|endoftext|> # cert_manager_startupapicheck-serviceaccount.yaml {{- if .Values.startupapicheck.enabled }} {{- if .Values.startupapicheck.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount automountServiceAccountToken: {{ .Values.startupapicheck.serviceAccount.automountServiceAccountToken }} metadata: name: {{ template "startupapicheck.serviceAccountName" . }} namespace: {{ include "cert-manager.namespace" . }} {{- with .Values.startupapicheck.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: app: {{ include "startupapicheck.name" . }} app.kubernetes.io/name: {{ include "startupapicheck.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "startupapicheck" {{- include "labels" . | nindent 4 }} {{- with .Values.startupapicheck.serviceAccount.labels }} {{ toYaml . | nindent 4 }} {{- end }} {{- with .Values.global.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 2 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_make-revision-tag-work-when-istiod-remote-is-enabled.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 54743 releaseNotes: - | **Removed** the restriction that revision tag only works when `istiodRemote` is not enabled in the istiod helm chart. Revision tag now works as long as the `revisionTags` is specified no matter `istiodRemote` is enabled or not. <|endoftext|> # helm_charts_grafana-configmap.yaml {{- if .Values.features.monitoring.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: scdf-grafana-ds-cm labels: app: scdf-grafana-ds-cm data: datasources.yaml: | apiVersion: 1 datasources: - name: ScdfPrometheus type: prometheus access: proxy org_id: 1 url: http://{{- printf "${%s_PROMETHEUS_SERVER_SERVICE_HOST}" (include "scdf.envrelease" . ) -}}:{{- printf "${%s_PROMETHEUS_SERVER_SERVICE_PORT}" (include "scdf.envrelease" . ) }} is_default: true version: 5 editable: true read_only: false {{- end }} <|endoftext|> # argocd_source_argocd-redis-rolebinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: app.kubernetes.io/component: redis app.kubernetes.io/name: argocd-redis app.kubernetes.io/part-of: argocd name: argocd-redis roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: argocd-redis subjects: - kind: ServiceAccount name: argocd-redis <|endoftext|> # istio_remove-anyuid-openshift.yaml apiVersion: release-notes/v2 kind: feature area: installation docs: - 'https://istio.io/latest/docs/setup/platform-setup/openshift/' releaseNotes: - | **Improved** Usage on OpenShift clusters is simplified by removing the need of granting the `anyuid` SCC privilege to Istio and applications. <|endoftext|> # istio_54843.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support for `istioctl waypoint delete` to delete specified revision waypoint. <|endoftext|> # istio_30067.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 30067 releaseNotes: - | **Fixed** a bug where ISTIO_META_IDLE_TIMEOUT is not reflected when set to "0s". <|endoftext|> # istio_incorrect-port-name-external-name-service-type.yaml apiVersion: v1 kind: Service metadata: name: nginx namespace: nginx-ns spec: externalName: nginx.example.com ports: - name: nginx port: 443 protocol: TCP targetPort: 443 type: ExternalName --- apiVersion: v1 kind: Service metadata: name: nginx-svc2 namespace: nginx-ns2 spec: externalName: nginx.example.com ports: - port: 443 protocol: TCP targetPort: 443 type: ExternalName --- apiVersion: v1 kind: Service metadata: name: nginx-svc3 namespace: nginx-ns3 spec: externalName: nginx.example.com ports: - name: tcp port: 443 protocol: TCP targetPort: 443 type: ExternalName <|endoftext|> # istio_service-ordering.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Improved** service conflict resolution to favor Kubernetes Services over ServiceEntries with the same hostname. <|endoftext|> # istio_audit-full-rule-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: audit-all namespace: foo spec: action: AUDIT rules: - {} <|endoftext|> # argocd_source_progressing_importing.yaml apiVersion: cdi.kubevirt.io/v1beta1 kind: DataVolume metadata: annotations: cdi.kubevirt.io/storage.bind.immediate.requested: "true" kubevirt.ui/provider: centos labels: app.kubernetes.io/instance: datavolumes name: centos8 namespace: openshift-virtualization-os-images spec: pvc: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi volumeMode: Filesystem source: http: url: https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20210603.0.x86_64.qcow2 status: conditions: - lastHeartbeatTime: "2021-09-07T15:24:46Z" lastTransitionTime: "2021-09-07T15:24:46Z" message: PVC centos8 Bound reason: Bound status: "True" type: Bound - lastHeartbeatTime: "2021-09-07T15:25:33Z" lastTransitionTime: "2021-09-07T15:24:37Z" reason: TransferRunning status: "False" type: Ready - lastHeartbeatTime: "2021-09-07T15:24:55Z" lastTransitionTime: "2021-09-07T15:24:55Z" reason: Pod is running status: "True" type: Running phase: ImportInProgress progress: 2.00% <|endoftext|> # istio_32469.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 32370 releaseNotes: - | **Added** an `external` profile for installing Istio with an external control plane, and deprecated the `remote` profile. <|endoftext|> # helm_charts_spark-operator-serviceaccount.yaml {{- if .Values.serviceAccounts.sparkoperator.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "sparkoperator.serviceAccountName" . }} namespace: {{ .Release.Namespace }} labels: app.kubernetes.io/name: {{ include "sparkoperator.name" . }} helm.sh/chart: {{ include "sparkoperator.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} <|endoftext|> # istio_peer-authn-strict-root-unset-workload-port-mtls-strict-and-permissive-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-mesh namespace: istio-system spec: mtls: mode: STRICT --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: workload namespace: foo spec: selector: matchLabels: app: a portLevelMtls: 9090: mode: PERMISSIVE 8080: mode: STRICT <|endoftext|> # istio_telemetry-default-selector.yaml apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: no-selector # Since this is the only Telemetry in the namespace without a selector, no conflict namespace: ns1 spec: metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: has-selector namespace: ns1 spec: selector: # Since this has a selector, it shouldn't conflict with the other Telemetry in the namespace matchLabels: app: foo metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: has-conflict-1 # Both Telemetries in this namespace omit workload selector, so they are in conflict namespace: ns2 spec: metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS mode: CLIENT disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: has-conflict-2 # Both Telemetries in this namespace omit workload selector, so they are in conflict namespace: ns2 spec: metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS mode: SERVER disabled: false <|endoftext|> # istio_29376.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 29336 releaseNotes: - | **Added** `istioctl verify-install` will indicate errors in red and expected configuration in green. <|endoftext|> # argocd_source_initialized.yaml apiVersion: flagger.app/v1beta1 kind: Canary metadata: generation: 1 labels: app.kubernetes.io/instance: podinfo name: podinfo namespace: default resourceVersion: "2268395" selfLink: /apis/flagger.app/v1beta1/namespaces/default/canaries/podinfo uid: 82df0136-0248-4a95-9c60-3184792614ea spec: {} status: canaryWeight: 0 conditions: - lastTransitionTime: "2020-07-03T13:36:22Z" lastUpdateTime: "2020-07-03T13:36:22Z" message: Installation successful. reason: Initialized status: "True" type: Promoted failedChecks: 0 iterations: 0 lastAppliedSpec: 658bbf784f lastPromotedSpec: 658bbf784f lastTransitionTime: "2020-07-03T13:36:22Z" phase: Initialized trackedConfigs: {} <|endoftext|> # istio_kiali-update-v2.21.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** Kiali addon to version v2.21.0. <|endoftext|> # argocd_examples_services.yaml --- apiVersion: v1 kind: Service metadata: name: {{ template "helm-guestbook.fullname" . }} labels: app: {{ template "helm-guestbook.name" . }} chart: {{ template "helm-guestbook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: http protocol: TCP name: http selector: app: {{ template "helm-guestbook.name" . }} release: {{ .Release.Name }} --- apiVersion: v1 kind: Service metadata: name: {{ template "helm-guestbook.fullname" . }}-preview labels: app: {{ template "helm-guestbook.name" . }} chart: {{ template "helm-guestbook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: http protocol: TCP name: http selector: app: {{ template "helm-guestbook.name" . }} release: {{ .Release.Name }} <|endoftext|> # istio_35429.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 35429 releaseNotes: - | **Added** `istioctl analyze` will display a warning when service of type ExternalName have invalid port name or port name is tcp. <|endoftext|> # argocd_source_progressing_pods_not_ready.yaml apiVersion: rabbitmq.com/v1beta1 kind: RabbitmqCluster metadata: labels: app: example-rabbitmq name: example-rabbitmq namespace: example spec: image: docker.io/bitnami/rabbitmq:3.10.7-debian-11-r8 persistence: storage: 32Gi storageClassName: default rabbitmq: replicas: 3 resources: limits: cpu: 250m memory: 1792Mi requests: cpu: 250m memory: 1792Mi service: type: ClusterIP status: conditions: - lastTransitionTime: "2023-08-30T07:44:34Z" reason: NotAllPodsReady message: 1/3 Pods ready status: "False" type: AllReplicasReady - lastTransitionTime: "2023-08-30T07:37:06Z" reason: AtLeastOneEndpointAvailable status: "True" type: ClusterAvailable - lastTransitionTime: "2023-08-30T07:33:06Z" reason: NoWarnings status: "True" type: NoWarnings - lastTransitionTime: "2023-08-30T07:44:39Z" message: Finish reconciling reason: Success status: "True" type: ReconcileSuccess <|endoftext|> # k8s_examples_portworx-volume-pvc.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvc0001 spec: accessModes: - ReadWriteOnce resources: requests: storage: 2Gi <|endoftext|> # istio_json-log-sort.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Improved** JSON access logs to emit keys in a stable ordering. <|endoftext|> # istio_https-probes.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 livenessProbe: httpGet: port: http readinessProbe: httpGet: port: 3333 scheme: HTTPS - name: world image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 90 livenessProbe: httpGet: port: http readinessProbe: exec: command: - cat - /tmp/healthy <|endoftext|> # k8s_examples_cinder-web.yaml apiVersion: v1 kind: Pod metadata: name: cinder-web spec: containers: - name: web image: nginx ports: - name: web containerPort: 80 protocol: tcp volumeMounts: - name: html-volume mountPath: "/usr/share/nginx/html" volumes: - name: html-volume cinder: # Enter the volume ID below volumeID: volume_ID fsType: ext4 <|endoftext|> # istio_hello-openshift-tproxy.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello namespace: test-ns spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable annotations: sidecar.istio.io/interceptionMode: TPROXY spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_docs_baseline-psp.yaml apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: baseline annotations: # Optional: Allow the default AppArmor profile, requires setting the default. apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default' apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default' seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*' spec: privileged: false # The moby default capability set, minus NET_RAW allowedCapabilities: - 'CHOWN' - 'DAC_OVERRIDE' - 'FSETID' - 'FOWNER' - 'MKNOD' - 'SETGID' - 'SETUID' - 'SETFCAP' - 'SETPCAP' - 'NET_BIND_SERVICE' - 'SYS_CHROOT' - 'KILL' - 'AUDIT_WRITE' # Allow all volume types except hostpath volumes: # 'core' volume types - 'configMap' - 'emptyDir' - 'projected' - 'secret' - 'downwardAPI' # Assume that ephemeral CSI drivers & persistentVolumes set up by the cluster admin are safe to use. - 'csi' - 'persistentVolumeClaim' - 'ephemeral' # Allow all other non-hostpath volume types. - 'awsElasticBlockStore' - 'azureDisk' - 'azureFile' - 'cephFS' - 'cinder' - 'fc' - 'flexVolume' - 'flocker' - 'gcePersistentDisk' - 'gitRepo' - 'glusterfs' - 'iscsi' - 'nfs' - 'photonPersistentDisk' - 'portworxVolume' - 'quobyte' - 'rbd' - 'scaleIO' - 'storageos' - 'vsphereVolume' hostNetwork: false hostIPC: false hostPID: false readOnlyRootFilesystem: false runAsUser: rule: 'RunAsAny' seLinux: # This policy assumes the nodes are using AppArmor rather than SELinux. # The PSP SELinux API cannot express the SELinux Pod Security Standards, # so if using SELinux, you must choose a more restrictive default. rule: 'RunAsAny' supplementalGroups: rule: 'RunAsAny' fsGroup: rule: 'RunAsAny' <|endoftext|> # argocd_source_healthy_newWorkloadGeneration.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "1" rollout.argoproj.io/workload-generation: "1" creationTimestamp: "2021-07-27T12:14:11Z" generation: 3 name: rollout-ref-deployment namespace: default resourceVersion: "4220" uid: a3d1d224-ac4f-4f84-9274-e01e1d43b036 spec: replicas: 5 strategy: canary: steps: - setWeight: 20 - pause: duration: 10s workloadRef: apiVersion: apps/v1 kind: Deployment name: rollout-ref-deployment status: HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: {} collisionCount: 1 conditions: - lastTransitionTime: "2021-07-27T12:14:21Z" lastUpdateTime: "2021-07-27T12:14:21Z" message: RolloutCompleted reason: RolloutCompleted status: "True" type: Completed - lastTransitionTime: "2021-07-27T12:14:11Z" lastUpdateTime: "2021-07-27T12:14:21Z" message: ReplicaSet "rollout-ref-deployment-75bbd56864" has successfully progressed. reason: NewReplicaSetAvailable status: "True" type: Progressing - lastTransitionTime: "2021-07-27T12:14:21Z" lastUpdateTime: "2021-07-27T12:14:21Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available currentPodHash: 75bbd56864 currentStepHash: 55f5d87bd9 currentStepIndex: 2 observedGeneration: "3" phase: Healthy readyReplicas: 5 replicas: 5 selector: app=rollout-ref-deployment stableRS: 75bbd56864 updatedReplicas: 5 workloadObservedGeneration: "1" <|endoftext|> # istio_36817.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Added** Implement OpenTelemetry Access Log. <|endoftext|> # flux_source_deployment-diff.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: podinfo-diff namespace: default spec: minReadySeconds: 3 revisionHistoryLimit: 5 progressDeadlineSeconds: 60 strategy: rollingUpdate: maxUnavailable: 0 type: RollingUpdate selector: matchLabels: app: podinfo template: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/port: "9797" labels: app: podinfo spec: containers: - name: podinfod image: ghcr.io/stefanprodan/podinfo:6.0.10 imagePullPolicy: IfNotPresent ports: - name: http containerPort: 9898 protocol: TCP - name: http-metrics containerPort: 9797 protocol: TCP - name: grpc containerPort: 9999 protocol: TCP command: - ./podinfo - --port=9898 - --port-metrics=9797 - --grpc-port=9999 - --grpc-service-name=podinfo - --level=info - --random-delay=false - --random-error=false env: - name: PODINFO_UI_COLOR value: "#34577c" livenessProbe: exec: command: - podcli - check - http - localhost:9898/healthz initialDelaySeconds: 5 timeoutSeconds: 5 readinessProbe: exec: command: - podcli - check - http - localhost:9898/readyz initialDelaySeconds: 5 timeoutSeconds: 5 resources: limits: cpu: 2000m memory: 512Mi requests: cpu: 100m memory: 64Mi <|endoftext|> # helm_charts_analyzer_configmap.yaml {{- $component := "analyzer" -}} kind: ConfigMap apiVersion: v1 metadata: name: {{ template "anchore-engine.analyzer.fullname" . }} labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: {{ $component }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} data: analyzer_config.yaml: | {{- with .Values.anchoreAnalyzer.configFile }} {{- toYaml . | nindent 4 }} {{- end }} <|endoftext|> # istio_51800.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 51800 releaseNotes: - | **Fixed** VirtualMachine WorkloadEntry locality label missing during autoregistration. <|endoftext|> # istio_envoy-filter-add-operation.yaml # If the patch operation is ADD and the applyTo is set to ROUTE_CONFIGURATION or HTTP_ROUTE, then an error will occur apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: test-auth-1 namespace: bookinfo spec: configPatches: - applyTo: HTTP_FILTER match: context: SIDECAR_INBOUND patch: operation: ADD filterClass: AUTHZ # This filter will run *after* the Istio authz filter. value: name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz grpc_service: envoy_grpc: cluster_name: acme-ext-authz initial_metadata: - key: foo value: myauth.acme # required by local ext auth server. --- apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: test-auth-2 namespace: bookinfo spec: configPatches: - applyTo: ROUTE_CONFIGURATION match: context: SIDECAR_INBOUND patch: operation: ADD filterClass: AUTHZ # This filter will run *after* the Istio authz filter. value: name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz grpc_service: envoy_grpc: cluster_name: acme-ext-authz initial_metadata: - key: foo value: myauth.acme # required by local ext auth server. --- apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: test-auth-3 namespace: bookinfo spec: configPatches: - applyTo: HTTP_ROUTE match: context: SIDECAR_INBOUND patch: operation: ADD filterClass: AUTHZ # This filter will run *after* the Istio authz filter. value: name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz grpc_service: envoy_grpc: cluster_name: acme-ext-authz initial_metadata: - key: foo value: myauth.acme # required by local ext auth server. --- apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: test-auth-4 namespace: bookinfo spec: configPatches: - applyTo: HTTP_FILTER match: context: SIDECAR_INBOUND proxy: proxyVersion: '^1\.11.*' app: add4 patch: operation: ADD filterClass: AUTHZ # This filter will run *after* the Istio authz filter. value: name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz grpc_service: envoy_grpc: cluster_name: acme-ext-authz initial_metadata: - key: foo value: myauth.acme # required by local ext auth server. --- apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: test-auth-5 namespace: bookinfo spec: configPatches: - applyTo: HTTP_FILTER match: context: SIDECAR_INBOUND app: add5 patch: operation: ADD filterClass: AUTHZ # This filter will run *after* the Istio authz filter. value: name: envoy.filters.http.ext_authz typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthz grpc_service: envoy_grpc: cluster_name: acme-ext-authz initial_metadata: - key: foo value: myauth.acme # required by local ext auth server. <|endoftext|> # istio_29608.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 29608 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Fixed** empty service ports for customized gateway. <|endoftext|> # istio_38021.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** pod full name to IST0103 analysis message. <|endoftext|> # k8s_examples_iscsi.yaml --- apiVersion: v1 kind: Pod metadata: name: iscsipd spec: containers: - name: iscsipd-rw image: kubernetes/pause volumeMounts: - mountPath: "/mnt/iscsipd" name: iscsipd-rw volumes: - name: iscsipd-rw iscsi: targetPortal: 10.0.2.15:3260 portals: ['10.0.2.16:3260', '10.0.2.17:3260'] iqn: iqn.2001-04.com.example:storage.kube.sys1.xyz lun: 0 fsType: ext4 readOnly: true <|endoftext|> # helm_charts_ingress-gateway.yaml {{- if .Values.ingressGateway.enabled -}} {{- $serviceName := include "ipfs.fullname" . -}} apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: labels: app: {{ template "ipfs.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "ipfs.fullname" . }}-gateway annotations: {{- range $key, $value := .Values.ingressGateway.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: {{- range .Values.ingressGateway.hosts }} {{- $url := splitList "/" . }} - host: {{ first $url | quote }} http: paths: - path: /{{ rest $url | join "/" }} backend: serviceName: {{ $serviceName }} servicePort: 8080 {{- end -}} {{- if .Values.ingressGateway.tls }} tls: {{ toYaml .Values.ingressGateway.tls | indent 4 }} {{- end -}} {{- end -}} <|endoftext|> # k8s_docs_quota-mem-cpu-pod.yaml apiVersion: v1 kind: Pod metadata: name: quota-mem-cpu-demo spec: containers: - name: quota-mem-cpu-demo-ctr image: nginx resources: limits: memory: "800Mi" cpu: "800m" requests: memory: "600Mi" cpu: "400m" <|endoftext|> # helm_charts_ethstats.secret.yaml apiVersion: v1 kind: Secret metadata: name: {{ template "ethereum.fullname" . }}-ethstats labels: app: {{ template "ethereum.name" . }} chart: {{ template "ethereum.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: WS_SECRET: {{ .Values.ethstats.webSocketSecret | b64enc | quote }} <|endoftext|> # k8s_examples_sc.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: sio-small provisioner: kubernetes.io/scaleio parameters: gateway: https://localhost:443/api system: scaleio protectionDomain: pd01 storagePool: pd01 secretRef: sio-secret fsType: xfs <|endoftext|> # grafana_charts_statefulset-index-gateway.yaml {{- if .Values.indexGateway.enabled }} apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "loki.indexGatewayFullname" . }} labels: {{- include "loki.indexGatewayLabels" . | nindent 4 }} {{- with .Values.loki.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: replicas: {{ .Values.indexGateway.replicas }} updateStrategy: rollingUpdate: partition: 0 serviceName: {{ include "loki.indexGatewayFullname" . }}-headless revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} {{- if and (semverCompare ">= 1.23-0" .Capabilities.KubeVersion.Version) (.Values.indexGateway.persistence.enableStatefulSetAutoDeletePVC) }} {{/* Data on the read nodes is easy to replace, so we want to always delete PVCs to make operation easier, and will rely on re-fetching data when needed. */}} persistentVolumeClaimRetentionPolicy: whenDeleted: {{ .Values.indexGateway.persistence.whenDeleted }} whenScaled: {{ .Values.indexGateway.persistence.whenScaled }} {{- end }} selector: matchLabels: {{- include "loki.indexGatewaySelectorLabels" . | nindent 6 }} template: metadata: annotations: {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.indexGateway.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "loki.indexGatewaySelectorLabels" . | nindent 8 }} {{- with .Values.loki.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.indexGateway.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.indexGateway.joinMemberlist }} app.kubernetes.io/part-of: memberlist {{- end }} spec: serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.indexGateway.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- include "loki.indexGatewayPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.indexGateway.terminationGracePeriodSeconds }} {{- with .Values.indexGateway.initContainers }} initContainers: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: index-gateway image: {{ include "loki.indexGatewayImage" . }} imagePullPolicy: {{ .Values.loki.image.pullPolicy }} args: - -config.file=/etc/loki/config/config.yaml - -target=index-gateway {{- with .Values.indexGateway.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} ports: - name: http containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP {{- if .Values.indexGateway.joinMemberlist }} - name: http-memberlist containerPort: 7946 protocol: TCP {{- end }} {{- with .Values.indexGateway.extraEnv }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.indexGateway.extraEnvFrom }} envFrom: {{- toYaml . | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.loki.containerSecurityContext | nindent 12 }} readinessProbe: {{- toYaml .Values.loki.readinessProbe | nindent 12 }} livenessProbe: {{- toYaml .Values.loki.livenessProbe | nindent 12 }} volumeMounts: - name: config mountPath: /etc/loki/config - name: runtime-config mountPath: /var/{{ include "loki.name" . }}-runtime - name: data mountPath: /var/loki {{- with .Values.indexGateway.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} resources: {{- toYaml .Values.indexGateway.resources | nindent 12 }} {{- if .Values.indexGateway.extraContainers }} {{- toYaml .Values.indexGateway.extraContainers | nindent 8}} {{- end }} {{- with .Values.indexGateway.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.indexGateway.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.indexGateway.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- if .Values.loki.existingSecretForConfig }} secret: secretName: {{ .Values.loki.existingSecretForConfig }} {{- else if .Values.loki.configAsSecret }} secret: secretName: {{ include "loki.fullname" . }}-config {{- else }} configMap: name: {{ include "loki.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "loki.fullname" . }}-runtime {{- with .Values.indexGateway.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- if not .Values.indexGateway.persistence.enabled }} - name: data emptyDir: {} {{- else if .Values.indexGateway.persistence.inMemory }} - name: data {{- if .Values.indexGateway.persistence.inMemory }} emptyDir: medium: Memory {{- end }} {{- if .Values.indexGateway.persistence.size }} sizeLimit: {{ .Values.indexGateway.persistence.size }} {{- end }} {{- else }} volumeClaimTemplates: - metadata: name: data {{- with .Values.indexGateway.persistence.annotations }} annotations: {{- . | toYaml | nindent 10 }} {{- end }} spec: accessModes: - ReadWriteOnce {{- with .Values.indexGateway.persistence.storageClass }} storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }} {{- end }} resources: requests: storage: {{ .Values.indexGateway.persistence.size | quote }} {{- end }} {{- end }} <|endoftext|> # istio_bookinfo-ingress.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ########################################################################### # Ingress resource (gateway) ########################################################################## apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: gateway annotations: kubernetes.io/ingress.class: "istio" spec: rules: - http: paths: - path: /productpage pathType: Exact backend: service: name: productpage port: number: 9080 - path: /static/ pathType: Prefix backend: service: name: productpage port: number: 9080 - path: /login pathType: Exact backend: service: name: productpage port: number: 9080 - path: /logout pathType: Exact backend: service: name: productpage port: number: 9080 - path: /api/v1/products pathType: Prefix backend: service: name: productpage port: number: 9080 --- <|endoftext|> # argocd_source_argocd-server-sa.yaml apiVersion: v1 kind: ServiceAccount metadata: labels: app.kubernetes.io/name: argocd-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: server name: argocd-server <|endoftext|> # argocd_source_degraded-not-synced.yaml apiVersion: capabilities.3scale.net/v1beta1 kind: Backend status: conditions: - status: "False" type: Failed - status: "False" type: Invalid - status: "False" type: Synced reason: SynchronizationFailed <|endoftext|> # istio_57530.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 57530 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** `DISABLE_SHADOW_HOST_SUFFIX` environment variable to control shadow host suffix behavior in mirror policies. When set to `true` (default), shadow host suffixes are added to hostnames of mirrored requests. When set to `true`, shadow host suffixes are not added. This provides backward compatibility for users upgrading from older Istio versions where shadow host suffixes were added by default via compatibility profiles. <|endoftext|> # kustomize_service.yaml apiVersion: v1 kind: Service metadata: name: test-service-simple spec: selector: app: deployment-simple ports: - protocol: TCP port: 80 targetPort: 8080 <|endoftext|> # istio_nds-merging.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/pull/43152 releaseNotes: - | **Fixed** an issue where sidecars do not proxy DNS properly for a hostname backed by multiple services. <|endoftext|> # helm_charts_yarn-rm-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "hadoop.fullname" . }}-yarn-rm annotations: checksum/config: {{ include (print $.Template.BasePath "/hadoop-configmap.yaml") . | sha256sum }} labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: yarn-rm spec: serviceName: {{ include "hadoop.fullname" . }}-yarn-rm replicas: 1 selector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: yarn-rm template: metadata: labels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: yarn-rm spec: affinity: podAntiAffinity: {{- if eq .Values.antiAffinity "hard" }} requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name | quote }} component: yarn-rm {{- else if eq .Values.antiAffinity "soft" }} preferredDuringSchedulingIgnoredDuringExecution: - weight: 5 podAffinityTerm: topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name | quote }} component: yarn-rm {{- end }} terminationGracePeriodSeconds: 0 containers: - name: yarn-rm image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} ports: - containerPort: 8088 name: web command: - "/bin/bash" - "/tmp/hadoop-config/bootstrap.sh" - "-d" resources: {{ toYaml .Values.yarn.resourceManager.resources | indent 10 }} readinessProbe: httpGet: path: /ws/v1/cluster/info port: 8088 initialDelaySeconds: 5 timeoutSeconds: 2 livenessProbe: httpGet: path: /ws/v1/cluster/info port: 8088 initialDelaySeconds: 10 timeoutSeconds: 2 volumeMounts: - name: hadoop-config mountPath: /tmp/hadoop-config volumes: - name: hadoop-config configMap: name: {{ include "hadoop.fullname" . }} <|endoftext|> # istio_gateway-service-selector-labels.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** `service.selectorLabels` field to gateway Helm chart for custom service selector labels during revision-based migrations. <|endoftext|> # cert_manager_cluster.yaml # This kind config is unversioned as we are using it to create kind clusters with a range of different versions of Kubernetes. Having the config unversioned allows kind to choose a suitable API version, see https://github.com/kubernetes-sigs/kind/issues/1839#issuecomment-1148968204 # When making changes to this file ensure that the change works with all currently supported versions of Kubernetes. # # When making any changes to this file, make sure it works with all supported versions of Kubernetes. # The --unsafe-no-fsync decreases the load on the pod's filesystem [1], which in # turn decreases the end-to-end tests duration. It is OK for us to use this flag # because we are using a one-node etcd cluster. The fsync feature is used for # the raft consensus protocol and is thus only useful when using 3 or more etcd # nodes. # # [1]: https://github.com/etcd-io/etcd/pull/11946 [2]: # https://etcd.io/docs/v3.5/tuning/#disk [3]: https://etcd.io/docs/v3.5/faq/ # # Custom service subnet allows us to have a fixed/predictable clusterIP for # various addon Services such as ingress-nginx, Gateway etc. # TODO: parameterize the service subnet range instead of hardcoding it so that it is defined in one place only # It could be interpolated with ytt like for addons i.e https://github.com/cert-manager/cert-manager/blob/134398e939bb2b1401697eaf589405ad469cd609/make/e2e-setup.mk#L379 # # TIP: If you are running kind on a computer with corporate MITM VPN, you can add # the MITM certs to the kind trust store by adding these extra mounts to the control-plane node: # nodes: # - role: control-plane # extraMounts: # - hostPath: /etc/ssl/certs # containerPath: /etc/ssl/certs apiVersion: kind.x-k8s.io/v1alpha4 kind: Cluster kubeadmConfigPatches: - | kind: ClusterConfiguration metadata: name: config etcd: local: extraArgs: unsafe-no-fsync: "true" networking: serviceSubnet: 10.0.0.0/16 nodes: - role: control-plane <|endoftext|> # istio_44481.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 44469 releaseNotes: - | **Added** support for `PodDisruptionBudget` (PDB) in the Gateway chart. <|endoftext|> # grafana_charts_deployment-querier.yaml {{ $dict := dict "ctx" . "component" "querier" "memberlist" true }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.querier.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: minReadySeconds: {{ .Values.querier.minReadySeconds }} {{- if not .Values.querier.autoscaling.enabled }} replicas: {{ .Values.querier.replicas }} {{- end }} revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }} selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} strategy: rollingUpdate: maxSurge: {{ .Values.querier.maxSurge }} maxUnavailable: {{ .Values.querier.rollingUpdate.maxUnavailable }} template: metadata: labels: {{- include "tempo.podLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.querier.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} {{- with .Values.tempo.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.querier.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if or (.Values.querier.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.querier.priorityClassName .Values.global.priorityClassName }} {{- end }} serviceAccountName: {{ include "tempo.serviceAccountName" . }} {{- with .Values.tempo.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} enableServiceLinks: false {{- include "tempo.querierImagePullSecrets" . | nindent 6 -}} {{- with .Values.querier.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} initContainers: {{- toYaml .Values.querier.initContainers | nindent 8 }} containers: - args: - -target=querier - -config.file=/conf/tempo.yaml {{- with .Values.querier.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.imageReference" $dict }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: querier ports: - containerPort: {{ include "tempo.memberlistBindPort" . }} name: http-memberlist protocol: TCP - containerPort: 3200 name: http-metrics {{- if or .Values.global.extraEnv .Values.querier.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.querier.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.querier.extraEnvFrom }} envFrom: {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.querier.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} resources: {{- toYaml .Values.querier.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.tempo.livenessProbe }} livenessProbe: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.tempo.readinessProbe }} readinessProbe: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config - mountPath: /runtime-config name: runtime-config - mountPath: /var/tempo name: tempo-querier-store {{- if .Values.enterprise.enabled }} - name: license mountPath: /license {{- end }} {{- with .Values.querier.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} terminationGracePeriodSeconds: {{ .Values.querier.terminationGracePeriodSeconds }} {{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }} {{- with .Values.querier.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- with .Values.querier.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.querier.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.querier.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- include "tempo.configVolume" . | nindent 10 }} - name: runtime-config {{- include "tempo.runtimeVolume" . | nindent 10 }} - name: tempo-querier-store emptyDir: {} {{- if .Values.enterprise.enabled }} - name: license secret: secretName: {{ tpl .Values.license.secretName . }} {{- end }} {{- with .Values.querier.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} <|endoftext|> # argocd_source_progressing-3.yaml apiVersion: apps.3scale.net/v1alpha1 kind: APIManager status: conditions: - status: "False" type: Available deployments: ready: - a starting: - b - c <|endoftext|> # istio_54180.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 49009 releaseNotes: - | **Added** Ability to safely restart/upgrade the system-node-critical `istio-cni` node agent Daemonset in-place. This works by preventing new pods from starting on the node while `istio-cni` is being restarted or upgraded. This feature is enabled by default and can be disabled by setting the environment variable `AMBIENT_DISABLE_SAFE_UPGRADE=true` in `istio-cni`. <|endoftext|> # helm_charts_ss.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: "{{ template "redis-cache.fullname" . }}" labels: app: {{ template "redis-cache.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: selector: matchLabels: app: {{ template "redis-cache.name" . }} release: "{{ .Release.Name }}" serviceName: "{{ template "redis-cache.fullname" . }}" replicas: {{ .Values.replicaCount }} template: metadata: labels: app: {{ template "redis-cache.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: terminationGracePeriodSeconds: 60 affinity: podAntiAffinity: {{- if eq .Values.antiAffinity "hard" }} requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: {{ template "redis-cache.name" . }} release: {{ .Release.Name | quote }} {{- else if eq .Values.antiAffinity "soft" }} preferredDuringSchedulingIgnoredDuringExecution: - weight: 5 podAffinityTerm: labelSelector: matchLabels: app: {{ template "redis-cache.name" . }} release: {{ .Release.Name | quote }} topologyKey: "kubernetes.io/hostname" {{- end }} initContainers : - name: sentinel-micro image: {{ .Values.microSentinel.image.repository }}:{{ .Values.microSentinel.image.tag }} imagePullPolicy: {{ .Values.microSentinel.image.pullPolicy }} args: ["-service",{{ template "redis-cache.fullname" . }}] resources: {{ toYaml .Values.microSentinel.resources | indent 12 }} env: - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: "v1" fieldPath: metadata.namespace volumeMounts: - name: config mountPath: /config containers: - name: redis image: {{ .Values.redis.image.repository }}:{{ .Values.redis.image.tag }} imagePullPolicy: {{ .Values.redis.image.pullPolicy }} ports: - containerPort: {{ .Values.service.port }} name: {{ .Values.service.name }} resources: {{ toYaml .Values.redis.resources | indent 12 }} - name: make-slave image: {{ .Values.makeSlave.image.repository }}:{{ .Values.makeSlave.image.tag }} imagePullPolicy: {{ .Values.makeSlave.image.pullPolicy }} resources: {{ toYaml .Values.makeSlave.resources | indent 12 }} env: - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: "v1" fieldPath: metadata.namespace volumeMounts: - name: config mountPath: /config volumes: - name: config emptyDir: {} <|endoftext|> # istio_pilot-dupe-ip.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue causing stale endpoints when the same IP address was present in multiple `WorkloadEntries`. <|endoftext|> # k8s_docs_frontend.yaml apiVersion: apps/v1 kind: ReplicaSet metadata: name: frontend labels: app: guestbook tier: frontend spec: # ケースに応じてレプリカを修正する replicas: 3 selector: matchLabels: tier: frontend template: metadata: labels: tier: frontend spec: containers: - name: php-redis image: gcr.io/google_samples/gb-frontend:v3 <|endoftext|> # argocd_source_git-directories-example.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-addons namespace: argocd spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - git: repoURL: https://github.com/argoproj/argo-cd.git revision: HEAD directories: - path: applicationset/examples/git-generator-directory/cluster-addons/* template: metadata: name: '{{.path.basename}}' spec: project: "my-project" source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: '{{.path.path}}' destination: server: https://kubernetes.default.svc namespace: '{{.path.basename}}' syncPolicy: syncOptions: - CreateNamespace=true <|endoftext|> # helm_charts_bom.yaml {{ if .Values.halyard.bom -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "spinnaker.fullname" . }}-halyard-bom labels: {{ include "spinnaker.standard-labels" . | indent 4 }} data: {{ .Values.halyard.spinnakerVersion }}.yml: {{ .Values.halyard.bom | toYaml | indent 4 }} {{- end }} <|endoftext|> # istio_52055.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 51704 releaseNotes: - | **Added** retry policy for inbound requests that automatically resets the requests that the service has not seen/processed. It can be reverted by setting "ENABLE_INBOUND_RETRY_POLICY" to false. <|endoftext|> # argocd_source_failedExperiment.yaml apiVersion: argoproj.io/v1alpha1 kind: Experiment metadata: name: example-experiment namespace: default spec: analyses: - name: test templateName: analysis-template duration: 60 templates: - name: baseline selector: matchLabels: app: rollouts-demo color: blue template: metadata: labels: app: rollouts-demo color: blue spec: containers: - image: 'argoproj/rollouts-demo:blue' name: guestbook status: analysisRuns: - analysisRun: example-experiment-test-57vl8 name: test phase: Failed availableAt: '2019-10-28T20:58:00Z' conditions: - lastTransitionTime: '2019-10-28T20:57:58Z' lastUpdateTime: '2019-10-28T20:58:01Z' message: Experiment "example-experiment" is running. reason: NewReplicaSetAvailable phase: 'True' type: Progressing phase: Failed templateStatuses: - availableReplicas: 0 lastTransitionTime: '2019-10-28T20:58:01Z' name: baseline readyReplicas: 0 replicas: 0 phase: Successful updatedReplicas: 0 - availableReplicas: 0 lastTransitionTime: '2019-10-28T20:58:01Z' name: canary readyReplicas: 0 replicas: 0 phase: Successful updatedReplicas: 0 <|endoftext|> # grafana_charts_compactor-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "enterprise-metrics.fullname" . }}-compactor labels: app: {{ template "enterprise-metrics.name" . }}-compactor chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.compactor.service.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.compactor.service.annotations | nindent 4 }} spec: type: ClusterIP ports: - port: {{ .Values.config.server.http_listen_port }} protocol: TCP name: http-metrics targetPort: http-metrics - port: {{ .Values.config.server.grpc_listen_port }} protocol: TCP name: grpc targetPort: grpc selector: app: {{ template "enterprise-metrics.name" . }}-compactor release: {{ .Release.Name }} <|endoftext|> # istio_optimize-gatewayPortNotOnWorkload.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Added** IST0162 `GatewayPortNotDefinedOnService` message to detect the issue where Gateway port was not exposed by Service. <|endoftext|> # k8s_examples_chap-secret.yaml --- apiVersion: v1 kind: Secret metadata: name: chap-secret type: "kubernetes.io/iscsi-chap" data: discovery.sendtargets.auth.username: dXNlcg== discovery.sendtargets.auth.password: ZGVtbw== discovery.sendtargets.auth.username_in: bXVzZXI= discovery.sendtargets.auth.password_in: bXBhc3M= node.session.auth.username: dXNlcm5hbWU= node.session.auth.password: cGFzc3dvcmQ= node.session.auth.username_in: bXVzZXIy node.session.auth.password_in: bXBhc3My <|endoftext|> # k8s_examples_zeppelin-service.yaml kind: Service apiVersion: v1 metadata: name: zeppelin spec: ports: - port: 80 targetPort: 8080 selector: component: zeppelin type: LoadBalancer <|endoftext|> # helm_charts_insight-executor-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "insight-executor.fullname" . }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.insightExecutor.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: type: {{ .Values.insightExecutor.service.type }} ports: - name: http port: {{ .Values.insightExecutor.internalPort }} targetPort: {{ .Values.insightExecutor.externalPort }} protocol: TCP selector: app: {{ template "mission-control.name" . }} component: "{{ .Values.insightExecutor.name }}" release: {{ .Release.Name }} <|endoftext|> # helm_charts_deletebackuprequests.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: deletebackuprequests.velero.io labels: app.kubernetes.io/name: "velero" annotations: "helm.sh/hook": crd-install "helm.sh/hook-delete-policy": "before-hook-creation" spec: group: velero.io version: v1 scope: Namespaced names: plural: deletebackuprequests kind: DeleteBackupRequest <|endoftext|> # argocd_source_healthy_executedAllSteps.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"argoproj.io/v1alpha1","kind":"Rollout","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"guestbook-canary","ksonnet.io/component":"guestbook-ui"},"name":"guestbook-canary","namespace":"default"},"spec":{"minReadySeconds":10,"replicas":5,"selector":{"matchLabels":{"app":"guestbook-canary"}},"strategy":{"canary":{"maxSurge":1,"maxUnavailable":0,"steps":[{"setWeight":20},{"pause":{"duration":30}},{"setWeight":40},{"pause":{}}]}},"template":{"metadata":{"labels":{"app":"guestbook-canary"}},"spec":{"containers":[{"image":"quay.io/argoprojlabs/argocd-e2e-container:0.1","name":"guestbook-canary","ports":[{"containerPort":80}]}]}}}} rollout.argoproj.io/revision: '1' clusterName: '' creationTimestamp: '2019-05-01T21:55:30Z' generation: 1 labels: app.kubernetes.io/instance: guestbook-canary ksonnet.io/component: guestbook-ui name: guestbook-canary namespace: default resourceVersion: '955764' selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/guestbook-canary uid: d6105ccd-6c5b-11e9-b8d7-025000000001 spec: minReadySeconds: 10 replicas: 5 selector: matchLabels: app: guestbook-canary strategy: canary: maxSurge: 1 maxUnavailable: 0 steps: - setWeight: 20 - pause: duration: 30 - setWeight: 40 - pause: {} template: metadata: creationTimestamp: null labels: app: guestbook-canary spec: containers: - image: 'quay.io/argoprojlabs/argocd-e2e-container:0.1' name: guestbook-canary ports: - containerPort: 80 resources: {} status: HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: {} conditions: - lastTransitionTime: '2019-05-01T21:55:30Z' lastUpdateTime: '2019-05-01T21:55:58Z' message: ReplicaSet "guestbook-canary-84ccfddd66" has successfully progressed. reason: NewReplicaSetAvailable status: 'True' type: Progressing - lastTransitionTime: '2019-05-01T21:55:58Z' lastUpdateTime: '2019-05-01T21:55:58Z' message: Rollout has minimum availability reason: AvailableReason status: 'True' type: Available currentPodHash: 84ccfddd66 currentStepHash: 5f8fbdf7bb currentStepIndex: 4 observedGeneration: c45557fd9 readyReplicas: 5 replicas: 5 selector: app=guestbook-canary stableRS: 84ccfddd66 updatedReplicas: 5 <|endoftext|> # istio_56529.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 56529 releaseNotes: - | **Added** CRL support for plugged-in CA, enabling Istio to watch for ca-crl.pem files and automatically distribute Certificate Revocation Lists across all namespaces in the cluster. This enhancement allows proxies to validate and reject revoked certificates, strengthening the security posture of service mesh deployments using plugged-in CAs. <|endoftext|> # helm_charts_disruption_budget.yaml apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ template "unbound.fullname" . }} labels: app: {{ template "unbound.name" . }} chart: {{ template "unbound.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: maxUnavailable: 1 selector: matchLabels: app: {{ template "unbound.name" . }} release: {{ .Release.Name }} <|endoftext|> # k8s_examples_storageclass-managed-ssd.yaml kind: StorageClass apiVersion: storage.k8s.io/v1beta1 metadata: name: managedssd provisioner: kubernetes.io/azure-disk parameters: storageaccounttype: Premium_LRS kind: Managed <|endoftext|> # helm_charts_prometheus-config.yaml {{- if and .Values.istio.install (not .Release.IsInstall) -}} {{ if .Values.addons.prometheus.enabled }} {{- $serviceName := include "istio.name" . -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ $serviceName }}-{{ .Values.addons.prometheus.deployment.name }} labels: {{ include "istio.labels.standard" . | indent 4 }} data: prometheus.yml: |- global: scrape_interval: 15s scrape_configs: - job_name: 'istio-mesh' # Override the global default and scrape targets from this job every 5 seconds. scrape_interval: 5s # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['{{ $serviceName }}-{{ .Values.mixer.deployment.name }}.{{ .Release.Namespace }}:{{ .Values.mixer.service.externalPrometheusPort }}'] - job_name: 'envoy' # Override the global default and scrape targets from this job every 5 seconds. scrape_interval: 5s # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['{{ $serviceName }}-{{ .Values.mixer.deployment.name }}.{{ .Release.Namespace }}:{{ .Values.mixer.service.externalStatsdPromPort }}'] - job_name: 'mixer' # Override the global default and scrape targets from this job every 5 seconds. scrape_interval: 5s # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ['{{ $serviceName }}-{{ .Values.mixer.deployment.name }}.{{ .Release.Namespace }}:{{ .Values.mixer.service.externalHttpHeathPort }}'] {{ end }} {{- end -}} <|endoftext|> # istio_all_on.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: base: enabled: true pilot: enabled: true cni: enabled: false ingressGateways: - namespace: istio-system name: istio-ingressgateway enabled: true egressGateways: - namespace: istio-system name: istio-egressgateway enabled: true <|endoftext|> # k8s_docs_pod-projected-svc-token.yaml apiVersion: v1 kind: Pod metadata: name: nginx spec: containers: - image: nginx name: nginx volumeMounts: - mountPath: /var/run/secrets/tokens name: vault-token serviceAccountName: build-robot volumes: - name: vault-token projected: sources: - serviceAccountToken: path: vault-token expirationSeconds: 7200 audience: vault <|endoftext|> # kustomize_config.yaml # Copyright 2019 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 apiVersion: example.com/v1alpha1 kind: Foo a: c b: 1 <|endoftext|> # helm_charts_sar-clusterrole.yaml {{- if (and .Values.rbac.create .Values.sar.enabled) -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app: {{ template "opa.name" . }} chart: {{ template "opa.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} component: sar name: {{ template "opa.sarfullname" . }} rules: - apiGroups: - "authorization.k8s.io" resources: - subjectaccessreviews verbs: - create {{- end -}} <|endoftext|> # istio_54518.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 54518 releaseNotes: - | **Added** automatic detection of the default revision in `istioctl` commands. When `--revision` is not explicitly specified, the default revision (as configured by `istioctl tag set default`) will be used automatically. <|endoftext|> # argocd_source_pipeline.yaml apiVersion: numaflow.numaproj.io/v1alpha1 kind: Pipeline metadata: creationTimestamp: "2024-10-08T18:22:18Z" finalizers: - pipeline-controller generation: 1 name: simple-pipeline namespace: numaflow-system resourceVersion: "382381" uid: bb6cc91c-eb05-4fe7-9380-63b9532a85db labels: numaplane.numaproj.io/upgrade-state: "in-progress" annotations: numaflow.numaproj.io/allowed-resume-strategies: "slow, fast" spec: edges: - from: in to: cat - from: cat to: out lifecycle: deleteGracePeriodSeconds: 30 desiredPhase: Running pauseGracePeriodSeconds: 30 limits: bufferMaxLength: 30000 bufferUsageLimit: 80 readBatchSize: 500 readTimeout: 1s vertices: - name: in scale: min: 1 source: generator: duration: 1s jitter: 0s msgSize: 8 rpu: 5 updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate - name: cat scale: min: 1 udf: builtin: name: cat updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate - name: out scale: min: 1 sink: log: {} updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate watermark: disabled: false maxDelay: 0s status: conditions: - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: Configured - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: DaemonServiceHealthy - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: Deployed - lastTransitionTime: "2024-10-09T20:26:54Z" message: No Side Inputs attached to the pipeline reason: NoSideInputs status: "True" type: SideInputsManagersHealthy - lastTransitionTime: "2024-10-09T20:26:54Z" message: All vertices are healthy reason: Successful status: "True" type: VerticesHealthy lastUpdated: "2024-10-09T20:26:54Z" mapUDFCount: 1 observedGeneration: 1 phase: Running reduceUDFCount: 0 sinkCount: 1 sourceCount: 1 udfCount: 1 vertexCount: 3 <|endoftext|> # istio_46846.yaml apiVersion: release-notes/v2 kind: feature area: security releaseNotes: - | **Added** the capability to attach RequestAuthentication to Kubernetes `Gateway` resources via the `targetRef` field. <|endoftext|> # helm_source_master-configmap.yaml {{- if .Values.master.config }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "master.fullname" . }} labels: app: {{ template "mariadb.name" . }} component: "master" chart: {{ template "mariadb.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} data: my.cnf: |- {{ .Values.master.config | indent 4 }} {{- end -}} <|endoftext|> # helm_charts_default-cert-secret.yaml {{- if .Values.ssl.enabled }} apiVersion: v1 kind: Secret metadata: name: {{ template "traefik.fullname" . }}-default-cert labels: app: {{ template "traefik.name" . }} chart: {{ template "traefik.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} type: Opaque data: {{- if .Values.ssl.generateTLS }} {{- $ca := genCA "default-ca" 365 }} {{- $cn := default "example.com" .Values.ssl.defaultCN }} {{- $server := genSignedCert $cn ( default nil .Values.ssl.defaultIPList ) ( default nil .Values.ssl.defaultSANList ) 365 $ca }} tls.crt: {{ $server.Cert | b64enc }} tls.key: {{ $server.Key | b64enc }} {{- else }} tls.crt: {{ .Values.ssl.defaultCert }} tls.key: {{ .Values.ssl.defaultKey }} {{- end }} {{- end }} <|endoftext|> # istio_deny-empty-rule-in.yaml apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: deny-all namespace: foo spec: action: DENY selector: matchLabels: app: httpbin version: v1 rules: - {} <|endoftext|> # istio_istiod-helm-endpointslices.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 57037 releaseNotes: - | **Updated** the istiod helm chart to create EndpointSlice resources instead of Endpoints for remote istiod installs due to Endpoints' deprecation as of Kubernetes 1.33. <|endoftext|> # argocd_source_progressing_newWorkloadGeneration.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "1" rollout.argoproj.io/workload-generation: "2" creationTimestamp: "2021-07-27T12:14:11Z" generation: 3 name: rollout-ref-deployment namespace: default resourceVersion: "4220" uid: a3d1d224-ac4f-4f84-9274-e01e1d43b036 spec: replicas: 5 strategy: canary: steps: - setWeight: 20 - pause: duration: 10s workloadRef: apiVersion: apps/v1 kind: Deployment name: rollout-ref-deployment status: HPAReplicas: 5 availableReplicas: 5 blueGreen: {} canary: {} collisionCount: 1 conditions: - lastTransitionTime: "2021-07-27T12:14:21Z" lastUpdateTime: "2021-07-27T12:14:21Z" message: RolloutCompleted reason: RolloutCompleted status: "True" type: Completed - lastTransitionTime: "2021-07-27T12:14:11Z" lastUpdateTime: "2021-07-27T12:14:21Z" message: ReplicaSet "rollout-ref-deployment-75bbd56864" has successfully progressed. reason: NewReplicaSetAvailable status: "True" type: Progressing - lastTransitionTime: "2021-07-27T12:14:21Z" lastUpdateTime: "2021-07-27T12:14:21Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available currentPodHash: 75bbd56864 currentStepHash: 55f5d87bd9 currentStepIndex: 2 observedGeneration: "3" phase: Healthy readyReplicas: 5 replicas: 5 selector: app=rollout-ref-deployment stableRS: 75bbd56864 updatedReplicas: 5 workloadObservedGeneration: "1" <|endoftext|> # k8s_docs_nginx-svc.yaml apiVersion: v1 kind: Service metadata: name: my-nginx-svc labels: app: nginx spec: type: LoadBalancer ports: - port: 80 selector: app: nginx <|endoftext|> # helm_charts_distribution-pvc.yaml {{- if and .Values.distribution.persistence.enabled (not .Values.distribution.persistence.existingClaim) }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ template "distribution.fullname" . }} labels: app: {{ template "distribution.name" . }} chart: {{ template "distribution.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: accessModes: - {{ .Values.distribution.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.distribution.persistence.size }} {{- if .Values.distribution.persistence.storageClass }} {{- if (eq "-" .Values.distribution.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.distribution.persistence.storageClass }}" {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_operator-drop-dump.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Removed** `istioctl profile` command. The same information can be found in Istio documentation. <|endoftext|> # istio_bookinfo-ratings-v2-mysql.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v2-mysql labels: app: ratings version: v2-mysql spec: replicas: 1 selector: matchLabels: app: ratings version: v2-mysql template: metadata: labels: app: ratings version: v2-mysql spec: containers: - name: ratings image: registry.istio.io/release/examples-bookinfo-ratings-v2:1.20.3 imagePullPolicy: IfNotPresent env: # ratings-v2 will use mongodb as the default db backend. # if you would like to use mysqldb then you can use this file # which sets DB_TYPE = 'mysql' and the rest of the parameters shown # here and also create the # mysqldb service using bookinfo-mysql.yaml # NOTE: This file is mutually exclusive to bookinfo-ratings-v2.yaml - name: DB_TYPE value: "mysql" - name: MYSQL_DB_HOST value: mysqldb - name: MYSQL_DB_PORT value: "3306" - name: MYSQL_DB_USER value: root - name: MYSQL_DB_PASSWORD value: password ports: - containerPort: 9080 --- <|endoftext|> # k8s_docs_dual-stack-ipv6-svc.yaml apiVersion: v1 kind: Service metadata: name: my-service spec: ipFamily: IPv6 selector: app: MyApp ports: - protocol: TCP port: 80 targetPort: 9376 <|endoftext|> # istio_tcp-probes.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 livenessProbe: tcpSocket: port: http readinessProbe: tcpSocket: port: 3333 <|endoftext|> # argocd_source_template-override.yaml # App templates can also be defined as part of the generator's template stanza. Sometimes it is # useful to do this in order to override the spec.template stanza, and when simple string # parameterization are insufficient. In the below examples, the generators[].XXX.template is # a partial definition, which overrides/patch the default template. apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - list: elements: - cluster: engineering-dev url: https://1.2.3.4 template: metadata: {} spec: project: "project" source: repoURL: https://github.com/infra-team/cluster-deployments.git path: '{{.cluster}}-override' destination: {} - list: elements: - cluster: engineering-prod url: https://1.2.3.4 template: metadata: {} spec: project: "project2" source: repoURL: https://github.com/infra-team/cluster-deployments.git path: '{{.cluster}}-override2' destination: {} template: metadata: name: '{{.cluster}}-guestbook' spec: project: "project" source: repoURL: https://github.com/infra-team/cluster-deployments.git targetRevision: HEAD path: guestbook/{{.cluster}} destination: server: '{{.url}}' namespace: guestbook <|endoftext|> # k8s_docs_mongo-service.yaml apiVersion: v1 kind: Service metadata: name: mongo labels: app.kubernetes.io/name: mongo app.kubernetes.io/component: backend spec: ports: - port: 27017 targetPort: 27017 selector: app.kubernetes.io/name: mongo app.kubernetes.io/component: backend <|endoftext|> # k8s_examples_storageos-secret.yaml apiVersion: v1 kind: Secret metadata: name: storageos-secret type: "kubernetes.io/storageos" data: apiAddress: dGNwOi8vMTI3LjAuMC4xOjU3MDU= apiUsername: c3RvcmFnZW9z apiPassword: c3RvcmFnZW9z <|endoftext|> # grafana_charts_deployment-ingester.yaml {{- if eq .Values.ingester.kind "Deployment"}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "loki.ingesterFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.ingesterLabels" . | nindent 4 }} app.kubernetes.io/part-of: memberlist {{- with .Values.loki.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if not .Values.ingester.autoscaling.enabled }} replicas: {{ .Values.ingester.replicas }} {{- end }} strategy: rollingUpdate: maxSurge: {{ .Values.ingester.maxSurge }} maxUnavailable: 1 revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} selector: matchLabels: {{- include "loki.ingesterSelectorLabels" . | nindent 6 }} template: metadata: annotations: {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingester.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "loki.ingesterSelectorLabels" . | nindent 8 }} app.kubernetes.io/part-of: memberlist {{- with .Values.loki.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingester.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} {{- with .Values.ingester.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingester.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- include "loki.ingesterPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.ingester.terminationGracePeriodSeconds }} {{- with .Values.ingester.initContainers }} initContainers: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: ingester image: {{ include "loki.ingesterImage" . }} imagePullPolicy: {{ .Values.loki.image.pullPolicy }} {{- if or .Values.loki.command .Values.ingester.command }} command: - {{ coalesce .Values.ingester.command .Values.loki.command | quote }} {{- end }} args: - -config.file=/etc/loki/config/config.yaml - -target=ingester {{- with .Values.ingester.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} ports: - name: http containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP - name: http-memberlist containerPort: 7946 protocol: TCP {{- with .Values.ingester.extraEnv }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.ingester.extraEnvFrom }} envFrom: {{- toYaml . | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.loki.containerSecurityContext | nindent 12 }} {{- include "loki.ingester.readinessProbe" . | nindent 10 }} {{- include "loki.ingester.livenessProbe" . | nindent 10 }} volumeMounts: - name: config mountPath: /etc/loki/config - name: runtime-config mountPath: /var/{{ include "loki.name" . }}-runtime - name: data mountPath: /var/loki {{- with .Values.ingester.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.ingester.resources }} resources: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.ingester.lifecycle }} lifecycle: {{- toYaml . | nindent 12 }} {{- end }} {{- if .Values.ingester.extraContainers }} {{- toYaml .Values.ingester.extraContainers | nindent 8}} {{- end }} {{- with .Values.ingester.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.ingester.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingester.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- if .Values.loki.existingSecretForConfig }} secret: secretName: {{ .Values.loki.existingSecretForConfig }} {{- else if .Values.loki.configAsSecret }} secret: secretName: {{ include "loki.fullname" . }}-config {{- else }} configMap: name: {{ include "loki.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "loki.fullname" . }}-runtime {{- with .Values.ingester.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} - name: data {{- if .Values.ingester.persistence.inMemory }} emptyDir: medium: Memory {{- if .Values.ingester.persistence.size }} sizeLimit: {{ .Values.ingester.persistence.size }} {{- end }} {{- else }} emptyDir: {} {{- end }} {{- end }} <|endoftext|> # istio_use-registry-istio-io.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: installation # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** `registry.istio.io` as the default registry for istio images. <|endoftext|> # istio_48689.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 44844 releaseNotes: - | **Fixed** `istioctl analyze` didn't work correctly when analyzing files containing resources that already exist in the cluster. <|endoftext|> # argocd_source_argocd-server-rbac-clusterrole.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app.kubernetes.io/name: argocd-server-cluster-apps app.kubernetes.io/part-of: argocd app.kubernetes.io/component: server name: argocd-server-cluster-apps rules: - apiGroups: - "" resources: - events verbs: - create - apiGroups: - "argoproj.io" resources: - "applications" verbs: - create - delete - update - patch <|endoftext|> # argocd_source_guestbook-ui-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: guestbook-ui spec: replicas: 1 revisionHistoryLimit: 3 selector: matchLabels: app: guestbook-ui template: metadata: labels: app: guestbook-ui spec: containers: - image: quay.io/argoprojlabs/argocd-e2e-container:0.2 name: guestbook-ui ports: - containerPort: 80 <|endoftext|> # argocd_source_ducktype-example.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: book-import spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - clusterDecisionResource: configMapRef: ocm-placement name: test-placement requeueAfterSeconds: 30 template: metadata: name: '{{.clusterName}}-book-import' spec: project: "default" source: repoURL: https://github.com/open-cluster-management/application-samples.git targetRevision: HEAD path: book-import destination: name: '{{.clusterName}}' namespace: bookimport syncPolicy: automated: prune: true syncOptions: - CreateNamespace=true <|endoftext|> # istio_57076.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 57075 releaseNotes: - | **Added** `--wait` flag to `istioctl waypoint status` to specify whether to wait for the waypoint to become ready (default is true). Specifying this flag with `--wait=false` will not wait for the waypoint to be ready, and will directly display the status of waypoint. <|endoftext|> # helm_charts_hdfs-nn-pdb.yaml apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ include "hadoop.fullname" . }}-hdfs-nn labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: hdfs-nn spec: selector: matchLabels: app: {{ include "hadoop.name" . }} release: {{ .Release.Name }} component: hdfs-nn minAvailable: {{ .Values.hdfs.nameNode.pdbMinAvailable }} <|endoftext|> # helm_charts_deployment-server.yaml {{- if eq (include "drone.providerOK" .) "true" }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "drone.fullname" . }}-server labels: app: {{ template "drone.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" component: server spec: selector: matchLabels: app: {{ template "drone.name" . }} release: "{{ .Release.Name }}" component: server replicas: 1 template: metadata: annotations: checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} {{- if .Values.metrics.prometheus.enabled }} prometheus.io/scrape: "true" prometheus.io/port: "8000" {{- end }} {{- if .Values.server.annotations }} {{ toYaml .Values.server.annotations | indent 8 }} {{- end }} labels: app: {{ template "drone.name" . }} release: "{{ .Release.Name }}" component: server spec: {{- if .Values.server.schedulerName }} schedulerName: "{{ .Values.server.schedulerName }}" {{- end }} {{- if .Values.server.affinity }} affinity: {{ toYaml .Values.server.affinity | indent 8 }} {{- end }} {{- if .Values.server.nodeSelector }} nodeSelector: {{ toYaml .Values.server.nodeSelector | indent 8 }} {{- end }} {{- with .Values.server.tolerations }} tolerations: {{- toYaml . | nindent 6 }} {{- end }} serviceAccountName: {{ template "drone.serviceAccountName" . }} {{- if .Values.images.server.pullSecret }} imagePullSecrets: - name: {{ .Values.images.server.pullSecret }} {{- end }} containers: - name: server image: "{{ .Values.images.server.repository }}:{{ .Values.images.server.tag }}" imagePullPolicy: {{ .Values.images.server.pullPolicy }} env: {{- if (or .Values.licenseKey .Values.licenseKeySecret) }} - name: DRONE_LICENSE value: "/etc/drone.key" {{- end }} {{- if .Values.server.kubernetes.enabled }} - name: DRONE_KUBERNETES_ENABLED value: "true" - name: DRONE_KUBERNETES_NAMESPACE value: {{ default .Release.Namespace .Values.server.kubernetes.namespace }} - name: DRONE_KUBERNETES_SERVICE_ACCOUNT value: {{ template "drone.pipelineServiceAccount" . }} {{- else }} - name: DRONE_AGENTS_ENABLED value: "true" {{- end }} - name: DRONE_GIT_ALWAYS_AUTH value: {{ .Values.server.alwaysAuth | quote }} - name: DRONE_SERVER_HOST {{- if hasKey .Values.server "host" }} value: "{{ .Values.server.host }}" {{- else }} value: "{{ template "drone.fullname" . }}" {{- end }} - name: DRONE_SERVER_PORT value: ":{{ .Values.server.httpPort }}" - name: DRONE_RPC_PROTO value: "{{ .Values.server.rpcProtocol }}" - name: DRONE_RPC_HOST value: {{ template "drone.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.httpPort }} - name: DRONE_SERVER_PROTO value: {{ .Values.server.protocol }} - name: DRONE_DATABASE_DRIVER value: {{ .Values.server.database.driver }} - name: DRONE_DATABASE_DATASOURCE value: {{ .Values.server.database.dataSource }} - name: DRONE_LOGS_COLOR value: {{ .Values.server.logs.color | quote }} - name: DRONE_LOGS_DEBUG value: {{ .Values.server.logs.debug | quote }} - name: DRONE_LOGS_PRETTY value: {{ .Values.server.logs.pretty | quote }} - name: DRONE_LOGS_TRACE value: {{ .Values.server.logs.trace | quote }} - name: DRONE_LOGS_TEXT value: {{ .Values.server.logs.text | quote }} {{- if .Values.server.adminUser }} - name: DRONE_USER_CREATE value: username:{{ .Values.server.adminUser }},machine:false,admin:true {{- end }} - name: DRONE_RPC_SECRET valueFrom: secretKeyRef: name: {{ template "drone.fullname" . }} key: secret {{- range $key, $value := .Values.server.env }} - name: {{ $key }} value: {{ $value | quote }} {{- end }} {{ template "drone.providerEnvs" . }} {{- range $secret, $keys := .Values.server.envSecrets }} {{- range $keys }} - name: {{ . }} valueFrom: secretKeyRef: name: {{ $secret }} key: {{ . | quote }} {{- end }} {{- end }} ports: - name: http containerPort: {{ .Values.server.httpPort }} protocol: TCP - name: https containerPort: 443 protocol: TCP - name: grpc containerPort: 9000 protocol: TCP livenessProbe: httpGet: path: / port: http resources: {{ toYaml .Values.server.resources | indent 10 }} volumeMounts: {{ if eq .Values.sourceControl.provider "bitbucketServer" -}} - name: bitbucket-private-key mountPath: /etc/bitbucket readOnly: true {{ end }} {{ if (or .Values.licenseKey .Values.licenseKeySecret) -}} - name: license-key mountPath: /etc/drone.key subPath: drone.key readOnly: true {{ end }} - name: data mountPath: /var/lib/drone {{- with .Values.server.extraContainers }} {{ tpl . $ | indent 6 }} {{- end }} volumes: {{ if eq .Values.sourceControl.provider "bitbucketServer" -}} - name: bitbucket-private-key secret: secretName: {{ template "drone.sourceControlSecret" . }} items: - key: {{ .Values.sourceControl.bitbucketServer.privateKey }} path: key.pem {{ end -}} {{ if (or .Values.licenseKey .Values.licenseKeySecret) -}} - name: license-key secret: secretName: {{ template "drone.licenseKeySecret" . }} items: - key: license-key path: drone.key {{ end -}} - name: data {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ .Values.persistence.existingClaim | default (include "drone.fullname" .) }} {{- else }} emptyDir: {} {{- end -}} {{- if .Values.server.securityContext }} securityContext: {{ toYaml .Values.server.securityContext | indent 8 }} {{- end }} {{- with .Values.server.extraVolumes }} {{ tpl . $ | indent 6 }} {{- end }} {{ end }} <|endoftext|> # istio_40032.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 40027 releaseNotes: - | **Added** support for use of the OpenTelemetry tracing provider with the Telemetry API. <|endoftext|> # istio_peer-authn-strict-root-permissive-namespace-strict-workload-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-mesh namespace: istio-system spec: mtls: mode: STRICT --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-foo namespace: foo spec: mtls: mode: PERMISSIVE --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: workload namespace: foo spec: selector: matchLabels: app: a portLevelMtls: 9090: mode: STRICT <|endoftext|> # istio_base-webhook-failure-policy.golden.yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: istiod-default-validator labels: app: istiod release: istio-base istio: istiod istio.io/rev: "default" app.kubernetes.io/name: "istiod" app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istio-base" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: base-1.0.0 webhooks: - name: validation.istio.io clientConfig: service: name: istiod namespace: istio-system path: "/validate" rules: - operations: - CREATE - UPDATE apiGroups: - security.istio.io - networking.istio.io - telemetry.istio.io - extensions.istio.io apiVersions: - "*" resources: - "*" failurePolicy: Fail sideEffects: None admissionReviewVersions: ["v1"] <|endoftext|> # argocd_source_upgrading.yaml apiVersion: core.humio.com/v1alpha1 kind: HumioCluster metadata: creationTimestamp: '2022-12-09T05:48:10Z' generation: 1 labels: app: humio app.kubernetes.io/instance: humio-cluster-failtest name: example-humiocluster namespace: failtes spec: dataVolumePersistentVolumeClaimSpecTemplate: accessModes: - ReadWriteOnce resources: requests: storage: 100Gi storageClassName: longhorn digestPartitionsCount: 2 image: 'humio/humio-core:latest' license: secretKeyRef: key: data name: example-humiocluster-license storagePartitionsCount: 2 targetReplicationFactor: 1 tls: enabled: false status: state: Upgrading <|endoftext|> # istio_auth.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # helm_charts_serviceaccounts.yaml {{- $values := .Values }} {{- range .Values.serviceAccounts }} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ . }} {{- if hasKey $values "namespace" }} namespace: {{ $values.namespace }} {{- end }} labels: chart: {{ template "magic-namespace.chart" $ }} release: {{ $.Release.Name }} heritage: {{ $.Release.Service }} {{- end }} <|endoftext|> # helm_source_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "v3-fail.fullname" . }} labels: nope: {{ .Release.Time }} {{- include "v3-fail.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "v3-fail.selectorLabels" . | nindent 6 }} template: metadata: labels: {{- include "v3-fail.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "v3-fail.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: 80 protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: http resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} <|endoftext|> # k8s_docs_one-constraint.yaml kind: Pod apiVersion: v1 metadata: name: mypod labels: foo: bar spec: topologySpreadConstraints: - maxSkew: 1 topologyKey: zone whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: foo: bar containers: - name: pause image: registry.k8s.io/pause:3.1 <|endoftext|> # kube_prometheus_auth-delegator.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: metrics-server:system:auth-delegator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - kind: ServiceAccount name: metrics-server namespace: kube-system <|endoftext|> # argocd_source_deployment-degraded.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "4" kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"guestbook-default"},"name":"guestbook-ui","namespace":"default"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"guestbook-ui"}},"template":{"metadata":{"labels":{"app":"guestbook-ui","app.kubernetes.io/instance":"guestbook-default"}},"spec":{"containers":[{"image":"gcr.io/heptio-images/ks-guestbook-demo:0.3","name":"guestbook-ui","ports":[{"containerPort":80}]}]}}}} creationTimestamp: 2018-07-18T04:40:44Z generation: 4 labels: app.kubernetes.io/instance: guestbook-default name: guestbook-ui namespace: default resourceVersion: "13660" selfLink: /apis/apps/v1/namespaces/default/deployments/guestbook-ui uid: bb9af0c7-8a44-11e8-9e23-42010aa80010 spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: guestbook-ui strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: app: guestbook-ui app.kubernetes.io/instance: guestbook-default spec: containers: - image: gcr.io/heptio-images/ks-guestbook-demo:0.3 imagePullPolicy: IfNotPresent name: guestbook-ui ports: - containerPort: 80 protocol: TCP resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: availableReplicas: 1 conditions: - lastTransitionTime: 2018-07-18T04:48:48Z lastUpdateTime: 2018-07-18T04:48:48Z message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: "True" type: Available - lastTransitionTime: 2018-07-18T06:29:23Z lastUpdateTime: 2018-07-18T06:29:23Z message: ReplicaSet "guestbook-ui-75dd4d49d5" has timed out progressing. reason: ProgressDeadlineExceeded status: "False" type: Progressing observedGeneration: 4 readyReplicas: 1 replicas: 2 unavailableReplicas: 1 updatedReplicas: 1 <|endoftext|> # helm_charts_psp.yaml {{- if .Values.rbac.pspEnabled }} apiVersion: {{ template "podSecurityPolicy.apiVersion" . }} kind: PodSecurityPolicy metadata: name: {{ template "external-dns.fullname" . }} labels: {{ include "external-dns.labels" . | nindent 4 }} spec: privileged: false allowPrivilegeEscalation: false requiredDropCapabilities: - ALL volumes: - 'configMap' - 'emptyDir' - 'projected' - 'secret' - 'downwardAPI' - 'hostPath' hostNetwork: false hostIPC: false hostPID: false runAsUser: rule: 'MustRunAs' ranges: - min: 1001 max: 1001 seLinux: rule: 'RunAsAny' supplementalGroups: rule: 'MustRunAs' ranges: - min: 1001 max: 1001 fsGroup: rule: 'MustRunAs' ranges: - min: 1001 max: 1001 {{- end }} <|endoftext|> # helm_charts_jmeter-server-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "distributed-jmeter.fullname" . }}-server labels: app.kubernetes.io/name: {{ include "distributed-jmeter.name" . }} helm.sh/chart: {{ include "distributed-jmeter.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: server spec: clusterIP: None ports: - port: 50000 protocol: TCP name: tcp-50000 - port: 1099 protocol: TCP name: tcp-1099 selector: app.kubernetes.io/name: {{ include "distributed-jmeter.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: server <|endoftext|> # istio_55717.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 55717 releaseNotes: - | **Fixed** Gateway status controller leader election was not running per revision, which could lead to issues in multi-revision setups. The leader election is now correctly scoped to each revision, ensuring that the gateway status controller operates independently for each revision. <|endoftext|> # istio_serviceentry-address-required-uppercase.yaml apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: address-missing-uppercase spec: hosts: - dummy.testing.io # not used ports: - name: tcp number: 22 protocol: TCP <|endoftext|> # helm_charts_mongodb-keyfile-secret.yaml {{- if and (.Values.auth.enabled) (not .Values.auth.existingKeySecret) -}} apiVersion: v1 kind: Secret metadata: labels: app: {{ template "mongodb-replicaset.name" . }} chart: {{ template "mongodb-replicaset.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.extraLabels }} {{ toYaml .Values.extraLabels | indent 4 }} {{- end }} {{- if .Values.secretAnnotations }} annotations: {{ toYaml .Values.secretAnnotations | indent 4 }} {{- end }} name: {{ template "mongodb-replicaset.keySecret" . }} namespace: {{ template "mongodb-replicaset.namespace" . }} type: Opaque data: key.txt: {{ .Values.auth.key | b64enc }} {{- end -}} <|endoftext|> # helm_charts_drupal-pvc.yaml {{- if and .Values.persistence.enabled (not .Values.persistence.drupal.existingClaim) -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "drupal.fullname" . }}-drupal labels: app: {{ template "drupal.fullname" . }} chart: {{ template "drupal.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: {{- if .Values.persistence.drupal.hostPath }} storageClassName: "" {{- end }} accessModes: - {{ .Values.persistence.drupal.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.drupal.size | quote }} {{ include "drupal.storageClass" . }} {{- end -}} <|endoftext|> # helm_charts_distributor-statefulset.yaml apiVersion: apps/v1beta2 kind: StatefulSet metadata: name: {{ template "distributor.fullname" . }} labels: app: {{ template "distribution.name" . }} chart: {{ template "distribution.chart" . }} component: {{ .Values.distributor.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: serviceName: {{ template "distributor.name" . }} replicas: {{ .Values.distributor.replicaCount }} updateStrategy: type: RollingUpdate selector: matchLabels: app: {{ template "distribution.name" . }} release: {{ .Release.Name }} role: {{ template "distributor.name" . }} component: {{ .Values.distributor.name }} template: metadata: labels: app: {{ template "distribution.name" . }} component: {{ .Values.distributor.name }} role: {{ template "distributor.name" . }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "distribution.serviceAccountName" . }} {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: "prepare-data" image: "{{ .Values.initContainerImage }}" imagePullPolicy: {{ .Values.distributor.image.pullPolicy }} command: - '/bin/sh' - '-c' - > until nc -z -w 2 {{ .Release.Name }}-redis {{ .Values.redis.master.port }} && echo {{ .Release.Name }}-redis ok; do sleep 2; done; {{- if .Values.distributor.token }} mkdir -pv {{ .Values.distributor.persistence.mountPath }}/etc/security; cp -fv /tmp/security/token {{ .Values.distributor.persistence.mountPath }}/etc/security/token; chmod 400 {{ .Values.distributor.persistence.mountPath }}/etc/security/token; {{- end }} chown -R 1020:1020 {{ .Values.distributor.persistence.mountPath }} volumeMounts: - name: distributor-data mountPath: {{ .Values.distributor.persistence.mountPath | quote }} {{- if .Values.distributor.token }} - name: distributor-token mountPath: "/tmp/security/token" subPath: token {{- end }} containers: - name: {{ .Values.distributor.name }} image: '{{ .Values.distributor.image.repository }}:{{ default .Chart.AppVersion .Values.distributor.image.version }}' imagePullPolicy: {{ .Values.distributor.image.imagePullPolicy }} env: - name: DEFAULT_JAVA_OPTS value: '-Ddistribution.home={{ .Values.distributor.persistence.mountPath }} -Dfile.encoding=UTF8 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Duser.timezone=UTC {{- if .Values.distributor.javaOpts.xms }} -Xms{{ .Values.distributor.javaOpts.xms }} {{- end}} {{- if .Values.distributor.javaOpts.xmx }} -Xmx{{ .Values.distributor.javaOpts.xmx }} {{- end}} -Dspring.profiles.active=production' - name: redis_connectionString valueFrom: secretKeyRef: name: {{ template "distribution.fullname" . }}-redis-connection key: redis_connectionString - name: BT_SERVER_URL value: 'http://{{ include "distribution.fullname" . }}:{{ .Values.distribution.externalPort }}' volumeMounts: - name: distributor-data mountPath: {{ .Values.distributor.persistence.mountPath | quote }} resources: {{ toYaml .Values.distributor.resources | indent 10 }} volumes: {{- if .Values.distributor.token }} - name: distributor-token configMap: name: {{ template "distributor.fullname" . }}-token {{- end }} {{- if .Values.distributor.persistence.enabled }} volumeClaimTemplates: - metadata: name: distributor-data spec: {{- if .Values.distributor.persistence.existingClaim }} selector: matchLabels: app: {{ template "distributor.name" . }} {{- else }} {{- if .Values.distributor.persistence.storageClass }} {{- if (eq "-" .Values.distributor.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.distributor.persistence.storageClass }}" {{- end }} {{- end }} accessModes: [ "{{ .Values.distributor.persistence.accessMode }}" ] resources: requests: storage: {{ .Values.distributor.persistence.size }} {{- end }} {{- else }} - name: distributor-data emptyDir: {} {{- end }} <|endoftext|> # k8s_docs_memory-defaults-pod.yaml apiVersion: v1 kind: Pod metadata: name: default-mem-demo spec: containers: - name: default-mem-demo-ctr image: nginx <|endoftext|> # helm_charts_addheaders-configmap.yaml {{- if .Values.controller.addHeaders }} apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.fullname" . }}-custom-add-headers data: {{ toYaml .Values.controller.addHeaders | indent 2 }} {{- end }} <|endoftext|> # k8s_docs_envars.yaml apiVersion: v1 kind: Pod metadata: name: envar-demo labels: purpose: demonstrate-envars spec: containers: - name: envar-demo-container image: gcr.io/google-samples/node-hello:1.0 env: - name: DEMO_GREETING value: "Hello from the environment" - name: DEMO_FAREWELL value: "Such a sweet sorrow" <|endoftext|> # istio_terminating-headless.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 47348 releaseNotes: - | **Fixed** an issue causing traffic to terminating headless service instances to not function correctly. <|endoftext|> # istio_proxyconfig-global-mutate.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 40445 releaseNotes: - | **Fixed** an issue where `ProxyConfig` overrides could unexpectedly apply to other workloads. <|endoftext|> # istio_enable-core-dump.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_docs_allow-db-merged.yaml apiVersion: v1 kind: Pod metadata: name: website labels: app: website role: frontend annotations: podpreset.admission.kubernetes.io/podpreset-allow-database: "resource version" spec: containers: - name: website image: nginx volumeMounts: - mountPath: /cache name: cache-volume - mountPath: /etc/app/config.json readOnly: true name: secret-volume ports: - containerPort: 80 env: - name: DB_PORT value: "6379" - name: duplicate_key value: FROM_ENV - name: expansion value: $(REPLACE_ME) envFrom: - configMapRef: name: etcd-env-config volumes: - name: cache-volume emptyDir: {} - name: secret-volume secret: secretName: config-details <|endoftext|> # kube_prometheus_nodeExporter-serviceAccount.yaml apiVersion: v1 automountServiceAccountToken: false kind: ServiceAccount metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: node-exporter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 1.10.2 name: node-exporter namespace: monitoring <|endoftext|> # istio_apko-distroless.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** the [`distroless`](/docs/ops/configuration/security/harden-docker-images/) images to be based on [Wolfi](https://wolfi.dev). This should have no user facing impact. <|endoftext|> # k8s_docs_pod3.yaml apiVersion: v1 kind: Pod metadata: name: annotation-second-scheduler labels: name: multischeduler-example spec: schedulerName: my-scheduler containers: - name: pod-with-second-annotation-container image: registry.k8s.io/pause:3.8 <|endoftext|> # istio_generate-operator-manifest.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 27139 releaseNotes: - | **Improved** Generated operator manifests for use with kustomize are available in the directory `manifests/charts/istio-operator/files/gen-operator.yaml`. <|endoftext|> # istio_30683.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 30683 releaseNotes: - | **Fixed** Avoid unnecessary full push in service entry store. <|endoftext|> # k8s_docs_pod-level-memory-request-limit.yaml apiVersion: v1 kind: Pod metadata: name: memory-demo namespace: pod-resources-example spec: resources: requests: memory: "100Mi" limits: memory: "200Mi" containers: - name: memory-demo-ctr image: nginx command: ["stress"] args: ["--vm", "1", "--vm-bytes", "150M", "--vm-hang", "1"] <|endoftext|> # istio_remove-addons-mixer-istioctl.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 23868 - 23583 releaseNotes: - | **Removed** the installation of telemetry addons (Prometheus, Grafana, Zipkin, Jaeger, Kiali) from installation by `istioctl`. See [Reworking our Addon Integrations](/blog/2020/addon-rework/) for more info. - | **Removed** istio-telemetry and istio-policy from installation by `istioctl`. <|endoftext|> # helm_charts_contracts.yaml {{- if .Values.contracts.enabled }} {{- $refDir := printf "/ref" }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "burrow.fullname" $ }}-contracts namespace: {{ $.Release.Namespace | quote }} labels: app: {{ template "burrow.name" $ }} chart: {{ template "burrow.chart" $ }} heritage: {{ $.Release.Service }} release: {{ $.Release.Name }} annotations: "helm.sh/hook": "post-install" "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded spec: template: spec: # we always want burrow & solc installed initContainers: - name: burrow image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" command: ['sh', '-c', 'cp /usr/local/bin/* /tmp'] volumeMounts: - name: bin mountPath: /tmp containers: - name: contracts-deploy image: "{{ .Values.contracts.image }}:{{ $.Values.contracts.tag }}" imagePullPolicy: Always volumeMounts: - name: bin mountPath: /usr/local/bin/ - mountPath: {{ $refDir }} name: ref-dir env: - name: CHAIN_URL_GRPC value: {{ template "burrow.fullname" $ }}-grpc:{{ .Values.config.RPC.GRPC.ListenPort }} {{- include "settings" . | indent 8 }} command: ["/bin/sh", "-c", "{{ .Values.contracts.deploy }}"] restartPolicy: Never volumes: - name: bin emptyDir: {} - name: ref-dir projected: sources: - configMap: name: {{ template "burrow.fullname" $ }}-config - configMap: name: {{ template "burrow.fullname" $ }}-genesis backoffLimit: 0 {{- end }} <|endoftext|> # k8s_docs_konnectivity-server.yaml apiVersion: v1 kind: Pod metadata: name: konnectivity-server namespace: kube-system spec: priorityClassName: system-cluster-critical hostNetwork: true containers: - name: konnectivity-server-container image: registry.k8s.io/kas-network-proxy/proxy-server:v0.0.37 command: ["/proxy-server"] args: [ "--logtostderr=true", # This needs to be consistent with the value set in egressSelectorConfiguration. "--uds-name=/etc/kubernetes/konnectivity-server/konnectivity-server.socket", "--delete-existing-uds-file", # The following two lines assume the Konnectivity server is # deployed on the same machine as the apiserver, and the certs and # key of the API Server are at the specified location. "--cluster-cert=/etc/kubernetes/pki/apiserver.crt", "--cluster-key=/etc/kubernetes/pki/apiserver.key", # This needs to be consistent with the value set in egressSelectorConfiguration. "--mode=grpc", "--server-port=0", "--agent-port=8132", "--admin-port=8133", "--health-port=8134", "--agent-namespace=kube-system", "--agent-service-account=konnectivity-agent", "--kubeconfig=/etc/kubernetes/konnectivity-server.conf", "--authentication-audience=system:konnectivity-server" ] livenessProbe: httpGet: scheme: HTTP host: 127.0.0.1 port: 8134 path: /healthz initialDelaySeconds: 30 timeoutSeconds: 60 ports: - name: agentport containerPort: 8132 hostPort: 8132 - name: adminport containerPort: 8133 hostPort: 8133 - name: healthport containerPort: 8134 hostPort: 8134 volumeMounts: - name: k8s-certs mountPath: /etc/kubernetes/pki readOnly: true - name: kubeconfig mountPath: /etc/kubernetes/konnectivity-server.conf readOnly: true - name: konnectivity-uds mountPath: /etc/kubernetes/konnectivity-server readOnly: false volumes: - name: k8s-certs hostPath: path: /etc/kubernetes/pki - name: kubeconfig hostPath: path: /etc/kubernetes/konnectivity-server.conf type: FileOrCreate - name: konnectivity-uds hostPath: path: /etc/kubernetes/konnectivity-server type: DirectoryOrCreate <|endoftext|> # istio_47990.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Updated** `verify-install` command now defaults to not requiring a IstioOperator file, since it is now removed from the installation process. <|endoftext|> # istio_46880.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 46859 releaseNotes: - | **Fixed** an issue where the installation process was failing due to failed verification of the `NetworkAttachmentDefinition` resource. <|endoftext|> # k8s_docs_cpu-defaults.yaml apiVersion: v1 kind: LimitRange metadata: name: cpu-limit-range spec: limits: - default: cpu: 1 defaultRequest: cpu: 0.5 type: Container <|endoftext|> # kube_prometheus_kubernetesControlPlane-serviceMonitorKubeScheduler.yaml apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: app.kubernetes.io/component: kubernetes app.kubernetes.io/name: kube-scheduler app.kubernetes.io/part-of: kube-prometheus name: kube-scheduler namespace: monitoring spec: endpoints: - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token interval: 30s port: https-metrics scheme: https tlsConfig: insecureSkipVerify: true - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token interval: 5s metricRelabelings: - action: drop regex: process_start_time_seconds sourceLabels: - __name__ path: /metrics/slis port: https-metrics scheme: https tlsConfig: insecureSkipVerify: true jobLabel: app.kubernetes.io/name namespaceSelector: matchNames: - kube-system selector: matchLabels: app.kubernetes.io/name: kube-scheduler <|endoftext|> # kube_prometheus_grafana-serviceMonitor.yaml apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: app.kubernetes.io/component: grafana app.kubernetes.io/name: grafana app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 12.4.2 name: grafana namespace: monitoring spec: endpoints: - interval: 15s port: http selector: matchLabels: app.kubernetes.io/name: grafana <|endoftext|> # istio_38750.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue where removing inline Network and HTTP filters was not working properly. <|endoftext|> # argocd_source_connector-healthy.yaml apiVersion: platform.confluent.io/v1beta1 kind: Connector metadata: finalizers: - connect.finalizers.platform.confluent.io generation: 1 name: connect namespace: confluent spec: class: io.confluent.connect.sftp.SftpSinkConnector configs: topics: test-topic connectClusterRef: name: connect name: test-sftp-connector taskMax: 3 status: appState: Created conditions: - lastProbeTime: '2024-04-02T07:43:35Z' lastTransitionTime: '2024-04-02T07:43:35Z' message: Application is created reason: Created status: 'True' type: platform.confluent.io/app-ready connectorState: RUNNING restartPolicy: maxRetry: 10 type: OnFailure state: CREATED tasksReady: 3/3 <|endoftext|> # helm_charts_master-pdb.yaml {{- if .Values.master.podDisruptionBudget.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ template "mariadb.fullname" . }} labels: app: "{{ template "mariadb.name" . }}" component: "master" chart: {{ template "mariadb.chart" . }} release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: {{- if .Values.master.podDisruptionBudget.minAvailable }} minAvailable: {{ .Values.master.podDisruptionBudget.minAvailable }} {{- end }} {{- if .Values.master.podDisruptionBudget.maxUnavailable }} maxUnavailable: {{ .Values.master.podDisruptionBudget.maxUnavailable }} {{- end }} selector: matchLabels: app: "{{ template "mariadb.name" . }}" component: "master" release: {{ .Release.Name | quote }} {{- end }} <|endoftext|> # istio_45472.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 45472 releaseNotes: - | **Added** initial ambient support for WorkloadEntry. Fixes (#45472)[https://github.com/istio/istio/issues/45472). <|endoftext|> # helm_charts_deployment-admission-server.yaml {{- if .Values.webhook.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "openebs.fullname" . }}-admission-server labels: app: admission-webhook chart: {{ template "openebs.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: admission-webhook openebs.io/component-name: admission-webhook openebs.io/version: {{ .Values.release.version }} spec: replicas: {{ .Values.webhook.replicas }} strategy: type: "Recreate" rollingUpdate: null selector: matchLabels: app: admission-webhook template: metadata: labels: app: admission-webhook name: admission-webhook release: {{ .Release.Name }} openebs.io/version: {{ .Values.release.version }} openebs.io/component-name: admission-webhook spec: {{- if .Values.webhook.nodeSelector }} nodeSelector: {{ toYaml .Values.webhook.nodeSelector | indent 8 }} {{- end }} {{- if .Values.webhook.tolerations }} tolerations: {{ toYaml .Values.webhook.tolerations | indent 8 }} {{- end }} {{- if .Values.webhook.affinity }} affinity: {{ toYaml .Values.webhook.affinity | indent 8 }} {{- end }} serviceAccountName: {{ template "openebs.serviceAccountName" . }} containers: - name: admission-webhook image: "{{ .Values.image.repository }}{{ .Values.webhook.image }}:{{ .Values.webhook.imageTag }}" imagePullPolicy: Always args: - -alsologtostderr - -v=2 - 2>&1 env: - name: OPENEBS_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace # Process name used for matching is limited to the 15 characters # present in the pgrep output. # So fullname can't be used here with pgrep (>15 chars).A regular expression # Anchor `^` : matches any string that starts with `admission-serve` # `.*`: matche any string that has `admission-serve` followed by zero or more char # that matches the entire command name has to specified. livenessProbe: exec: command: - sh - -c - test `pgrep -c "^admission-serve.*"` = 1 initialDelaySeconds: {{ .Values.webhook.healthCheck.initialDelaySeconds }} periodSeconds: {{ .Values.webhook.healthCheck.periodSeconds }} {{- end }} <|endoftext|> # argocd_source_openunison-argocd-url.yaml apiVersion: openunison.tremolo.io/v1 kind: PortalUrl metadata: labels: openunison.io/instance: orchestra name: argocd namespace: openunison spec: label: ArgoCD org: B158BD40-0C1B-11E3-8FFD-0800200C9A66 url: https://argocd.apps.192-168-2-144.nip.io/auth/login icon: iVBORw0KGgoAAAANSUhEUgAAANIAAADwCAYAAAB1/Tp/AAAfQ3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHja3ZtZlly3lUX/MYoaAnDRDwftWp5BDb/2QQQlipYtu1xfpVQyk9G8eLjNaS5Ad/77b9f9F//VFJJLubbSS/H8l3rqNvil+c9//f0ZfHp/vv+2fZ8Lf3zc3e/j3ngo8jN+/lrH9/WDx/Pvb/jxGWH+8XHXvs9Y+17o+8SPC0Z9su5i/3yTPG6fx0P6Xqifzy+lt/rzrc7vEtb3he9Wvt+xvkv/dhH93f38QKpEaWdeFc1ODNG/P9vnDuLne/Dd+DNEboo/E7/nmBw/UvyxVgLyh+X9+On9zwH6Q5C/C/Lu1+j/9tsvwbfxfTz+Esvy40Llz58I+c+D/0L80wfH72+Oh//wxFJif13O9/ve3e49n9WNVIho+VaUdz+io/fwQi6S4ntb4avynfm9vq/OV/PDL5Kz+cTJ1wo9GFm5LqSwwwg3nPdzhcUtJjtW+Wm2LL7HWqzWbcVPnvgK12rscZNBi8uOi5GH7bd7Ce9z+/u8FRqfvAMvtcDFAm/5h1/unz3573y5e5dCFHz7xOm8BJsql9tQ5vQnryIh4X7zll+Af3x90+9/qh9KlQzmF+bGAoefn0vMHH6vrfjyHHld5uenK4Kr+3sBQsRnZ24mRDLgS4g5lOCrWQ2BODYSNLhzi8kmGQg52+YmLcVYzFVrps/mPTW811q2YnoYbFL7xBIruelxkKyUMvVTU6OGRo455ZxLrrm53PMosaSSSym1CORGjTXVXEuttdVeR4sttdxKq6213ka3HsHA3EuvvfXexzA3+KDBtQavHzwybcaZZp5l1tlmn2NRPiutvMqqq62+xrYdNzCxy6677b7HCe6AFCedfMqpp51+xqXWbrzp5ltuve32O37LWvi27a9f/0bWwjdr9jKl19XfssajrtYflwiCk6yckTFLgYxXZYCCNuXMt5CSKXPKme9GU2TjJrNy43ZQxkhhOsHyDb/l7vfM/Ut5c7n9S3mzv8qcU+r+LzLnSN3f5+1PsrbHQ7348qYuVEx9pPt4/rThrA2R2vhPf/5/uNDMhO96ErHHIHJzTJRFcddO2atTr516y2Q07NpHsNnyWSXlkPfMvQLbN9R8eHcGovuZ1O26q8fVwOHi/Ind1x7ypKwuaeB9bRZ/KaNNSU07qV1bJ5O/vNqxsTO1eVqafQEgcU2SdoER7tM3emmMercvfMw9cAHXzftCADekBYfcsOfg4ZVSPGcBW37OyUevHW/JLh5utLZb4zpc+Qxq54R127RVTh++7FBOKaLsDRyGmqgxs+lrDtuObiNRtC6UPdoeaZcZoeljsec0gJg6D+WGvtgxT0LHAyF/og5tjfeb//2n+/WBf/Lz5nJ9qSuc2TdtZsSRJii7nGRujuRHPbWGTSQuTXpXGcifarWAGvR41bJj6hs6iLvamWftUcjwrHAr0BVbdmdy8eNZOYvbMepqPpVzzs6l7nr0JsTVS8mtkxsCTmotJJsr7KZEj1sccT+3pbJAmmk0/I5jB9uFuqi05ilVSrFbnf3wFKLO744IaEc3DQBw/yE0d+7oIMvqZ1W1Mbg874pzgD9l5o2QQDxnz3NdGVuL+p0IAm46pMN7evKUjQO9Sgfp6g0L/bJ9LiOHdMnbbo1+QIWM01nHmSAT5TFSAAdXvCd3AgomkY/uaqS84qQwUFEU3OVD/Ch9xyNVhSq4kGQB8WLvoCkkfNNs6+4Fol9QbALd8Tq/ictAjbZyB8BXbrFc9hk0URrHh3c3LS700I2Dmm2jrgNYDmq+0S6HZbfiCmUcZs2TSl9j9DCLdailxENuuNnbYflT8jFPUjoVu0Pf+xC9MIB7kDlWMBt2WsoKSC4Jdib5jNvmmUbrQykEOtW5s/WbFtntrR3W3SqhLHRuhY3gE0drt2bEK/FnbaO0DR4Ef4LwxOd0USCl93yp5DbpQ5r9HlDb5qbEePPtLWxHcZLx1BcymdVwK/XcUGqzqo5oe5c1IY4FSYmPDlVATukKXhGoGcJXgQqyNgqFRmpSWzs1uOQ15lrzrxtwZrqrCwinAzhBngJU3LjXGqjgMICre8gt+kjxOHziTiY9bK2tWUOkAxJ6GOzqFMDpzd1WgZlLBS0auQy8gla+RoTTIox37vS3jNlS7HP71he1vCbvoymBOtqgFZvu0rR5tl0UWNpIvVGpIW7NK/zqsg060g272B4LmbFivGupjSmY0mxDu25HqvbQkSwEhM7VeDRsbmlD/AWRT2lQgzgGqpm+h6zTvlOCEagcbVINAIijitD5IA5BSKQxIdErNY16wgjeOgZVKJbnfSQVfKrJgJLsKxe/sdOeO1cQcoyVaDg1wNaDhrSgePSkNZCZpzb4HAkPScjcE7IpH0RLbnWtLBFiuTtwg8ICpv1JlY4ECFeZ/A98QDavqvE3gBEIm3eaCU5bwj0Qtix6Z09LabvTAZN2Bt/obBADCSSo2OB+BdY8gYYdwf8tPEGjgTR1bYkaGpzORO70cN1oGRqjyYmTMJPEXBoBJEDCUOAb7c5fjavdeQMvppxZXwLCWo8J96Oubyj/waowIgVEhWuRYniUTQnNRDjSrsLgll6/Q8/jU/eJ3PxBGLivMtgq5XARja+Kd81i4gIYAmoL00zlRNLqURCY859oBlBk2cux/kKVymUiBwlooHiWsKhL0XYkAqSiTBEIgKF5SpOVAQZ1d9sKOg97N+b+VGMry+iTDlTQEx3QRSFXm6WcfQ5Au1WfOPzqQWPY/MBrfqEdeoeKHES3BBUAYTzwYzwo1VnrRlXkTo8AlSQfNYyK5wZ4Fm1Cec+SGwnPEcWdTnLciw3c8ipg4Oz4LAKE29nSGj7nsERpVMIEo9vIhugOrIlEikcGOvouVLATplCFoPLC1t6W6fMGFAMxcHQvfkQqhfK4OR/lCqymDgifuJ2Wo+FFzBRkm2nHOQuhiQ03V4fqKRIIpBMXAUP6SZTOEZGAiq1E7jiitrnrNlV+M7hA6wYTJHALXYBMgwBwLcJ8SAqkWlbzUXY5LURDZ919rGmwH3masVRUUHB5+S38H9QyVLsgyIRyQz1MUof+GwX9X+bozSOk4BYgHeqgrFAds6AFAdu8EVpN3Bdqz3QBDAhKQs4CWYzCyfRa2lQsoY4EAekA1oNL9AMOikqfSNEWKMhJJgMUvUDAVBC8ZSEwg+FeMjRlWGBUYEJcge08gYemxaWBLAhEfVuE4Tg70heZOjLYKt3mt9KJVEEyYNEUPSAFM9P5BKq1ly1EhEkhTLgLeQo+bNcgYVD8bClnWP0SwgsIIagLHHmGtCPYAOGBsOLKYKfBX5R7R+uipK4hPh0CfZHvLJqD5MGbgK7l00vHMVHgNACqHc5KBQup37zPiBWsF+hEZdFqrMllleZT7zhZ6gWd3AQ4nfK547DMIGzkimg1VVzBsCKCAAZg3wsgJ+zgHdjQqVp03PVIkiiLNnAGY0M1C1IM0icwtH8gjbwBL/jAemdiudwvaVl9OuxFFJOzVA8GBao/hk6fkUqD7UcEKZaQQF4XYpopjaVOpRMEGVUWpqL84c1JU1Jmd8uCjg1iUJuH5gY0AFDeSOI7fEIxo1gR7AG1bBFKzRAo6z3TdSoOjsQXIxBXDhFxxRMXOYggohXIQOduuIxGkPLSrBS2A7wIIsqEvkPyOaIO+jbM8USgGPGZdBLe1iNmIVTQGr8N32GaqVZyW4fY5krODpw6uTUEuevWWPEWQBBgDd/MoIep7kIfUnS8fePaWCRCkA4/6oRh3O3Ch1HJCHK8SAEuEUYRdqBQEkyp5uV6KIqFuk8VkqMzYGvMBJeHLDf+w8NbhLHKNdAMECTuDNgmK8hm2m8HTBM607iUKDNLLRJE0x02W8IoaopaFdbBuRSIIQrcSSSfQjjldhSDyfLFjLai5cBbhHNqaEq8DYjiawNCQW9aWEIAwXk1ZAgoNhQfrkdgvZcnOn4AgqAD8vEiIE9A9OQdLdBnK3K7MP7eQHDfLVaMpAH9vntgBL3l6+OsrtHDGXiuleCQzV3Je+6OOi+H+E+wUbdXNWLDXGGOdk51H8FIqFMlE7C1GaEVpBljGhvZb7LTwP2id5p8lcGXhB+moBRQ5dvTw0keejtxJUEleY0OpInERBqG41hICK7hFpDxNsq2FCgkIrAQQlyerkGtKD0gvDuqNNK91JpAIkr1jHv8oRaAJNQAyLeUSNQscgiKzoh0D+N4wh4n9wQGIWv6HeRjqQDaHAGfHAtpoErxa+H9sKiPLWiHFpDX9XhgZMwCa4+AparcAIoNIlZXiUckmQLiEhSZmZumhKvkOLo/cz8IZ/zajPCYEf0dKOYn3nmBI6xoLe49TToIqXLe3E8UiSJBKpEK1h2hbtjlLsg7IB5gIemveSPkjLHOGh8WzdzAUArr5opwIIqIryEzcjXqw0hRF1v9jmUmyPKCWWuIcDQKbiK0OhhkGoAh1TAq+1Q0MrTbPn4D2KHBP1hN10CNrA4pJ56GfChQwgVZBgoS47A13i3xSorDSnFDe/gz2hkmAbm49dwCWqYnEk8XkxUWx2ep3qikm12CuSVlRAYkAEUF2xF3bA06YiBsOqBSddO8Kxv1CUZXIQ70jFlABhaEoAO8ULhQcF+4W2i2zXki0IrcNoC51JfV6DWgwP3wwZAiyyGvwD96Se7S8LSBv+IBUfZIOkv8zyVr1/goscoEJyADUSUEe0ikn4Odphq6B1PpaRN8B7cP/qoqmdAfdSylDd2zrg1Cb1wcwhbfOxCpRzYHYj8Yqizds4hVTafI+NHE2FSlWYYvtaeUkLjoXMgCJ4tKYrl/9RrAH1jvkTulITQJa7AXqx6icXgGjGGhr9TbxJ3idnB9tRh0jODiT2QvesEcxY7Ev0m2Hk0oZgoSoaRZQt7PlTQ2gKqpDoMcZge8oFtYDxJBWQ1At+DXTsug3ZvS7tdFICO1AkVjXMD1J/gD0NblRDWkoGoDqQUyhZcDfdLNO6vy9Eh4+vZIb69A87I07Wvh6+DuBDuiaNGVostIryPJ0D/CVmuAgnZAHfYlZlQkwhlUGR6viXpA2cIflPIFGROyECLKqHGqq3J3Cy11fIRYWTKByqhaSTWkp8ZykB1CHplAQLemRhMmahcN3ulgg+hl2Ze6HNweHUKDrwA5jaOddB8iLo83FgDfz4KwsEHUeNKQMeG9FBu8ZxwAM/SDIdeHI5zBEfRTw1q6RTkAbmlTAB55o4llp3UrxsoGyi9zBbpnB17ZVsVTYFciay8smVbhb1jJ4DQVpLIQa3TBxDuuQrusjI8d8/hA/LahVAytA1/BIxd3KCSoECcojdtA/i4nAxLVmlkourHxCCgqjuUvueQGEOQHYRQDfEUJ4FxXiANBj5puiA5qYDplnXIFzw7ckvqwAgydiH7mXmn6LEMceS1hB5uj14gxHYi/TZqC/h8aAkLZYnXECg0vi1oNp4XiGQUlOOiATnbQi0UlDuR9+8zLZiAoOlHDV9fj8KZNWhSufQNcktEwYmfduzR31EzZ02r1hn7ksf9B87p/o8PTa/D8Ghya1iuu2gyxkafDQMEytMTbZcE4URZgobQf3YfkQVcqolQMGpB4YYXehJWw1S2ZSBcibh0GGBTHB/ImZMBIvTckzcCQ+o02foO+RIOGCMuslA7a8d4p70seQQhumMZ3gocm+SRS2bR5IcR4kgrjo+JjBnYaYodw0/2zwjCLCNSAfn3OLN2EJIwOuY1YhGZZD8SYcORJW6OQ/xX2IgqQ8s/ioy52NY0pFsiEUrwHVuMzTgnXbd5e4AZoaovz0HKoCJSyxo4avr4ElEzUaDxgBkD0j7pJJrZ7XO1idXptpvoYf1VaawuXwFaw4qJVW4Y2+lzwc8a1UUR8BO12UHHUiS51QntY7KI/J2hKdFH7W8g3NTk51G+N9BQ+524gwzQ+XomKrRokLcT97lj2pO6FbsnaFDodZFbofkvTB6JLBKgl6QTDCwueCCwCXt2LMRg5VN8VuTpMlCcLgRCBq4smW/TU1kxbE7nYsWpE5i7tLFLbZMSAZwQOOaWgNJUL6yKLiUtygFPJgFfW+BwDGqUXI5QD4Wxin2yQIURjf15pa7OQaAWNyMa9Ig5gszSXUVN4QD5WoxkMM/HUUJrcJEEN2nP3lTftglTYUapYfYjgp1tF19NoZnMwk/whdi9TaSeCl5raoApRaTUYdggcHCBL09RJUg7PgpTpmvURC1mZaMMhRIJyDZZszYFWL6wBG6sZAxWsjcHk76smJB1IxbpThEzz0DYqqIQjseaeWND2JC9epPXtf0SkKNaAN2JiMbU7gn14myXt0dDpDQmGmJmrc8ug011O20FzIc8x7aASFQvvAFq7qNC0M6PJLGY0GEXZq1CQlEsKEqQebmx5wiZuiAWm2usLjHzD7eG2z3ZZbYVsszIg39P1M+pxLD2JpLWONjmwtM2Nt1NDLI6Gai8Shb+geMubBPYouRWXdl0AOdPwJeiykAZNW7Q7oIajabdmb5JiJk1DwU+sCD0fdm9B9SCJoeEdQLAzrE20VePoCfHlNlR9MFqEABeDLyppX1JqdDN9gOYARrPwAv2dgCPtYVKbAXyh8jFPleo7FiLf1/kLYI0hGYpwbdgE6q4F7XGBcVSDrG9st5AG2J3oc33tGuRhcaG5wCcNTlxXqaIaeC9pQd5zK2vATXF67Uvh+llS/ajgHqOU1/aavMgnUjcAAfLi3dGBH5ABWTsZRZossDz8gARcUvNXioHP06BIQ4qtQUoIVL0X2aJUp1w2tmKhyS+4BtoST5YBzt9NyqQDe8VAwgKonABC94O6D+8xKpGyBlgSMcFmbfRLx2cgNAfLYcFvF5VsI4h7XJ5+QSoSMsGLdu/7qW/kGCknmoqS9SxtVviAPAAsCAoamIj7PooslinI940+8YJi9ES0c+FeNxIWOpdfJQZlIrTw+n0kY9lgNlXMNWmoeCfCvC8dGuI/fymcVQA3zJ2g4lBRRZsJQ6odykbZ0UJICjvofXKxacfUgEY6kMxjIhX3tKrXlNdHDZJx9LgyihhPj3s+NodriRCAsLAj0MXyW0JVlk4p05N1wh82YIlb1AmV9Gn8sulPNBWCLcjMpzEctQQ/o2DonSoD3vmwFLBUcCPK6iyPaQPXoF9MjGB0U0lRIMBSWQjMiceh+/kwZCHSQ+d4rgTtRXQCq2CrdvDlaOMkHCg+XnxYmSZlOIzkW/thvV0t6BDr2jKg8gPil3oGwFOXSKdYYFaqBirQNKJTe/A50pYFBLQigIqO3qM6ygSbkICliuaf2Dm61V/szEBNHknLqLGobvWDeeSrLelgyVKaGEXQIuaYaBJIFEV+A6NOi254EKFqE6NJ94nvAChRRAJhgCgcPqBLlWAYNJ6lc52cBF4+xxAQLRpu4aJFt/HP4U77RiRYx1mIa9dBlI33i64Si2W9ahOoabiMcDxyM5qMIhKChuPcn/Zkr+oaFQZpESjcGza9HWmwdZwYjTih4jARhCiScdA74pFxodD6Q/ml2Yk2bb0BGm1ebReT2ugTLbyhS9dQWQTwmVYvkQAHQg9XMzzDI+b1NA66g+rI2BFU8FJbajBRLOCQDp/TnXZm6IQkOIWNZC2yTtXgrEwQwgW99pMRJ5rNo6XR/ghd+nqmqV36xgVhETKg/dFQtJvr8QJ3aettAoX48v0OAJGATrnPrINFOm3EBVEzlUvpaJRBLNfVlxO5FAiqwQ9Az61Jc6CCZkaP0YlQbtSAEvVKvCFibfxoj5aojtpQE8nR103DO9IGTB6uTUi2arWBUEtTTGQmDZmJfhCET4w/Ep3LaisNxXm0yYL0G+p4pFk40hiFwj8yXRXK8DxSeQUYRq4Q4Xdq2x6DCq4RHDo4vuEwvn8cudWLrVv0FoItN4OOwqRyL/pcQ17ifnUwJsvwYuNkKCmaQidoppY1foNFEv44ayi/sHhgGMpL8zB8VJRUqLAI3ITdbjywEzora7LrpSiwlnjIBIy7C1RwQx1R0xDJUA+dXadpPAZdNk1Mk5Q1LBNlNdDqQRu2TZtt6u2D7GrddZ3zqLEYnJ3AEXKNkQTxt0AcbQZqUqqUtgbG4CMGVRtUaLWGjoQpSpJHcjgjlaIKmCc3TEbRwZgLk0+BTh90ZVNARNLAZeZmcC69a/C3FxVu9R2JIZNHuo2+Xiqu3CkDbSMj8X81KjpefLJw752o1V430D53QLCHgc5iLbSDThCgtMhSp6gw/gYhErL8mDEG014xlQEna6/0iGz4AB1jTG6ib4N/M0yYWEEKRdMtDaSuhm7y6ohPxBus74usF6b/GR3UZEWU0+w9EmxtSGW/aW5qdtAsdWpIslFiGoAcWp00YCtWxjRopE9PYEng5W58CEJCp32esS/+7Q55NCiurGla+h7RHPyNLy98e9GYADg0iJXZHRoN2nBtCTJr3mWeWkniBviIGCqg7NLeA7BQl2N8ECu24FgStg4GVTSjA4igwTJ5eiwqdp2C1i442qnUJg+kgjgicUxCkZAPPKv9cDVyUxkXro5Sgl2AZqpIW1Iof9OWrooUZo4ScDqDUJI283QY1uPMDcUQoH86pAEEi9wPnAemNn80/Ay0CAWloU+tcPVCKg9kH6RJT2vmVLKcnkENEC+UkHSKoGlQFTUOmJjuNyp2yhVqhwL5bLeTJ4y6tkF0jMkj1WpMOgqE0GukPrwxVNQRMySqXC3KBP53vD51GpoKAmIww9EvbSJI+QToGnDVrgMFPTBvWZgYwsuxzmZSjjpTQhAcHUAAtDPtdU80IZJyD8ow6rzNRIMd0Sb3mHR8753iIh0RnXX2XEuzaurW4TDhUKyottB0pJvw6azFSDpDld4tDm3azYmiglV3QQyjCbg5gFlb55lCINg6Yrffpno+7yAp6FfezD4BJoQ9g4DVW/v+RNGbTxq7+IqehviyMBnMti7UuWTN8BY6TnPVmJIEhrnQmdRKs19r2EUMBVCNLJM4QMQgmLM2obvT8dmyDmIKgoqSwXxQQcjokJa2az+uDIkOOGw04xv3lHdoRnhatWYC7+hdv4pYYyJbTlA/JrijqNTQWWim9K2Mvz+awQ1qFqFLO8ThiXL4DURCleDPJkIU56pzbhuBgTCgUlgbgkm72PTghKTPpPngmC5PkLvLCdY07S4NnYGcJNkHVh90aBITgnw27haCwWyIIYD+jHkYpKLS6nDUQqMXhyDV3l6QnmfFOmLzDorqmKWOnH3O01zpMx5Cttka6pegWdrnOE1D8SSnvcmhra6uc+pdm/CCt4xH8rJCUJUlo+rR/MhkOg0Fqg3BWDHF+w64DlNaHJ3ekTANBaEdc5UPICBeRYFZPhSr/1pqmpccajClfXQQden84iQnALSjhzI8T+dBvT40rtQ+c1rarJ2kT0a+cMM4ucozCLCIHRoKJcIP06KRXXTP3+mIIlkR4VKqB0oWyGHntREyNIXUGRnJYk3WUGx4xRDukVF9E6TqnbZpCBqZRd1MMCJpeINWAgN5tyYrBRmdsZKovWVUXdSoOhPrqH+LoaN4fm5n2HMCxM3VjhdO4CcagHY7S8Bl9w054MFVtO/OYhCUSPxOHwQCQOUgP+y4MnQKXOcXpP0wOoCXztzSWSp9SRr495IDSIklDU0R8Sc6egwmmVw9FuA4TZXtxics1J6fwSngiTKuwaR6Vm3hNolSPLg2+MEZnDEr9nSJNfjJZxfHXBILAjAUDLJY21zAqDUUXrOZyREMxeJ1gPnSekkZ6dx9xSgLyzXSdPgYVBehl2C/AsvRSB+d3mqfOk3T9YkwMLCvf0WR0RxUklwagBPvY1D0EZJ16Sgp9XyC8AihsnWUSbuQ+WoACCFjJpBDJl1CR21JXyAXQKZKFyqhXYdSxtGJy7GAgIYOm+I31udN1mhX8A/vjQ2qOJGnMaCDqpOwmn0uzMc6EzxijYJWBMpAZ7/dY5yRdpkGAkgHu7Jl5GeeuBkd8ao6zqyNNlBEE3jTr05aqHbKK+Jbq9zHs1nvmNnsa6+/Oo6uGS496QxrGLVfREdo+z3oxGgtSCGW3GFutQuBhVuRgJj467Pgasc3bbk6XzFKxBynzwlspJTafutsH+DekcK68sKYLwMCZ9Mef6Ka6EJ58iAXNRJat52+gVq8uXSg2krn1rv4vuNvaJRcdHgIk1wupEN2l7IojzP9DphxrqHzdg3YcQiCYpa8rCNBQ5Zf85quLDUF4UMDakuYKPMMiYodoNP2nGm7dIYt+IndDdVLwvoTWhgLaSYzgrLERFwgQGNfTUCxTEB/1DkMWY+kfwRCmFCi2vKFIHEpGQ9HEZ2yqXnE9II5JLgpcGALX9gmSuC2boKXbTd1jX0P/Ez/6t8O0aMYP8oSMsRcPyDNuHPAS7sRfUsKhGHnogHK5zgtzo1Gndy66cQA/K5DIqiREuUwQTYiHJFQQHTBs1FJlhGSGAy8JDKTGhi+eaKF1LgyhqdpyA5sTiR5dcZnwR7UT1EENHufU/9gUAOI4hGN/D2QswaaHAQ0/dQVVbVNoCaOxoLhOLrcP6GiwensB5Wu8whq2JBe5ZWrQ0D6pwbaMsOXIBdoWHw68pxyxSV6/Np5Z5Aha50dttF1EKPq37x0kiWwgNuupomfXykGuh1rrtAcDVG3xjEhO4k4zXm/x7j+1z/df3gBHe3s7n8AmSK3mqmIlHkAAAGEaUNDUElDQyBwcm9maWxlAAB4nH2RPUjDQBzFX1tLi7QI2kHEIUN1siAqxVGrUIQKoVZo1cHk0i9oYkhSXBwF14KDH4tVBxdnXR1cBUHwA8TJ0UnRRUr8X1JoEePBcT/e3XvcvQP8zRpTzZ5xQNUsI5tOCfnCihB6RRhR9COJoMRMfVYUM/AcX/fw8fUuwbO8z/05okrRZIBPIJ5humERrxMnNy2d8z5xjFUkhficeMygCxI/cl12+Y1z2WE/z4wZuewccYxYKHex3MWsYqjEU8RxRdUo3593WeG8xVmt1Vn7nvyFkaK2vMR1msNIYwGLECFARh1V1GAhQatGioks7ac8/EOOXySXTK4qGDnmsQEVkuMH/4Pf3ZqlyQk3KZICgi+2/TEChHaBVsO2v49tu3UCBJ6BK63j32gC05+kNzpa/Ajo2wYurjuavAdc7gCDT7pkSI4UoOkvlYD3M/qmAjBwC/Suur2193H6AOSoq8wNcHAIjJYpe83j3eHu3v490+7vB187cp8Pr2pdAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AgNEjYtUHraNgAAIABJREFUeNrsvXmUZWV57/953j2cqYbu6uoRaEaZBJpRFDURERkaARHJL4kmMcNNojfJSnKvSUxMbhKXN5P33hXv1RijkkSicUIQoVFRVFCZu4FmlKHpuYbu6qo60x7e5/fHPtVdp+pUd52pqoD9XavpRfWps/e79/t9n/l5IEWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiRIkWKFClSpEiR4tUCSR/B0sLfbRszp49FfqA2Y9R4LtZzEQeMqwiCVSsaGSRSI2GoGgaxVq8/dzyEEzV9gimRXhW4bfOQ61gzgDAoomtV5ChgncAahFUKy1D6gIJABvAAAzgIkFAlAmLQUJEyUBQYU2WfCEPAbtCdwC6x7AnVGb3q3IED6dNPifSywjcfGTWYyDPW5NSYAcUe6yinWeF0AyeDHAMMAv01onQLJWAM2KvoC4h5Uq0+gfC0A7tjlQOKDTQmuuq8lak0S4m0+PjPrXu8vtBdLYbjUV6r6BmCnA4cD6wlkS6zoAf/U/8zmf7vgNR+qjNenjZ6iXLEF3sA2KHwLPC4CFtRnrTWbr/ynFX70reZEmlBcfOWvZmMOKeI8gaBNwJnAOtqkibbiDSqh9gjIhgBYwTHERyT/DFGMAZM7d9FAJGEOFYPfo9VJbJgrcVaJbaKtRBZTT6nh16xmDlftq1JrlHgRVQfQswPo8g8dNV5y7enbzklUndsnPuGPdeXExGuQLgcOLumpplZxDkkTnAkIYvvGTK+IesZPM/gOeYgiYwAJiGMzOfN6CFyqibEia0SWSWKLEFkCaqWapj8iWLFqh4Uc4e5RghsA+5VuNVqdM/Gs9cMpW8/JVJbuP2R4ZwYjgUuEuQdwJuBFbNUtBqbjBFcR/A9h2zGkPUdsr7B90wibURAtJ5sOkvDa+2FSv3fqoKqEsdKGCWEqlRjKkGckCtS7JSUa7Ahaj97BuVbInqHxTyiRMNXblgdpTsjJdL8CLRlaI1g3iRwJYnqdgLgTpc4iuKYhDT5jCGXcchmHHzP4DpTpGkgpRbjRcshu8paJYqVMLRUgphyJaZUk15TxDKzd8c4ylaEu4BNcSiPbDx/RSndKSmRGuLWLcPH+io/j3AdcBpQmHpWCqgFYyDrO/QVXHryDhnfxXFAXqaPVFHiGKphTLEYMV6KKFdjrE2k2ww1MAL2AT9SK5+vOmy69qwVxZRIKbjjkVFPXX2NiXkvor8Asr6R2uS7ht68S3+vRy7j4Bg55ER4JWyIGmniWClXYw5MRkyWIipBPNevxKD3K/Ipq3q7qIxeec6gTYn0KsM3H9qXdRy7QYV3C7wbWD9dDZsiTyHn0Fvw6Mm5uK4sqpq2UDAmWWMUKcVKxEQxoliOqIb24LOZBqtwH8rnLdy+r2K2vff1A5oS6VWAOx/dd6GqfR+wETh6+o4wAoWsQ3+vT0/ewXcTR8GrgUBzOTCsQhBYiuWQscmQYjlR/Uy9vzIAHlPVL4jlPy4/d+XulEivUGzaPHosor8DvAdYSc11rQpihN6sw4plPoWci+PIq4448yGWjZViOWLkQMhEOURtQztqK8r/iWPzpY3nDZRSIr1yCDSI6PXA7wMn16sxQiHnMNjnUyi4OCLYlEBHJJQqTJZCRscDJksxdvZDs8BtauVjYuT+yzcMVFIivUxx1+ZhP8S8HdH/CrwNcKYkkOMIfXmX5b0+hXziPEgJ1KQtJRArFMsR+8cDxosRUawz3ecjwE0gn7l8w4rHUiK9zHDHlpHXGOGPVHknMACHAp/9BZfBZRnyGQcxqQOzE1BVSpWY0bGAA8VwZpDXAs8A/0+tfPaKc145MahX7O75+gPPuxmv91oR+SuSWNBB+J5h9UCW/h4XkZRA3SLU+GTI3v0BlSCeudEi4Ouq9s+vOHvVkymRliju3Dxygor8Pqq/jiTJowp4jrC812dwmY/vOUneWYouqnxCGFlGxqrsmwgII63bcCq8gLUftcZ8aeNZg+MpkZaKGvfgDiNe9mrgQ8AFU3YQkqhxK5dlyGfdxEhO9/mCbTAFypWY4bEKB4rRTA9fEfhybPVvN56z8qmUSItNoidGsoTyR4L+DrWEUquJFFqzIsvyXh8x6cZeTFhVxidC9uyrEIQ6013+uCp/csXZg7elRFo8Ve5EK/yNwPXTV9aTdVg7mCOXcVIJtFQ2nEClGrN7pMJEOZqpGhwA/pqYT11+7uBkSqSFItCWQJTxSxQ+InDhlC3kOsJgv8+K/gyu27mAqgC+EXwnSU2NVKnGSqzdeTHagc8sVTLFsTJ6IGBkrEoY19lOgcBnI/SjGzes3J4SaQGwacvwr4H8BXDMlCqXzxrWrshSyHuYDm+0ft+Qc8zB+IgCoVUOBDGhbe3BHyzMQ7G1v1WTMgar0xcww5EsSfwmKQIUhKlq2lph4LTfWqpk0lrsafdIhWIlros7KdytxB+8csPqB1IidQk337ctm80W/kzgD+GQV66/4LJuMIfndd4YKriGPt80fGDVWNkfxPMK5MaaFNLFOvXHYi0HPYja5os0kpSqOyK4InX/v1QRRpbdI2XGJqKZdtMzGPld3+/71ltP8TQlUgdx+5bhlQbzYdD3U8tQEAMr+jKsHsh0JTfOAMsyDllH5jCiYV81JpjGpIN9FVBia5Pyb2uJp8rCu/zwddrJb2rSyjUGzwiOMZhald9S2AAiSaHh0L4qI2MBsdapejtQ/T0b5W+98vxClBKpI6rcyNHAR0mSTUUVPLfeK9eN0JAjMJBx8A6T/bA/iClFWmtIkpAmsonEmWqTsNgPe+oejICRhFSuMUnTlanmKou4ERXYPx6wd7ZXbx/IX5aK/Z+47iI3SonUBm57aO/xrut8CriU2mmf8QxHrcrRk3e7em0jsMw/jERC2V2MmAgjYnvIxnm56PZGBNcIvuPgTvWUWEQUyxE7hspUAjvdbpqw8L8CtX9z7dmrKimRWpFEm4dPQvhnkIunTtas73DMqhz5nLMgZQ6Hs5EmQ8tLExXiV0CmhCMJoTJOIqkWA0agXI3ZvrdMqVqXXlRB+WuN7ceuOG9VNSVScyQ6GZGPA2+fIlFPzuGolXlyGdPxTO251Bsj0OcZss6hE1uBamzZNRlQjGJeKVASu8p3DL6TqH8LLaVEoBrE7ByuMFmq0+ZC4K+iQP/hqgtWVlIizcsm2nc82H8mKX1AFfoKLutWZsl4nQuyKkl8KOcmnq7IKsXI1sWHYlWCOMYTIe8mG6saWybCmEpsX7HZvwK4RvCmpJTIgqmtAgSRZedQmfFiOD3BuAp8rEz1r9+54ahKSqTD4PYtQ8cYzI3AW6dI1FtwOGZVAc/t7MsseIYet95FXImVsSAmtkoltlSi+FWf5OqIkHUTQi1k1nwUK7uGy4yNB9PLXUoWPmJj/v6qcwejlEiNJNGjI2tQ+Tjo9VMSozfvcsyaPJ7pHIl8I/R6hkwDJ4ICu4shY9WQqN4d+6qGkrjR807SJXYhCCU1Mu0YKjFerOPMJPD7Cp+9YsPidi5acmmctz480ovy56DXTb24vpzL0StzHSHRVOPDXs8wkHEakmhKAgZxnJKowaaOrWUyjJgMI0Jru67qKUkl87qVeXrz7vTr9QB/S9L9iZRINfz3HUVxHf1j4DcAYxXyGYd1K3P4nukIiXwjLM849HqGwzmlgti+om2fTmzuILZMBBHFIFoQtdd3hXWrchSy7nRP7YDAx+58ZGRjSqQaLh4t/65B/jvgJi5u4ZjVOTIZ05FTr+DWpNAR3LqlyLKzWCVMmzccmVCqVOOYA9WQII67Tt6Ma1i/OksuY6aT6Sg1/O2mzcNnv+ptpE1bht4B5l+AVapJOfj61TkKebftOJER6HENBc8cdsGhVfZVIkYqIbFV0ir05pFxDXnX7aq7XARKlYiX9pQJ6rOFv6lWf/2Kc1bueVUSadPm4TMQ+TywAcAxwtGrcvT1tD/MzjXQ7x9eCqnCeBAzXAkp1eJBKYdalxqeEXKui++Yrm7c8WLI9qEy0fQyDOUTkaN/cNWZKxc0YLvoqt23towsR+R/TpEIYNXyTEdI5DvCwBFIFFplZzFg+2SFUhTXlSAsPTN/6dNbSAadTQYh5TDqmiNCgd6Cx+qB7Mwb+E3H8vuvLhvppR+ITforXDX1cJb3egwuy7S9ZbKOsNxPcsfmehGTYcwLExVGq+GSSCpFBBWDTs20UIvEERKFmLCCCcqYKEDiENFa6oyYWud7w1LSRRUoRjGTQdg1R4QAg/0+g/3edPXfEeS/3bF55IpXjWq3afPIexE+BeSsQl/eZf2afNtVrXlX6POcOb1yVmF/NWJvOSCyi+Derm18RZE4xFTLOOVJ3IkxnPF9OBOjOJP7MMUxTHkSKiUIAgSLGg/1s2gmj833E/cNYPsGiPtWEPUOEBd6sdkC6mVQY5IUebu4wyE8I+Q9F9eYrmzg2Crb95Q4UKyrZ/qJRd9z5YaVz72iibRp8/DZiPwHtZ5zvmc4dk2+7f4KPa6hxzdzitrQKntKAWPVaOGlkHFQ42CCIu6+vWT2bMPf+xLeyHbM/t04pX0QVBCb9DKYqnVVSIanxMls2Fq1E6KKTs3J9Hxsvg/bv4Zo5TGEa9ZTXbuecOUxxD3LAal97+J4Io0IBa87dpMAlSBm254S1cBOF4ufDEPn999xwfLqK5JItz862iOqn5SkrggxwtErcyzrbd0uUqDHSyTRXIuqxJadtQTThSYQAmZ8hNxPHyH/zEN4e17AKY+DjaemLc9jkYqNlMM3iUiKn0TA+jniwbVUTjyT8umvJ1h9PLgexDGLUXkkQMFzybhOV77/wETA9qHy9LMiAH7t8g2Dn39FEmnT5tFfR/QTgAewvM/j6FX5tr6z4Ap9/twkKoUxO4oB5dgujGEoAipIHOCN7CC/9R7yW7+HOzYKxkMdr2WbRiNFYzs/LsQREgdoxqV60vmUzn0b1eNOJ872HGqcsMAoeA4Z1+3K5ts1XGLkQDjtu2WbKhuvOHvF1lcUke54ZPgsMXIrcKwq5DIOx63LJ5kL2iqJ5q4VAhirRuwpBQTxAsSGRMA4SKVIdtdz5J/4EZmn7sEtjqEmA05nihA1VjSy8xcsapGoirpCeNwGSmdfTOWEM4mWrTw0z3MBJVPec8i6bse/N4qVF3cXmSwfaqaiyn+qOv/lynOWj78iiLTp8aECsfk34LqpnLfj1hboLbQedM05Qr8/t2NhfzVidzFYmKI7MSCQ2f4kvQ/dRea5hzCVCRCHrnSntIoNtTmpogoao45DvO41FM+9mOKZb0SzvRCHC3qo5l2HnOd2/BwrliJe3F0iPpSZMonyu+547sa3/UyhKxvBXdAnF8vPk0wIR4CVyzL0tJG5kHESde5wJNpVDBam/MEYnNIEPffdRu+DdyBBJbGNjNfFawrGAxswf5tHBMRFFNwdz7Bs+1PkHv8+By55L8HRp9RIuTDqXimKQSDXQcmkCvmcy+Ayn737DvoYehA+EPSV7wZeeFlLpDs2D58gIl+k1pM7l3E4dm0ez23tpHaNMJBxcOciURCxa3JWR5quqHISR2Rfeoq+799E5qXHUa/AgvZHjhXbjJo3cwlhFZvPMvmWn6d49luIC8sWTNXrlgMiiizbdpcoVQ/l/1nko3sne//sfW/0O35SLMjbvv/xohh4L3De1KE4uMzHb5FEjsAy38xNouoCkchxMeVJ+n50KwM3f4zMzmdRv5cFbzLuCOK2fk31Mkg1ovfOzzFw66fwdz2DOu6CBHgVKIURQYcz7T3XMLg8U7cEg/7Wmp7xN7xsJdKmR0bORLgTYa1VWN7jcsyaQkvvSUg6+uTmYNF4ELNzskrUZXVOXQ9v+CWWf+ffyD63ObmzRc4s0NCibfZPFhsR969k/JIbKJ791kP60gL4aHp9D9+YjiqWO/aWGB0Pp6v/tzs4N1y6YXnxZSWRNj2ww0HkDxHWQtKXe9VAllaD3HnXkJ2DROXYsrsUdJ1EiJB56QlWfvnvyT394JJJzxHPQJudf9S4mPFRln3jn+n70TeQMFiYQ0ChFEREHSxdEWDlQHZma4JLIuJrX3aqnfUzlyH67qmHNdjvk88230JLgUytNLzRVgljZedkQCW2XSdR7rktDN7yj7gjO1DPZynBuB1onyoGwpjeO/+F/ntuxlTLieOky4hUKUVRxwRgUtNmWLksM91+zAj8xqbNo2teNkS6ZUu5zyAfAPKqkM04rOj3W2qh5QpzeuhihZ3FJGOhmwtSxyX/1E9YfvsncfYPgeOx5GCkM/NwjQEy9Hz3Cyz7zk2Y8viCkCmILeWoc71MVJNE6Hy27t4vQPTKbzwyJC8LInmULwEumtKBV/R5LXnphKTHQqPe+AoMlQLGw6i7i3FcCk/cy8A3P4kzOdaxwGpXhKZjOmP9iqBOhvwD32LZt2/CVCYXRIWtRDFBBzUL1zUs7/WnP5M8qr+UM37/kifSHY/u6zPYXwCWQSKN+nq8lgzJrCPk5iDgeBAxWg277OI2ZJ/bwvJNn0GC6vy8cqpgDJLJINkc4vu1TbgQMS2QDmZaqxjyD26i78e3IWG162Sa8uR1Moje3+OS853pp/ObI42uWvJEErXnAZdMF69+C+NWHGHOEvEgtuwtBXS1tYJx8Pe+yLK7/g1TGj8yiVTBODir1+Cd9Bq8U07FO+UUvJNPwT3hRKRv2cJIJbezhYCKR+H7X6D3ke/Vvra7ZIpVKQWds5c8zzDQN71uSQzCb9/56L5lS5ZIP3pxjwP6K8ByVcj4hmUtVLwqiZfON437zu0pBZTjLsaKjIMpHWDZd27E2/v8/GwEz8M9/njc9esx/f1INov4PpLP4wwM4J94Es7qNd13KUuSmdRJJwuxS++3/pX81ntQt/uqbWgt1U41VFHo7/XJZuocXW9Qa69eskSaOOCdC3L11IYf6PPxveY9dRlH6JlDio2WI8aqXXQuiCBxyLLv/jvZ5x8BZ37eOWfdOpwVKw6pP1OLnvrbc3GOOQYzMND97AGnw0eMMRCELLvz82R2Pt1154PW7KVOqHgHR6Iu8+uPG+FXNz2yr29JEsmqvg9YNiWNlvf5NDvoRIBeVxpKm3JkGa4EXQ8n92z5PoUt30PdeZR4qCL5PO7g4JE/ZwzuuqMTr18XJZOItB1Xaiilx0bo+8EtmOLYgqh4lTDqGDP7Ct7MVl5nI/ZnlhyRbt88fKoI7zgojXq9JCDW5H7JudKwmtIqjJTD7paIi8Hf+yK9991ay9xmXkQy/cvA849MDlUkl8X09HRfvevCUanikHniR/Q8fm/nidrIixdbgrj9YkwlGUw3o4C0F+Gabz82lFtSRDJGroEki8F3DX0Fr2kSObWJD41nEcUcCLvbiFCigN77N+Hs29XUTjTZbHM2RzOfb3UtTnc2uljo+cEX8Pa+uCDxpVKHhhhoTSpNc3wZ4GJrneOWDJFu3zK+CpXLqc127ck7ZPzmL5FxaDhmMrYwXA67WxZhHLIvbiW39dsdttbneKvdp1JXFHg1Dmb/GP3f/xJE3XeJT00F6QR8z9CTq3u3x1vVi5cMkYTgLNAzp/TzvryHaVL0G0kqXhv91v5qSDGMu+6l6/vhFzARTW8OWy7PnxyqUKksCI+6NTFC3SzZx39E4an70AWQStU4nl6s147WRF/Boy4xXHjnd7YcKCw6kb61ZZ8ryUCwFQnrhUKTYykVyNYmb89EYJWRStRV21aNoefRu/F3PI26mWYte+zYfjQIjkxAY7DFIrY4yYKgW9JCBFWHnge+gzs+siBSqRMZD6pQyLn4/qFMc4E3BLZ67qITKZJoQFUPBmB7cm7T6UAGKHiNX8a+ckhgbVelkbt/N4XNd4OTaW1TVSrEw0OHl0oiaBQR79wBUbQwWePdvIRxcHc8Q+6FxxfkTKjYzrjDPdfQX2+/F0TMtYtOJKw5T0TOmFLP+gteU3tEgZzbWBpVYstY0OUWWmrJP/Mw7v5dbRnP8e7dxENDtaaMtRolOVSrpNWA+MUXsQcOgFmgAkAj3SVTEJB7/EeYSrHrS7GxdigPT+nr8eo68YrIxlsfHhpcVCIJuhHI2lpnoHzOaSp1x0jSyKQRwcaDmLDL3UKd0jj5Zx5qPxUujole2kb0/PPY0VHsZBEtldCJCeK9ewl/+gzx6PCC1i91/Upi8J97CH/Ptu578ISOjCE9uE+zzrRGtHq8J86bWvm+juR5fOfpykBUmbx0SgHtK3g4jjTVKdc3MoenTjkQdLkrqgj+0Eu4O59of4PXesXF+/cRj+1PssSl9ubiaKG2dkOHg3bLSyiCVMrkHv8BleNOY+7Z8B2SSrWZTO02TTGSJLOOH5qa7ovRt923V79x4WppKsbSEYkUViYuAk6EZERhT4/bdPZLxpGGsb2JMKYcdXdynqiSe/YhTLXUYXVRIQohDKeRaJHQ9X5+Hrkn7sHdvxec7qusQWw7IpUKOXdmBe2F+3aPrl4U1U6QSwBnquFj1m2u7t4R5hy9sr8SdbfwwBhMcYzMT+8HWbo1RkudSOq4OGP7yD33CCrdd4XHVok6oO57niGXcaYL0OOMyMkLTqQ7Hx0dAF4/9bJ6cm7TsSPPkYbjVyZD2/WqV4yLv/NZ3JGXFiRC/0qGSobskw8gYXlBapaCWNs+ZI0Ihawz/Xb7FT33m4/tdxaUSFbta4CTEskiST+GJr8ja2SOAGxEt7urqVpyzz6I6NKaL9QNO6brRHJc/D0v4o3sWJgeD9Z2JMsll3Wmj+r0gPNdG2UWlEiCOYtkTDuuI2R8p8kTATIN3MCBVYrdLh83Bqd0gMz2J1DHJ0X7z1NKk/i7ty1Ir9ZYlShu/0pZz8Gr70x1huAMLBiR7nx0Xwb0bMCHpGTCded/8imJt66RbToZxF2fKq7GwRvejntgJFXrOvVMreLv2YZE3W/jpUBg209gdl2ZWb293qInLhiRYmt7gVMBQ83RYJqMwubmKJUodjnDewr+nhcTz5qYV/YOl4W7kDeyM/GAdlmdFJLBce3m3xkj5OpbxPWr2rOaIuN8PnTHlpF+Ud4AHFMbJTcaqfzYJI1Njp2iZDbjNDVyxzGC3yAIG1ml3O3+dAgSBXgjuxAxKK98Hi3IGkVwxoZwykVsrrfrl7OqhNbimvYmPeYzdQ4HRORNm7aMPCZwoqo6CPsDY+67+swVL7VEpE2bR08B/RjCFQldkqu5wmPAd6glqbpGyDTR3CRR6xrXhVXimMAuQE+DagV3bAh9pUujhSbt5FjSKGb5mgU5IMLYkm2zCX/GN7iOEB7qAXKNwnWAO8UwT/WpTVtG/thX+cZbz15h502kW7eO+Brp7wpsbPDPZ9bUOkc1cTR4TRBJSGqOpAHBSmHijem2YmCqpaRHXUqkzj7ZoIQ7OU51ga4XWUusitPqBERNklh91xBE8RRvMjO/TZRTgQ8HDpuBbfO2kbLWWSboGw/zEQ8wSW8GB8fMv6Rcao6GRijF3R8pogKmWsJUi69st/diIApxigdAFkZhtom93tZ3OMaQqQ/MzoVTDHJSU84Gi3VBMvNhRdY3TQViHWkchA2tpRJ1n0gCOJUyBNVXx+ZeyLNCFVM8AHbhLM+w3XiSKLmMOSL5FVyrszlhjmTH6LzekZL1nabMWWeOzP5ypERdV+uSW5WggrEhKbrwbMsTLOTkdBtre5X7CtnDDPOuJ43SFJHmCyNCxm9umLI7xzihchQv0KBtRaIQNJ7/Sd7oZEm1wsZEqpaRBZyYHqti2yBuYic5OE5rQ8HdDjwzPNfgNnEDQpIl3tDRENkF2pyCiUNUG2SWJ/OKUQsaAbZWgqD15BERcDTp2DU1b3kpE+tIPnAFRcCCWjn0Upi5bgUn0UTmWq8EwUIKJCyKbcfhALhO0q4rbiFbon0iaZJ02ox9pIArjbsEVWO7cHtR6y1WjcHWhJTGNSu2pj83/nWFYNoGc5IEcuPXGhC9HKSV1khjwcZmXptfEQiptUVWRLS23kO/LDZcUNVONckI99rQsYwRfNdQrja/BztSN+B5BiPzf2yGxt10A2uJrS6QQDKo46KxYKuKhtPII02obdM+o3EiwWyQEMl4IF73u3q14m1QK2gkNWnbBgkjSYgVgRhNiAWo4y14WMF2pJeDtLT/3E4cad7UlLh5rsMIDVOJgtjW7eOuwXGR0gTu888Qj8dgpXM2j0xtsKSWT4KahMosES+7BRuZRAp1UmAoaCxoLIg6UCyDjcHzIF6YdK9Yta1KapHETGnlCzqQ/Z0Mcmpmk4g0Zn1gtbvKgCQ9fL3tz7L8xr8j992v15PosLukwZ/5/GYMcQniyZq9tVganAUNDXHVoLF0VetSPLytm+n/wv/FGdq5YE1eOlFK7zqmpWfjdmJzek16Opw5ersHXe7nLdUyuYfvoeeb/4ozWUQz2TmU7ah2mrqYnn6kfwXS04dkssmmiGK0UkInxrAH9qHFiYNzkTDObNEjCYmiSXByiYRaSPtJI4jLoOFhugmpJpLDJr0DxfUgk0O8TPKyrKJBBQ0qSZIvgHHnWG+ScJl7+Ad4Lz3N5FW/TOWM85NegV2cwBHXzrd2JL/rSEu/3zaRhOZL9M0c846ibnUKchxMcYLe73yN7L13IHE8m0SqaLWCiMU57hS8sy7AO/FUnBUrMfk84vlgnENNRKIIDarEkxPEQ7sJn3qM6PEHiPbuQNxs0ky/wSLjUiKlnNzCkMlWIa7MsP1miCqtlhEDzlEn4J58Bu5xr8EZXIXkezCuV2sEqWgYoMVJoqHdxC8+S/jMo9g921EcxM8yI+sr9bajAAAgAElEQVQTzeRxxvbT9+VP4u29momL34Fm811T9RRN3k0bTDJGWmoU0xkiOc157JyGhiLdmTDhuMjkAfq/+mkyW3506BStO8piEEvm3AvJXLyRzEmnIfmeun50c5ntzmrghJPJve7N2LF9VB97gPJdtxFvfzHpINRArbHV5GB2C90lU1wBWzmM7RoGkMmQfePbyFz0VrzjT8ZMrdvMMfFPlYwqWIstThD89Amq93yH4LEHIVKY2dnHcZEwIv/tLyP7hhh/5/vQXE8i8bvguUsI0HrOnTE0VcHQESJpzXHQbG/pRmqdVe18RokYzOQB+r/yz2Qf/gGamTHnyFoQwT31LPKXbCRz9utaG7Iskki9FSvJveVKsue/ifKPv0fl7juJ97xU84vP8JqFEBfB6RKZ4grY0hzfbSMk34v3hovJv+UyvBNObdLOlKRpTP9ysue9key5byB8+jFK39tE+OiDifo3/bASAccl/8BdiAjj1/wyNlfoyhAB26bxZ2QxVDtNxoY0a0vKHKdBRxU7ESQo03vXzWQe/clsEkUh0r+c3BXvJvf6N2P6Bzp36Z4+8pdeg3/62ZTv3kTl7m8mInfGg7IhUO68mmerNUkkDR5yVMU983UULr0a77SzEpW1AweWd+oG+o57DdXHN1Pe9DWiZx8Hv159Vi9L9qG7sX0DTFx6Hep5HXd6tHsYS82jHLMIqp1oc7GIhhJpSr/tIJFyD91D9p7bZ6tyYYhZdzS973k//imvbU0KzefhHnUsPe/6JZy1R1P6wqfQOAbHmbXpxYDp0KgkDcGWG6hzqhCHZC+9jvyV1+EsH+z4eiWbJ3v+RXjHnkDxli9Qvefb4Pr1hBaH/N03Ew2soHjR5UgH+/1pJzx3Iovl/m5eFDZSBXW+GbLzsos8/G3P0HPbjUhNfTskiSKco46h/zc/iH/6hq6R6NDmypF/60Z6/8t/RzIejdrPxpXEWdYJGyFuNFlGFbUx+Wt+gZ6fe19XSFT3+FeuofcXf5PcpVfXxK7O8OgJvbfciP/c4+B6Hb12u1pNq23S23fwS/Mfl7lOk048SWOQ4jg93/g3nFKpXhqFAc764+n7zQ/iHnsiC4nMBW+m91f/ACkUZruANZEi7XqGbblBrEqT3MWe63+FwjW/kLi1FwCSy1O44X3kLr8e4rCe3cZgqlX6vnkTZnxfh+NMutBbukNEauHC3W4dmL//e/jPP4lO19GtxaxcQ+97fht3/QksBjLnX0T+2vc2lIIaJWpZyyQKk9SkWQ/XxuQ2/lwiHRY4ZUe8DIWrf47sJdfCjK5C6vl4L/2U/IM/gA6GPTpjHcjiEGnJQAzO8G7yD9zdwA3rkL/65/FOOnVR7y/3pkvIvO5nIaw2dBK0pJto7Xd1Nom8c95E/q1Xdsap0KLdlL/8WtzXnjebMCLkHrwbd3Rv567XkaNYF4FIytLpwGMtuWe24gxvr19aFOFvuJDsBW9s61RWVWybp6f4GQrvuB6zam0yaGz699eyz5u+r6iBSmct0tNHz8ZrMX3L2nystq11OytWUbjsnUg2N2vbO7teJPPUlpf9Gb4oXeNtl04SU57E33JvkisyZRrFMZLPkr/inUg239L3jo6OsnPnTvbu3Uscx6xYsYJ169axbt26luazOquOIn/tLzL5T3+TePGmfYetNplCpDWVbuZpFpTJv/09uCec1vLzHB4eZsfOnQwNDaGqrFy5knVr17J27dqmv8s/61wyF11M5c6bIZOrk9LZB+6ifM4bsIX+rqYQdVM1bJtIVhO39XyTv3WOm5V2yWQc3F3b8F7YWu9gqBbJXv5OvBNOafor4zjmjk2b+OrXvsaXvvpVSgcOHPy3q6+5hmuuvoZ3ves6+vv7m/7u7LlvoHrmBYRbN9elE2kt3c3M0yeQJKPO+GEY4Bz3GnJvubylRxlFEbfeeitfu/lmbvriF+sk5/XXX8+173wn11x9NT09PU0pXYVLryF44AfYA+OHVG/j4L30NP7zT1E5+yJos1+Htk2k1krW21PtaknEtumsjNl3WkvMbuNehOyTD2Gq00bV2xjp6yf3pktbItE/f/rTvO9Xf5UbP/c5quUybiaDm8ng+D633nYbv/WB9/PXH/kIY2Njzd9uJkfmTZc1LMxqxumgUQMnoI3IXXI1UuhriUR/9/d/z7tuuIGbbroJx5i6dX/l5pv5rfe/n3/8+McpFpsbdWlWrSV78UY0rNS9N1Ehu+VetANOh3YnuB9KM1pAIsmU3dDkhRtFn5PSihYfghikPIn/5EOo609nA/55b07skSZPpXvuvZc//OAH2bd/P67v170gEcF1XVSVj/3DP3Dz179OFEVNE98/8WScdcfPOlg0nL+Go+GMQ8xanHXrkxhZC7j99tv50w99CNd151x3uVTiTz/0Ie68886mbafMeW/CWba8boHqZvCffQxnbLjtHuztGv3aonrXtrNhqsS3XSKZdm7GcXCHduCOzBik7Bi8M85DmkxPL5fLfPGLX6Q8MYGZR4zjLz/yEfbubd7zZPqX4550+qw3pzo/753aBoFcVbzTzsH0L2/6fkZGRvjSl788j3MreSZ/9KEPMT4+3qTjYRDnlHPqPXjGYIrjeDueR532iNSORBIBa7WlStvOEKmJRF6ZY4+YOfrczeseRPB2voiEYV1wz/QP4B51bNM648joKP/0yU/OKx3f8X22Pfccj2/d2oJ6l8U97oTZr0GP3NwokbgNtGTHwT3hFMTPNH0/u3bt4qbPfx7jHdlAM57HT59+ms2bNzfttfRec/qMtCGBWPF2vthWTKltOxuIY10kiYQS2+aaRcQN7tRIYi5oC8eI2Bhv745Zj9GsOhqnt/lG7rt27kx+fx7DfqdOwKeffro1b8/qo8CfHeM5IpGk8WckV8BdvbbpmhxVZWR0dN6n+tRnnn322Sa1Bxd33dGIn5ulnrsje5Cw2l49UZs2UhS3lj/ekVLzsElPi7WNCeO1KtajEDM2Uj+7VBWzYlVLLu9WjM1W4yzOwApMvkHakOXIrbMaXFIKvTh9/a09x1bW3Yoa1L8cKczw+DkG58AYElRblitC44To5ojUWmC0AxJJCMPmYsFJpvfsn/tGWpNIUYiZnJyRs6WYvmWI13xu2VScxM5DZ50i3WtOOqm1E7TQg/T0zTIc57U/VWadUKa3b/YmnadtsXxgYP4HSe0zJ53YfM6iyeeRfO/s91guJkRq1eck0p7XTml5AmBHUoSCyDYVR7Nz1B75jrR2Q1GUVHtOf4gKks+35AUaHBzkve9977z09ThIcsjOOvOs1h6e52Ny+dnXms/BOHPDqyK5QsvpQOvWreOd112HDY/sf49rnzn33HOb3/B+FrL5GfcvSBgk3W9bVuvaczbo1F5ePNVOiZtgkp3D0+cb06KO29g6F8dp6XTL5/O85z3vIdtbmNfp/PGPf5zVa1a3eIqapGVVs69P57ZBWs2mXjk4yM/dcAPZwuHXPfVvN954Y0vBaByDNLI/bYy0UYLern1kVQlDuzjZ3yKJgRZH2pSN2EiCekbwjbSQt9k4mqstlksaY3jzm9/M3//PvyUOAqJqFWvtwQ2kqkTVKlG1yn/9nd/hhhtuwPdbkwKqmhT8NUOWIx4qtLzujRs38uE//dOG67a1dcdBwIf//M+55ppr5hUeaLiuhukt0tbQt7Zc3zWPXRgtompnLVRDO28i6WE8d5lW+oq5bpJmo/UFZBpUWq49zuVy/Pqv/Rq333EHR59wIjYMD26uKXXun/7pn/irv/xLVq1a1frDiyO0Up19EMgRnFdCQ6Ncg6CtxiI9PT383u/9Hl/72tcoDAzUrdvW1n3jjTfy3/7wD1m2rMVk2Eaq+JQ0dVvPWnNE2moOGYa1Tr+L0Y5rSlWvVC39PfNvtxpabdiDLO8a9lebyDlSRV0Pm++tbSDv0M8nxtEobCmmApDNZrn8ssvY+shDPPTQwzzx1JNEYczxxx3LBRdcwJo1a9pPSamUoDg+Sx2b19fO7EluDFqaTNqK5Qot31Mhn+faa69l+1vewgMPPsgzzzyDWsuJJ53EBeefz8qVK9tbc7WMLRdnncY2k0dbtO+kRqR2RFIlsFirTfWx7yiRAMpB3JQrNK45HGa6AnKekyxEaYpI8fIViE4zFEWw+0aSTdUikabUhb6+fi6++GIuvvhiOg07tp+4ODHbrpnHZItZWpAIdmIcOzmBWbaiTZVdWL58OW+/9FLefumlnV1zsZg01az/Kdrbi/UzLbnhRaQtG0k12cOtugw7UyErEIQJm2XeRGqcipF1BN80OWXcOESrjqo3kEWIh3ahTSZWLjSi4b1QrRyZJA2P4AY/L04Q79+3hFesxPtGoDQ5SyLFAyvBa+3QM9JeDMlaqFTbcHR0ikhhZAmamG2UNIRs7HnJNZkbJ6qERx0HnlufDLlvL9HIHlBdmnsqjoi2v9jQzX7ECRba+DMalIl2b+9KA8aO0CgMCbe/gNa5uRVRCFYfjTpuS+/LaUMiiSST0YPIziubTJslkklCfvNyokVWCYLm/G1Bow0EFJodchNHRKvXE61YU5f4p9UywdNbl+ymshPjhM893VAazWcUTMPPqRI9sxVbLi9NIlUqRE9unhHzU2wmQ3TMiS1P+XONaSvPrhrExPGRNSoB4gZcOuyOdaxMAjsO85FJYGSKppVg/mMrlbmnT+Qc01wCqyqaLxCcdh4ST2uyYVzCh+/BTk4uSRUn2r2D+MWnZnsW3HnqCiaZv1Q/Vc8QPb2FeGTvkiRStPNF4uefrNddo5Bo3bGEq49uKWlVALeVrJjpNn7FzvfS+xH2NEWkWMJJ0M8C++f4yGeA26lJrXI1nneempCodlGjwKxryLQQnwhOOx/reYdUA8cl3vYs1UfvX4LiyFK5/4ezbTitlZrP8zQSj1mZ1HZsP5UHfrgkD4/KD76FBmHd4SFRlcpZb0CzuZZKzR0jbXnsEvsomn5Lce1PI3xJ1D7TFJEuO2u1ho7eLJhfQbkF4QGEBwXuch0+UAom/wT4MckgRCqBbSqgZYFKg8isK0LBbdLhEFuCo44jOvb0+pfhZinf8VXs+P6ldTJve47gR9+a1SBR3KTP/7yNXDf5nTp4GYLv3Ua8a9uSWnPw1KNU77+7vpWxjYn7V1A9/bykmWfT1ASv5YyY2ruILZVpZonC08bwmyBfgWTPA3eD/IEV+R9XnDU4y4N1xFf2jjNWBcCtdz4b3VYtjuUdLH6olbddsDoC2LRl5HGgCGSiKLGT/HnaOAJUrdLTIJ7U4zuMVsMm4qmKzfdQ3fAGvJemHRieT7RrG+W776Bw9S8sjXM5qFK89QvYcgXJ1JcTmAxNe2CNn4x0OnREO8QT4xRv/wp97/u9rneTnZ9tVKL0za8kaojn1tm31Q1vIh5c09K4F6kRqR21LpghAIyw1fH49w2Vgc9u0eF8JEhkTXD1uSuCOW20+V7sste4tmYT1UsVsU8bNS8AA7EqpWpMb8Gd98LCWAmt4s/oXZB3DVnHUIyayH0yhsopG8j9eB3OyO6D7BQ3Q+V7m/BO3YB/8msXfVOVf/gtgod/PItEYubf9KRu2R5Ypz7dUDI5qvd9n8oZ55N9/c8uMouUyr3fI3xyy6y5Ubann/K5b0KN05K3zjWSTNlrFQKlajQ9FBOp8nAUmHj12aI1ITEfc7U9XHnWqmGU+6ZkYrEcNRWY1ZpUmnVjIvT5bnPPVpVw9TrK5/9MfRaxCHZ8P6Vv/Cd2bHRx1ZunH6N8x80N4yUm0+IbMY3sqiSoXfrmV4i2v7C4a37uKUp3fm22qLUxwWsvJDz6+JZDFF6b3jprlVK5bvbEuMJDl501EDf5CjoAke8CNmF3TBA291CqcePZSP0ZB89pzhsjCMUL30qw/sQkn+vgSh3Cx+6n+PWbIAwXZUPFw3spfvlG7P6RWbqsOE04GRq9yEwDV7gY4p0vMPmVG7GT44uz5n3DFP/jU9iRvbNc3lropXThW5Ipfi1tO/Cc9rZwFCmlal2l6XaBp1o4yzqCe4BtAkSRZaIUNpXJH9lEvZvlvTOGft9tTv+1Fts/wMRV70VzufoYkpuh/O2vM/GVz87O9er2hhrZw8SN/0j0zGMNyxycHI0zFZp4k06ukUvLJXjoXib+/RPYAwvrcLEje5n49McIn32i3k5ThbDC5M9cRfXE01sehemK4LZVlp5oUGFUl3B9fyxm96IQ6fINK/YCd03JhPHJMJkmOd8sB6AyR6388ozT9MOSMCQ48bVMXvmeGYaDILleKt+6hcn//Bzx6NCCbKjwuacY//T/JnzsQcjkG5JIWihJmqkji9eYTJLrIfjxd5n4t/9HtOulhVnzC89w4DP/h+CJLbPL/YMSldddQumNlyNx681OPMdpK2nYKowXo+laZYTqXRvPGogWhUjJi5TbgNAYKFct5WrUlO5ajbVhQCzrGHq91o7q8nk/Q+X1l9W7tETA9ane8y3GP/N/iF54pqsbqnLf9xn/9P8i+umT9a16p6lkJtO565nMHCpiJk+w5X7G//ljVB9/uLtrfvCeZM3PbJ2dMBxHhMefzuTl/x+aybXcolgkqV9r3RpJEggmy9G02LBuj9S0FIBzOvXwfvkDfzKhqpcBqy3JmPWe/PxdUBZwTdK3oX7BSY3JeNhCjMH3CY45Hm9oN87QjllzTe3QLqo/uRv1PNy1RyUl2tKBLuSqxKNDTH7lRkpf/Rw6c07T1C144Obp7JwbSeJKGjM7uUsEHRsluO9ubBTjrluPZLIdXPMwpa/9K8UvfhotFWev2VriVes4cP1vEK1Z31af74zjkHWdNogk7BuvMl6MDia7KvznxrMHv7ioRPql3/hgRQ0nAa+XmtjsK7g48zw1plof593ZXhjXEUqhJWh26rkqNtdLeNxrcMcP4O74aS2CKQcdEMQRweafED73LOJnkEwOyWSQFno9aKVMvHc35Xu/R/Hz/5dgy/2Il2toE4kHbo6uDNYRSb6/IZlMUjgZPf4gwVOPoo6L5PKI7yMtxJu0WiEe2k3lvu9T/PwnqG7+SdJqa+aawyrxqnWMX/drBCed0fZMpILvtmUfWavsGa0SHarsrgry4c//09893+L51Tnc+ejoRlX9PLBMRFi/JkdfobnAyDLfkHdn766xasT2yWqL+o7BTByg99tfIffD28DNzPIgEUfgCM76k/FOPRPvhFPwjlmPc4TUfi0ViUf2EL70AuGzTxE+tQU7tCMRC3O0FzOZzg9gnkvMR2XQYE6XFYjiHHUC7qln4Z90Cu4xx+KsWJ1IqrnWXC4Rj+4lfOlFwmefTNY8Nb29ARmlWiQ49lTGb/gtwqNPmGqw3aopSMYx9PpeWwfN+GTItj3l6SltP8Rw1eVnDo4vOpE2bRleW0uruAhgoNdj3apcUwahZ4TBjDNL21DgxYkK40Hc8iEuUUD+h7fT852vzerKWkcqVXBcTE8fZnAlzso1OMtXID29iBg0CrGT48Sjw8RDe5ICwnIx8RCKmVtVEnCyrWUvtOOEiCu1KeeHkdxTdRmmpxezYiXOqjWY5SsxPT2IcdA4wk5OEO8bIt5bW3NpMpEsc7loNWlKUz3jQsbf8UvEA6s6MralL+O3ZR8B7BwqM3ogmP6q/tvlGwY/1ur3dTR3ZPdTL+xZe+oJ3wYuVHAmyklMKePPf9GhVcqxkndlFuNXZX1KYaWlpoSQjKefvOQ6orXr6fnurUkqkVK/8aXWLEEtdnw/dv8I0VOPojaetgmSZitinKTHgKnNODqcOugkUsh4LCyk5hU0CaEaD6eaavar2IkD2LF9RM9sRe20URciQG3NjntorlPDwwiwEdo3QOkNb2PyTZejhb6W3dzT4TumbRJVA5s4GQ59zTZFvt3mY+4s7twycrbCncAqVVg7mGXVQKYpSe4bYSDjNKx43FUMGKmErd+4COo4uPuHyT38IwrfvwUpTnbG4G50OQfETzxp4rCo4w01ToaSaVCzn7okFdVxqW64iNKFFxMcd8pUd/pOnAn0+l7bQdjRsSq7RirTaX+TWH77snMGW6636bipe9mGwc0Kd0z9//6JYLpBN2+pVJmj4+WKrJt0GmrDuyRRRNw/SOl1Pwvrj8LJ6bwK6Zp14zg5cHoSdU4Miz4jVKbuqQAm2+G3X+tXI57CiScyccUNBMedWpNOnZnC5zmmvbw6wMbK/olw+sFeVLilHRJ1hUgAkerngJJIUgc/Nhk0dfgpUIxsQy0k4xhWZN32T1O1qOOg2QxORnF7wC0k0qPl1mom+X2nAF5vslllCY67FhecPLi9NbXPaf/QMDkOPkPtyaN+pvYmO3N6CJB1nbZeuzEwXgopV+JpB7tuddDvtnt/XcmvN+r+WCX+psC7EWH0QMCyHg/XmX+6e2CVYmjpbVCSsTzjMhHETIRxWw9WHTfxyGkyc1Yy4Pq1cZLxNPexneZkmtYprGY2HCz5FodD3X+WaJuIus1pQHKJ82NqvTplCk5r4l/XHE0OmojJmt3aYWEOSXz1srVs7s7da8Z18Ixpi4hRrIyMBdhpt2vV/OvlZ6/YtySJtPGc5cGmLSOfAy4X6K0GlrHJiMF+v6mFFyNL1pFZxqUjwuq8T3m8QqTaOpmMSdo/Td8xUxvMcLBF3sF/1mmGpRzGynwZkGiWSja9QFBnHBwzXowcZhCRaBIIx3ROFDsi5Nw2t6rAgfGQUjWebns/Yh3/qx0RHt17P/oT4AdT/z82ESRdhprRZxUmwsY5eHnXsCbvt04iBYyD9XNH3vjTT2EzTeoIr0xMW+uUpD3454j99hT1MqjpnFGY89yOjGvZPx7MMJflU1ed2Tu0pInkiTMG/AcwAUl5xWQpanrvVWOlNAcBl2VdlmXc1qkuBvWzS7dd18sU1svQKe9NxjH4TvvbdHwypFidZgooDxjLzR0zZ7r1MN921oBa5E7gwZptz+h4QBjb5h0PoTZskmKAVTmPrNviMkRqLz0lUidVRetnOhJOcETIum5HxlnuGw+mC8iKCv9a8cLhJU8kgCs3rBgFPgkEIlAqx+wfD5tOfY9UmZhjmFnGMSzPuC0qEYLNZFOB1FG1UFA/i3aASFnXaXmu8LTb4cBkSKlSFwzegiPfuObMNfqyIBJA2Q9uAb4xpXsPj1UpV+OmD6xybCnOoeL5xrS2EBFsJtd2I/wU9RqE9fy2B35l3fayu6dIFISWof3V6QdtKMhnrzhjRUcLs7pOpHeeti6IHf0HYHRqKNnw/mpL01YmA6XaIFBbbXGALgjqZWvGcyqWOiaRvCxt+FLxjCHnOh1h9fD+KtX6MMm9auVLnV72goQLS9XgAeBzkJT3HiiGTBSb75tgUcZr5RRTob5yZBmrRi0/aZupRU1THnVoR02FFFq3iwqe0/b0PRGYKIYzTYlJhI9efs7A2MuSSO8+76jYIp8FHoekFmR4f7WlwbehVfZVY/ZVkj8HAtva1LjaiaV+ruaqTdG+BFCUmie0ReQ8B7cD7yOMlKGxADs9zqh81tfSXV05PxbqGfvLx59C+QxQBShWYsbGg5acO1aTFl5Vq1gg5zpkWvLcKbbDMY9XvWbnONgWh4XlXIeM0xm3+YGJgGKlTlN5wsIn37phvX1ZE+lt649X6/GvwPenfja0v0qxHLUdbAMoeF5L8QbrZ8Hx0lhSh2AdJ7E7m0TWMeS99hNtRJIe9MNj1emvtKzKJ21VutagY0F1mitfO7g/hr8AGRKSLqt7RiqEkbYdK0jGwbhN5WNJLS/MOt0vElJA4+gVTlhNskVmzvM9krbiGPJe++9gaqDyntEK1bBuT33XYr9w1YUr7CuCSAAbNwz+RFX/ZsrxMFmJ2Vvvnmx9MSIU/Pn3iUg6sHu1Qc62i/tLUddHzvlZxF8E6aearK/bbv7aGFJ15+9s8Iyh4Lkdu7Wh/VUmSnVazhDKX208e1VXW+wuipUdavQ5hVumTpH94wHjxc50P3VF6PFdnHm9GIt1/CS7oct7W+MY55y3kL3ifUmLqm4St26JMVLoxb34XdMGVndRIrkZ8Hzm0x/XNYYe323bQze1j8aLYVI+fujHMehHLj97sOtzfRaFSFefs2YM+DvgeUi8eHtHqwRtlkUcFDJi6PX9+UXFHRf1c111NogIcRgwNlkk88YryF79G0guC1G1uw86CjADq8lf/zvEZ/0MQaXU3TxbVaznoY53xMfp1UjkdIhE1dCyd1+VeFqAUuGmEPO5hdjTi+b3vWLD4I9U9WNABElS6+6RSr27sg0yOUbo8b3Dk0kVHAebySPdlhBq2b19OxGGzOsuofArf4Gz9jgISl25llbGcY47jfx7Poh3xoXsGx0lKBWRbrr6VbF+NqnzOgyTPGMSFVykI8eXKuzdV6FUqTuIH7Xwd+/YsGLyFU0kgJfi+FPAv03ZSwcmI3aPVjomGxw5MplUTJIm1GW7xXMcXvjpTykVJ0EM7gmvpfDr/wPvgstqzVa0Y5tZvAzZt7+Xnt/4S9z1JwPw4vPPEYYh0sWSXVFF/Txq3Dl51ElJNCWP9u6vsL8+lDKu6Ec3bhjculB7eVGJ9JvnrYnB/Bk1l7gIjI4FSaZuh+CKJA0z5jqJxaDZHrSLEkkBz3XZuXULe/ccGj9qlq+mcMMHyF3/AZz1pyblqXHYPKmshaiKuC7uay+i8Mt/Qu6qX0FyPQCUqwGPPfoovuN09X0KFpvJJadiAyZlnM7ZRFMYm6gyvK86PXtBgU+sfdz/0kLu5UUP6V++YWC3wh8Bz049haHRSku1S3NtYlOTTA2TIAVsNsc8h7e3scmUwvBPeeyJJ7HTm4F4WTIXvI3Ce/6Q3Lt+B+e40yAuopVJiIJa3bvO1mXiCIIKWh1HMi7eBW8n/94/oXDD+3FPOZfp1Xfbt7/EY488QiGbbbmV2bxVu0yuYaOKvOtQ8LyOkUiAYpFetooAAAy9SURBVCliz+isvM2bTOT+z7N/sX9BXaOLPxMxEQoPEPOXCJ8Q6AtiZedwmePW5MlmnY5oPUYgX6u0LIXxNKIJNtfbdSLFCsev6OOv/+UzXPrWi+nt6am/v+WryLzubfgb3kj80tMEj95L9Nyj2P170WrNSaCS1E45LtLTj7PmeNzTLsA77QKcgVVJw4kZG9Vay8OPPILseIbMqWcR2i5KXrVoplA/aJkkvpdxOysNK2HMrpEKQf1Ilnsi9E+vOm/Zgg+DWhJEuvzMQcvuL/3HpqG3ngJ8SMCpBpbtQ2WOXZPH90xH7CYBcm6inxfDODmdFayf7/oaVZV1fb3c8x+3cOedd3L9u97VgO0GyRVwTzkX95Rz0dI4dnQPdmwYLU4k8tXPYfqXY5atQpavRI4wuXlkZIR/+fxNbFxRwJHa1OwuKrE2lz/YLMWpxfV8YzrqE41iZedQZWY5znOgH7pqw8qXFmMPLwkiAbD2Bo0fGvuo40YDwAdEoFSJ2TFU5ujVOXy3cy8j4yTZxeUwpgrowZlFdf1yOm4n9fkebz9xFe++/nq2bt3K6aeffnji5/tw8n04x5zcMnm/8rWvctett/DB9/wscbcDwarYTAFByDiGnJc0uu/UVZNsGMuOvWUmiyFyyIk0auHDV25Y+cPF2r5LKu1543nLKor8hcJNU86HyXLE7uFyS5nih9vUbs0Fm/ccNJNPKjq7vM9ynuH8dYMAfPjDH2bbtm1dvd7Xb7mFD/z2+0E8juvP1cVYumQIQjZPwXMoeJ1zbx+SRJZdwxUmStE0EmlZlT++csPgFxZz7y65+oErNvz/7Z1tcFTlFcd/z7139+5mF/KyuwErUdAWRZFNtGq1Lw4MSgIoYnGsMnamghWs6LQztrUy1alp60w/WLU67Yid2tYRx6r4UmDaD+20044YW8TR2lYrLzEJYROSDcm+3ntPP9zNmgCBANmwSe5vhk9kIPe55zznec495/wj3YjcT1EBEHoHLNoSqaHKAWPz8EpRoWsEp4XHpZXCr+ucFwmDGeClV16hubmZAwdKoxq4detWvrFhAwAr5s2k0vSV9hYobo9YMDSdoKHGvOvYEejozpDsH3Y4zSE8OJBJ/fJ0221ZNuI01cf2iiN3Ay2DG13PoTytnakxjUzFRfAHUfqpak+ObrHPrQ6zoCqIbhhs2rSJ9Xfeye7du4dn8k6BVCrFy1u2sGzFCjo6OgAfX5oVGZNJPMe/KGioQHDMl9FxhI5Emu7kMCfKAI/mkMdWfe4sx3OkkZypIfYv27HXAm8MRo/efov2RIq8NbbrJoaJGP6SH+0chDlVIS6srcS2HXyBAC+9+CKLr7mGl7dsIZE4+aE2lmXx7nvv8cgjj3DDypVgWRiGgT/sZ37tdHRKX7CK5nPLrcZwHS3boS2R5mAyN7QQ1QGeshz7h9fV12bKwV7LujV0WcOMdxC5Y9CZFG71Q9uBtDuYf4xuTMrnd1PHJfYkEagyDb5wdgwsBxHBME0++vBDVt14I3ffcw+/ffZZ9g/5aHs8stksO3bsoLm5mTVr1rBx40Y0nw/DNHFEaJpVzZyqEFLykWOFwZC+sRHEHRwx3J7I0HsoPywHJEoeVw7fW94wI1kutmpQ5jTWx97Z/vaB9SjtaeBicJWo93WmqKsNnnpq3MF1Il8AUumSP48jwtWzo1TWTCOZHMAwNAzTNb7Nzz/P5ueeI1hZyeqbbmLRwoXMnTuXSCRCqMLNLGYyGfr6+mhtbeXNlhZe37qVljfeAED3+4v/1mDW7sq6CLUV5pjfL4+6SxQqv8diQ8rlhY8TKQ4NDNMxygFPKkvdv+TiaKqc7HTCzKHaurOrXtN4goIaoAgEAzpnxgJUBE5hP1AaKpXE3PQdtANtbrdsyZMOGk/+cw/3/mEnumke8RKs7IlVhes+3xHFqJYjzAgHePXLl3FhJEy+1Bk7K4/URMiu+ylOuPqk2zUUkM7YtHWlGRiWnSMN/MIR7YGl9TV95WafE2bqx9KG6NsOfE0KM/IGW4pbO9P09Z+C8BhupQC+4LiNbbAcYdV5ZzD3zFrso6i1G6aJYZrofv/RdWg1rXh8M0zz6BXd+RxrF5zFvJrwUafUluRo5w+6ld8nGf1UYcLU3gMpBtL2UCfKAA87DhvL0YkmlCMBLI1H/+sg63BniovClTFs7UxzoCfryqCehB+JZoBZwXh5kiNCTcDPD6749DErk5RSGIZRdJjiH5/vmJOTrLyNilazNn62a+Dj8lQCZqggxnxi/+OgHkFXT47WzjS53LCynx5EbUjn0j9a2hAdKFfbnHBzqJbFY+1p5C5gE4VRyI4IHd1p2hJp8iecHhfQtEJ1w/jVOToIV55ZzbpLz8Yaw/uLLa6o8u8WXUAs6MMer0cSATM4opL7sSO0Q3tXmrau9OEfjfcBG/ZMDz+98tI6q5ztckIOdFsZj/U4cLcD9wMJd1dzBc327U+RylgnprqiNAiEGO+RXNUBH7fFZzM/Og3Lssem2t0SHrpqLl+sqyn9vejwo50ZQtToBMZU8T5ksW9/mkRv7vB31iKKtY3x6LPrzjHLfmLMhJ2MuDQezWQd9SjIHcB/Bs/Y/WmLvR1punqziIxSu1YpNyKN8+uyHGFeTZjHFl8EYpC3Tn6eggKsrMWtC+r46vyzxmw+3IlEJAmERiWWO9it1J3Msnd/2i35Gf4jz4vI6qYF0T9OFHuc0CNGVzZE8o3x2MuIuhn4W9GgbIf2rox73s6P4nuTUhCoOC05TEuEy86oYvstl0MoiHUSFQ4C5LMWN8yvo/mqeVQHfKXtOxrptwiEjruG7vx3h487U7QlMuStYTI/aVA/QbT1TfWxDyaSLU6KWb2N9ZGdjsP1wBNAMatzsC/P7vZ+kv3540QnVUg2nB7yjnDlp6r50/WfZcW5M7CyNtYohAFsEay8Qyzo56FFF/Czqy+iJuArfZX3SK5UjEgjBS0h2Z9nd3uK7r4jGjr+B9w1oIW/21hf0zPRbNBgkrC0Idq1fWfy22j5FtyO23maBpmsw77OFFVhP9EqP8GjNgq6qdvT+VXNFuGSmZU8vGg+i+fUct+Oj+g/2AvooGsU62NEwHIAG9C57ZLZ3HLBLOIzKvFr2jilukcINSNsRgr3U0V3Mkdvfx7blqHlPhbuaLaHG+PRtyaq/U0aRwJobKhMAc9s25VoUaIeRHHj4FyRnkM5+tMW0So/kUoTXWN4i7JZUfoBiqNwpjPCJqsvrGPxnBn85eNuXvuwk9dbe+BQoaQsYHJ53TSaZkdZPCfGZ6pCbvepyGk4zh12tDNDw74hKeUWnHYnc3T1fqIhPGSZewUeRrGpaUG0eyLb3qRV2Nq2KxFQom5HcS8wi0GBSxFCAYOZkQChoF6U6Dbe34F/8w9B+cri99eU2zNlOUJfzqI/ZyMIIcMg7NcJGBoiMs6ZuWM4kZ0md/P3seZ/3q1qEBjIWHQezLrzN4ZbmgX8XSnZuGTB6WvG8yLSKGiKxzLA41t3db2pKb6F0KRgGkrRn7HZvX+A6rCPmul+ggEfyh9wJe3LJNHqCOQKervT/XpRdFpEin9XXluyjgpUgAjpjMXBvjy9/Xms4cc4gD3Ar2yRny+Lxzoni71NemGgpfHoDstv3C6KO6TQ36Spgjh0Ms+ejhRtiRQDluZOCC0zpOBUluMKUttShgI0Aug6KVunPZFib0eK7r4ctjPMibIIvwa+Yiual9VPHiea1BFpKMvPr+p77d2Dm3XL/rPS1DoR1iuIKeWW6ncnc9i9DmHxYUh2Eh94S3i/w6C9B5IqhzpS+LIF+LEg2wonhUmHMVVe9LXzawToAB7Ytqv7VZBvAo1AjQJlawaCD7GzbgbXE/EbdTQSGxzdxNaNoQ5kFY5xz+Q056nrLqrtnMzLYEzFd98Uj/xjy9tda0wlCxXqVlCNtm7UiM8P2YJQhBTyEJ5DHd1/BNTg7ErBVfX4pF3/3wIv2PDc8nj0/amwHsZUNYTr66NZYPv2nV1/FU1dplu5tYJaCQSLO+2g4rM65nfGqReBBHCG3tUE0f0iSvtAoX4j4ryApn20fEEkP1WWxbsNFEjctaRB9wVfBZk10kopbWqvmDiM2PbhaL6+vuj5t5xzX/Pvp+LaePss0Lp6iUbOv1AcmXm8uwA2U0+32QGxOGbvlJbPTZ/2wVtX9H39WuU50hRF9xsRQa0azVFXCg41eI+a7BGo+KzHPfEpRDdvTuWY4znSFMWvG8sQdfkJNTE5k9ehxB4SgUbzbJ/cIc9Runa7Z1EeHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh6Tlv8DgcrQirbYVLoAAAAASUVORK5CYII= azRules: - constraint: o=Tremolo scope: dn <|endoftext|> # helm_charts_values-production.yaml ## Global Docker image parameters ## Please, note that this will override the image parameters, including dependencies, configured to use the global value ## Current available global Docker image parameters: imageRegistry and imagePullSecrets ## # global: # imageRegistry: myRegistryName # imagePullSecrets: # - myRegistryKeySecretName ## Bitnami external-dns image version ## ref: https://hub.docker.com/r/bitnami/external-dns/tags/ ## image: registry: docker.io repository: bitnami/external-dns tag: 0.7.0-debian-10-r0 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images ## pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## # pullSecrets: # - myRegistryKeySecretName ## String to partially override external-dns.fullname template (will maintain the release name) # nameOverride: ## String to fully override external-dns.fullname template # fullnameOverride: ## K8s resources type to be observed for new DNS entries by ExternalDNS ## sources: - service - ingress # - crd ## DNS provider where the DNS records will be created. Available providers are: ## - aws, azure, cloudflare, coredns, designate, digitalocoean, google, infoblox, rfc2136, transip ## provider: aws ## Flags related to processing sources ## ref: https://github.com/kubernetes-sigs/external-dns/blob/master/pkg/apis/externaldns/types.go#L272 ## ## Limit sources of endpoints to a specific namespace (default: all namespaces) ## namespace: "" ## Templated strings that are used to generate DNS names from sources that don't define a hostname themselves ## fqdnTemplates: [] ## Combine FQDN template and annotations instead of overwriting ## combineFQDNAnnotation: false ## Ignore hostname annotation when generating DNS names, valid only when fqdn-template is set ## ignoreHostnameAnnotation: false ## Allow external-dns to publish DNS records for ClusterIP services ## publishInternalServices: false ## Allow external-dns to publish host-ip for headless services ## publishHostIP: false ## The service types to take care about (default: all, options: ClusterIP, NodePort, LoadBalancer, ExternalName) ## serviceTypeFilter: [] ## AWS configuration to be set via arguments/env. variables ## aws: ## AWS credentials ## credentials: secretKey: "" accessKey: "" ## pre external-dns 0.5.9 home dir should be `/root/.aws` ## mountPath: "/.aws" ## Use an existing secret with key "credentials" defined. ## This ignores aws.credentials.secretKey, and aws.credentials.accessKey ## # secretName: ## AWS region ## region: "us-east-1" ## Zone Filter. Available values are: public, private ## zoneType: "" ## AWS Role to assume ## assumeRoleArn: "" ## Maximum number of changes that will be applied in each batch ## batchChangeSize: 1000 ## Zone Tag Filter ## zoneTags: [] ## Enable AWS Prefer CNAME. Available values are: true, false ## preferCNAME: "" ## Enable AWS evaluation of target health. Available values are: true, false ## evaluateTargetHealth: "" ## Azure configuration to be set via arguments/env. variables ## azure: ## When a secret to load azure.json is not specified, ## the host's /etc/kubernetes/azure.json will be used ## ## Deprecated: please use tenantId, subscriptionId, aadClientId and aadClientSecret values instead. ## secretName: "" ## Azure resource group to use ## cloud: "" ## Azure Cloud to use ## resourceGroup: "" ## Azure tenant ID to use ## tenantId: "" ## Azure subscription ID to use ## subscriptionId: "" ## Azure Application Client ID to use ## aadClientId: "" ## Azure Application Client Secret to use ## aadClientSecret: "" ## If you use Azure MSI, this should be set to true ## useManagedIdentityExtension: false ## Cloudflare configuration to be set via arguments/env. variables ## cloudflare: ## `CF_API_TOKEN` to set in the environment ## apiToken: "" ## `CF_API_KEY` to set in the environment ## apiKey: "" ## Use an existing secret with keys "cloudflare_api_token" or "cloudflare_api_key" defined. ## This ignores cloudflare.apiToken, and cloudflare.apiKey ## # secretName: ## `CF_API_EMAIL` to set in the environment ## email: "" ## Enable the proxy feature of Cloudflare ## proxied: true ## CoreDNS configuration to be set via arguments/env variables ## coredns: ## Comma-separated list of the etcd endpoints ## Secure (https) endpoints can be used as well, in that case `etcdTLS` section ## should be filled in accordingly ## etcdEndpoints: "https://etcd-extdns:2379" ## Configuration of the secure communication and client authentication to the etcd cluster ## If enabled all the values under this key must hold a valid data ## etcdTLS: ## Enable or disable secure communication and client authentication to the etcd cluster ## enabled: true ## Name of the existing secret containing cert files for client communication ## ref: https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/security.md ## ref (secret creation): ## https://github.com/bitnami/charts/tree/master/bitnami/etcd#configure-certificates-for-client-communication ## secretName: "etcd-client-certs" ## Location of the mounted certificates inside external-dns pod ## mountPath: "/etc/coredns/tls/etcd" ## CA PEM file used to sign etcd TLS cert, should exist in the secret provided above ## caFilename: "ca.crt" ## Certificate PEM file, should exist in the secret provided above ## Will be used by external-dns to authenticate against etcd ## certFilename: "cert.pem" ## Private key PEM file, should exist in the secret provided above ## Will be used by external-dns to authenticate against etcd ## keyFilename: "key.pem" ## OpenStack Designate provider configuration to be set via arguments/env. variables ## designate: ## Use a custom CA (optional) ## customCA: enabled: false ## The content of the custom CA file ## content: "" ## Location to mount custom CA ## mountPath: "/config/designate" ## Custom CA filename ## filename: "designate-ca.pem" ## DigitalOcean configuration to be set via arguments/env. variables ## digitalocean: ## `DO_TOKEN` to set in the environment ## apiToken: "" ## Use an existing secret with key "digitalocean_api_token" defined. ## This ignores digitalocean.apiToken ## # secretName: ## Google configuration to be set via arguments/env. variables ## google: ## Google Project to use ## project: "" ## Google Application Credentials ## serviceAccountSecret: "" serviceAccountSecretKey: "credentials.json" serviceAccountKey: "" ## Infoblox configuration to be set via arguments/env. variables ## infoblox: ## Required keys ## wapiUsername: "admin" wapiPassword: "" gridHost: "" ## Optional keys ## domainFilter: "" noSslVerify: false wapiPort: "" wapiVersion: "" wapiConnectionPoolSize: "" wapiHttpTimeout: "" ## RFC 2136 configuration to be set via arguments/env. variables ## rfc2136: host: "" port: 53 zone: "" tsigSecret: "" tsigSecretAlg: hmac-sha256 tsigKeyname: externaldns-key tsigAxfr: true ## PowerDNS configuration to be set via arguments/env. variables ## pdns: apiUrl: "" apiPort: "8081" apiKey: "" ## TransIP configuration to be set via arguments/env. variables ## transip: ## Account name to be used ## account: "" ## ## API key that is authorised for the account apiKey: "" ## Limit possible target zones by domain suffixes (optional) ## domainFilters: [] ## Limit possible target zones by zone id (optional) ## zoneIdFilters: [] ## Filter sources managed by external-dns via annotation using label selector semantics (optional) ## annotationFilter: "" ## When enabled, prints DNS record changes rather than actually performing them ## dryRun: false ## Adjust the interval for DNS updates ## interval: "1m" ## When enabled, triggers run loop on create/update/delete events (optional, in addition of regular interval) ## triggerLoopOnEvent: false ## Verbosity of the ExternalDNS logs. Available values are: ## - panic, debug, info, warn, error, fatal ## logLevel: info ## Formats of the ExternalDNS logs. Available values are: ## - text, json ## logFormat: text ## Modify how DNS records are sychronized between sources and providers (options: sync, upsert-only) ## policy: upsert-only ## Registry Type. Available types are: txt, noop ## ref: https://github.com/kubernetes-sigs/external-dns/blob/master/docs/proposal/registry.md ## registry: "txt" ## TXT Registry Identifier ## txtOwnerId: "" ## Prefix to create a TXT record with a name following the pattern prefix. ## # txtPrefix: "" ## Load balancer service to be used; ie: custom-istio-namespace/custom-istio-ingressgateway. ## Omit to use the default (istio-system/istio-ingressgateway) ## istioIngressGateways: [] ## Extra Arguments to passed to external-dns ## extraArgs: {} ## Extra env. variable to set on external-dns container. ## ## extraEnv: ## - name: VARNAME1 ## value: value1 ## - name: VARNAME2 ## valueFrom: ## secretKeyRef: ## name: existing-secret ## key: varname2-key extraEnv: [] ## Replica count ## replicas: 3 ## Affinity for pod assignment (this value is evaluated as a template) ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity ## affinity: {} ## Node labels for pod assignment (this value is evaluated as a template) ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector ## nodeSelector: {} ## Tolerations for pod assignment (this value is evaluated as a template) ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature ## tolerations: [] ## Annotations for external-dns pods ## podAnnotations: {} ## Additional labels for the pod(s). ## podLabels: {} ## Pod priority class name ## priorityClassName: "" ## Options for the source type "crd" ## crd: ## Install and use the integrated DNSEndpoint CRD create: false ## Change these to use an external DNSEndpoint CRD (E.g. from kubefed) apiversion: "" kind: "" ## Kubernetes svc configutarion ## service: ## Kubernetes svc type ## type: ClusterIP port: 7979 ## Specify the nodePort value for the LoadBalancer and NodePort service types for the client port ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport ## # nodePort: ## Static clusterIP or None for headless services ## # clusterIP: "" ## External IP list to use with ClusterIP service type ## externalIPs: [] ## Use loadBalancerIP to request a specific static IP, ## otherwise leave blank ## # loadBalancerIP: ## Address that are allowed when svc is LoadBalancer ## loadBalancerSourceRanges: [] ## Provide any additional annotations which may be required. This can be used to ## set the LoadBalancer service type to internal only. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer ## annotations: {} ## RBAC parameteres ## https://kubernetes.io/docs/reference/access-authn-authz/rbac/ ## rbac: create: true ## Service Account for pods ## https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ ## serviceAccountName: default ## Annotations for the Service Account ## serviceAccountAnnotations: {} ## RBAC API version ## apiVersion: v1beta1 ## Podsecuritypolicy ## pspEnabled: false ## Kubernetes Security Context ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: drop: ["ALL"] podSecurityContext: fsGroup: 1001 runAsUser: 1001 runAsNonRoot: true ## Configure resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ ## resources: {} # limits: # cpu: 50m # memory: 50Mi # requests: # memory: 50Mi # cpu: 10m ## Liveness Probe. The block is directly forwarded into the deployment, so you can use whatever livenessProbe configuration you want. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ ## livenessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 2 successThreshold: 1 ## Readiness Probe. The block is directly forwarded into the deployment, so you can use whatever readinessProbe configuration you want. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ ## readinessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 6 successThreshold: 1 ## Configure extra volumes extraVolumes: [] ## Configure extra volumeMounts extraVolumeMounts: [] ## Prometheus Exporter / Metrics ## metrics: enabled: true ## Metrics exporter pod Annotation and Labels ## # podAnnotations: # prometheus.io/scrape: "true" # prometheus.io/port: "7979" ## Prometheus Operator ServiceMonitor configuration ## serviceMonitor: enabled: false ## Namespace in which Prometheus is running ## # namespace: monitoring ## Interval at which metrics should be scraped. ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint ## # interval: 10s ## Timeout after which the scrape is ended ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint ## # scrapeTimeout: 10s ## ServiceMonitor selector labels ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration ## # selector: # prometheus: my-prometheus <|endoftext|> # helm_charts_hpa-external-metrics-cluster-role-binding.yaml {{- if and .Values.rbac.create .Values.rules.external -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}-hpa-controller-external-metrics roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "k8s-prometheus-adapter.name" . }}-external-metrics subjects: - kind: ServiceAccount name: horizontal-pod-autoscaler namespace: kube-system {{- end -}} <|endoftext|> # cert_manager_cainjector-psp-clusterrolebinding.yaml {{- if .Values.cainjector.enabled }} {{- if .Values.global.podSecurityPolicy.enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "cainjector.fullname" . }}-psp labels: app: {{ include "cainjector.name" . }} app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" {{- include "labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "cainjector.fullname" . }}-psp subjects: - kind: ServiceAccount name: {{ template "cainjector.serviceAccountName" . }} namespace: {{ include "cert-manager.namespace" . }} {{- end }} {{- end }} <|endoftext|> # helm_charts_s3.yaml {{- if and (or .Values.s3.accessKey .Values.s3.secretKey) (not (and .Values.s3.accessKey .Values.s3.secretKey)) -}} {{ fail "S3: If providing credentials, accessKey and secretKey must be both set." }} {{- end -}} {{- if and .Values.s3.enabled .Values.s3.accessKey .Values.s3.secretKey }} apiVersion: v1 kind: Secret metadata: name: {{ template "spinnaker.fullname" . }}-s3 labels: {{ include "spinnaker.standard-labels" . | indent 4 }} component: halyard type: Opaque data: accessKey: {{ .Values.s3.accessKey | b64enc | quote }} secretKey: {{ .Values.s3.secretKey | b64enc | quote }} {{- end }} <|endoftext|> # istio_network-gw-metadata.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry releaseNotes: - | **Fixed** a bug where `destination_cluster` reported by client proxies may be wrong when accessing workloads in a different network. <|endoftext|> # istio_58697.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 5869 releaseNotes: - | **Added** HTTP compression capability (gzip, zstd) to HTTP server of pilot-agent. <|endoftext|> # argocd_source_pipeline-force-promote.yaml apiVersion: numaflow.numaproj.io/v1alpha1 kind: Pipeline metadata: creationTimestamp: "2024-10-08T18:22:18Z" finalizers: - pipeline-controller generation: 1 name: simple-pipeline namespace: numaflow-system resourceVersion: "382381" uid: bb6cc91c-eb05-4fe7-9380-63b9532a85db labels: numaplane.numaproj.io/force-promote: "true" numaplane.numaproj.io/upgrade-state: "in-progress" spec: edges: - from: in to: cat - from: cat to: out lifecycle: deleteGracePeriodSeconds: 30 desiredPhase: Running pauseGracePeriodSeconds: 30 limits: bufferMaxLength: 30000 bufferUsageLimit: 80 readBatchSize: 500 readTimeout: 1s vertices: - name: in scale: min: 1 source: generator: duration: 1s jitter: 0s msgSize: 8 rpu: 5 updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate - name: cat scale: min: 1 udf: builtin: name: cat updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate - name: out scale: min: 1 sink: log: {} updateStrategy: rollingUpdate: maxUnavailable: 25% type: RollingUpdate watermark: disabled: false maxDelay: 0s status: conditions: - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: Configured - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: DaemonServiceHealthy - lastTransitionTime: "2024-10-09T20:26:54Z" message: Successful reason: Successful status: "True" type: Deployed - lastTransitionTime: "2024-10-09T20:26:54Z" message: No Side Inputs attached to the pipeline reason: NoSideInputs status: "True" type: SideInputsManagersHealthy - lastTransitionTime: "2024-10-09T20:26:54Z" message: All vertices are healthy reason: Successful status: "True" type: VerticesHealthy lastUpdated: "2024-10-09T20:26:54Z" mapUDFCount: 1 observedGeneration: 1 phase: Running reduceUDFCount: 0 sinkCount: 1 sourceCount: 1 udfCount: 1 vertexCount: 3 <|endoftext|> # istio_dr-sds.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 22019 releaseNotes: - | **Improve** certificates referenced in DestinationRules to reload without a restart. <|endoftext|> # k8s_docs_pod-with-node-affinity.yaml apiVersion: v1 kind: Pod metadata: name: with-node-affinity spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: topology.kubernetes.io/zone operator: In values: - antarctica-east1 - antarctica-west1 preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 preference: matchExpressions: - key: another-node-label-key operator: In values: - another-node-label-value containers: - name: with-node-affinity image: registry.k8s.io/pause:2.0 <|endoftext|> # k8s_docs_minimal-ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: minimal-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec: ingressClassName: nginx-example rules: - http: paths: - path: /testpath pathType: Prefix backend: service: name: test port: number: 80 <|endoftext|> # istio_cni-dns-capture.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 29511 releaseNotes: - | **Fixed** smart DNS support in Istio CNI. <|endoftext|> # istio_55092.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: [55092] releaseNotes: - | **Fixed** an issue where setting `replicaCount=0` in the `istio/gateway` Helm chart incorrectly omitted the `replicas` field instead of explicitly setting it to `0`. <|endoftext|> # argocd_source_successfulAnalysisRun.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: name: canary-demo-analysis-template-6c6bb7cf6f-zvcmx namespace: default spec: analysisSpec: metrics: - failureCondition: len(result) == 0 name: memory-usage provider: prometheus: address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' query: > sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) successCondition: len(result) > 0 status: metricResults: - count: 1 measurements: - finishedAt: '2019-10-28T18:20:37Z' startedAt: '2019-10-28T18:20:37Z' phase: Successful value: '[0.965324384787472]' name: memory-usage phase: Successful successful: 1 phase: Successful <|endoftext|> # argocd_source_cluster_healthy.yaml apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: creationTimestamp: "2025-04-25T20:44:24Z" generation: 1 name: cluster-example namespace: default resourceVersion: "20230" uid: 987fe1ba-bba7-4021-9d25-f06ca9a8c0d2 spec: imageName: ghcr.io/cloudnative-pg/postgresql:13 instances: 3 status: currentPrimary: cluster-example-1 currentPrimaryTimestamp: "2025-04-25T20:44:38.190232Z" instancesStatus: healthy: - cluster-example-1 - cluster-example-2 - cluster-example-3 phase: Cluster in healthy state targetPrimary: cluster-example-1 targetPrimaryTimestamp: "2025-04-25T20:44:26.214164Z" <|endoftext|> # istio_ambient-ingress-discovery.yaml apiVersion: release-notes/v2 kind: bug-fix area: security releaseNotes: - | **Fixed** an issue where ingress gateways did not use WDS discovery to retrieve metadata for ambient destinations. <|endoftext|> # grafana_charts_poddisruptionbudget-memcached-index-writes.yaml {{- if and .Values.memcachedIndexWrites.enabled (gt (int .Values.memcachedIndexWrites.replicas) 1) }} {{- if kindIs "invalid" .Values.memcachedIndexWrites.maxUnavailable }} {{- fail "`.Values.memcachedIndexWrites.maxUnavailable` must be set when `.Values.memcachedIndexWrites.replicas` is greater than 1." }} {{- else }} apiVersion: {{ include "loki.pdb.apiVersion" . }} kind: PodDisruptionBudget metadata: name: {{ include "loki.memcachedIndexWritesFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.memcachedIndexWritesLabels" . | nindent 4 }} spec: selector: matchLabels: {{- include "loki.memcachedIndexWritesSelectorLabels" . | nindent 6 }} {{- with .Values.memcachedIndexWrites.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} {{- with .Values.memcachedIndexWrites.minAvailable }} minAvailable: {{ . }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_k8s-tls-secret-cacerts.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 38528 releaseNotes: - | **Added** the ability to read `kubernetes.io/tls` type cacerts secrets. <|endoftext|> # argocd_source_crd-v1-names-not-accepted-degraded.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: examples.example.io spec: conversion: strategy: None group: example.io names: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example preserveUnknownFields: true scope: Namespaced versions: - additionalPrinterColumns: - description: >- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata jsonPath: .metadata.creationTimestamp name: Age type: date name: v1alpha1 served: true storage: true subresources: {} status: acceptedNames: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example conditions: - lastTransitionTime: '2024-05-19T23:35:28Z' message: the initial names have not been accepted reason: NoConflicts status: 'False' type: NamesAccepted - lastTransitionTime: '2024-05-19T23:35:28Z' message: the initial names have been accepted reason: InitialNamesAccepted status: 'False' type: Established storedVersions: - v1alpha1 <|endoftext|> # argocd_source_svc-with-invalid-data.yaml kind: Service apiVersion: v1 metadata: name: my-service annotations: valid-annotation: existing-value invalid-annotation: null labels: valid-label: existing-value invalid-label: null spec: selector: app: MyApp ports: - protocol: TCP port: 80 targetPort: 9376 <|endoftext|> # istio_25280.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 23868 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** configuration file handling for istioctl defaults. Also added environment variable `ISTIOCONFIG` for selecting that file (default $HOME/.istioctl/config.yaml). Also added 'istioctl experimental config list' subcommand to show configured flag defaults. <|endoftext|> # helm_charts_resources-values.yaml resources: - apiVersion: scheduling.k8s.io/v1beta1 kind: PriorityClass metadata: name: common-critical value: 100000000 globalDefault: false description: "This priority class should only be used for critical priority common pods." <|endoftext|> # istio_ssh-iptables.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 35733 releaseNotes: - | **Fixed** an issue causing mTLS errors for traffic on port 22, by including port 22 in iptables by default. upgradeNotes: - title: Port 22 iptables capture changes content: | In previous versions, port 22 was excluded from iptables capture. This mitigates risk of getting locked out of a VM when using Istio on VMs. This configuration was hardcoded into the iptables logic, meaning there was no way to capture traffic on port 22. The iptables logic now no longer has special logic on port 22. Instead, the `istioctl x workload entry configure` command will automatically configure `ISTIO_LOCAL_EXCLUDE_PORTS` to include port 22. This means that VM users will continue to have port 22 excluded, while Kubernetes users will have port 22 included now. If this behavior is undesirable, the port can be explicitly opted out in Kubernetes with the `traffic.sidecar.istio.io/excludeInboundPorts` annotation. <|endoftext|> # helm_charts_agent-secret.yaml {{- if not .Values.clusterAgent.tokenExistingSecret }} {{- if .Values.clusterAgent.enabled -}} apiVersion: v1 kind: Secret metadata: name: {{ template "datadog.fullname" . }}-cluster-agent labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} type: Opaque data: {{ if .Values.clusterAgent.token -}} token: {{ .Values.clusterAgent.token | b64enc | quote }} {{ else -}} token: {{ randAlphaNum 32 | b64enc | quote }} {{ end }} {{- end }} {{ end }} <|endoftext|> # istio_telemetry.yaml apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: otel-demo spec: tracing: - providers: - name: otel-tracing randomSamplingPercentage: 0 <|endoftext|> # istio_add-istiod-uptime-metric.yaml apiVersion: release-notes/v2 kind: feature area: telemetry releaseNotes: - | **Added** a new metric to `istiod` to report server uptime. <|endoftext|> # cert_manager_cert-manager.io_certificaterequests.yaml --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.20.1 name: certificaterequests.cert-manager.io spec: group: cert-manager.io names: categories: - cert-manager kind: CertificateRequest listKind: CertificateRequestList plural: certificaterequests shortNames: - cr - crs singular: certificaterequest scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .status.conditions[?(@.type == "Approved")].status name: Approved type: string - jsonPath: .status.conditions[?(@.type == "Denied")].status name: Denied type: string - jsonPath: .status.conditions[?(@.type == "Ready")].status name: Ready type: string - jsonPath: .spec.issuerRef.name name: Issuer type: string - jsonPath: .spec.username name: Requester type: string - jsonPath: .status.conditions[?(@.type == "Ready")].message name: Status priority: 1 type: string - description: CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. jsonPath: .metadata.creationTimestamp name: Age type: date name: v1 schema: openAPIV3Schema: description: |- A CertificateRequest is used to request a signed certificate from one of the configured issuers. All fields within the CertificateRequest's `spec` are immutable after creation. A CertificateRequest will either succeed or fail, as denoted by its `Ready` status condition and its `status.failureTime` field. A CertificateRequest is a one-shot resource, meaning it represents a single point in time request for a certificate and cannot be re-used. properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: description: |- Specification of the desired state of the CertificateRequest resource. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status properties: duration: description: |- Requested 'duration' (i.e. lifetime) of the Certificate. Note that the issuer may choose to ignore the requested duration, just like any other requested attribute. type: string extra: additionalProperties: items: type: string type: array description: |- Extra contains extra attributes of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. type: object groups: description: |- Groups contains group membership of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. items: type: string type: array x-kubernetes-list-type: atomic isCA: description: |- Requested basic constraints isCA value. Note that the issuer may choose to ignore the requested isCA value, just like any other requested attribute. NOTE: If the CSR in the `Request` field has a BasicConstraints extension, it must have the same isCA value as specified here. If true, this will automatically add the `cert sign` usage to the list of requested `usages`. type: boolean issuerRef: description: |- Reference to the issuer responsible for issuing the certificate. If the issuer is namespace-scoped, it must be in the same namespace as the Certificate. If the issuer is cluster-scoped, it can be used from any namespace. The `name` field of the reference must always be specified. properties: group: description: |- Group of the issuer being referred to. Defaults to 'cert-manager.io'. type: string kind: description: |- Kind of the issuer being referred to. Defaults to 'Issuer'. type: string name: description: Name of the issuer being referred to. type: string required: - name type: object request: description: |- The PEM-encoded X.509 certificate signing request to be submitted to the issuer for signing. If the CSR has a BasicConstraints extension, its isCA attribute must match the `isCA` value of this CertificateRequest. If the CSR has a KeyUsage extension, its key usages must match the key usages in the `usages` field of this CertificateRequest. If the CSR has a ExtKeyUsage extension, its extended key usages must match the extended key usages in the `usages` field of this CertificateRequest. format: byte type: string uid: description: |- UID contains the uid of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. type: string usages: description: |- Requested key usages and extended key usages. NOTE: If the CSR in the `Request` field has uses the KeyUsage or ExtKeyUsage extension, these extensions must have the same values as specified here without any additional values. If unset, defaults to `digital signature` and `key encipherment`. items: description: |- KeyUsage specifies valid usage contexts for keys. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 Valid KeyUsage values are as follows: "signing", "digital signature", "content commitment", "key encipherment", "key agreement", "data encipherment", "cert sign", "crl sign", "encipher only", "decipher only", "any", "server auth", "client auth", "code signing", "email protection", "s/mime", "ipsec end system", "ipsec tunnel", "ipsec user", "timestamping", "ocsp signing", "microsoft sgc", "netscape sgc" enum: - signing - digital signature - content commitment - key encipherment - key agreement - data encipherment - cert sign - crl sign - encipher only - decipher only - any - server auth - client auth - code signing - email protection - s/mime - ipsec end system - ipsec tunnel - ipsec user - timestamping - ocsp signing - microsoft sgc - netscape sgc type: string type: array x-kubernetes-list-type: atomic username: description: |- Username contains the name of the user that created the CertificateRequest. Populated by the cert-manager webhook on creation and immutable. type: string required: - issuerRef - request type: object status: description: |- Status of the CertificateRequest. This is set and managed automatically. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status properties: ca: description: |- The PEM encoded X.509 certificate of the signer, also known as the CA (Certificate Authority). This is set on a best-effort basis by different issuers. If not set, the CA is assumed to be unknown/not available. format: byte type: string certificate: description: |- The PEM encoded X.509 certificate resulting from the certificate signing request. If not set, the CertificateRequest has either not been completed or has failed. More information on failure can be found by checking the `conditions` field. format: byte type: string conditions: description: |- List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`, `InvalidRequest`, `Approved` and `Denied`. items: description: CertificateRequestCondition contains condition information for a CertificateRequest. properties: lastTransitionTime: description: |- LastTransitionTime is the timestamp corresponding to the last status change of this condition. format: date-time type: string message: description: |- Message is a human readable description of the details of the last transition, complementing reason. type: string reason: description: |- Reason is a brief machine readable explanation for the condition's last transition. type: string status: description: Status of the condition, one of (`True`, `False`, `Unknown`). enum: - "True" - "False" - Unknown type: string type: description: |- Type of the condition, known values are (`Ready`, `InvalidRequest`, `Approved`, `Denied`). type: string required: - status - type type: object type: array x-kubernetes-list-map-keys: - type x-kubernetes-list-type: map failureTime: description: |- FailureTime stores the time that this CertificateRequest failed. This is used to influence garbage collection and back-off. format: date-time type: string type: object type: object selectableFields: - jsonPath: .spec.issuerRef.group - jsonPath: .spec.issuerRef.kind - jsonPath: .spec.issuerRef.name served: true storage: true subresources: status: {} <|endoftext|> # istio_bug-report-rps-limit.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** `--rps-limit` flag to `istioctl bug-report` that allows increasing the requests per second limit to the Kubernetes API server which can greatly reduce the time to collect bug reports. <|endoftext|> # grafana_charts_servicemonitor-ingester.yaml {{- with .Values.serviceMonitor }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "loki.ingesterFullname" $ }} {{- with .namespace }} namespace: {{ . }} {{- end }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "loki.ingesterLabels" $ | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .namespaceSelector }} namespaceSelector: {{- toYaml . | nindent 4 }} {{- end }} selector: matchLabels: {{- include "loki.ingesterSelectorLabels" $ | nindent 6 }} {{- with .matchExpressions }} matchExpressions: {{- toYaml . | nindent 6 }} {{- end }} endpoints: - port: http {{- with .interval }} interval: {{ . }} {{- end }} {{- with .scrapeTimeout }} scrapeTimeout: {{ . }} {{- end }} {{- with .relabelings }} relabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .metricRelabelings }} metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} {{- with .scheme }} scheme: {{ . }} {{- end }} {{- with .tlsConfig }} tlsConfig: {{- toYaml . | nindent 8 }} {{- end }} {{- with .targetLabels }} targetLabels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_revision-tags-as-svc.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: [] releaseNotes: - | **Added** a new representation of revision tags using cluster IP services, meant to stop using mutating webhooks in ambient mode. `istioctl tag set --revision ` and the `revisionTags` helm value will both create a MutatingWebhook using the current specifications and a Service similar to the istiod Service but including the `istio.io/tag` label to store the mapping. <|endoftext|> # kustomize_customschema.yaml definitions: v1alpha1.MyCRD: properties: apiVersion: type: string kind: type: string metadata: type: object spec: properties: template: "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec" type: object status: properties: success: type: boolean type: object type: object x-kubernetes-group-version-kind: - group: example.com kind: MyCRD version: v1alpha1 - group: "" kind: MyCRD version: v1alpha1 io.k8s.api.core.v1.PodTemplateSpec: properties: metadata: "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" spec: "$ref": "#/definitions/io.k8s.api.core.v1.PodSpec" type: object io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta: properties: name: type: string type: object io.k8s.api.core.v1.PodSpec: properties: containers: items: "$ref": "#/definitions/io.k8s.api.core.v1.Container" type: array x-kubernetes-patch-merge-key: name x-kubernetes-patch-strategy: merge type: object io.k8s.api.core.v1.Container: properties: command: items: type: string type: array image: type: string name: type: string ports: items: "$ref": "#/definitions/io.k8s.api.core.v1.ContainerPort" type: array x-kubernetes-list-map-keys: - containerPort - protocol x-kubernetes-list-type: map x-kubernetes-patch-merge-key: containerPort x-kubernetes-patch-strategy: merge type: object io.k8s.api.core.v1.ContainerPort: properties: containerPort: type: integer name: type: string protocol: type: string type: object <|endoftext|> # helm_charts_collector-daemonset.yaml {{- if and .Values.collector.enabled .Values.collector.useDaemonset }} apiVersion: apps/v1 kind: DaemonSet metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" . }} helm.sh/chart: {{ template "wavefront.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io.instance: {{ .Release.Name | quote }} app.kubernetes.io/component: collector name: {{ template "wavefront.collector.fullname" . }} spec: selector: matchLabels: app.kubernetes.io/name : {{ template "wavefront.fullname" .}} app.kubernetes.io/component: collector template: metadata: labels: app.kubernetes.io/name : {{ template "wavefront.fullname" .}} app.kubernetes.io/component: collector spec: tolerations: - effect: NoSchedule key: node.alpha.kubernetes.io/role operator: Exists - effect: NoSchedule key: node-role.kubernetes.io/master operator: Exists serviceAccountName: {{ template "wavefront.collector.serviceAccountName" . }} containers: - name: wavefront-collector image: {{ .Values.collector.image.repository }}:{{ .Values.collector.image.tag }} imagePullPolicy: {{ .Values.collector.image.pullPolicy }} command: - /wavefront-collector - --daemon=true - --config-file=/etc/collector/config.yaml {{- if .Values.collector.maxProcs }} - --max-procs={{ .Values.collector.maxProcs }} {{- end }} {{- if .Values.collector.logLevel }} - --log-level={{ .Values.collector.logLevel }} {{- end }} env: - name: HOST_PROC value: /host/proc - name: POD_NODE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName - name: POD_NAMESPACE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace ports: - containerPort: 8088 protocol: TCP resources: {{ toYaml .Values.collector.resources | indent 10 }} volumeMounts: - name: procfs mountPath: /host/proc readOnly: true - name: config mountPath: /etc/collector/ readOnly: true volumes: - name: procfs hostPath: path: /proc - name: config configMap: name: {{ template "wavefront.collector.fullname" . }}-config {{- end }} <|endoftext|> # helm_charts_gocd-ea-cluster-role-binding.yaml {{ if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/{{ required "A valid .Values.rbac.apiVersion entry required!" .Values.rbac.apiVersion }} kind: ClusterRoleBinding metadata: name: {{ template "gocd.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: "{{ template "gocd.name" . }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" subjects: - kind: ServiceAccount name: {{ template "gocd.serviceAccountName" . }} namespace: {{ .Release.Namespace }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ .Values.rbac.roleRef | default (printf "%s" (include "gocd.fullname" .)) }} {{ end }} <|endoftext|> # argocd_source_argocd-redis-ha-proxy-network-policy.yaml kind: NetworkPolicy apiVersion: networking.k8s.io/v1 metadata: labels: app.kubernetes.io/name: argocd-redis-ha-haproxy app.kubernetes.io/component: redis app.kubernetes.io/part-of: argocd name: argocd-redis-ha-proxy-network-policy spec: podSelector: matchLabels: app.kubernetes.io/name: argocd-redis-ha-haproxy policyTypes: - Ingress ingress: - from: - podSelector: matchLabels: app.kubernetes.io/name: argocd-server - podSelector: matchLabels: app.kubernetes.io/name: argocd-repo-server - podSelector: matchLabels: app.kubernetes.io/name: argocd-application-controller ports: - port: 6379 protocol: TCP - port: 26379 protocol: TCP - from: - namespaceSelector: {} ports: - port: 9101 protocol: TCP <|endoftext|> # istio_57638.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [57638] releaseNotes: - | **Added** support for multiple targetPorts in an InferencePool. The possibility to have >1 targetPort was added as part of GIE v1.1.0. <|endoftext|> # helm_charts_distribution-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "distribution.fullname" . }} labels: app: {{ template "distribution.name" . }} chart: {{ template "distribution.chart" . }} component: {{ .Values.distribution.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.distribution.replicaCount }} selector: matchLabels: app: {{ template "distribution.name" . }} release: {{ .Release.Name }} component: {{ .Values.distribution.name }} template: metadata: labels: app: {{ template "distribution.name" . }} component: {{ .Values.distribution.name }} release: {{ .Release.Name }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: "init-data" image: "{{ .Values.initContainerImage }}" command: - '/bin/sh' - '-c' - > until nc -z -w 2 {{ .Release.Name }}-mongodb 27017 && echo {{ .Release.Name }}-mongodb ok; do sleep 2; done; until nc -z -w 2 {{ .Release.Name }}-redis {{ .Values.redis.master.port }} && echo {{ .Release.Name }}-redis ok; do sleep 2; done; containers: - name: {{ .Values.distribution.name }} image: '{{ .Values.distribution.image.repository }}:{{ .Values.distribution.image.version }}' imagePullPolicy: {{ .Values.distribution.image.imagePullPolicy }} ports: - containerPort: {{ .Values.distribution.internalPort }} protocol: TCP env: - name: DEFAULT_JAVA_OPTS value: '-Ddistribution.home={{ .Values.distribution.persistence.mountPath }} -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Duser.timezone=UTC {{- if .Values.distribution.javaOpts.xms }} -Xms{{ .Values.distribution.javaOpts.xms }} {{- end}} {{- if .Values.distribution.javaOpts.xmx }} -Xmx{{ .Values.distribution.javaOpts.xmx }} {{- end}} -Dspring.profiles.active=production' - name: mongo_connectionString valueFrom: secretKeyRef: name: {{ template "distribution.fullname" . }}-mongo-connection key: mongo_connectionString - name: audit_mongo_connectionString valueFrom: secretKeyRef: name: {{ template "distribution.fullname" . }}-mongo-connection key: audit_mongo_connectionString - name: redis_connectionString valueFrom: secretKeyRef: name: {{ template "distribution.fullname" . }}-redis-connection key: redis_connectionString - name: BT_ARTIFACTORY_URL value: {{ .Values.distribution.env.artifactoryUrl | quote }} - name: BT_SERVER_URL value: {{ .Values.distribution.env.btServerUrl | quote }} {{- if .Values.distribution.env.artifactoryEdge1Url }} - name: artifactory_edge_1_url value: {{ .Values.distribution.env.artifactoryEdge1Url }} {{- end }} {{- if .Values.distribution.env.artifactoryEdge2Url }} - name: artifactory_edge_2_url value: {{ .Values.distribution.env.artifactoryEdge2Url }} {{- end }} {{- if .Values.distribution.env.artifactoryEdge3Url }} - name: artifactory_edge_3_url value: {{ .Values.distribution.env.artifactoryEdge3Url }} {{- end }} {{- if .Values.distribution.env.artifactoryCi1Url }} - name: artifactory_ci_1_url value: {{ .Values.distribution.env.artifactoryCi1Url }} {{- end }} volumeMounts: - name: distribution-data mountPath: {{ .Values.distribution.persistence.mountPath | quote }} resources: {{ toYaml .Values.distribution.resources | indent 10 }} readinessProbe: httpGet: path: /api/v1/system/ping port: 8080 initialDelaySeconds: 60 periodSeconds: 10 failureThreshold: 10 livenessProbe: httpGet: path: /api/v1/system/ping port: 8080 initialDelaySeconds: 180 periodSeconds: 10 volumes: - name: distribution-data {{- if .Values.distribution.persistence.enabled }} persistentVolumeClaim: claimName: {{ if .Values.distribution.persistence.existingClaim }}{{ .Values.distribution.persistence.existingClaim }}{{- else }}{{ template "distribution.fullname" . }}{{- end }} {{- else }} emptyDir: {} {{- end -}} <|endoftext|> # istio_peer-authn-port-level-pass-through-filter.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 27994 releaseNotes: - | **Added** support of PeerAuthentication per-port-level configuration on pass through filter chains. upgradeNotes: - title: PeerAuthentication per-port-level configuration will now also apply to pass through filter chains. content: | Previously the PeerAuthentication per-port-level configuration is ignored if the port number is not defined in a service and the traffic will be handled by a pass through filter chain. Now the per-port-level setting will be supported even if the port number is not defined in a service, a special pass through filter chain will be added to respect the corresponidng per-port-level mTLS specification. Pleae check your PeerAuthentication to make sure you are not using the per-port-level configuration on pass through filter chains, it was not a supported feature and you should update your PeerAuthentication accordingly if you are currently relying on the unsupported behavior before the upgrade. You don't need to do anything if you are not using per-port-level PeerAuthentication on pass through filter chains. <|endoftext|> # argocd_source_health_unknown.yaml apiVersion: work.karmada.io/v1alpha2 kind: ClusterResourceBinding metadata: finalizers: - karmada.io/binding-controller generation: 5 labels: clusterpropagationpolicy.karmada.io/name: service-testk4j5t name: test-service namespace: default ownerReferences: - apiVersion: v1 blockOwnerDeletion: true controller: true kind: Service name: test uid: 039b0d1a-05cb-40b4-b43a-438b0de386af resourceVersion: "4106772" uid: 3932ee50-4c2b-4e77-9bfb-45eeb4ec220f spec: clusters: - name: member1 resource: apiVersion: v1 kind: Service name: service-test namespace: default resourceVersion: "3943220" uid: 9c2b39b9-4607-4795-87db-1a54680939d0 status: aggregatedStatus: - applied: true clusterName: member1 health: Unknown conditions: - lastTransitionTime: "2022-11-03T10:56:30Z" message: All works have been successfully applied reason: FullyAppliedSuccess status: "True" type: FullyApplied - lastTransitionTime: "2022-11-03T10:56:30Z" message: Binding has been scheduled reason: BindingScheduled status: "True" type: Scheduled schedulerObservedGeneration: 2 <|endoftext|> # helm_charts_resource-metrics-cluster-role.yaml {{- if and .Values.rbac.create .Values.rules.resource -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: app: {{ template "k8s-prometheus-adapter.name" . }} chart: {{ template "k8s-prometheus-adapter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "k8s-prometheus-adapter.name" . }}-metrics rules: - apiGroups: - "" resources: - pods - nodes - nodes/stats verbs: - get - list - watch {{- end -}} <|endoftext|> # istio_peerauth-valid.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: full spec: selector: matchLabels: foo: bar mtls: mode: PERMISSIVE portLevelMtls: "80": mode: STRICT --- # Weird but valid apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: partial-selector spec: selector: {} <|endoftext|> # istio_55569.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue ServiceEntry with WorkloadEntry not working in Ambient. <|endoftext|> # helm_charts_controller-poddisruptionbudget.yaml {{- if or (and .Values.controller.autoscaling.enabled (gt (.Values.controller.autoscaling.minReplicas | int) 1)) (gt (.Values.controller.replicaCount | int) 1) }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} {{ .Values.controller.componentLabelKeyOverride | default "app.kubernetes.io/component" }}: controller heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.controller.fullname" . }} spec: selector: matchLabels: app: {{ template "nginx-ingress.name" . }} release: {{ template "nginx-ingress.releaseLabel" . }} {{ .Values.controller.componentLabelKeyOverride | default "app.kubernetes.io/component" }}: controller minAvailable: {{ .Values.controller.minAvailable }} {{- end }} <|endoftext|> # helm_charts_agent-clusterchecks-rbac.yaml {{- if and .Values.clusterChecksRunner.rbac.create .Values.clusterAgent.enabled .Values.datadog.clusterChecks.enabled .Values.clusterChecksRunner.enabled .Values.clusterChecksRunner.rbac.dedicated -}} apiVersion: {{ template "rbac.apiVersion" . }} kind: ClusterRoleBinding metadata: labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-checks roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "datadog.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "datadog.fullname" . }}-cluster-checks namespace: {{ .Release.Namespace }} --- apiVersion: v1 kind: ServiceAccount metadata: labels: app: "{{ template "datadog.fullname" . }}" chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-checks {{- if .Values.clusterChecksRunner.rbac.serviceAccountAnnotations }} annotations: {{ toYaml .Values.clusterChecksRunner.rbac.serviceAccountAnnotations | nindent 4 }} {{- end }} {{- end -}} <|endoftext|> # istio_sleep-spire.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################################## # Sleep service ################################################################################################## apiVersion: v1 kind: ServiceAccount metadata: name: sleep --- apiVersion: v1 kind: Service metadata: name: sleep labels: app: sleep service: sleep spec: ports: - port: 80 name: http selector: app: sleep --- apiVersion: apps/v1 kind: Deployment metadata: name: sleep spec: replicas: 1 selector: matchLabels: app: sleep template: metadata: labels: app: sleep spiffe.io/spire-managed-identity: "true" # Injects custom sidecar template annotations: inject.istio.io/templates: "sidecar,spire" spec: terminationGracePeriodSeconds: 0 serviceAccountName: sleep containers: - name: sleep image: docker.io/curlimages/curl:8.16.0 command: ["/bin/sleep", "infinity"] imagePullPolicy: IfNotPresent volumeMounts: - name: tmp mountPath: /tmp securityContext: runAsUser: 1000 volumes: - name: tmp emptyDir: {} --- <|endoftext|> # istio_agentgateway-resources-null.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-agentgateway-controller gateway.networking.k8s.io/gateway-class-name: istio-agentgateway gateway.networking.k8s.io/gateway-name: namespace istio.io/dataplane-mode: none name: namespace-istio-agentgateway namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: namespace uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-agentgateway-controller gateway.networking.k8s.io/gateway-class-name: istio-agentgateway gateway.networking.k8s.io/gateway-name: namespace istio.io/dataplane-mode: none name: namespace-istio-agentgateway namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: namespace uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: namespace template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-agentgateway-controller gateway.networking.k8s.io/gateway-class-name: istio-agentgateway gateway.networking.k8s.io/gateway-name: namespace istio.io/dataplane-mode: none service.istio.io/canonical-name: namespace-istio-agentgateway service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - --config - '{}' env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: GATEWAY value: namespace - name: RUST_BACKTRACE value: "1" - name: CLUSTER_ID value: Kubernetes - name: TRUST_DOMAIN value: cluster.local - name: XDS_ADDRESS value: istiod.istio-system.svc:15012 image: '/agentgateway:' name: agentgateway ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 resources: limits: memory: 500Mi requests: memory: 150Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/xds name: istiod-ca-cert - mountPath: /var/run/secrets/xds-tokens name: istio-token - mountPath: /tmp name: tmp securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: namespace-istio-agentgateway volumes: - emptyDir: {} name: tmp - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: xds-token --- apiVersion: v1 kind: Service metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-agentgateway-controller gateway.networking.k8s.io/gateway-class-name: istio-agentgateway gateway.networking.k8s.io/gateway-name: namespace istio.io/dataplane-mode: none name: namespace-istio-agentgateway namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: namespace uid: null spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP - appProtocol: http name: http port: 80 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: namespace type: LoadBalancer --- <|endoftext|> # flux_source_scc.yaml # Allow Flux controllers to run as non-root on OpenShift # Docs: https://fluxcd.io/flux/installation/configuration/openshift/ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: flux-scc rules: - apiGroups: - security.openshift.io resources: - securitycontextconstraints resourceNames: - nonroot verbs: - use --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: flux-scc roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: flux-scc subjects: - kind: ServiceAccount name: source-controller namespace: flux-system - kind: ServiceAccount name: source-watcher namespace: flux-system - kind: ServiceAccount name: kustomize-controller namespace: flux-system - kind: ServiceAccount name: helm-controller namespace: flux-system - kind: ServiceAccount name: notification-controller namespace: flux-system - kind: ServiceAccount name: image-reflector-controller namespace: flux-system - kind: ServiceAccount name: image-automation-controller namespace: flux-system <|endoftext|> # helm_charts_crd-podmonitor.yaml # https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.2.4 helm.sh/hook: crd-install creationTimestamp: null name: podmonitors.monitoring.coreos.com spec: group: monitoring.coreos.com names: kind: PodMonitor listKind: PodMonitorList plural: podmonitors singular: podmonitor preserveUnknownFields: false scope: Namespaced validation: openAPIV3Schema: description: PodMonitor defines monitoring for a set of pods. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: type: object spec: description: Specification of desired Pod selection for target discovery by Prometheus. properties: jobLabel: description: The label to use to retrieve the job name from. type: string namespaceSelector: description: Selector to select which namespaces the Endpoints objects are discovered from. properties: any: description: Boolean describing whether all namespaces are selected in contrast to a list restricting them. type: boolean matchNames: description: List of namespace names. items: type: string type: array type: object podMetricsEndpoints: description: A list of endpoints allowed as part of this PodMonitor. items: description: PodMetricsEndpoint defines a scrapeable endpoint of a Kubernetes Pod serving Prometheus metrics. properties: honorLabels: description: HonorLabels chooses the metric's labels on collisions with target labels. type: boolean honorTimestamps: description: HonorTimestamps controls whether Prometheus respects the timestamps present in scraped data. type: boolean interval: description: Interval at which metrics should be scraped type: string metricRelabelings: description: MetricRelabelConfigs to apply to samples before ingestion. items: description: 'RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of Prometheus configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs' properties: action: description: Action to perform based on regex matching. Default is 'replace' type: string modulus: description: Modulus to take of the hash of the source label values. format: int64 type: integer regex: description: Regular expression against which the extracted value is matched. Default is '(.*)' type: string replacement: description: Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1' type: string separator: description: Separator placed between concatenated source label values. default is ';'. type: string sourceLabels: description: The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions. items: type: string type: array targetLabel: description: Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available. type: string type: object type: array params: additionalProperties: items: type: string type: array description: Optional HTTP URL parameters type: object path: description: HTTP path to scrape for metrics. type: string port: description: Name of the pod port this endpoint refers to. Mutually exclusive with targetPort. type: string proxyUrl: description: ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint. type: string relabelings: description: 'RelabelConfigs to apply to samples before ingestion. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config' items: description: 'RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of Prometheus configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs' properties: action: description: Action to perform based on regex matching. Default is 'replace' type: string modulus: description: Modulus to take of the hash of the source label values. format: int64 type: integer regex: description: Regular expression against which the extracted value is matched. Default is '(.*)' type: string replacement: description: Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1' type: string separator: description: Separator placed between concatenated source label values. default is ';'. type: string sourceLabels: description: The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions. items: type: string type: array targetLabel: description: Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available. type: string type: object type: array scheme: description: HTTP scheme to use for scraping. type: string scrapeTimeout: description: Timeout after which the scrape is ended type: string targetPort: anyOf: - type: integer - type: string description: 'Deprecated: Use ''port'' instead.' x-kubernetes-int-or-string: true type: object type: array podTargetLabels: description: PodTargetLabels transfers labels on the Kubernetes Pod onto the target. items: type: string type: array sampleLimit: description: SampleLimit defines per-scrape limit on number of scraped samples that will be accepted. format: int64 type: integer selector: description: Selector to select Pod objects. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object required: - podMetricsEndpoints - selector type: object required: - spec type: object version: v1 versions: - name: v1 served: true storage: true <|endoftext|> # istio_default-container.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 26764 releaseNotes: - | **Improved** sidecar injection to automatically specify the `kubectl.kubernetes.io/default-logs-container`. This ensures `kubectl logs` defaults to reading the application container's logs, rather than requiring explicitly setting the container. <|endoftext|> # k8s_docs_conflict-preset.yaml apiVersion: settings.k8s.io/v1alpha1 kind: PodPreset metadata: name: allow-database spec: selector: matchLabels: role: frontend env: - name: DB_PORT value: "6379" volumeMounts: - mountPath: /cache name: other-volume volumes: - name: other-volume emptyDir: {} <|endoftext|> # istio_destinationrule-simple-port-credentialname-selector.yaml apiVersion: networking.istio.io/v1 kind: DestinationRule metadata: name: db-tls spec: host: mydbserver.prod.svc.cluster.local trafficPolicy: portLevelSettings: - port: number: 443 tls: mode: SIMPLE credentialName: db-credential workloadSelector: matchLabels: app: db <|endoftext|> # argocd_source_scm-provider-example-fasttemplate-gitlab.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: generators: - scmProvider: gitlab: api: https://gitlab.com group: test-argocd-proton includeSubgroups: true cloneProtocol: https filters: - repositoryMatch: test-app template: metadata: name: '{{ repository }}-guestbook' spec: project: "default" source: repoURL: '{{ url }}' targetRevision: '{{ branch }}' path: guestbook destination: server: https://kubernetes.default.svc namespace: guestbook <|endoftext|> # istio_retry-budget-subset-merge.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management Issue: - 59667 releaseNotes: - | **Fixed** a bug where `retryBudget` set in a DestinationRule's top-level `trafficPolicy` was silently dropped when the destination also had a subset with its own `trafficPolicy`. Additionally, the `retryBudget` defined at the subset level was also ignored. <|endoftext|> # istio_cronjob.yaml apiVersion: batch/v1 kind: CronJob metadata: name: hellocron spec: schedule: "*/1 * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox args: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure <|endoftext|> # helm_charts_additional-scripts.yaml {{ if .Values.halyard.additionalScripts.create -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "spinnaker.fullname" . }}-additional-scripts labels: {{ include "spinnaker.standard-labels" . | indent 4 }} data: {{- if and .Values.halyard.additionalScripts.create .Values.halyard.additionalScripts.data }} {{- range $index, $content := .Values.halyard.additionalScripts.data }} {{ $index }}: |- {{ tpl $content $ | indent 4 }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_istio-ca-root-cert-kube-system.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: [] releaseNotes: - | **Updated** namespace controller to create `istio-ca-root-cert` in the `kube-system` namespace. <|endoftext|> # kustomize_Chart.yaml apiVersion: v2 name: test-chart description: A simple test helm chart. # A chart can be either an 'application' or a 'library' chart. # # Application charts are a collection of templates that can be packaged into versioned archives # to be deployed. # # Library charts provide useful utilities or functions for the chart developer. They're included as # a dependency of application charts to inject those utilities and functions into the rendering # pipeline. Library charts do not define any templates and therefore cannot be deployed. type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. appVersion: "stable" <|endoftext|> # helm_charts_pvc-standalone.yaml {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) (not .Values.replicaSet.enabled) (not .Values.useStatefulSet) }} kind: PersistentVolumeClaim apiVersion: v1 metadata: labels: app: {{ template "mongodb.name" . }} chart: {{ template "mongodb.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "mongodb.fullname" . }} spec: accessModes: {{- range .Values.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.persistence.size | quote }} {{ include "mongodb.storageClass" . }} {{- end }} <|endoftext|> # istio_30014.yaml apiVersion: release-notes/v2 kind: feature area: security releaseNotes: - | **Added** An environment variable PILOT_JWT_PUB_KEY_REFRESH_INTERVAL for config the interval of istiod to fetch the jwks_uri for the jwks public key. User can use set the refresh interval with command `--set values.pilot.env.PILOT_JWT_PUB_KEY_REFRESH_INTERVAL=` while istioctl installation. The default interval is 20m. Valid time units are "ns", "us", "ms", "s", "m", "h". <|endoftext|> # helm_charts_opencart-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "opencart.fullname" . }}-opencart labels: app: {{ template "opencart.fullname" . }} chart: {{ template "opencart.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: accessModes: - {{ .Values.persistence.opencart.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.opencart.size | quote }} {{ include "opencart.storageClass" . }} {{- end -}} <|endoftext|> # istio_57219-final.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 57219 releaseNotes: - | **Removed** support for InferencePool v1.0.0-rc.2. **Added** support for InferencePool v1.0.0. upgradeNotes: - title: InferencePool content: | The InferencePool API v1.0.0-rc.2 has been replaced with v1.0.0. No API changes exist between rc2 and v1.0.0. <|endoftext|> # istio_nds-se.yaml apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-dns-no-addr namespace: ns2 spec: hosts: - random-1.host.example # expect address to be auto allocated ports: - number: 80 name: http protocol: HTTP resolution: DNS --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-dns-with-addr namespace: ns2 spec: hosts: - random-2.host.example addresses: - 9.9.9.9 ports: - number: 80 name: http protocol: HTTP resolution: DNS --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-static-no-addr namespace: ns2 spec: hosts: - random-3.host.example # expect address to be auto allocated ports: - number: 80 name: http protocol: HTTP resolution: STATIC location: MESH_INTERNAL endpoints: - address: 1.2.3.4 labels: security.istio.io/tlsMode: istio --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-none-wildcard namespace: ns2 spec: hosts: - "*.random-4.host.example" # expect no address to be auto allocated ports: - number: 80 name: http protocol: HTTP resolution: NONE --- # this should not have any name table entry # as we dont auto allocate for none mode services apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-none-no-wildcard namespace: ns2 spec: hosts: - random-5.host.example ports: - number: 80 name: http protocol: HTTP resolution: NONE --- apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: cidr spec: addresses: - 198.51.100.0/31 hosts: - address.internal ports: - name: tcp number: 8888 protocol: TCP <|endoftext|> # helm_charts_pod-security-policy.yaml {{- if .Values.podSecurityPolicy.enabled }} apiVersion: extensions/v1beta1 kind: PodSecurityPolicy metadata: name: {{ template "fluentd-elasticsearch.fullname" . }} labels: app.kubernetes.io/name: {{ include "fluentd-elasticsearch.name" . }} helm.sh/chart: {{ include "fluentd-elasticsearch.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} kubernetes.io/cluster-service: "true" addonmanager.kubernetes.io/mode: Reconcile annotations: {{- if .Values.podSecurityPolicy.annotations }} {{ toYaml .Values.podSecurityPolicy.annotations | indent 4 }} {{- end }} spec: privileged: false allowPrivilegeEscalation: true volumes: - 'configMap' - 'emptyDir' - 'hostPath' - 'secret' allowedHostPaths: - pathPrefix: /var/log readOnly: false - pathPrefix: /var/lib/docker/containers readOnly: true - pathPrefix: /usr/lib64 readOnly: true hostNetwork: false hostPID: false hostIPC: false runAsUser: rule: 'RunAsAny' runAsGroup: rule: 'RunAsAny' seLinux: rule: 'RunAsAny' supplementalGroups: rule: 'RunAsAny' fsGroup: rule: 'MustRunAs' ranges: - min: 1 max: 65535 readOnlyRootFilesystem: false hostPorts: - min: 1 max: 65535 {{- end }} <|endoftext|> # istio_sidecar-default-selector.yaml apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: no-selector # Since this is the only Sidecar in the namespace without a workload selector, no conflict namespace: ns1 spec: egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: has-selector namespace: ns1 spec: workloadSelector: # Since this has a workload selector, it shouldn't conflict with the other Sidecar in the namespace labels: app: foo egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: has-conflict-1 # Both Sidecars in this namespace omit workload selector, so they are in conflict namespace: ns2 spec: egress: - hosts: - "./*" --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: has-conflict-2 # Both Sidecars in this namespace omit workload selector, so they are in conflict namespace: ns2 spec: egress: - hosts: - "./*" --- apiVersion: v1 kind: Namespace metadata: name: ns1 --- apiVersion: v1 kind: Namespace metadata: name: ns2 --- apiVersion: v1 kind: Pod metadata: name: random-pod namespace: ns1 labels: app: foo spec: containers: - image: proxyv2 --- # some tests for ambient # pod in ambient mode should throw error for sidecar resource apiVersion: v1 kind: Namespace metadata: name: ns-ambient labels: istio.io/dataplane-mode: ambient --- apiVersion: v1 kind: Pod metadata: name: random-pod-ambient namespace: ns-ambient labels: app: ambient annotations: ambient.istio.io/redirection: enabled --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: namespace-scoped namespace: ns-ambient --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: pod-scoped namespace: ns-ambient spec: workloadSelector: labels: app: ambient --- apiVersion: v1 kind: Namespace metadata: name: ns-not-ambient labels: istio.io/dataplane-mode: ambient istio-injection: enabled --- apiVersion: v1 kind: Namespace metadata: name: ns-not-ambient-rev labels: istio.io/dataplane-mode: ambient istio.io/rev: canary --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: namespace-not-ambient namespace: ns-not-ambient --- apiVersion: networking.istio.io/v1 kind: Sidecar metadata: name: namespace-not-ambient namespace: ns-not-ambient-rev <|endoftext|> # helm_charts_secret-registry.yaml {{- if .Values.registryCreds.dockerConfig }} apiVersion: v1 kind: Secret metadata: name: {{ template "buildkite.fullname" . }}-registry labels: app: {{ template "buildkite.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: config.json: |- {{ .Values.registryCreds.dockerConfig }} {{- end }} <|endoftext|> # istio_28915.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Updated** the experimental `precheck` command to show potential problems before upgrading. <|endoftext|> # grafana_charts_service-memcached-index-queries.yaml {{- if .Values.memcachedIndexQueries.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "loki.memcachedIndexQueriesFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.memcachedIndexQueriesSelectorLabels" . | nindent 4 }} {{- with .Values.memcachedIndexQueries.serviceLabels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.memcached.serviceAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: ClusterIP clusterIP: None ports: - name: memcached-client port: 11211 targetPort: http protocol: TCP {{- if .Values.memcached.appProtocol }} appProtocol: {{ .Values.memcached.appProtocol }} {{- end }} - name: http-metrics port: 9150 targetPort: http-metrics protocol: TCP selector: {{- include "loki.memcachedIndexQueriesSelectorLabels" . | nindent 4 }} {{- end }} <|endoftext|> # helm_charts_consul-test.yaml apiVersion: v1 kind: Pod metadata: name: "{{ .Release.Name }}-ui-test-{{ randAlphaNum 5 | lower }}" annotations: "helm.sh/hook": test-success spec: {{- if or .Values.test.rbac.create .Values.test.rbac.serviceAccountName }} serviceAccountName: {{ if .Values.test.rbac.create }}{{ template "consul.fullname" . }}-test{{ else }}"{{ .Values.test.rbac.serviceAccountName }}"{{ end }} {{- end }} initContainers: - name: test-framework image: dduportal/bats:0.4.0 command: - "bash" - "-c" - | set -ex # copy bats to tools dir cp -R /usr/local/libexec/ /tools/bats/ volumeMounts: - mountPath: /tools name: tools containers: - name: {{ .Release.Name }}-ui-test image: {{ .Values.test.image }}:{{ .Values.test.imageTag }} command: ["/tools/bats/bats", "-t", "/tests/run.sh"] volumeMounts: - mountPath: /tests name: tests readOnly: true - mountPath: /tools name: tools volumes: - name: tests configMap: name: {{ template "consul.fullname" . }}-tests - name: tools emptyDir: {} restartPolicy: Never <|endoftext|> # helm_charts_configmap-custom-app-checks.yaml {{- if .Values.customAppChecks }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "sysdig.fullname" . }}-custom-app-checks labels: {{ include "sysdig.labels" . | indent 4 }} data: {{- range $file, $content := .Values.customAppChecks }} {{ $file }}: |- {{ $content | indent 4}} {{- end }} {{- end }} <|endoftext|> # istio_47574.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for automatically set default network to Ambient workloads if they are added to the Ambient before the network topology is set. Before, when you set `topology.istio.io/network` on your Istio root namespace, you need to manually rollout the Ambient workloads to make the network change take effect. Now, the network of Ambient workloads will be automatically updated even if they do not have a network label. Note that if your Ztunnel is not in the same network as what you set in the `topology.istio.io/network` label in your Istio root namespace, your Ambient workloads will not be able to communicate with each other. <|endoftext|> # argocd_source_healthy_configured.yaml apiVersion: nmstate.io/v1 kind: NodeNetworkConfigurationPolicy metadata: name: test-node-network-configuration-policy spec: nodeSelector: kubernetes.io/hostname: node1 desiredState: interfaces: - name: eth1 type: ethernet state: up status: conditions: - lastHeartbeatTime: '2026-02-18T13:41:43Z' lastTransitionTime: '2026-02-18T13:41:43Z' message: 1/1 nodes successfully configured reason: SuccessfullyConfigured status: 'True' type: Available - lastHeartbeatTime: '2026-02-18T13:41:43Z' lastTransitionTime: '2026-02-18T13:41:43Z' reason: SuccessfullyConfigured status: 'False' type: Degraded - lastHeartbeatTime: '2026-02-18T13:41:43Z' lastTransitionTime: '2026-02-18T13:41:43Z' reason: ConfigurationProgressing status: 'False' type: Progressing <|endoftext|> # istio_gateway-custom-ingressgateway-translation.yaml # Gateway with non-standard IngressGateway # apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: httpbin-gateway spec: selector: myapp: private-ingressgateway servers: - port: number: 80 name: http2 protocol: HTTP hosts: - "*" --- apiVersion: v1 kind: Pod metadata: labels: myapp: private-ingressgateway name: my-ingressgateway-1234 spec: containers: - args: name: istio-proxy --- apiVersion: v1 kind: Service metadata: name: my-ingressgateway spec: ports: - name: http2 nodePort: 31380 port: 80 protocol: TCP targetPort: 8003 selector: myapp: private-ingressgateway <|endoftext|> # argocd_source_noStatusAnalysisRun.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: name: canary-demo-analysis-template-6c6bb7cf6f-9k5rj namespace: default spec: analysisSpec: metrics: - failureCondition: len(result) > 0 interval: 10 name: memory-usage provider: prometheus: address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' query: > sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) successCondition: len(result) > 0 <|endoftext|> # istio_peer-authn-permissive-root-strict-namespace-permissive-workload-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-mesh namespace: istio-system spec: mtls: mode: PERMISSIVE --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default-foo namespace: foo spec: mtls: mode: STRICT --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: workload namespace: foo spec: selector: matchLabels: app: a portLevelMtls: 9090: mode: PERMISSIVE <|endoftext|> # istio_traffic-annotations-wildcards.yaml apiVersion: apps/v1 kind: Deployment metadata: name: traffic spec: replicas: 7 selector: matchLabels: app: traffic template: metadata: annotations: traffic.sidecar.istio.io/includeInboundPorts: "*" traffic.sidecar.istio.io/excludeInboundPorts: "4,5,6" traffic.sidecar.istio.io/includeOutboundIPRanges: "*" traffic.sidecar.istio.io/excludeOutboundIPRanges: "10.96.0.2/24,10.96.0.3/24" labels: app: traffic spec: containers: - name: traffic image: "fake.docker.io/google-samples/traffic-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # argocd_source_degraded_acmeFailed.yaml apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: creationTimestamp: "2019-02-15T19:23:48Z" generation: 1 name: test-issuer resourceVersion: "68352438" uid: 37f408e3-3157-11e9-be3f-42010a800011 spec: acme: email: myemail@example.com http01: {} privateKeySecretRef: key: "" name: letsencrypt server: https://acme-v02.api.letsencrypt.org/directory124 status: acme: uri: "" conditions: - lastTransitionTime: "2019-02-15T19:23:53Z" message: | Failed to verify ACME account: acme: : 404 page not found reason: ErrRegisterACMEAccount status: "False" type: Ready <|endoftext|> # istio_36634.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - https://github.com/istio/istio/issues/36472 releaseNotes: - | **Added** `--operatorFileName` flag to `kube-inject` to support iop files. <|endoftext|> # cert_manager_webhook-psp-clusterrole.yaml {{- if .Values.global.podSecurityPolicy.enabled }} kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ template "webhook.fullname" . }}-psp labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} rules: - apiGroups: ['policy'] resources: ['podsecuritypolicies'] verbs: ['use'] resourceNames: - {{ template "webhook.fullname" . }} {{- end }} <|endoftext|> # helm_charts_dask-scheduler-deployment.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: {{ template "dask-distributed.scheduler-fullname" . }} labels: app: {{ template "dask-distributed.name" . }} heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.scheduler.component }}" spec: replicas: {{ .Values.scheduler.replicas }} strategy: type: RollingUpdate template: metadata: labels: app: {{ template "dask-distributed.name" . }} release: {{ .Release.Name | quote }} component: "{{ .Release.Name }}-{{ .Values.scheduler.component }}" spec: containers: - name: {{ template "dask-distributed.scheduler-fullname" . }} image: "{{ .Values.scheduler.image }}:{{ .Values.scheduler.imageTag }}" command: ["dask-scheduler", "--port", "{{ .Values.scheduler.servicePort }}", "--bokeh-port", "{{ .Values.webUI.containerPort }}"] ports: - containerPort: {{ .Values.scheduler.containerPort }} - containerPort: {{ .Values.webUI.containerPort }} resources: {{ toYaml .Values.scheduler.resources | indent 12 }} <|endoftext|> # argocd_source_created.yaml apiVersion: batch/v1 kind: Job metadata: name: test-29228857 spec: template: spec: containers: - command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster image: busybox:1.28 imagePullPolicy: IfNotPresent name: hello restartPolicy: OnFailure <|endoftext|> # helm_charts_kubernetes-system-controller-manager.yaml {{- /* Generated from 'kubernetes-system-controller-manager' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.kubeControllerManager.enabled }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kubernetes-system-controller-manager" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kubernetes-system-controller-manager rules: {{- if .Values.kubeControllerManager.enabled }} - alert: KubeControllerManagerDown annotations: message: KubeControllerManager has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubecontrollermanagerdown expr: absent(up{job="kube-controller-manager"} == 1) for: 15m labels: severity: critical {{- end }} {{- end }} <|endoftext|> # istio_43951.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 43950 releaseNotes: - | **Fixed** WorkloadEntry resources never being cleaned up if multiple WorkloadEntries were auto-registered with the same IP and network. <|endoftext|> # istio_bogus_cps.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: namespace: istio-system spec: values: global: mountMtlsCerts: pilot: autoscaleEnabled: <|endoftext|> # istio_27947.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 27947 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** Enable user to set the custom vm identity provider for credential authentication <|endoftext|> # helm_charts_crds-rbac.yaml {{- if .Values.crds.enabled }} {{- if .Values.rbac.create }} --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: name: {{ include "ambassador.fullname" . }}-crds labels: app.kubernetes.io/name: {{ include "ambassador.name" . }} helm.sh/chart: {{ include "ambassador.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.extraLabels }} {{- toYaml .Values.extraLabels | nindent 4 }} {{- end }} rules: - apiGroups: [ "apiextensions.k8s.io" ] resources: - customresourcedefinitions resourceNames: - authservices.getambassador.io - mappings.getambassador.io - modules.getambassador.io - ratelimitservices.getambassador.io - tcpmappings.getambassador.io - tlscontexts.getambassador.io - tracingservices.getambassador.io - kubernetesendpointresolvers.getambassador.io - kubernetesserviceresolvers.getambassador.io - consulresolvers.getambassador.io - logservices.getambassador.io {{- if .Values.pro.enabled }} - filters.getambassador.io - filterpolicies.getambassador.io - ratelimits.getambassador.io {{- end }} verbs: ["get", "list", "watch", "delete"] --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: {{ include "ambassador.fullname" . }}-crds labels: app.kubernetes.io/name: {{ include "ambassador.name" . }} helm.sh/chart: {{ include "ambassador.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.extraLabels }} {{- toYaml .Values.extraLabels | nindent 4 }} {{- end }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ include "ambassador.fullname" . }}-crds subjects: - name: {{ include "ambassador.serviceAccountName" . }} namespace: {{ .Release.Namespace | quote }} kind: ServiceAccount {{- end }} {{- end }} <|endoftext|> # argocd_examples_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "helm-guestbook.fullname" . }} labels: app: {{ template "helm-guestbook.name" . }} chart: {{ template "helm-guestbook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: 3 selector: matchLabels: app: {{ template "helm-guestbook.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "helm-guestbook.name" . }} release: {{ .Release.Name }} spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.containerPort }} protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: http resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # istio_inbound-cluster-rename.yaml apiVersion: release-notes/v2 kind: feature area: bug-fix issue: - 29199 releaseNotes: - | **Fixed** a regression in Istio 1.8.0 causing workloads with multiple Services with overlapping ports to send traffic to the wrong port. <|endoftext|> # grafana_charts_clusterrolebinding.yaml {{- if .Values.rbac.create }} kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ include "promtail.fullname" . }} labels: {{- include "promtail.labels" . | nindent 4 }} subjects: - kind: ServiceAccount name: {{ include "promtail.serviceAccountName" . }} namespace: {{ include "promtail.namespaceName" . }} roleRef: kind: ClusterRole name: {{ include "promtail.fullname" . }} apiGroup: rbac.authorization.k8s.io {{- end }} <|endoftext|> # istio_mesh-expansion.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 25933 releaseNotes: - | **Added** port 15012 to the default list of ports for the `istio-ingressgateway` Service. - | **Deprecated** installation flags `values.global.meshExpansion.enabled` in favor of user-managed config and `values.gateways.istio-ingressgateway.meshExpansionPorts` in favor of `components.ingressGateways[name=istio-ingressgateway].k8s.service.ports` upgradeNotes: - title: Avoid use of mesh expansion installation flags content: | To ease setup for multicluster and virtual machines while giving more control to users, the `meshExpansion` and `meshExpansionPorts` installation flags have been deprecated, and port 15012 has been added to the default list of ports for the `istio-ingressgateway` Service. For users with `values.global.meshExpansion.enabled=true`, perform the following steps before upgrading Istio: 1. Apply the code sample for exposing Istiod through ingress. {{< text bash >}} $ kubectl apply -f @samples/istiod-gateway/istiod-gateway.yaml@ {{< /text >}} This removes `operator.istio.io/managed` labels from the associated Istio networking resources so that the Istio installer won't delete them. After this step, you can modify these resources freely. 1. If `components.ingressGateways[name=istio-ingressgateway].k8s.service.ports` is overridden, add port 15012 to the list of ports: {{< text yaml >}} - port: 15012 targetPort: 15012 name: tcp-istiod {{< /text >}} 1. If `values.gateways.istio-ingressgateway.meshExpansionPorts` is set, move all ports to `components.ingressGateways[name=istio-ingressgateway].k8s.service.ports` if they're not already present. Then, unset this value. 1. Unset `values.global.meshExpansion.enabled`. <|endoftext|> # istio_dns-localhost-loop.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: - 30309 releaseNotes: - | **Fixed** an issue causing [DNS proxying](/docs/ops/configuration/traffic-management/dns-proxy/) to not work when using a DNS resolver on localhost. <|endoftext|> # istio_42414.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** locality label missing for a sidecar without service selected. <|endoftext|> # istio_45800.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 45798 releaseNotes: - | **Fixed** an issue where Istiod might crash when a cluster is deleted if the xDS cache is disabled. <|endoftext|> # helm_charts_kafka-trigger-type-crd.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: kafkatriggers.kubeless.io labels: app: kubeless annotations: helm.sh/hook: crd-install helm.sh/hook-delete-policy: before-hook-creation spec: group: kubeless.io names: kind: KafkaTrigger plural: kafkatriggers singular: kafkatrigger scope: Namespaced version: v1beta1 <|endoftext|> # helm_charts_chrome-deployment.yaml {{- if and (eq true .Values.chrome.enabled) (eq false .Values.chrome.runAsDaemonSet) -}} apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "selenium.chrome.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: replicas: {{ .Values.chrome.replicas }} selector: matchLabels: app: {{ template "selenium.chrome.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.chrome.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.chrome.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.chrome.podAnnotations }} annotations: {{ toYaml .Values.chrome.podAnnotations | indent 8 }} {{- end}} spec: {{- if .Values.chrome.securityContext }} securityContext: {{ toYaml .Values.chrome.securityContext | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.chrome.image }}:{{ .Values.chrome.tag }}" imagePullPolicy: {{ .Values.chrome.pullPolicy }} ports: {{- if .Values.hub.jmxPort }} - containerPort: {{ .Values.hub.jmxPort }} name: jmx protocol: TCP {{- end }} {{- if .Values.chrome.enableLivenessProbe }} livenessProbe: httpGet: path: /wd/hub/status port: {{ default "5555" .Values.chrome.nodePort }} initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 1 {{- end }} {{- if .Values.chrome.waitForRunningSessions }} lifecycle: preStop: exec: command: - /bin/bash - -c - "while [ $(wget -q -O - http://localhost:{{ default "5555" .Values.chrome.nodePort }}/wd/hub/sessions | grep -c capabilities) -gt 0 ]; do sleep 1; done" {{- end }} env: - name: HUB_PORT_4444_TCP_ADDR value: {{ template "selenium.hub.fullname" . }} - name: HUB_PORT_4444_TCP_PORT value: {{ .Values.hub.servicePort | quote }} - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.chrome.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.chrome.seOpts | quote }} {{- if .Values.chrome.chromeVersion }} - name: CHROME_VERSION value: {{ .Values.chrome.chromeVersion | quote }} {{- end }} {{- if .Values.chrome.nodeMaxInstances }} - name: NODE_MAX_INSTANCES value: {{ .Values.chrome.nodeMaxInstances | quote }} {{- end }} {{- if .Values.chrome.nodeMaxSession }} - name: NODE_MAX_SESSION value: {{ .Values.chrome.nodeMaxSession | quote }} {{- end }} {{- if .Values.chrome.nodeRegisterCycle }} - name: NODE_REGISTER_CYCLE value: {{ .Values.chrome.nodeRegisterCycle | quote }} {{- end }} {{- if .Values.chrome.nodePort }} - name: NODE_PORT value: {{ .Values.chrome.nodePort | quote }} {{- end }} {{- if .Values.chrome.screenWidth }} - name: SCREEN_WIDTH value: {{ .Values.chrome.screenWidth | quote }} {{- end }} {{- if .Values.chrome.screenHeight }} - name: SCREEN_HEIGHT value: {{ .Values.chrome.screenHeight | quote }} {{- end }} {{- if .Values.chrome.screenDepth }} - name: SCREEN_DEPTH value: {{ .Values.chrome.screenDepth | quote }} {{- end }} {{- if .Values.chrome.display }} - name: DISPLAY value: {{ .Values.chrome.display | quote }} {{- end }} {{- if .Values.chrome.timeZone }} - name: TZ value: {{ .Values.chrome.timeZone | quote }} {{- end }} {{- if .Values.chrome.extraEnvs }} {{ toYaml .Values.chrome.extraEnvs | indent 12 }} {{- end }} volumeMounts: {{ if .Values.chrome.volumeMounts -}} {{ toYaml .Values.chrome.volumeMounts | trim | indent 12 }} {{- end }} resources: {{ toYaml .Values.chrome.resources | trim | indent 12 }} {{- if or .Values.global.imagePullSecrets .Values.chrome.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.chrome.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} volumes: {{ if .Values.chrome.volumes -}} {{ toYaml .Values.chrome.volumes | trim | indent 8 }} {{- end }} hostAliases: {{ toYaml .Values.global.hostAliases | trim | indent 8 }} nodeSelector: {{- if .Values.chrome.nodeSelector }} {{ toYaml .Values.chrome.nodeSelector | trim | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | trim | indent 8 }} {{- end }} affinity: {{- if .Values.chrome.affinity }} {{ toYaml .Values.chrome.affinity | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | indent 8 }} {{- end }} tolerations: {{- if .Values.chrome.tolerations }} {{ toYaml .Values.chrome.tolerations | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | indent 8 }} {{- end }} {{- end -}} <|endoftext|> # k8s_docs_default-pod.yaml apiVersion: v1 kind: Pod metadata: name: default-pod labels: app: default-pod annotations: seccomp.security.alpha.kubernetes.io/pod: runtime/default spec: containers: - name: test-container image: hashicorp/http-echo:0.2.3 args: - "-text=just made some syscalls!" securityContext: allowPrivilegeEscalation: false <|endoftext|> # helm_charts_replicator-configmap.yaml {{- if .Values.artifactory.replicator.enabled -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "artifactory.fullname" . }}-replicator-config labels: app: {{ template "artifactory.name" . }} chart: {{ template "artifactory.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} data: replicator.yaml: | externalUrl: {{ .Values.artifactory.replicator.publicUrl }} internalUrl: http://localhost:6061 listenPort: 6061 {{- end -}} <|endoftext|> # argocd_source_terminatedAnalysisRun.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: annotations: rollout.argoproj.io/revision: '2' creationTimestamp: '2020-11-06T18:39:45Z' generation: 4 labels: rollout-type: Step rollouts-pod-template-hash: ff68867ff step-index: '0' name: rollout-canary-ff68867ff-2-0 namespace: default ownerReferences: - apiVersion: argoproj.io/v1alpha1 blockOwnerDeletion: true controller: true kind: Rollout name: rollout-canary uid: 0223237a-0dc1-45f6-881c-fe1873b1771f resourceVersion: '1381' selfLink: >- /apis/argoproj.io/v1alpha1/namespaces/default/analysisruns/rollout-canary-ff68867ff-2-0 uid: 863da27d-df03-41d2-a528-cc2f1ec25358 spec: args: - name: exit-code value: '0' - name: duration value: 1h metrics: - name: sleep-job provider: job: metadata: creationTimestamp: null spec: backoffLimit: 0 template: metadata: creationTimestamp: null spec: containers: - args: - 'sleep {{args.duration}} && exit {{args.exit-code}}' command: - sh - '-c' - '-x' image: 'nginx:1.19-alpine' name: sleep-job resources: {} restartPolicy: Never terminate: true status: message: run terminated metricResults: - count: 1 measurements: - finishedAt: '2020-11-06T18:42:58Z' message: metric terminated metadata: job-name: 863da27d-df03-41d2-a528-cc2f1ec25358.sleep-job.1 phase: Successful startedAt: '2020-11-06T18:39:45Z' message: metric terminated name: sleep-job phase: Successful successful: 1 phase: Successful startedAt: '2020-11-06T18:39:45Z' <|endoftext|> # istio_pilot_disable_tracing.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: empty values: global: proxy: tracer: none components: pilot: enabled: true <|endoftext|> # helm_charts_podmonitors.yaml {{- if and .Values.prometheus.enabled .Values.prometheus.additionalPodMonitors }} apiVersion: v1 kind: List items: {{- range .Values.prometheus.additionalPodMonitors }} - apiVersion: monitoring.coreos.com/v1 kind: PodMonitor metadata: name: {{ .name }} namespace: {{ template "prometheus-operator.namespace" $ }} labels: app: {{ template "prometheus-operator.name" $ }}-prometheus {{ include "prometheus-operator.labels" $ | indent 8 }} {{- if .additionalLabels }} {{ toYaml .additionalLabels | indent 8 }} {{- end }} spec: podMetricsEndpoints: {{ toYaml .podMetricsEndpoints | indent 8 }} {{- if .jobLabel }} jobLabel: {{ .jobLabel }} {{- end }} {{- if .namespaceSelector }} namespaceSelector: {{ toYaml .namespaceSelector | indent 8 }} {{- end }} selector: {{ toYaml .selector | indent 8 }} {{- if .podTargetLabels }} podTargetLabels: {{ toYaml .podTargetLabels | indent 8 }} {{- end }} {{- if .sampleLimit }} sampleLimit: {{ .sampleLimit }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_52835.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 52835 releaseNotes: - | **Fixed** an issue where the `ISTIO_OUTPUT` `iptables` chain was not removed with `pilot-agent istio-clean-iptables` command. <|endoftext|> # istio_36274.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support for sending unready endpoints also to Envoy. This will be useful when slow start mode in Envoy is enabled. This can be disabled by setting PILOT_SEND_UNHEALTHY_ENDPOINTS to false. <|endoftext|> # istio_57734.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/57734 releaseNotes: - | **Fixed** status conflicts on Route resources when multiple istio revisions are installed. <|endoftext|> # istio_openshift-ambient.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: cni: enabled: true namespace: kube-system ztunnel: enabled: true namespace: kube-system ingressGateways: - name: istio-ingressgateway enabled: false values: profile: ambient global: platform: openshift <|endoftext|> # argocd_source_healthy_resourceapplied.yaml apiVersion: addons.cluster.x-k8s.io/v1beta1 kind: ClusterResourceSet metadata: finalizers: - addons.cluster.x-k8s.io generation: 2 labels: app.argocd.io/instance: clustername name: clustername-resource-set namespace: capi-managed-cluster spec: clusterSelector: matchLabels: clusterName: clustername resources: - kind: ConfigMap name: clustername-default-rbac strategy: ApplyOnce status: conditions: - lastTransitionTime: '2024-11-08T08:49:13Z' status: 'True' type: ResourcesApplied observedGeneration: 2 <|endoftext|> # argocd_source_activeJobs.yaml apiVersion: apps.kruise.io/v1alpha1 kind: AdvancedCronJob metadata: name: acj-test spec: schedule: "*/1 * * * *" template: broadcastJobTemplate: spec: template: spec: containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] restartPolicy: Never completionPolicy: type: Always ttlSecondsAfterFinished: 30 status: active: - apiVersion: apps.kruise.io/v1alpha1 kind: BroadcastJob name: acj-test-1694882400 namespace: default resourceVersion: '4012' uid: 2b08a429-a43b-4382-8e5d-3db0c72b5b13 lastScheduleTime: '2023-09-16T16:40:00Z' type: BroadcastJob <|endoftext|> # argocd_source_pod-error.yaml apiVersion: v1 kind: Pod metadata: creationTimestamp: 2018-12-02T09:19:36Z name: my-pod namespace: argocd resourceVersion: "151396" selfLink: /api/v1/namespaces/argocd/pods/my-pod uid: 63674389-f613-11e8-a057-fe5f49266390 spec: containers: - command: - sh - -c - exit 1 image: alpine:latest imagePullPolicy: Always name: main resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: default-token-f9jvj readOnly: true dnsPolicy: ClusterFirst nodeName: minikube restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 volumes: - name: default-token-f9jvj secret: defaultMode: 420 secretName: default-token-f9jvj status: conditions: - lastProbeTime: null lastTransitionTime: 2018-12-02T09:19:36Z status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: 2018-12-02T09:19:36Z message: 'containers with unready status: [main]' reason: ContainersNotReady status: "False" type: Ready - lastProbeTime: null lastTransitionTime: 2018-12-02T09:19:36Z status: "True" type: PodScheduled containerStatuses: - containerID: docker://fc8dca42fb4f35dac154db3ed45ad7952523345d470b2992779a03c332589ac4 image: alpine:latest imageID: docker-pullable://alpine@sha256:621c2f39f8133acb8e64023a94dbdf0d5ca81896102b9e57c0dc184cadaf5528 lastState: terminated: containerID: docker://54fe1af9c2c0b61b3697abfeb33adc9ce76ec192b3703b46278d9df7573dff72 exitCode: 1 finishedAt: 2018-12-02T09:19:41Z reason: Error startedAt: 2018-12-02T09:19:41Z name: main ready: false restartCount: 2 state: terminated: containerID: docker://fc8dca42fb4f35dac154db3ed45ad7952523345d470b2992779a03c332589ac4 exitCode: 1 finishedAt: 2018-12-02T09:19:56Z reason: Error startedAt: 2018-12-02T09:19:56Z hostIP: 192.168.64.41 phase: Running podIP: 172.17.0.9 qosClass: BestEffort startTime: 2018-12-02T09:19:36Z <|endoftext|> # helm_charts_tests.yaml {{- if .Values.tests.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "mariadb.fullname" . }}-tests data: run.sh: |- @test "Testing MariaDB is accessible" { mysql -h {{ template "mariadb.fullname" . }} -uroot -p$MARIADB_ROOT_PASSWORD -e 'show databases;' } {{- end }} <|endoftext|> # grafana_charts_deployment-federation-frontend.yaml {{- if and .Values.enterprise.enabled .Values.enterpriseFederationFrontend.enabled }} {{ $dict := dict "ctx" . "component" "enterprise-federation-frontend" }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.enterpriseFederationFrontend.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: minReadySeconds: 10 {{- if not .Values.enterpriseFederationFrontend.autoscaling.enabled }} replicas: {{ .Values.enterpriseFederationFrontend.replicas }} {{- end }} revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }} selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} strategy: rollingUpdate: maxSurge: 0 maxUnavailable: 1 template: metadata: labels: {{- include "tempo.podLabels" $dict | nindent 8 }} {{- with .Values.tempo.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.enterpriseFederationFrontend.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }} {{- with .Values.tempo.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.enterpriseFederationFrontend.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if or (.Values.enterpriseFederationFrontend.priorityClassName) (.Values.global.priorityClassName) }} priorityClassName: {{ default .Values.enterpriseFederationFrontend.priorityClassName .Values.global.priorityClassName }} {{- end }} serviceAccountName: {{ include "tempo.serviceAccountName" . }} {{- with .Values.tempo.podSecurityContext }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} enableServiceLinks: false {{- include "tempo.enterpriseFederationFrontendImagePullSecrets" . | nindent 6 -}} {{- with .Values.enterpriseFederationFrontend.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} containers: - args: - -target=federation-frontend - -config.file=/conf/tempo.yaml {{- with .Values.enterpriseFederationFrontend.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} image: {{ include "tempo.imageReference" $dict }} imagePullPolicy: {{ .Values.tempo.image.pullPolicy }} name: federation-frontend ports: - containerPort: 3200 name: http-metrics {{- if or .Values.global.extraEnv .Values.enterpriseFederationFrontend.extraEnv }} env: {{- with .Values.global.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.enterpriseFederationFrontend.extraEnv }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} {{- if or .Values.global.extraEnvFrom .Values.enterpriseFederationFrontend.extraEnvFrom }} envFrom: {{- with .Values.enterpriseFederationFrontend.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.global.extraEnvFrom }} {{- toYaml . | nindent 12 }} {{- end }} {{- end }} resources: {{- toYaml .Values.enterpriseFederationFrontend.resources | nindent 12 }} {{- with .Values.tempo.securityContext }} securityContext: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: - mountPath: /conf name: config - mountPath: /var/tempo name: tempo-federation-frontend-store {{- if .Values.enterprise.enabled }} - name: license mountPath: /license {{- end }} {{- with .Values.enterpriseFederationFrontend.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} terminationGracePeriodSeconds: {{ .Values.enterpriseFederationFrontend.terminationGracePeriodSeconds }} {{- if ge (.Capabilities.KubeVersion.Minor|int) 19 }} {{- with .Values.enterpriseFederationFrontend.topologySpreadConstraints }} topologySpreadConstraints: {{- tpl . $ | nindent 8 }} {{- end }} {{- end }} {{- with .Values.enterpriseFederationFrontend.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.enterpriseFederationFrontend.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.enterpriseFederationFrontend.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- include "tempo.configVolume" . | nindent 10 }} - name: tempo-federation-frontend-store emptyDir: {} {{- if .Values.enterprise.enabled }} - name: license secret: secretName: {{ tpl .Values.license.secretName . }} {{- end }} {{- with .Values.enterpriseFederationFrontend.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # istio_bad-envoy-build.yaml apiVersion: release-notes/v2 kind: feature area: networking issue: [31038] releaseNotes: - | **Fixed** an issue causing an alternative Envoy binary to be included in the docker image. The binaries are functionally equivalent. <|endoftext|> # istio_autoscaling_v2.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: components: ingressGateways: - enabled: true name: istio-ingressgateway values: pilot: cpu: targetAverageUtilization: 90 memory: targetAverageUtilization: 90 <|endoftext|> # istio_56240.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: [56223] releaseNotes: - | **Fixed** a panic in `istioctl manifest translate` when the IstioOperator config contains multiple gateways. <|endoftext|> # istio_36499.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - https://github.com/istio/istio/issues/36499 releaseNotes: - | **Fixed** an issue where TcpKeepalive setting at mesh config is not honored. <|endoftext|> # istio_48526.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue `proxyconfig ecds` didn't show all `EcdsConfigDump`. <|endoftext|> # helm_charts_ingress-portal-api.yaml {{- if .Values.enterprise.enabled }} {{- if .Values.portalapi.ingress.enabled -}} {{- $serviceName := include "kong.fullname" . -}} {{- $servicePort := include "kong.ingress.servicePort" .Values.portalapi -}} {{- $path := .Values.portalapi.ingress.path -}} {{- $tls := .Values.portalapi.ingress.tls -}} {{- $hostname := .Values.portalapi.ingress.hostname -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ template "kong.fullname" . }}-portalapi labels: {{- include "kong.metaLabels" . | nindent 4 }} annotations: {{- range $key, $value := .Values.portalapi.ingress.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: - host: {{ $hostname }} http: paths: - path: {{ $path }} backend: serviceName: {{ $serviceName }}-portalapi servicePort: {{ $servicePort }} {{- if $tls }} tls: - hosts: - {{ $hostname }} secretName: {{ $tls }} {{- end -}} {{- end -}} {{- end -}} <|endoftext|> # helm_charts_redis-master-statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ template "redis.fullname" . }}-master labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: selector: matchLabels: app: {{ template "redis.name" . }} release: {{ .Release.Name }} role: master serviceName: {{ template "redis.fullname" . }}-headless template: metadata: labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: {{ .Release.Name }} role: master {{- if .Values.master.podLabels }} {{ toYaml .Values.master.podLabels | indent 8 }} {{- end }} {{- if and .Values.metrics.enabled .Values.metrics.podLabels }} {{ toYaml .Values.metrics.podLabels | indent 8 }} {{- end }} annotations: checksum/health: {{ include (print $.Template.BasePath "/health-configmap.yaml") . | sha256sum }} checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- if .Values.master.podAnnotations }} {{ toYaml .Values.master.podAnnotations | indent 8 }} {{- end }} {{- if and .Values.metrics.enabled .Values.metrics.podAnnotations }} {{ toYaml .Values.metrics.podAnnotations | indent 8 }} {{- end }} spec: {{- include "redis.imagePullSecrets" . | indent 6 }} {{- if .Values.securityContext.enabled }} securityContext: fsGroup: {{ .Values.securityContext.fsGroup }} {{- if .Values.securityContext.sysctls }} sysctls: {{ toYaml .Values.securityContext.sysctls | indent 8 }} {{- end }} {{- end }} serviceAccountName: "{{ template "redis.serviceAccountName" . }}" {{- if .Values.master.priorityClassName }} priorityClassName: "{{ .Values.master.priorityClassName }}" {{- end }} {{- with .Values.master.affinity }} affinity: {{ tpl (toYaml .) $ | indent 8 }} {{- end }} {{- if .Values.master.nodeSelector }} nodeSelector: {{ toYaml .Values.master.nodeSelector | indent 8 }} {{- end }} {{- if .Values.master.tolerations }} tolerations: {{ toYaml .Values.master.tolerations | indent 8 }} {{- end }} {{- if .Values.master.schedulerName }} schedulerName: "{{ .Values.master.schedulerName }}" {{- end }} containers: - name: {{ template "redis.fullname" . }} image: "{{ template "redis.image" . }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} {{- if .Values.securityContext.enabled }} securityContext: runAsUser: {{ .Values.securityContext.runAsUser }} {{- end }} command: - /bin/bash - -c - | {{- if (eq (.Values.securityContext.runAsUser | int) 0) }} useradd redis chown -R redis {{ .Values.master.persistence.path }} {{- end }} if [[ -n $REDIS_PASSWORD_FILE ]]; then password_aux=`cat ${REDIS_PASSWORD_FILE}` export REDIS_PASSWORD=$password_aux fi if [[ ! -f /opt/bitnami/redis/etc/master.conf ]];then cp /opt/bitnami/redis/mounted-etc/master.conf /opt/bitnami/redis/etc/master.conf fi if [[ ! -f /opt/bitnami/redis/etc/redis.conf ]];then cp /opt/bitnami/redis/mounted-etc/redis.conf /opt/bitnami/redis/etc/redis.conf fi ARGS=("--port" "${REDIS_PORT}") {{- if .Values.usePassword }} ARGS+=("--requirepass" "${REDIS_PASSWORD}") ARGS+=("--masterauth" "${REDIS_PASSWORD}") {{- else }} ARGS+=("--protected-mode" "no") {{- end }} ARGS+=("--include" "/opt/bitnami/redis/etc/redis.conf") ARGS+=("--include" "/opt/bitnami/redis/etc/master.conf") {{- if .Values.master.extraFlags }} {{- range .Values.master.extraFlags }} ARGS+=({{ . | quote }}) {{- end }} {{- end }} {{- if .Values.master.command }} {{ .Values.master.command }} ${ARGS[@]} {{- else }} redis-server "${ARGS[@]}" {{- end }} env: - name: REDIS_REPLICATION_MODE value: master {{- if .Values.usePassword }} {{- if .Values.usePasswordFile }} - name: REDIS_PASSWORD_FILE value: "/opt/bitnami/redis/secrets/redis-password" {{- else }} - name: REDIS_PASSWORD valueFrom: secretKeyRef: name: {{ template "redis.secretName" . }} key: {{ template "redis.secretPasswordKey" . }} {{- end }} {{- else }} - name: ALLOW_EMPTY_PASSWORD value: "yes" {{- end }} - name: REDIS_PORT value: {{ .Values.redisPort | quote }} ports: - name: redis containerPort: {{ .Values.redisPort }} {{- if .Values.master.livenessProbe.enabled }} livenessProbe: initialDelaySeconds: {{ .Values.master.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.master.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.master.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.master.livenessProbe.successThreshold }} failureThreshold: {{ .Values.master.livenessProbe.failureThreshold }} exec: command: - sh - -c - /health/ping_liveness_local.sh {{ .Values.master.livenessProbe.timeoutSeconds }} {{- end }} {{- if .Values.master.readinessProbe.enabled}} readinessProbe: initialDelaySeconds: {{ .Values.master.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.master.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.master.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.master.readinessProbe.successThreshold }} failureThreshold: {{ .Values.master.readinessProbe.failureThreshold }} exec: command: - sh - -c - /health/ping_readiness_local.sh {{ .Values.master.livenessProbe.timeoutSeconds }} {{- end }} resources: {{ toYaml .Values.master.resources | indent 10 }} volumeMounts: - name: health mountPath: /health {{- if .Values.usePasswordFile }} - name: redis-password mountPath: /opt/bitnami/redis/secrets/ {{- end }} - name: redis-data mountPath: {{ .Values.master.persistence.path }} subPath: {{ .Values.master.persistence.subPath }} - name: config mountPath: /opt/bitnami/redis/mounted-etc - name: redis-tmp-conf mountPath: /opt/bitnami/redis/etc/ {{- if and .Values.cluster.enabled .Values.sentinel.enabled }} - name: sentinel image: "{{ template "sentinel.image" . }}" imagePullPolicy: {{ .Values.sentinel.image.pullPolicy | quote }} {{- if .Values.securityContext.enabled }} securityContext: runAsUser: {{ .Values.securityContext.runAsUser }} {{- end }} command: - /bin/bash - -c - | if [[ -n $REDIS_PASSWORD_FILE ]]; then password_aux=`cat ${REDIS_PASSWORD_FILE}` export REDIS_PASSWORD=$password_aux fi if [[ ! -f /opt/bitnami/redis-sentinel/etc/sentinel.conf ]];then cp /opt/bitnami/redis-sentinel/mounted-etc/sentinel.conf /opt/bitnami/redis-sentinel/etc/sentinel.conf {{- if .Values.usePassword }} printf "\nsentinel auth-pass {{ .Values.sentinel.masterSet }} $REDIS_PASSWORD" >> /opt/bitnami/redis-sentinel/etc/sentinel.conf {{- if .Values.sentinel.usePassword }} printf "\nrequirepass $REDIS_PASSWORD" >> /opt/bitnami/redis-sentinel/etc/sentinel.conf {{- end }} {{- end }} {{- if .Values.sentinel.staticID }} printf "\nsentinel myid $(echo $HOSTNAME | openssl sha1 | awk '{ print $2 }')" >> /opt/bitnami/redis-sentinel/etc/sentinel.conf {{- end }} fi echo "Getting information about current running sentinels" # Get information from existing sentinels existing_sentinels=$(timeout -s 9 {{ .Values.sentinel.initialCheckTimeout }} redis-cli --raw -h {{ template "redis.fullname" . }} -a "$REDIS_PASSWORD" -p {{ .Values.sentinel.service.sentinelPort }} SENTINEL sentinels {{ .Values.sentinel.masterSet }}) echo "$existing_sentinels" | awk -f /health/parse_sentinels.awk | tee -a /opt/bitnami/redis-sentinel/etc/sentinel.conf redis-server /opt/bitnami/redis-sentinel/etc/sentinel.conf --sentinel env: {{- if .Values.usePassword }} {{- if .Values.usePasswordFile }} - name: REDIS_PASSWORD_FILE value: "/opt/bitnami/redis/secrets/redis-password" {{- else }} - name: REDIS_PASSWORD valueFrom: secretKeyRef: name: {{ template "redis.secretName" . }} key: {{ template "redis.secretPasswordKey" . }} {{- end }} {{- else }} - name: ALLOW_EMPTY_PASSWORD value: "yes" {{- end }} - name: REDIS_SENTINEL_PORT value: {{ .Values.sentinel.port | quote }} ports: - name: redis-sentinel containerPort: {{ .Values.sentinel.port }} {{- if .Values.sentinel.livenessProbe.enabled }} livenessProbe: initialDelaySeconds: {{ .Values.sentinel.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.sentinel.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.sentinel.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.sentinel.livenessProbe.successThreshold }} failureThreshold: {{ .Values.sentinel.livenessProbe.failureThreshold }} exec: command: - sh - -c - /health/ping_sentinel.sh {{ .Values.sentinel.livenessProbe.timeoutSeconds }} {{- end }} {{- if .Values.sentinel.readinessProbe.enabled}} readinessProbe: initialDelaySeconds: {{ .Values.sentinel.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.sentinel.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.sentinel.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.sentinel.readinessProbe.successThreshold }} failureThreshold: {{ .Values.sentinel.readinessProbe.failureThreshold }} exec: command: - sh - -c - /health/ping_sentinel.sh {{ .Values.sentinel.livenessProbe.timeoutSeconds }} {{- end }} resources: {{ toYaml .Values.sentinel.resources | indent 10 }} volumeMounts: - name: health mountPath: /health {{- if .Values.usePasswordFile }} - name: redis-password mountPath: /opt/bitnami/redis/secrets/ {{- end }} - name: redis-data mountPath: {{ .Values.master.persistence.path }} subPath: {{ .Values.master.persistence.subPath }} - name: config mountPath: /opt/bitnami/redis-sentinel/mounted-etc - name: sentinel-tmp-conf mountPath: /opt/bitnami/redis-sentinel/etc/ {{- end }} {{- if .Values.metrics.enabled }} - name: metrics image: {{ template "redis.metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} command: - /bin/bash - -c - | if [[ -f '/secrets/redis-password' ]]; then export REDIS_PASSWORD=$(cat /secrets/redis-password) fi redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }} env: - name: REDIS_ALIAS value: {{ template "redis.fullname" . }} {{- if and .Values.usePassword (not .Values.usePasswordFile) }} - name: REDIS_PASSWORD valueFrom: secretKeyRef: name: {{ template "redis.secretName" . }} key: {{ template "redis.secretPasswordKey" . }} {{- end }} volumeMounts: {{- if .Values.usePasswordFile }} - name: redis-password mountPath: /secrets/ {{- end }} ports: - name: metrics containerPort: 9121 resources: {{ toYaml .Values.metrics.resources | indent 10 }} {{- end }} {{- $needsVolumePermissions := and .Values.volumePermissions.enabled (and ( and .Values.master.persistence.enabled (not .Values.persistence.existingClaim) ) .Values.securityContext.enabled) }} {{- if or $needsVolumePermissions .Values.sysctlImage.enabled }} initContainers: {{- if $needsVolumePermissions }} - name: volume-permissions image: "{{ template "redis.volumePermissions.image" . }}" imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} command: ["/bin/chown", "-R", "{{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }}", "{{ .Values.master.persistence.path }}"] securityContext: runAsUser: 0 resources: {{ toYaml .Values.volumePermissions.resources | indent 10 }} volumeMounts: - name: redis-data mountPath: {{ .Values.master.persistence.path }} subPath: {{ .Values.master.persistence.subPath }} {{- end }} {{- if .Values.sysctlImage.enabled }} - name: init-sysctl image: {{ template "redis.sysctl.image" . }} imagePullPolicy: {{ default "" .Values.sysctlImage.pullPolicy | quote }} resources: {{ toYaml .Values.sysctlImage.resources | indent 10 }} {{- if .Values.sysctlImage.mountHostSys }} volumeMounts: - name: host-sys mountPath: /host-sys {{- end }} command: {{ toYaml .Values.sysctlImage.command | indent 10 }} securityContext: privileged: true runAsUser: 0 {{- end }} {{- end }} volumes: - name: health configMap: name: {{ template "redis.fullname" . }}-health defaultMode: 0755 {{- if .Values.usePasswordFile }} - name: redis-password secret: secretName: {{ template "redis.secretName" . }} items: - key: {{ template "redis.secretPasswordKey" . }} path: redis-password {{- end }} - name: config configMap: name: {{ template "redis.fullname" . }} {{- if not .Values.master.persistence.enabled }} - name: "redis-data" emptyDir: {} {{- else }} {{- if .Values.persistence.existingClaim }} - name: "redis-data" persistentVolumeClaim: claimName: {{ .Values.persistence.existingClaim }} {{- end }} {{- end }} {{- if .Values.sysctlImage.mountHostSys }} - name: host-sys hostPath: path: /sys {{- end }} - name: redis-tmp-conf emptyDir: {} {{- if and .Values.cluster.enabled .Values.sentinel.enabled }} - name: sentinel-tmp-conf emptyDir: {} {{- end }} {{- if and .Values.master.persistence.enabled (not .Values.persistence.existingClaim) }} volumeClaimTemplates: - metadata: name: redis-data labels: app: {{ template "redis.name" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: master spec: accessModes: {{- range .Values.master.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.master.persistence.size | quote }} {{ include "redis.master.storageClass" . }} selector: {{- if .Values.master.persistence.matchLabels }} matchLabels: {{ toYaml .Values.master.persistence.matchLabels | indent 12 }} {{- end -}} {{- if .Values.master.persistence.matchExpressions }} matchExpressions: {{ toYaml .Values.master.persistence.matchExpressions | indent 12 }} {{- end -}} {{- end }} updateStrategy: type: {{ .Values.master.statefulset.updateStrategy }} {{- if .Values.master.statefulset.rollingUpdatePartition }} {{- if (eq "Recreate" .Values.master.statefulset.updateStrategy) }} rollingUpdate: null {{- else }} rollingUpdate: partition: {{ .Values.master.statefulset.rollingUpdatePartition }} {{- end }} {{- end }} <|endoftext|> # istio_reconcile-iptables-default-true.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Promoted** `cni.ambient.reconcileIptablesOnStartup` to default to `true`. This enables automatic reconciliation of iptables/nftables rules for existing ambient pods when the `istio-cni` DaemonSet is upgraded, eliminating the need to manually restart pods to get updated networking configuration. This can be disabled explicitly or by using `compatibilityVersion=1.28`. upgradeNotes: - title: Ambient iptables reconciliation enabled by default content: | Iptables reconciliation is now enabled by default for ambient workloads in release 1.29.0. When a new `istio-cni` DaemonSet pod starts up, it will automatically inspect pods that were previously enrolled in the ambient mesh and upgrade their in-pod iptables/nftables rules to the current state if there are any differences. This feature can be disabled explicitly with `--set cni.ambient.reconcileIptablesOnStartup=false`. <|endoftext|> # k8s_docs_pv-claim.yaml kind: PersistentVolumeClaim apiVersion: v1 metadata: name: task-pv-claim spec: storageClassName: manual accessModes: - ReadWriteOnce resources: requests: storage: 3Gi <|endoftext|> # helm_charts_pod-nanny-rolebinding.yaml {{ if .Values.resizer.enabled -}} {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: name: {{ template "heapster.fullname" . }}-pod-nanny labels: app: {{ template "heapster.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "heapster.fullname" . }}-pod-nanny subjects: - kind: ServiceAccount name: {{ template "heapster.fullname" . }} namespace: {{ .Release.Namespace }} {{- end -}} {{- end -}} <|endoftext|> # argocd_examples_user-db-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: user-db labels: name: user-db spec: replicas: 1 selector: matchLabels: name: user-db template: metadata: labels: name: user-db spec: containers: - name: user-db image: weaveworksdemos/user-db:0.3.0 ports: - name: mongo containerPort: 27017 securityContext: capabilities: drop: - all add: - CHOWN - SETGID - SETUID readOnlyRootFilesystem: true volumeMounts: - mountPath: /tmp name: tmp-volume volumes: - name: tmp-volume emptyDir: medium: Memory nodeSelector: kubernetes.io/os: linux <|endoftext|> # helm_charts_service-info.yaml apiVersion: v1 kind: Service metadata: labels: app: {{ template "burrow.name" . }} chart: {{ template "burrow.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "burrow.fullname" . }}-info spec: type: {{ .Values.info.service.type }} {{- if .Values.info.service.loadBalance }} sessionAffinity: ClientIP {{- end }} ports: - name: info port: {{ $.Values.config.RPC.Info.ListenPort }} targetPort: info protocol: TCP selector: app: {{ template "burrow.name" . }} release: {{ .Release.Name }} {{- if not .Values.info.service.loadBalance }} nodeNumber: {{ .Values.info.service.node | quote }} {{- end }} <|endoftext|> # istio_46072.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** output format option for `istioctl experimental pre-check` command. Valid options are `log`, `json` or `yaml`. <|endoftext|> # argocd_source_wait_stack.yaml apiVersion: stacks.crossplane.io/v1alpha1 kind: ClusterStackInstall metadata: creationTimestamp: "2020-05-13T09:35:26Z" finalizers: - finalizer.stackinstall.crossplane.io generation: 1 labels: argocd.argoproj.io/instance: crossplane-cloudscale name: stack-cloudscale name: stack-cloudscale namespace: syn-crossplane resourceVersion: "19999" selfLink: /apis/stacks.crossplane.io/v1alpha1/namespaces/syn-crossplane/clusterstackinstalls/stack-cloudscale uid: cce4dfb5-185f-421d-be97-338408e0c712 spec: package: docker.io/vshn/stack-cloudscale:v0.0.2@sha256:8a9a94c3ef557da951d5c7f5bb0286a2f36c79f7ece499f61a8807383caed59b <|endoftext|> # istio_53989.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 51289 releaseNotes: - | **Fixed** Helm render to properly apply annotations on pilot `serviceAccount` <|endoftext|> # grafana_charts_admin-api-dep.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: {{- toYaml .Values.admin_api.annotations | nindent 4 }} labels: app: {{ template "enterprise-metrics.name" . }}-admin-api chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} name: {{ template "enterprise-metrics.fullname" . }}-admin-api spec: replicas: {{ .Values.admin_api.replicas }} selector: matchLabels: app: {{ template "enterprise-metrics.name" . }}-admin-api release: {{ .Release.Name }} strategy: {{- toYaml .Values.admin_api.strategy | nindent 4 }} template: metadata: labels: app: {{ template "enterprise-metrics.name" . }}-admin-api # The name label is important for cortex-mixin compatibility which expects certain names for services. name: admin-api gossip_ring_member: "true" target: admin-api release: {{ .Release.Name }} {{- with .Values.admin_api.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} annotations: {{- if .Values.useExternalConfig }} checksum/config: {{ .Values.externalConfigVersion }} {{- else }} checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- end}} {{- with .Values.admin_api.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ template "enterprise-metrics.serviceAccountName" . }} {{- if .Values.admin_api.priorityClassName }} priorityClassName: {{ .Values.admin_api.priorityClassName }} {{- end }} securityContext: {{- toYaml .Values.admin_api.securityContext | nindent 8 }} initContainers: {{- with .Values.admin_api.initContainers }} {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.minio.enabled }} - name: minio-mc image: "{{ .Values.minio.mcImage.repository }}:{{ .Values.minio.mcImage.tag }}" imagePullPolicy: {{ .Values.minio.mcImage.pullPolicy }} command: ["/bin/sh", "/config/initialize"] env: - name: MINIO_ENDPOINT value: {{ .Release.Name }}-minio - name: MINIO_PORT value: {{ .Values.minio.service.port | quote }} volumeMounts: - name: minio-configuration mountPath: /config {{- if .Values.minio.tls.enabled }} - name: cert-secret-volume-mc mountPath: {{ .Values.minio.configPathmc }}certs {{ end }} {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end }} {{- end }} {{- with .Values.admin_api.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: admin-api image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - "-target=admin-api" - "-config.file=/etc/enterprise-metrics/enterprise-metrics.yaml" - "-memberlist.join={{ template "enterprise-metrics.fullname" . }}-gossip-ring" {{- if .Values.minio.enabled }} - -admin.client.backend-type=s3 - -admin.client.s3.endpoint={{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc:9000 - -admin.client.s3.bucket-name=enterprise-metrics-admin - -admin.client.s3.access-key-id=enterprise-metrics - -admin.client.s3.secret-access-key=supersecret - -admin.client.s3.insecure=true {{- end }} {{- range $key, $value := .Values.admin_api.extraArgs }} - "-{{ $key }}={{ $value }}" {{- end }} volumeMounts: {{- if .Values.admin_api.extraVolumeMounts }} {{ toYaml .Values.admin_api.extraVolumeMounts | nindent 12}} {{- end }} - name: config mountPath: /etc/enterprise-metrics - name: runtime-config mountPath: /var/enterprise-metrics - name: license mountPath: /license - name: storage mountPath: "/data" subPath: {{ .Values.admin_api.persistence.subPath }} ports: - name: http-metrics containerPort: {{ .Values.config.server.http_listen_port }} protocol: TCP - name: grpc containerPort: {{ .Values.config.server.grpc_listen_port }} protocol: TCP livenessProbe: {{- toYaml .Values.admin_api.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.admin_api.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.admin_api.resources | nindent 12 }} securityContext: readOnlyRootFilesystem: true env: {{- if .Values.admin_api.env }} {{ toYaml .Values.admin_api.env | nindent 12 }} {{- end }} {{- with .Values.admin_api.extraContainers }} {{ toYaml . | nindent 8 }} {{- end }} nodeSelector: {{- toYaml .Values.admin_api.nodeSelector | nindent 8 }} affinity: {{- toYaml .Values.admin_api.affinity | nindent 8 }} tolerations: {{- toYaml .Values.admin_api.tolerations | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.admin_api.terminationGracePeriodSeconds }} volumes: - name: config secret: {{- if .Values.useExternalConfig }} secretName: {{ .Values.externalConfigSecretName }} {{- else }} secretName: {{ template "enterprise-metrics.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "enterprise-metrics.fullname" . }}-runtime {{- if .Values.admin_api.extraVolumes }} {{ toYaml .Values.admin_api.extraVolumes | nindent 8}} {{- end }} - name: license secret: secretName: {{ .Values.license.secretName }} - name: storage emptyDir: {} {{- if .Values.minio.enabled }} - name: minio-configuration projected: sources: - configMap: name: {{ .Release.Name }}-minio - secret: name: {{ .Release.Name }}-minio {{- if .Values.minio.tls.enabled }} - name: cert-secret-volume-mc secret: secretName: {{ .Values.minio.tls.certSecret }} items: - key: {{ .Values.minio.tls.publicCrt }} path: CAs/public.crt {{- end }} {{- end }} <|endoftext|> # istio_35290.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** VMs are able to use a revisioned control plane specified by `--revision` on the `istioctl x workload entry` command. <|endoftext|> # istio_cncf-ebpf.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 45162 releaseNotes: - | **Removed** eBPF support is temporarily disabled pending CNCF establishing guidance around dual-licensed eBPF bytecode https://github.com/cncf/toc/pull/1000#issuecomment-1564289871 <|endoftext|> # k8s_examples_vsphere-volume-pvcscvsanpod.yaml apiVersion: v1 kind: Pod metadata: name: pvpod spec: containers: - name: test-container image: registry.k8s.io/test-webserver volumeMounts: - name: test-volume mountPath: /test volumes: - name: test-volume persistentVolumeClaim: claimName: pvcsc-vsan <|endoftext|> # istio_49675.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** Allow user to add customized annotation to istiod service account resource through helm chart. <|endoftext|> # istio_gw-manual-deployment.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** an environment variable `ENABLE_GATEWAY_API_MANUAL_DEPLOYMENT` to istiod that, if set to `false`, will disable the attachment of Gateway API resources to existing gateway deployments. The default setting is `true` to not change existing behavior. <|endoftext|> # istio_47290.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 47290 - 47264 - 31250 - 33360 - 30531 - 38484 releaseNotes: - | **Fixed** DNS Proxy resolution for wildcard ServiceEntry with the search domain suffix for glibc based containers. <|endoftext|> # argocd_source_healthy_warning.yaml apiVersion: metrics.keptn.sh/v1 kind: Analysis metadata: labels: app.kubernetes.io/name: analysis app.kubernetes.io/instance: analysis-sample app.kubernetes.io/part-of: metrics-operator app.kubernetes.io/managed-by: kustomize app.kubernetes.io/created-by: metrics-operator name: analysis-sample spec: timeframe: recent: 5m args: project: my-project stage: dev service: svc1 nodename: test analysisDefinition: name: ad-my-proj-dev-svc1 namespace: keptn-system status: warning: true state: Completed <|endoftext|> # kube_prometheus_prometheusAdapter-podDisruptionBudget.yaml apiVersion: policy/v1 kind: PodDisruptionBudget metadata: labels: app.kubernetes.io/component: metrics-adapter app.kubernetes.io/name: prometheus-adapter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.12.0 name: prometheus-adapter namespace: monitoring spec: minAvailable: 1 selector: matchLabels: app.kubernetes.io/component: metrics-adapter app.kubernetes.io/name: prometheus-adapter app.kubernetes.io/part-of: kube-prometheus <|endoftext|> # istio_http-grpc-same-host.yaml apiVersion: gateway.networking.k8s.io/v1 kind: GatewayClass metadata: name: istio spec: controllerName: istio.io/gateway-controller --- apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: gateway namespace: istio-system spec: addresses: - value: istio-ingressgateway type: Hostname gatewayClassName: istio listeners: - name: default hostname: "*.domain.example" port: 80 protocol: HTTP allowedRoutes: namespaces: from: All --- apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: http namespace: default spec: parentRefs: - name: gateway namespace: istio-system hostnames: ["my.domain.example"] rules: - matches: - path: type: PathPrefix value: /api backendRefs: - name: httpbin port: 80 --- apiVersion: gateway.networking.k8s.io/v1 kind: GRPCRoute metadata: name: grpc namespace: default spec: parentRefs: - name: gateway namespace: istio-system hostnames: ["my.domain.example"] rules: - matches: - method: service: "foo.FooService" type: Exact backendRefs: - name: grpcbin port: 9090 <|endoftext|> # istio_blocked-cidrs-configured.yaml apiVersion: security.istio.io/v1 kind: RequestAuthentication metadata: name: jwt-auth namespace: default spec: jwtRules: - issuer: "https://example.com" jwksUri: "https://example.com/.well-known/jwks.json" --- apiVersion: apps/v1 kind: Deployment metadata: name: istiod namespace: istio-system labels: app: istiod spec: selector: matchLabels: app: istiod template: metadata: labels: app: istiod spec: containers: - name: discovery image: gcr.io/istio-testing/pilot:latest env: - name: BLOCKED_CIDRS_IN_JWKS_URIS value: "10.0.0.0/8,192.168.0.0/16,172.16.0.0/12" <|endoftext|> # kube_prometheus_blackboxExporter-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.28.0 name: blackbox-exporter namespace: monitoring spec: ports: - name: https port: 9115 targetPort: https - name: probe port: 19115 targetPort: http selector: app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter app.kubernetes.io/part-of: kube-prometheus <|endoftext|> # istio_kube-gateway.yaml apiVersion: v1 kind: ServiceAccount metadata: name: {{.ServiceAccount | quote}} namespace: {{.Namespace | quote}} annotations: {{- toJsonMap (omit .InfrastructureAnnotations "kubectl.kubernetes.io/last-applied-configuration" "gateway.istio.io/name-override" "gateway.istio.io/service-account" "gateway.istio.io/controller-version") | nindent 4 }} labels: {{- toJsonMap .InfrastructureLabels (strdict "gateway.networking.k8s.io/gateway-name" .Name "gateway.networking.k8s.io/gateway-class-name" .GatewayClass ) | nindent 4 }} {{- if ge .KubeVersion 128 }} # Safe since 1.28: https://github.com/kubernetes/kubernetes/pull/117412 ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: "{{.Name}}" uid: "{{.UID}}" {{- end }} --- apiVersion: apps/v1 kind: Deployment metadata: name: {{.DeploymentName | quote}} namespace: {{.Namespace | quote}} annotations: {{- toJsonMap (omit .InfrastructureAnnotations "kubectl.kubernetes.io/last-applied-configuration" "gateway.istio.io/name-override" "gateway.istio.io/service-account" "gateway.istio.io/controller-version") | nindent 4 }} labels: {{- toJsonMap .InfrastructureLabels (strdict "gateway.networking.k8s.io/gateway-name" .Name "gateway.networking.k8s.io/gateway-class-name" .GatewayClass "gateway.istio.io/managed" "istio.io-gateway-controller" ) | nindent 4 }} ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: {{.Name}} uid: "{{.UID}}" spec: selector: matchLabels: "{{.GatewayNameLabel}}": {{.Name}} template: metadata: annotations: {{- toJsonMap (omit .InfrastructureAnnotations "kubectl.kubernetes.io/last-applied-configuration" "gateway.istio.io/name-override" "gateway.istio.io/service-account" "gateway.istio.io/controller-version") (strdict "istio.io/rev" (.Revision | default "default")) (strdict "prometheus.io/path" "/stats/prometheus" "prometheus.io/port" "15020" "prometheus.io/scrape" "true" ) | nindent 8 }} labels: {{- toJsonMap (strdict "sidecar.istio.io/inject" "false" "service.istio.io/canonical-name" .DeploymentName "service.istio.io/canonical-revision" "latest" ) .InfrastructureLabels (strdict "gateway.networking.k8s.io/gateway-name" .Name "gateway.networking.k8s.io/gateway-class-name" .GatewayClass "gateway.istio.io/managed" "istio.io-gateway-controller" ) | nindent 8 }} spec: securityContext: {{- if .Values.gateways.securityContext }} {{- toYaml .Values.gateways.securityContext | nindent 8 }} {{- else }} sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" {{- if .Values.gateways.seccompProfile }} seccompProfile: {{- toYaml .Values.gateways.seccompProfile | nindent 10 }} {{- end }} {{- end }} serviceAccountName: {{.ServiceAccount | quote}} containers: - name: istio-proxy {{- if contains "/" (annotation .ObjectMeta `sidecar.istio.io/proxyImage` .Values.global.proxy.image) }} image: "{{ annotation .ObjectMeta `sidecar.istio.io/proxyImage` .Values.global.proxy.image }}" {{- else }} image: "{{ .ProxyImage }}" {{- end }} {{- if .Values.global.proxy.resources }} resources: {{- toYaml (omitNil .Values.global.proxy.resources) | nindent 10 }} {{- end }} {{with .Values.global.imagePullPolicy }}imagePullPolicy: "{{.}}"{{end}} securityContext: capabilities: drop: - ALL allowPrivilegeEscalation: false privileged: false readOnlyRootFilesystem: true runAsUser: {{ .ProxyUID | default "1337" }} runAsGroup: {{ .ProxyGID | default "1337" }} runAsNonRoot: true ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 protocol: TCP name: http-envoy-prom args: - proxy - router - --domain - $(POD_NAMESPACE).svc.{{ .Values.global.proxy.clusterDomain }} - --proxyLogLevel - {{ annotation .ObjectMeta `sidecar.istio.io/logLevel` .Values.global.proxy.logLevel | quote}} - --proxyComponentLogLevel - {{ annotation .ObjectMeta `sidecar.istio.io/componentLogLevel` .Values.global.proxy.componentLogLevel | quote}} - --log_output_level - {{ annotation .ObjectMeta `sidecar.istio.io/agentLogLevel` .Values.global.logging.level | quote}} {{- if .Values.global.sts.servicePort }} - --stsPort={{ .Values.global.sts.servicePort }} {{- end }} {{- if .Values.global.logAsJson }} - --log_as_json {{- end }} {{- if .Values.global.proxy.lifecycle }} lifecycle: {{- toYaml .Values.global.proxy.lifecycle | nindent 10 }} {{- end }} env: - name: PILOT_CERT_PROVIDER value: {{ .Values.global.pilotCertProvider }} - name: CA_ADDR {{- if .Values.global.caAddress }} value: {{ .Values.global.caAddress }} {{- else }} value: istiod{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }}.{{ .Values.global.istioNamespace }}.svc:15012 {{- end }} - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: resource: limits.cpu divisor: "1" - name: PROXY_CONFIG value: | {{ protoToJSON .ProxyConfig }} - name: ISTIO_META_POD_PORTS value: "[]" - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: resource: limits.memory divisor: "1" - name: GOMAXPROCS valueFrom: resourceFieldRef: resource: limits.cpu divisor: "1" - name: ISTIO_META_CLUSTER_ID value: "{{ valueOrDefault .Values.global.multiCluster.clusterName .ClusterID }}" - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: "{{ .ProxyConfig.InterceptionMode.String }}" {{- with (valueOrDefault (index .InfrastructureLabels "topology.istio.io/network") .Values.global.network) }} - name: ISTIO_META_NETWORK value: {{.|quote}} {{- end }} - name: ISTIO_META_WORKLOAD_NAME value: {{.DeploymentName|quote}} - name: ISTIO_META_OWNER value: "kubernetes://apis/apps/v1/namespaces/{{.Namespace}}/deployments/{{.DeploymentName}}" {{- if .Values.global.meshID }} - name: ISTIO_META_MESH_ID value: "{{ .Values.global.meshID }}" {{- else if (valueOrDefault .MeshConfig.TrustDomain .Values.global.trustDomain) }} - name: ISTIO_META_MESH_ID value: "{{ (valueOrDefault .MeshConfig.TrustDomain .Values.global.trustDomain) }}" {{- end }} {{- with (valueOrDefault .MeshConfig.TrustDomain .Values.global.trustDomain) }} - name: TRUST_DOMAIN value: "{{ . }}" {{- end }} {{- range $key, $value := .ProxyConfig.ProxyMetadata }} - name: {{ $key }} value: "{{ $value }}" {{- end }} {{- with (index .InfrastructureLabels "topology.istio.io/network") }} - name: ISTIO_META_REQUESTED_NETWORK_VIEW value: {{.|quote}} {{- end }} startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - name: workload-socket mountPath: /var/run/secrets/workload-spiffe-uds - name: credential-socket mountPath: /var/run/secrets/credential-uds {{- if eq .Values.global.caName "GkeWorkloadCertificate" }} - name: gke-workload-certificate mountPath: /var/run/secrets/workload-spiffe-credentials readOnly: true {{- else }} - name: workload-certs mountPath: /var/run/secrets/workload-spiffe-credentials {{- end }} {{- if eq .Values.global.pilotCertProvider "istiod" }} - mountPath: /var/run/secrets/istio name: istiod-ca-cert {{- end }} - mountPath: /var/lib/istio/data name: istio-data # SDS channel between istioagent and Envoy - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - name: istio-podinfo mountPath: /etc/istio/pod volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket {{- if eq .Values.global.caName "GkeWorkloadCertificate" }} - name: gke-workload-certificate csi: driver: workloadcertificates.security.cloud.google.com {{- else}} - emptyDir: {} name: workload-certs {{- end }} # SDS channel between istioagent and Envoy - emptyDir: medium: Memory name: istio-envoy - name: istio-data emptyDir: {} - name: istio-podinfo downwardAPI: items: - path: "labels" fieldRef: fieldPath: metadata.labels - path: "annotations" fieldRef: fieldPath: metadata.annotations - name: istio-token projected: sources: - serviceAccountToken: path: istio-token expirationSeconds: 43200 audience: {{ .Values.global.sds.token.aud }} {{- if eq .Values.global.pilotCertProvider "istiod" }} - name: istiod-ca-cert {{- if eq ((.Values.pilot).env).ENABLE_CLUSTER_TRUST_BUNDLE_API true }} projected: sources: - clusterTrustBundle: name: istio.io:istiod-ca:{{ .Values.global.trustBundleName | default "root-cert" }} path: root-cert.pem {{- else }} configMap: name: {{ .Values.global.trustBundleName | default "istio-ca-root-cert" }} {{- end }} {{- end }} {{- if .Values.global.imagePullSecrets }} imagePullSecrets: {{- range .Values.global.imagePullSecrets }} - name: {{ . }} {{- end }} {{- end }} --- apiVersion: v1 kind: Service metadata: annotations: {{ toJsonMap (omit .InfrastructureAnnotations "kubectl.kubernetes.io/last-applied-configuration" "gateway.istio.io/name-override" "gateway.istio.io/service-account" "gateway.istio.io/controller-version") | nindent 4 }} labels: {{- toJsonMap .InfrastructureLabels (strdict "gateway.networking.k8s.io/gateway-name" .Name "gateway.networking.k8s.io/gateway-class-name" .GatewayClass ) | nindent 4 }} name: {{.DeploymentName | quote}} namespace: {{.Namespace | quote}} ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: {{.Name}} uid: {{.UID}} spec: ipFamilyPolicy: PreferDualStack ports: {{- range $key, $val := .Ports }} - name: {{ $val.Name | quote }} port: {{ $val.Port }} protocol: TCP appProtocol: {{ $val.AppProtocol }} {{- end }} selector: "{{.GatewayNameLabel}}": {{.Name}} {{- if and (.Spec.Addresses) (eq .ServiceType "LoadBalancer") }} loadBalancerIP: {{ (index .Spec.Addresses 0).Value | quote}} {{- end }} type: {{ .ServiceType | quote }} --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{.DeploymentName | quote}} namespace: {{.Namespace | quote}} annotations: {{- toJsonMap (omit .InfrastructureAnnotations "kubectl.kubernetes.io/last-applied-configuration" "gateway.istio.io/name-override" "gateway.istio.io/service-account" "gateway.istio.io/controller-version") | nindent 4 }} labels: {{- toJsonMap .InfrastructureLabels (strdict "gateway.networking.k8s.io/gateway-name" .Name "gateway.networking.k8s.io/gateway-class-name" .GatewayClass ) | nindent 4 }} ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: {{.Name}} uid: "{{.UID}}" spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: {{.DeploymentName | quote}} maxReplicas: 1 --- apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{.DeploymentName | quote}} namespace: {{.Namespace | quote}} annotations: {{- toJsonMap (omit .InfrastructureAnnotations "kubectl.kubernetes.io/last-applied-configuration" "gateway.istio.io/name-override" "gateway.istio.io/service-account" "gateway.istio.io/controller-version") | nindent 4 }} labels: {{- toJsonMap .InfrastructureLabels (strdict "gateway.networking.k8s.io/gateway-name" .Name "gateway.networking.k8s.io/gateway-class-name" .GatewayClass ) | nindent 4 }} ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: {{.Name}} uid: "{{.UID}}" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: {{.Name|quote}} <|endoftext|> # istio_injection-perf.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Improved** performance of sidecar injection, in particular with pods with a large number of environment variables. <|endoftext|> # istio_48557.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** bootstrap summary to all config dumps' summary. <|endoftext|> # istio_57537.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 57537 releaseNotes: - | **Enabled** waypoints to route traffic to remote networks in ambient multi-cluster. <|endoftext|> # istio_32462.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - https://github.com/istio/istio/issues/34411 releaseNotes: - | **Added** two mutually-exclusive flags to `istioctl x workload entry configure` * `--internal-ip` configures the VM workload with a private IP address used for workload auto registration and health probes. * `--external-ip` configures the VM workload with a public IP address used for workload auto registration. Meanwhile, it configures health probes to be performed through localhost. By setting the environment variable `REWRITE_PROBE_LEGACY_LOCALHOST_DESTINATION` to true. <|endoftext|> # k8s_examples_vllm-service.yaml apiVersion: v1 kind: Service metadata: name: vllm-service spec: selector: app: gemma-server type: ClusterIP ports: - protocol: TCP port: 8080 targetPort: 8080 <|endoftext|> # k8s_docs_allow-db.yaml apiVersion: settings.k8s.io/v1alpha1 kind: PodPreset metadata: name: allow-database spec: selector: matchLabels: role: frontend env: - name: DB_PORT value: "6379" - name: duplicate_key value: FROM_ENV - name: expansion value: $(REPLACE_ME) envFrom: - configMapRef: name: etcd-env-config volumeMounts: - mountPath: /cache name: cache-volume - mountPath: /etc/app/config.json readOnly: true name: secret-volume volumes: - name: cache-volume emptyDir: {} - name: secret-volume secret: secretName: config-details <|endoftext|> # k8s_docs_typechecking.yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: name: "deploy-replica-policy.example.com" spec: matchConstraints: resourceRules: - apiGroups: ["apps"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["deployments"] validations: - expression: "object.replicas > 1" # should be "object.spec.replicas > 1" message: "must be replicated" reason: Invalid <|endoftext|> # istio_47705.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 47696 releaseNotes: - | **Fixed** an issue where `istioctl tag list` command didn't accept `--output` flag. <|endoftext|> # helm_charts_appsrv.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "tomcat.fullname" . }} labels: app: {{ template "tomcat.name" . }} chart: {{ template "tomcat.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ template "tomcat.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "tomcat.name" . }} release: {{ .Release.Name }} spec: volumes: - name: app-volume emptyDir: {} {{- with .Values.extraVolumes }} {{ toYaml . | indent 8 }} {{- end }} initContainers: - name: war image: {{ .Values.image.webarchive.repository }}:{{ .Values.image.webarchive.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} command: - "sh" - "-c" - "cp /*.war /app" volumeMounts: - name: app-volume mountPath: /app {{- with .Values.extraInitContainers }} {{ toYaml . | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: {{ .Values.image.tomcat.repository }}:{{ .Values.image.tomcat.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} {{- with .Values.env }} env: {{ toYaml . | indent 12 }} {{- end }} volumeMounts: - name: app-volume mountPath: {{ .Values.deploy.directory }} {{- with .Values.extraVolumeMounts }} {{ toYaml . | indent 12 }} {{- end }} ports: - containerPort: {{ .Values.service.internalPort }} {{- with .Values.hostPort }} hostPort: {{ . }} {{- end }} livenessProbe: httpGet: path: {{ .Values.livenessProbe.path }} port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.livenessProbe.periodSeconds }} failureThreshold: {{ .Values.livenessProbe.failureThreshold }} timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} readinessProbe: httpGet: path: {{ .Values.readinessProbe.path }} port: {{ .Values.service.internalPort }} initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} failureThreshold: {{ .Values.readinessProbe.failureThreshold }} timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} resources: {{ toYaml .Values.resources | indent 12 }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{ toYaml .Values.image.pullSecrets | indent 8 }} {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} <|endoftext|> # helm_charts_master-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "mariadb.fullname" . }} labels: app: "{{ template "mariadb.name" . }}" component: "master" chart: "{{ template "mariadb.chart" . }}" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- if or .Values.metrics.enabled .Values.master.service.annotations }} annotations: {{- if .Values.metrics.enabled }} {{ toYaml .Values.metrics.annotations | indent 4 }} {{- end }} {{- if .Values.master.service.annotations }} {{ toYaml .Values.master.service.annotations | indent 4 }} {{- end }} {{- end }} spec: type: {{ .Values.service.type }} {{- if eq .Values.service.type "ClusterIP" }} {{- if .Values.service.clusterIp }} clusterIP: {{ .Values.service.clusterIp.master }} {{- end }} {{- end }} ports: - name: mysql port: {{ .Values.service.port }} targetPort: mysql {{- if eq .Values.service.type "NodePort" }} {{- if .Values.service.nodePort }} {{- if .Values.service.nodePort.master }} nodePort: {{ .Values.service.nodePort.master }} {{- end }} {{- end }} {{- end }} {{- if .Values.metrics.enabled }} - name: metrics port: 9104 targetPort: metrics {{- end }} selector: app: "{{ template "mariadb.name" . }}" component: "master" release: "{{ .Release.Name }}" <|endoftext|> # istio_proxyconfig-valid.yaml apiVersion: networking.istio.io/v1beta1 kind: ProxyConfig metadata: name: full spec: concurrency: 1 selector: matchLabels: foo: bar image: imageType: foo environmentVariables: foo: baz --- # Silly but valid apiVersion: networking.istio.io/v1beta1 kind: ProxyConfig metadata: name: empty-selector spec: selector: matchLabels: {} <|endoftext|> # helm_charts_priorityclass-default.yaml {{- if .Values.priorityClassDefault.enabled }} apiVersion: scheduling.k8s.io/{{ template "PriorityClass.apiVersion" . }} kind: PriorityClass metadata: name: {{ .Values.priorityClassDefault.name }} labels: app.kubernetes.io/name: {{ include "cluster-overprovisioner.name" . }} helm.sh/chart: {{ include "cluster-overprovisioner.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} value: {{ .Values.priorityClassDefault.value }} globalDefault: true description: "Default priority class for all pods" {{- end }} <|endoftext|> # kube_prometheus_grafana-serviceAccount.yaml apiVersion: v1 automountServiceAccountToken: false kind: ServiceAccount metadata: labels: app.kubernetes.io/component: grafana app.kubernetes.io/name: grafana app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 12.4.2 name: grafana namespace: monitoring <|endoftext|> # k8s_examples_rbac.yaml --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: elasticsearch rules: - apiGroups: - "" resources: - endpoints verbs: - get --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: elasticsearch roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: elasticsearch subjects: - kind: ServiceAccount name: elasticsearch namespace: default <|endoftext|> # istio_http-metadata-exchange.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: [] releaseNotes: - | **Added** HTTP metadata exchange filter to support a fallback to xDS workload metadata discovery in addition to the metadata HTTP headers. The discovery method is off by default. <|endoftext|> # argocd_source_degraded_ocp.yaml apiVersion: serving.kserve.io/v1beta1 kind: InferenceService metadata: name: helloworld namespace: default spec: {} status: conditions: - lastTransitionTime: '2024-05-30T23:03:45Z' reason: PredictorConfigurationReady not ready severity: Info status: 'False' type: LatestDeploymentReady - lastTransitionTime: '2024-05-30T23:03:45Z' message: 'Revision "helloworld-predictor-00002" failed with message: .' reason: RevisionFailed severity: Info status: 'False' type: PredictorConfigurationReady - lastTransitionTime: '2024-05-30T23:03:45Z' message: Configuration "helloworld-predictor" does not have any ready Revision. reason: RevisionMissing status: 'False' type: PredictorReady - lastTransitionTime: '2024-05-30T23:03:45Z' message: Configuration "helloworld-predictor" does not have any ready Revision. reason: RevisionMissing severity: Info status: 'False' type: PredictorRouteReady - lastTransitionTime: '2024-05-30T23:03:45Z' message: Configuration "helloworld-predictor" does not have any ready Revision. reason: RevisionMissing status: 'False' type: Ready - lastTransitionTime: '2024-05-30T23:03:45Z' reason: PredictorRouteReady not ready severity: Info status: 'False' type: RoutesReady modelStatus: transitionStatus: BlockedByFailedLoad <|endoftext|> # istio_57600.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: [57600] releaseNotes: - | **Removed** istioctl installation dependency between pilot and CNI. CNI installation is no longer dependent on pilot being installed first. If the istio-cni configuration exists pre-installation (which may be the case when using an istio-owned CNI config), pilot installation will not fail waiting for CNI readiness since the CNI installation is no longer a dependent on pilot. <|endoftext|> # k8s_docs_implicit-groups.yaml apiVersion: v1 kind: Pod metadata: name: implicit-groups spec: securityContext: runAsUser: 1000 runAsGroup: 3000 supplementalGroups: [4000] containers: - name: ctr image: registry.k8s.io/e2e-test-images/agnhost:2.45 command: [ "sh", "-c", "sleep 1h" ] securityContext: allowPrivilegeEscalation: false <|endoftext|> # argocd_source_progressing_readyUnknown.yaml apiVersion: karpenter.sh/v1 kind: NodeClaim metadata: name: default-xxxx generation: 1 spec: nodeClassRef: group: karpenter.k8s.aws kind: EC2NodeClass name: default requirements: - key: karpenter.k8s.aws/instance-family operator: In values: - m5 status: observedGeneration: 1 conditions: - message: "" reason: Unknown status: "Unknown" type: Ready <|endoftext|> # istio_48814.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issues: - 48814 releaseNotes: - | **Fixed** a bug that results in the incorrect generation of configurations for pods without associated services, which includes all services within the same namespace. This can occasionally lead to conflicting inbound listeners error. <|endoftext|> # helm_charts_podsecuritypolicy.yaml {{- if .Values.rbac.pspEnabled }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ template "grafana.fullname" . }} namespace: {{ template "grafana.namespace" . }} labels: {{- include "grafana.labels" . | nindent 4 }} annotations: seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default' seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default' {{- if .Values.rbac.pspUseAppArmor }} apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default' apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default' {{- end }} spec: privileged: false allowPrivilegeEscalation: false requiredDropCapabilities: # Default set from Docker, without DAC_OVERRIDE or CHOWN - FOWNER - FSETID - KILL - SETGID - SETUID - SETPCAP - NET_BIND_SERVICE - NET_RAW - SYS_CHROOT - MKNOD - AUDIT_WRITE - SETFCAP volumes: - 'configMap' - 'emptyDir' - 'projected' - 'secret' - 'downwardAPI' - 'persistentVolumeClaim' hostNetwork: false hostIPC: false hostPID: false runAsUser: rule: 'RunAsAny' seLinux: rule: 'RunAsAny' supplementalGroups: rule: 'RunAsAny' fsGroup: rule: 'RunAsAny' readOnlyRootFilesystem: false {{- end }} <|endoftext|> # helm_charts_cleanup.yaml apiVersion: batch/v1 kind: Job metadata: name: "{{ template "spinnaker.fullname" . }}-cleanup-using-hal" labels: {{ include "spinnaker.standard-labels" . | indent 4 }} component: halyard annotations: "helm.sh/hook": "pre-delete" "helm.sh/hook-delete-policy": "before-hook-creation" spec: template: metadata: {{- if .Values.halyard.annotations }} annotations: {{ toYaml .Values.halyard.annotations | indent 8 }} {{- end }} labels: {{ include "spinnaker.standard-labels" . | indent 8 }} component: halyard spec: restartPolicy: OnFailure volumes: - name: halyard-config configMap: name: {{ template "spinnaker.fullname" . }}-halyard-config {{- if .Values.halyard.image.pullSecrets }} imagePullSecrets: {{- range .Values.halyard.image.pullSecrets }} - name: {{ . }} {{- end}} {{- end}} containers: - name: halyard-install image: {{ .Values.halyard.image.repository }}:{{ .Values.halyard.image.tag }} volumeMounts: - name: halyard-config mountPath: /opt/halyard/scripts command: - bash - -xe - "/opt/halyard/scripts/clean.sh" {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} <|endoftext|> # k8s_docs_hello-apparmor.yaml apiVersion: v1 kind: Pod metadata: name: hello-apparmor spec: securityContext: appArmorProfile: type: Localhost localhostProfile: k8s-apparmor-example-deny-write containers: - name: hello image: busybox:1.28 command: [ "sh", "-c", "echo 'Hello AppArmor!' && sleep 1h" ] <|endoftext|> # k8s_docs_memory-constraints-pod.yaml apiVersion: v1 kind: Pod metadata: name: constraints-mem-demo spec: containers: - name: constraints-mem-demo-ctr image: nginx resources: limits: memory: "800Mi" requests: memory: "600Mi" <|endoftext|> # istio_gateway-correct-port.yaml # Gateway with bogus port # apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: httpbin-gateway spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - "*" <|endoftext|> # istio_25794.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - "22408" releaseNotes: - | **Added** Update Istio Workload and Istio Service dashboards to improve loading time. - | **Added** parameterise Grafana dashboards with datasource <|endoftext|> # helm_charts_service-account-pipeline.yaml {{ if and .Values.serviceAccount.create (or .Values.server.kubernetes.enabled .Values.runner.enabled ) -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "drone.pipelineServiceAccount" . }} namespace: {{ default .Release.Namespace .Values.server.kubernetes.namespace }} labels: app: {{ template "drone.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{ end }} <|endoftext|> # istio_validatingwebhook.yaml {{- if .Values.global.configValidation }} {{- if hasKey .Values.base.tags "default" }} {{- $tag := .Values.base.tags.default }} apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: istiod-default-validator labels: app: istiod istio: istiod istio.io/rev: {{ $tag.revision | default "default" }} istio.io/tag: "default" # Required to make sure this resource is removed # when purging Istio resources operator.istio.io/component: Pilot webhooks: - name: validation.istio.io clientConfig: {{- if $tag.validationURL }} url: {{ $tag.validationURL }} {{- else }} service: name: istiod{{- if not (eq $tag.revision "") }}-{{ $tag.revision }}{{- end }} namespace: {{ .Values.global.istioNamespace }} path: "/validate" {{- end }} rules: - operations: - CREATE - UPDATE apiGroups: - security.istio.io - networking.istio.io - telemetry.istio.io apiVersions: - "*" resources: - "*" failurePolicy: Ignore sideEffects: None admissionReviewVersions: ["v1"] objectSelector: matchExpressions: - key: istio.io/rev operator: DoesNotExist --- {{- end }} {{- end }} <|endoftext|> # argocd_source_progressing_inprogress.yaml apiVersion: clickhouse-keeper.altinity.com/v1 kind: ClickHouseKeeperInstallation metadata: name: test-clickhouse-keeper namespace: default spec: configuration: clusters: - name: cluster layout: shards: - name: shard replicas: - name: replica port: 9181 template: spec: containers: - name: clickhouse-keeper image: clickhouse/clickhouse-keeper:latest status: status: InProgress <|endoftext|> # grafana_charts_secret.yaml {{- if not .Values.configmap.enabled }} apiVersion: v1 kind: Secret metadata: name: {{ include "promtail.fullname" . }} namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} {{- with .Values.secret.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.secret.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} stringData: promtail.yaml: | {{- tpl .Values.config.file . | nindent 4 }} {{- end }} <|endoftext|> # istio_53294.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Removed** `istiod-remote` chart in favor of `helm install istio-discovery --set profile=remote`. upgradeNotes: - title: istiod-remote chart replaced with `remote` profile content: | Installing istio clusters with a remote/external control plane via Helm has never been officially documented or stable. This changes how clusters that use a remote istio instance are installed, in preparation for documenting this. The `istiod-remote` Helm chart has been merged with the regular `istio-discovery` Helm chart. Previously: - `helm install istiod-remote istio/istiod-remote` With this change: - `helm install helm install istiod istio/istiod --set profile=remote` Note also that as per (#53318), installing `istio-base` chart is now required in both local and remote clusters. <|endoftext|> # k8s_examples_exclusive-1.yaml apiVersion: v1 kind: Pod metadata: name: exclusive-1 spec: containers: - image: quay.io/connordoyle/cpuset-visualizer name: exclusive-1 resources: requests: cpu: 1 memory: "256M" limits: cpu: 1 memory: "256M" <|endoftext|> # helm_charts_cluster-role-binding.yaml {{ if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "sealed-secrets.fullname" . }} labels: app.kubernetes.io/name: {{ template "sealed-secrets.name" . }} helm.sh/chart: {{ template "sealed-secrets.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/version: {{ .Chart.AppVersion }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: secrets-unsealer subjects: - apiGroup: "" kind: ServiceAccount name: {{ template "sealed-secrets.serviceAccountName" . }} namespace: {{ template "sealed-secrets.namespace" . }} {{ end }} <|endoftext|> # istio_validation-mixer.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation isses: - 29093 releaseNotes: - | **Fixed** a bug causing Istio to attempt to validate resource types it no longer supports. <|endoftext|> # grafana_charts_admin-api-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "enterprise-metrics.fullname" . }}-admin-api labels: app: {{ template "enterprise-metrics.name" . }}-admin-api chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.admin_api.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.admin_api.annotations | nindent 4 }} spec: type: ClusterIP ports: - port: {{ .Values.config.server.http_listen_port }} protocol: TCP name: http-metrics targetPort: http-metrics - port: {{ .Values.config.server.grpc_listen_port }} protocol: TCP name: grpc targetPort: grpc selector: app: {{ template "enterprise-metrics.name" . }}-admin-api release: {{ .Release.Name }} <|endoftext|> # helm_charts_owncloud-pvc.yaml {{- if .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: {{ template "owncloud.fullname" . }}-owncloud spec: accessModes: - {{ .Values.persistence.owncloud.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.owncloud.size | quote }} {{ include "owncloud.storageClass" . }} {{- end -}} <|endoftext|> # istio_59028.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 59024 releaseNotes: - | **Fixed** an issue where waypoints failed to add the TLS inspector listener filter when only TLS ports existed, causing SNI-based routing to fail for wildcard ServiceEntry with `resolution: DYNAMIC_DNS`. <|endoftext|> # istio_grafana-rate-interval.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: telemetry # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: [] # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Fixed** an issue where many panels in the Grafana dashboards showed **No data** if Prometheus had a scrape interval configured to be larger than `15s`. # upgradeNotes is a markdown listing of any changes that will affect the upgrade # process. This will appear in the release notes. upgradeNotes: - title: Grafana dashboard changes content: | The changes require version 7.2 or later of Grafana. # docs is a list of related docs to the change. docs: - '[Background information] https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/' - '[Usage] https://istio.io/latest/docs/tasks/observability/metrics/using-istio-dashboard/' <|endoftext|> # helm_charts_ingress-admin.yaml {{- if .Values.admin.ingress.enabled -}} {{- $serviceName := include "kong.fullname" . -}} {{- $servicePort := .Values.admin.servicePort -}} {{- $path := .Values.admin.ingress.path -}} {{- $tls := .Values.admin.ingress.tls -}} {{- $hostname := .Values.admin.ingress.hostname -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ template "kong.fullname" . }}-admin labels: {{- include "kong.metaLabels" . | nindent 4 }} annotations: {{- range $key, $value := .Values.admin.ingress.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: - host: {{ $hostname }} http: paths: - path: {{ $path }} backend: serviceName: {{ $serviceName }}-admin servicePort: {{ $servicePort }} {{- if $tls }} tls: - hosts: - {{ $hostname }} secretName: {{ $tls }} {{- end -}} {{- end -}} <|endoftext|> # argocd_source_ducktype-example-fasttemplate.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: book-import spec: generators: - clusterDecisionResource: configMapRef: ocm-placement name: test-placement requeueAfterSeconds: 30 template: metadata: name: '{{clusterName}}-book-import' spec: project: "default" source: repoURL: https://github.com/open-cluster-management/application-samples.git targetRevision: HEAD path: book-import destination: name: '{{clusterName}}' namespace: bookimport syncPolicy: automated: prune: true syncOptions: - CreateNamespace=true <|endoftext|> # istio_26185.yaml apiVersion: release-notes/v2 kind: feature area: security releaseNotes: - | **Added** support for client side Envoy secure naming config when trust domain alias is used. Fix the multi cluster service discovery client SAN generation: takes all endpoints' service accounts into account, rather than the first found service registry. <|endoftext|> # k8s_docs_security-context.yaml apiVersion: v1 kind: Pod metadata: name: security-context-demo spec: securityContext: runAsUser: 1000 runAsGroup: 3000 fsGroup: 2000 supplementalGroups: [4000] volumes: - name: sec-ctx-vol emptyDir: {} containers: - name: sec-ctx-demo image: busybox:1.28 command: [ "sh", "-c", "sleep 1h" ] volumeMounts: - name: sec-ctx-vol mountPath: /data/demo securityContext: allowPrivilegeEscalation: false <|endoftext|> # istio_bookinfo-psa.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################################## # This file defines the same services, service accounts, and deployments as bookinfo.yaml with # added securityContext fields to allow the bookinfo demo to run on a PodSecurityAdmission # enabled cluster that enforces the baseline policy. ################################################################################################## ################################################################################################## # Details service ################################################################################################## apiVersion: v1 kind: Service metadata: name: details labels: app: details service: details spec: ports: - port: 9080 name: http selector: app: details --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-details labels: account: details --- apiVersion: apps/v1 kind: Deployment metadata: name: details-v1 labels: app: details version: v1 spec: replicas: 1 selector: matchLabels: app: details version: v1 template: metadata: labels: app: details version: v1 spec: serviceAccountName: bookinfo-details containers: - name: details image: registry.istio.io/release/examples-bookinfo-details-v1:1.20.3 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 securityContext: allowPrivilegeEscalation: false capabilities: drop: - all runAsNonRoot: true --- ################################################################################################## # Ratings service ################################################################################################## apiVersion: v1 kind: Service metadata: name: ratings labels: app: ratings service: ratings spec: ports: - port: 9080 name: http selector: app: ratings --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-ratings labels: account: ratings --- apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v1 labels: app: ratings version: v1 spec: replicas: 1 selector: matchLabels: app: ratings version: v1 template: metadata: labels: app: ratings version: v1 spec: serviceAccountName: bookinfo-ratings containers: - name: ratings image: registry.istio.io/release/examples-bookinfo-ratings-v1:1.20.3 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 securityContext: allowPrivilegeEscalation: false capabilities: drop: - all runAsNonRoot: true --- ################################################################################################## # Reviews service ################################################################################################## apiVersion: v1 kind: Service metadata: name: reviews labels: app: reviews service: reviews spec: ports: - port: 9080 name: http selector: app: reviews --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-reviews labels: account: reviews --- apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v1 labels: app: reviews version: v1 spec: replicas: 1 selector: matchLabels: app: reviews version: v1 template: metadata: labels: app: reviews version: v1 spec: serviceAccountName: bookinfo-reviews containers: - name: reviews image: registry.istio.io/release/examples-bookinfo-reviews-v1:1.20.3 imagePullPolicy: IfNotPresent env: - name: LOG_DIR value: "/tmp/logs" ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp - name: wlp-output mountPath: /opt/ibm/wlp/output securityContext: allowPrivilegeEscalation: false capabilities: drop: - all runAsNonRoot: true volumes: - name: wlp-output emptyDir: {} - name: tmp emptyDir: {} --- apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v2 labels: app: reviews version: v2 spec: replicas: 1 selector: matchLabels: app: reviews version: v2 template: metadata: labels: app: reviews version: v2 spec: serviceAccountName: bookinfo-reviews containers: - name: reviews image: registry.istio.io/release/examples-bookinfo-reviews-v2:1.20.3 imagePullPolicy: IfNotPresent env: - name: LOG_DIR value: "/tmp/logs" ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp - name: wlp-output mountPath: /opt/ibm/wlp/output securityContext: allowPrivilegeEscalation: false capabilities: drop: - all runAsNonRoot: true volumes: - name: wlp-output emptyDir: {} - name: tmp emptyDir: {} --- apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v3 labels: app: reviews version: v3 spec: replicas: 1 selector: matchLabels: app: reviews version: v3 template: metadata: labels: app: reviews version: v3 spec: serviceAccountName: bookinfo-reviews containers: - name: reviews image: registry.istio.io/release/examples-bookinfo-reviews-v3:1.20.3 imagePullPolicy: IfNotPresent env: - name: LOG_DIR value: "/tmp/logs" ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp - name: wlp-output mountPath: /opt/ibm/wlp/output securityContext: allowPrivilegeEscalation: false capabilities: drop: - all runAsNonRoot: true volumes: - name: wlp-output emptyDir: {} - name: tmp emptyDir: {} --- ################################################################################################## # Productpage services ################################################################################################## apiVersion: v1 kind: Service metadata: name: productpage labels: app: productpage service: productpage spec: ports: - port: 9080 name: http selector: app: productpage --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-productpage labels: account: productpage --- apiVersion: apps/v1 kind: Deployment metadata: name: productpage-v1 labels: app: productpage version: v1 spec: replicas: 1 selector: matchLabels: app: productpage version: v1 template: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/port: "9080" prometheus.io/path: "/metrics" labels: app: productpage version: v1 spec: serviceAccountName: bookinfo-productpage containers: - name: productpage image: registry.istio.io/release/examples-bookinfo-productpage-v1:1.20.3 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp securityContext: allowPrivilegeEscalation: false capabilities: drop: - all runAsNonRoot: true volumes: - name: tmp emptyDir: {} --- <|endoftext|> # helm_charts_podisruptionbudget.yaml {{- if .Values.podDisruptionBudget }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ include "kafka.fullname" . }} labels: {{- include "kafka.broker.labels" . | nindent 4 }} spec: selector: matchLabels: {{- include "kafka.broker.matchLabels" . | nindent 6 }} {{ toYaml .Values.podDisruptionBudget | indent 2 }} {{- end }} <|endoftext|> # kustomize_java-configmap.resource.yaml # Copyright 2019 The Kubernetes Authors. # SPDX-License-Identifier: Apache-2.0 # apiVersion: v1 kind: ConfigMap metadata: name: app-config labels: app.kubernetes.io/component: undefined app.kubernetes.io/instance: undefined data: {} <|endoftext|> # k8s_docs_pod-single-configmap-env-variable.yaml apiVersion: v1 kind: Pod metadata: name: dapi-test-pod spec: containers: - name: test-container image: registry.k8s.io/busybox command: [ "/bin/sh", "-c", "env" ] env: # Задать переменную окружения - name: SPECIAL_LEVEL_KEY valueFrom: configMapKeyRef: # ConfigMap со значением, которое вы хотите присвоить SPECIAL_LEVEL_KEY name: special-config # Укажите ключ, привязанный к значению key: special.how restartPolicy: Never <|endoftext|> # argocd_examples_rollout.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: name: {{ template "helm-guestbook.fullname" . }} labels: app: {{ template "helm-guestbook.name" . }} chart: {{ template "helm-guestbook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: 3 selector: matchLabels: app: {{ template "helm-guestbook.name" . }} release: {{ .Release.Name }} strategy: blueGreen: activeService: {{ template "helm-guestbook.fullname" . }} previewService: {{ template "helm-guestbook.fullname" . }}-preview template: metadata: labels: app: {{ template "helm-guestbook.name" . }} release: {{ .Release.Name }} spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: 80 protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: http resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} <|endoftext|> # flux_source_ks.yaml --- apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: flux-system namespace: {{ .fluxns }} spec: interval: 5m0s path: ./infrastructure/ prune: true sourceRef: kind: GitRepository name: flux-system <|endoftext|> # istio_30991.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 30991 releaseNotes: - | **Fixed** a bug preventing `istioctl kube-inject` from working with revisions. <|endoftext|> # istio_proxy-resources-mixed-null.yaml apiVersion: apps/v1 kind: Deployment metadata: name: proxy-resources-mixed-null spec: replicas: 1 selector: matchLabels: app: proxy-resources-mixed-null template: metadata: labels: app: proxy-resources-mixed-null spec: initContainers: - name: existing-init image: busybox command: ["sh", "-c", "true"] containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" <|endoftext|> # argocd_source_never-scheduled.yaml apiVersion: batch/v1 kind: CronJob metadata: annotations: argocd.argoproj.io/tracking-id: test-cronjob:batch/CronJob:test-cronjob/hello labels: app.kubernetes.io/instance: test-cronjob name: hello namespace: test-cronjob spec: jobTemplate: spec: template: spec: containers: - command: - /bin/sh - '-c' - date; echo Hello from the Kubernetes cluster image: busybox:1.28 imagePullPolicy: IfNotPresent name: hello restartPolicy: OnFailure schedule: '* * * * *' status: {} <|endoftext|> # k8s_docs_web-parallel.yaml apiVersion: v1 kind: Service metadata: name: nginx labels: app: nginx spec: ports: - port: 80 name: web clusterIP: None selector: app: nginx --- apiVersion: apps/v1 kind: StatefulSet metadata: name: web spec: serviceName: "nginx" podManagementPolicy: "Parallel" replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: k8s.gcr.io/nginx-slim:0.8 ports: - containerPort: 80 name: web volumeMounts: - name: www mountPath: /usr/share/nginx/html volumeClaimTemplates: - metadata: name: www spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 1Gi <|endoftext|> # argocd_source_live-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: argocd.argoproj.io/tracking-id: 'guestbook:apps/Deployment:default/kustomize-guestbook-ui' deployment.kubernetes.io/revision: '9' iksm-version: '2.0' kubectl.kubernetes.io/last-applied-configuration: > {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{"argocd.argoproj.io/tracking-id":"guestbook:apps/Deployment:default/kustomize-guestbook-ui","iksm-version":"2.0"},"name":"kustomize-guestbook-ui","namespace":"default"},"spec":{"replicas":4,"revisionHistoryLimit":3,"selector":{"matchLabels":{"app":"guestbook-ui"}},"template":{"metadata":{"labels":{"app":"guestbook-ui"}},"spec":{"containers":[{"env":[{"name":"SOME_ENV_VAR","value":"some_value"}],"image":"quay.io/argoprojlabs/argocd-e2e-container:0.1","name":"guestbook-ui","ports":[{"containerPort":80}],"resources":{"requests":{"cpu":"50m","memory":"100Mi"}}}]}}}} creationTimestamp: '2022-01-05T15:45:21Z' generation: 119 managedFields: - apiVersion: apps/v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': 'f:iksm-version': {} manager: janitor operation: Apply time: '2022-01-06T18:21:04Z' - apiVersion: apps/v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': .: {} 'f:argocd.argoproj.io/tracking-id': {} 'f:kubectl.kubernetes.io/last-applied-configuration': {} 'f:spec': 'f:progressDeadlineSeconds': {} 'f:replicas': {} 'f:revisionHistoryLimit': {} 'f:selector': {} 'f:strategy': 'f:rollingUpdate': .: {} 'f:maxSurge': {} 'f:maxUnavailable': {} 'f:type': {} 'f:template': 'f:metadata': 'f:labels': .: {} 'f:app': {} 'f:spec': 'f:containers': 'k:{"name":"guestbook-ui"}': .: {} 'f:env': .: {} 'k:{"name":"SOME_ENV_VAR"}': .: {} 'f:name': {} 'f:value': {} 'f:image': {} 'f:imagePullPolicy': {} 'f:name': {} 'f:ports': .: {} 'k:{"containerPort":80,"protocol":"TCP"}': .: {} 'f:containerPort': {} 'f:protocol': {} 'f:resources': .: {} 'f:requests': .: {} 'f:cpu': {} 'f:memory': {} 'f:terminationMessagePath': {} 'f:terminationMessagePolicy': {} 'f:dnsPolicy': {} 'f:restartPolicy': {} 'f:schedulerName': {} 'f:securityContext': {} 'f:terminationGracePeriodSeconds': {} manager: argocd operation: Update time: '2022-01-06T15:04:15Z' - apiVersion: apps/v1 fieldsType: FieldsV1 fieldsV1: 'f:metadata': 'f:annotations': 'f:deployment.kubernetes.io/revision': {} 'f:status': 'f:availableReplicas': {} 'f:conditions': .: {} 'k:{"type":"Available"}': .: {} 'f:lastTransitionTime': {} 'f:lastUpdateTime': {} 'f:message': {} 'f:reason': {} 'f:status': {} 'f:type': {} 'k:{"type":"Progressing"}': .: {} 'f:lastTransitionTime': {} 'f:lastUpdateTime': {} 'f:message': {} 'f:reason': {} 'f:status': {} 'f:type': {} 'f:observedGeneration': {} 'f:readyReplicas': {} 'f:replicas': {} 'f:updatedReplicas': {} manager: kube-controller-manager operation: Update time: '2022-01-06T18:15:14Z' name: kustomize-guestbook-ui namespace: default resourceVersion: '8289211' uid: ef253575-ce44-4c5e-84ad-16e81d0df6eb spec: progressDeadlineSeconds: 600 replicas: 4 revisionHistoryLimit: 3 selector: matchLabels: app: guestbook-ui strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: app: guestbook-ui spec: containers: - env: - name: SOME_ENV_VAR value: some_value image: 'quay.io/argoprojlabs/argocd-e2e-container:0.1' imagePullPolicy: IfNotPresent name: guestbook-ui ports: - containerPort: 80 protocol: TCP resources: requests: cpu: 50m memory: 100Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: availableReplicas: 4 conditions: - lastTransitionTime: '2022-01-05T22:20:37Z' lastUpdateTime: '2022-01-05T22:43:47Z' message: >- ReplicaSet "kustomize-guestbook-ui-6549d54677" has successfully progressed. reason: NewReplicaSetAvailable status: 'True' type: Progressing - lastTransitionTime: '2022-01-06T18:15:14Z' lastUpdateTime: '2022-01-06T18:15:14Z' message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: 'True' type: Available observedGeneration: 119 readyReplicas: 4 replicas: 4 updatedReplicas: 4 <|endoftext|> # argocd_source_ui-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: argocd-ui spec: selector: matchLabels: app: argocd-ui template: metadata: labels: app: argocd-ui spec: containers: - name: argocd-ui image: argocd-ui env: - name: ARGOCD_API_URL value: https://argocd-server - name: ARGOCD_E2E_JS_HOST value: "0.0.0.0" ports: - containerPort: 4000 name: http <|endoftext|> # istio_ambient-redirect.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: [52260, 52576] releaseNotes: - | **Updated** the redirection method used in Ambient from `TPROXY` to `REDIRECT`. For most users, this should have no impact, but fixes a few compatibility issues with `TPROXY`. <|endoftext|> # helm_charts_authenticate-deployment.yaml {{- $configName := default (include "pomerium.fullname" .) .Values.config.existingConfig }} {{- $secretName := default (include "pomerium.fullname" .) .Values.config.existingSecret }} apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/name: {{ template "pomerium.authenticate.name" . }} helm.sh/chart: {{ template "pomerium.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: authenticate name: {{ template "pomerium.authenticate.fullname" . }} annotations: {{- if .Values.authenticate.deployment.annotations }} {{- range $key, $value := .Values.authenticate.deployment.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- else if .Values.annotations }} {{- range $key, $value := .Values.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} spec: replicas: {{ default .Values.replicaCount .Values.authenticate.replicaCount }} selector: matchLabels: app.kubernetes.io/name: {{ template "pomerium.authenticate.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: annotations: {{- /* policy is already covered by hot-reloading */}} checksum/config: {{ print .Values.config.extraOpts | sha256sum }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} {{- end }} labels: app.kubernetes.io/name: {{ template "pomerium.authenticate.name" . }} helm.sh/chart: {{ template "pomerium.chart" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} spec: {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} containers: - name: {{ .Chart.Name }} image: {{ .Values.image.repository }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} args: {{- if or .Values.config.existingConfig .Values.config.policy }} - --config=/etc/pomerium/config.yaml {{- end }} {{- range $key, $value := .Values.extraArgs }} {{- if $value }} - --{{ $key }}={{ $value }} {{- else }} - --{{ $key }} {{- end }} {{- end }} env: - name: SERVICES value: authenticate - name: AUTHENTICATE_SERVICE_URL value: {{ default (printf "https://authenticate.%s" .Values.config.rootDomain ) .Values.proxy.authenticateServiceUrl }} - name: COOKIE_SECRET valueFrom: secretKeyRef: name: {{ $secretName }} key: cookie-secret - name: SHARED_SECRET valueFrom: secretKeyRef: name: {{ $secretName }} key: shared-secret - name: IDP_PROVIDER value: {{ .Values.authenticate.idp.provider }} - name: IDP_CLIENT_ID valueFrom: secretKeyRef: name: {{ $secretName }} key: idp-client-id - name: IDP_CLIENT_SECRET valueFrom: secretKeyRef: name: {{ $secretName }} key: idp-client-secret - name: IDP_PROVIDER_URL value: {{ .Values.authenticate.idp.url }} {{- if .Values.authenticate.idp.serviceAccount }} - name: IDP_SERVICE_ACCOUNT valueFrom: secretKeyRef: name: {{ $secretName }} key: idp-service-account {{- end }} {{- /* TODO in future: Remove legacy logic */ -}} {{- if .Values.config.existingLegacyTLSSecret }} - name: CERTIFICATE valueFrom: secretKeyRef: name: {{ template "pomerium.authenticate.tlsSecret.name" . }} key: {{ template "pomerium.authenticate.tlsSecret.certName" . }} - name: CERTIFICATE_KEY valueFrom: secretKeyRef: name: {{ template "pomerium.authenticate.tlsSecret.name" . }} key: {{ template "pomerium.authenticate.tlsSecret.keyName" . }} - name: CERTIFICATE_AUTHORITY valueFrom: secretKeyRef: name: {{ template "pomerium.caSecret.name" . }} key: {{ template "pomerium.caSecret.certName" . }} {{- else }} - name: CERTIFICATE_FILE value: "/pomerium/cert.pem" - name: CERTIFICATE_KEY_FILE value: "/pomerium/privkey.pem" - name: CERTIFICATE_AUTHORITY_FILE value: "/pomerium/ca.pem" {{- end }} {{- range $name, $value := .Values.extraEnv }} - name: {{ $name }} value: {{ quote $value }} {{- end }} ports: - containerPort: 443 name: https protocol: TCP - containerPort: {{ .Values.metrics.port }} name: metrics protocol: TCP livenessProbe: httpGet: path: /ping port: https scheme: HTTPS readinessProbe: httpGet: path: /ping port: https scheme: HTTPS resources: {{ toYaml .Values.resources | indent 10 }} volumeMounts: {{- if or .Values.config.existingConfig .Values.config.policy }} - mountPath: /etc/pomerium/ name: config {{- end }} {{- /* TODO in future: Remove legacy logic */ -}} {{- if not .Values.config.existingLegacyTLSSecret }} - mountPath: /pomerium/cert.pem name: service-tls subPath: {{ template "pomerium.authenticate.tlsSecret.certName" . }} - mountPath: /pomerium/privkey.pem name: service-tls subPath: {{ template "pomerium.authenticate.tlsSecret.keyName" . }} - mountPath: /pomerium/ca.pem name: ca-tls subPath: {{ template "pomerium.caSecret.certName" . }} {{- end }} volumes: {{- if or .Values.config.existingConfig .Values.config.policy }} - name: config configMap: name: {{ $configName }} {{- end }} {{- /* TODO in future: Remove legacy logic */ -}} {{- if not .Values.config.existingLegacyTLSSecret }} - name: service-tls secret: secretName: {{ template "pomerium.authenticate.tlsSecret.name" . }} - name: ca-tls secret: secretName: {{ template "pomerium.caSecret.name" . }} {{- end }} {{- if .Values.extraVolumes }} {{- toYaml .Values.extraVolumes | indent 8 }} {{- end }} {{- if .Values.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.imagePullSecrets | indent 8 }} {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 8 }} {{- end }} <|endoftext|> # k8s_docs_explore-graceful-termination-nginx.yaml apiVersion: v1 kind: Service metadata: name: nginx-service spec: selector: app: nginx ports: - protocol: TCP port: 80 targetPort: 80 <|endoftext|> # istio_jwt-parsing.yaml apiVersion: release-notes/v2 kind: bug-fix area: security releaseNotes: - | **Updated** dependency in Envoy to properly parse JWTs with negative values for exp, nbf or iat fields. <|endoftext|> # istio_59209.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 59209 releaseNotes: - | **Added** experimental support for agentgateway in istio. Agentgatewy configuration can be enabled through the `EnableAgentGateway` feature flag. Istio supports agentgateway configuration via the gateway API resources. <|endoftext|> # helm_charts_udp-service.yaml {{- if .Values.graylog.input.udp }} apiVersion: v1 kind: Service metadata: {{- if .Values.graylog.input.udp.service.annotations }} annotations: {{ toYaml .Values.graylog.input.udp.service.annotations | indent 4 }} {{- end }} name: {{ template "graylog.fullname" . }}-udp labels: {{ include "graylog.metadataLabels" . | indent 4 }} app.kubernetes.io/component: "UDP" spec: ports: {{- range .Values.graylog.input.udp.ports }} - name: {{ .name }} port: {{ .port }} protocol: UDP targetPort: {{ .port }} {{- if eq "NodePort" $.Values.graylog.input.udp.service.type }} {{- if .nodePort }} nodePort: {{ .nodePort }} {{- end }} {{- end }} {{- end }} {{- if .Values.graylog.input.udp.service.externalIPs }} externalIPs: {{ toYaml .Values.graylog.input.udp.service.externalIPs | indent 4 }} {{- end }} {{- if eq "ClusterIP" .Values.graylog.input.udp.service.type }} {{- if .Values.graylog.input.udp.service.clusterIP }} clusterIP: {{ .Values.graylog.input.udp.service.clusterIP }} {{- end }} {{- end }} selector: app.kubernetes.io/name: {{ template "graylog.name" . }} app.kubernetes.io/instance: "{{ .Release.Name }}" type: "{{ .Values.graylog.input.udp.service.type }}" {{- if eq "LoadBalancer" .Values.graylog.input.udp.service.type }} externalTrafficPolicy: {{ .Values.graylog.input.udp.service.externalTrafficPolicy | default "Cluster" }} {{- if .Values.graylog.input.udp.service.loadBalancerIP }} loadBalancerIP: {{ .Values.graylog.input.udp.service.loadBalancerIP }} {{- end -}} {{- if .Values.graylog.input.udp.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: {{- range .Values.graylog.input.udp.service.loadBalancerSourceRanges }} - {{ . }} {{- end }} {{- end -}} {{- end -}} {{- end }} <|endoftext|> # istio_27115.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 24471 releaseNotes: - | **Deprecated** `centralIstiod` flag in favor of `externalIstiod` to better support external control plane model. <|endoftext|> # helm_charts_omsagent-service.yaml kind: Service apiVersion: v1 metadata: name: healthmodel-replicaset-service namespace: kube-system spec: selector: rsName: "omsagent-rs" ports: - protocol: TCP port: 25227 targetPort: in-rs-tcp <|endoftext|> # istio_grafana-dashboards-reporter-correction.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 27595 releaseNotes: - | **Fixed** Correction of Istio Grafana Dashboards Queries which have reporter field. <|endoftext|> # helm_charts_db-init.job.yaml # https://docs.sentry.io/server/installation/docker/#running-migrations {{- if .Values.hooks.dbInit.enabled }} apiVersion: batch/v1 kind: Job metadata: name: "{{ .Release.Name }}-db-init" labels: app: {{ template "sentry.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" annotations: # This is what defines this resource as a hook. Without this line, the # job is considered part of the release. "helm.sh/hook": "post-install,post-upgrade" "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation" "helm.sh/hook-weight": "-5" spec: template: metadata: name: "{{ .Release.Name }}-db-init" annotations: checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} labels: app: {{ template "sentry.fullname" . }} release: "{{ .Release.Name }}" {{- if .Values.worker.podLabels }} {{ toYaml .Values.worker.podLabels | indent 8 }} {{- end }} spec: {{- with .Values.hooks.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- if .Values.hooks.tolerations }} tolerations: {{ toYaml .Values.hooks.tolerations | indent 8 }} {{- end }} restartPolicy: Never {{- if .Values.image.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.image.imagePullSecrets | indent 8 }} {{- end }} containers: - name: db-init-job image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" command: ["sentry","upgrade","--noinput"] env: - name: SENTRY_SECRET_KEY valueFrom: secretKeyRef: name: {{ template "sentry.fullname" . }} key: sentry-secret - name: SENTRY_DB_USER value: {{ default "sentry" .Values.postgresql.postgresqlUsername | quote }} - name: SENTRY_DB_NAME value: {{ default "sentry" .Values.postgresql.postgresqlDatabase | quote }} - name: SENTRY_DB_PASSWORD valueFrom: secretKeyRef: {{- if .Values.postgresql.existingSecret }} name: {{ .Values.postgresql.existingSecret }} {{- else }} name: {{ template "sentry.postgresql.secret" . }} {{- end }} key: {{ template "sentry.postgresql.secretKey" . }} - name: SENTRY_POSTGRES_HOST value: {{ template "sentry.postgresql.host" . }} - name: SENTRY_POSTGRES_PORT value: {{ template "sentry.postgresql.port" . }} {{- if or (.Values.redis.enabled) (.Values.redis.password) (.Values.redis.existingSecret) }} - name: SENTRY_REDIS_PASSWORD valueFrom: secretKeyRef: {{- if .Values.redis.existingSecret }} name: {{ .Values.redis.existingSecret }} {{- else }} name: {{ template "sentry.redis.secret" . }} {{- end }} key: {{ template "sentry.redis.secretKey" . }} {{- end }} - name: SENTRY_REDIS_HOST value: {{ template "sentry.redis.host" . }} - name: SENTRY_REDIS_PORT value: {{ template "sentry.redis.port" . }} - name: SENTRY_EMAIL_HOST value: {{ default "" .Values.email.host | quote }} - name: SENTRY_EMAIL_PORT value: {{ default "" .Values.email.port | quote }} - name: SENTRY_EMAIL_USER value: {{ default "" .Values.email.user | quote }} - name: SENTRY_EMAIL_PASSWORD valueFrom: secretKeyRef: {{- if .Values.email.existingSecret }} name: {{ .Values.email.existingSecret }} {{- else }} name: {{ template "sentry.fullname" . }} {{- end }} key: smtp-password - name: SENTRY_EMAIL_USE_TLS value: {{ .Values.email.use_tls | quote }} - name: SENTRY_SERVER_EMAIL value: {{ .Values.email.from_address | quote }} volumeMounts: - mountPath: /etc/sentry name: config readOnly: true resources: {{ toYaml .Values.hooks.dbInit.resources | indent 10 }} volumes: - name: config configMap: name: {{ template "sentry.fullname" . }} {{- end -}} <|endoftext|> # helm_charts_database-secret.yaml {{- if and (ne (.Values.database.type | lower) "h2") (not .Values.database.existingSecret) }} apiVersion: v1 kind: Secret metadata: name: {{ template "metabase.fullname" . }}-database namespace: {{ .Release.Namespace }} labels: app: {{ template "metabase.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: {{- if .Values.database.encryptionKey }} encryptionKey: {{ .Values.database.encryptionKey | b64enc | quote }} {{- end }} {{- if .Values.database.connectionURI }} connectionURI: {{ .Values.database.connectionURI | b64enc | quote }} {{- else }} username: {{ .Values.database.username | b64enc | quote }} password: {{ .Values.database.password | b64enc | quote }} {{- end }} {{- end }} <|endoftext|> # kube_prometheus_grafana-config.yaml apiVersion: v1 kind: Secret metadata: labels: app.kubernetes.io/component: grafana app.kubernetes.io/name: grafana app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 12.4.2 name: grafana-config namespace: monitoring stringData: grafana.ini: | [date_formats] default_timezone = UTC type: Opaque <|endoftext|> # istio_48174.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue where the IST0158 message was incorrectly reported when the `imageType` field was set by the `ProxyConfig` resource, or the resource annotation `proxy.istio.io/config`. <|endoftext|> # istio_wasm-traffic-selector.yaml apiVersion: release-notes/v2 kind: feature area: extensibility issue: [39345] releaseNotes: - | **Added** the `match` field in the WasmPlugin API. With this `match` clause, a WasmPlugin can be applied to more specific traffic (e.g., traffic to a specific port). <|endoftext|> # argocd_source_initial_provider.yaml apiVersion: notification.toolkit.fluxcd.io/v1beta3 kind: Provider metadata: name: slack-bot namespace: flagger-system spec: type: slack channel: general address: https://slack.com/api/chat.postMessage secretRef: name: slack-bot-token <|endoftext|> # helm_charts_omsagent-rs-configmap.yaml {{- if and (ne .Values.omsagent.secret.key "") (ne .Values.omsagent.secret.wsid "") (or (ne .Values.omsagent.env.clusterName "") (ne .Values.omsagent.env.clusterId ""))}} kind: ConfigMap apiVersion: v1 data: kube.conf: | # Fluentd config file for OMS Docker - cluster components (kubeAPI) #fluent forward plugin type forward port "#{ENV['HEALTHMODEL_REPLICASET_SERVICE_SERVICE_PORT']}" bind 0.0.0.0 chunk_size_limit 4m #Kubernetes pod inventory type kubepodinventory tag oms.containerinsights.KubePodInventory run_interval 60 log_level debug custom_metrics_azure_regions eastus,southcentralus,westcentralus,westus2,southeastasia,northeurope,westeurope,southafricanorth,centralus,northcentralus,eastus2,koreacentral,eastasia,centralindia,uksouth,canadacentral,francecentral,japaneast,australiaeast #Kubernetes events type kubeevents tag oms.containerinsights.KubeEvents run_interval 60 log_level debug #Kubernetes Nodes type kubenodeinventory tag oms.containerinsights.KubeNodeInventory run_interval 60 log_level debug #Kubernetes health type kubehealth tag kubehealth.ReplicaSet run_interval 60 log_level debug #cadvisor perf- Windows nodes type wincadvisorperf tag oms.api.wincadvisorperf run_interval 60 log_level debug #Kubernetes object state - deployments type kubestatedeployments tag oms.containerinsights.KubeStateDeployments run_interval 60 log_level debug #Kubernetes object state - HPA type kubestatehpa tag oms.containerinsights.KubeStateHpa run_interval 60 log_level debug type filter_inventory2mdm custom_metrics_azure_regions eastus,southcentralus,westcentralus,westus2,southeastasia,northeurope,westeurope,southafricanorth,centralus,northcentralus,eastus2,koreacentral,eastasia,centralindia,uksouth,canadacentral,francecentral,japaneast,australiaeast log_level info # custom_metrics_mdm filter plugin for perf data from windows nodes type filter_cadvisor2mdm custom_metrics_azure_regions eastus,southcentralus,westcentralus,westus2,southeastasia,northeurope,westeurope,southafricanorth,centralus,northcentralus,eastus2,koreacentral,eastasia,centralindia,uksouth,canadacentral,francecentral,japaneast,australiaeast metrics_to_collect cpuUsageNanoCores,memoryWorkingSetBytes log_level info #health model aggregation filter type filter_health_model_builder type out_oms log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_kubepods*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_oms log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_kubeevents*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_oms log_level debug num_threads 2 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_kubeservices*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_oms log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/state/out_oms_kubenodes*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_oms log_level debug num_threads 3 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_containernodeinventory*.buffer buffer_queue_limit 20 flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_oms log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_kubeperf*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_mdm log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_mdm_*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 30s max_retry_wait 9m retry_mdm_post_wait_minutes 30 type out_oms log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_api_wincadvisorperf*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_mdm log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_mdm_cdvisorperf*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m retry_mdm_post_wait_minutes 30 type out_oms log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_kubehealth*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m type out_oms log_level debug num_threads 5 buffer_chunk_limit 4m buffer_type file buffer_path %STATE_DIR_WS%/out_oms_insightsmetrics*.buffer buffer_queue_limit 20 buffer_queue_full_action drop_oldest_chunk flush_interval 20s retry_limit 10 retry_wait 5s max_retry_wait 5m metadata: name: omsagent-rs-config namespace: kube-system labels: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- end }} <|endoftext|> # istio_58768.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 58768 releaseNotes: - | **Fixed** an issue where the `istio-cni` daemonSet treated NodeAffinity changes as upgrades, causing CNI config to be incorrectly left in place when a node no longer matched the DaemonSet's NodeAffinity rules. <|endoftext|> # istio_49489.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 49489 releaseNotes: - | **Fixed** an bug when there are more than one service with same host name within same namespace, there could occur `STRICT_DNS cluster without endpoints` error. <|endoftext|> # k8s_examples_sysdig-daemonset.yaml #Use this sysdig.yaml when Daemon Sets are enabled on Kubernetes (minimum version 1.1.1). Otherwise use the RC method. apiVersion: apps/v1 #for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: DaemonSet metadata: name: sysdig-agent labels: app: sysdig-agent spec: selector: matchLabels: name: sysdig-agent template: metadata: labels: name: sysdig-agent spec: volumes: - name: docker-sock hostPath: path: /var/run/docker.sock type: Socket - name: dev-vol hostPath: path: /dev - name: proc-vol hostPath: path: /proc - name: boot-vol hostPath: path: /boot - name: modules-vol hostPath: path: /lib/modules - name: usr-vol hostPath: path: /usr hostNetwork: true hostPID: true containers: - name: sysdig-agent image: sysdig/agent securityContext: privileged: true env: - name: ACCESS_KEY #REQUIRED - replace with your Sysdig Cloud access key value: 8312341g-5678-abcd-4a2b2c-33bcsd655 # - name: TAGS #OPTIONAL # value: linux:ubuntu,dept:dev,local:nyc # - name: COLLECTOR #OPTIONAL - on-prem install only # value: 192.168.183.200 # - name: SECURE #OPTIONAL - on-prem install only # value: false # - name: CHECK_CERTIFICATE #OPTIONAL - on-prem install only # value: false # - name: ADDITIONAL_CONF #OPTIONAL pass additional parameters to the agent such as authentication example provided here # value: "k8s_uri: https://myacct:mypass@localhost:4430\nk8s_ca_certificate: k8s-ca.crt\nk8s_ssl_verify_certificate: true" volumeMounts: - mountPath: /host/var/run/docker.sock name: docker-sock readOnly: false - mountPath: /host/dev name: dev-vol readOnly: false - mountPath: /host/proc name: proc-vol readOnly: true - mountPath: /host/boot name: boot-vol readOnly: true - mountPath: /host/lib/modules name: modules-vol readOnly: true - mountPath: /host/usr name: usr-vol readOnly: true <|endoftext|> # istio_56414.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 56414 releaseNotes: - | **Fixed** Ambient host network iptables rules were being skipped due to higher-priority CNI rules in some deployments. <|endoftext|> # helm_source_multi-fail.yaml apiVersion: v1 kind: ConfigMap metadata: name: game-config data: game.properties: cheat --- apiVersion: v1 kind: ConfigMap metadata: name: -this:name-is-not_valid$ data: game.properties: empty <|endoftext|> # helm_charts_default-backend-serviceaccount.yaml {{- if and .Values.defaultBackend.enabled .Values.defaultBackend.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.defaultBackend.serviceAccountName" . }} {{- end }} <|endoftext|> # k8s_docs_termination.yaml apiVersion: v1 kind: Pod metadata: name: termination-demo spec: containers: - name: termination-demo-container image: debian command: ["/bin/sh"] args: ["-c", "sleep 10 && echo Sleep expired > /dev/termination-log"] <|endoftext|> # istio_46339.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: [] releaseNotes: - | **Added** an flag to disable OTel builtin resource labels. <|endoftext|> # helm_charts_deployment-local-provisioner.yaml {{- if .Values.localprovisioner.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "openebs.fullname" . }}-localpv-provisioner labels: app: {{ template "openebs.name" . }} chart: {{ template "openebs.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: localpv-provisioner openebs.io/component-name: openebs-localpv-provisioner openebs.io/version: {{ .Values.release.version }} spec: replicas: {{ .Values.localprovisioner.replicas }} strategy: type: "Recreate" rollingUpdate: null selector: matchLabels: app: {{ template "openebs.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "openebs.name" . }} release: {{ .Release.Name }} component: localpv-provisioner name: openebs-localpv-provisioner openebs.io/component-name: openebs-localpv-provisioner openebs.io/version: {{ .Values.release.version }} spec: serviceAccountName: {{ template "openebs.serviceAccountName" . }} containers: - name: {{ template "openebs.name" . }}-localpv-provisioner image: "{{ .Values.image.repository }}{{ .Values.localprovisioner.image }}:{{ .Values.localprovisioner.imageTag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: # OPENEBS_IO_K8S_MASTER enables openebs provisioner to connect to K8s # based on this address. This is ignored if empty. # This is supported for openebs provisioner version 0.5.2 onwards #- name: OPENEBS_IO_K8S_MASTER # value: "http://10.128.0.12:8080" # OPENEBS_IO_KUBE_CONFIG enables openebs provisioner to connect to K8s # based on this config. This is ignored if empty. # This is supported for openebs provisioner version 0.5.2 onwards #- name: OPENEBS_IO_KUBE_CONFIG # value: "/home/ubuntu/.kube/config" # OPENEBS_NAMESPACE is the namespace that this provisioner will # lookup to find maya api service - name: OPENEBS_NAMESPACE value: "{{ .Release.Namespace }}" - name: NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName # OPENEBS_SERVICE_ACCOUNT provides the service account of this pod as # environment variable - name: OPENEBS_SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName # OPENEBS_IO_BASE_PATH is the environment variable that provides the # default base path on the node where host-path PVs will be provisioned. - name: OPENEBS_IO_ENABLE_ANALYTICS value: "{{ .Values.analytics.enabled }}" - name: OPENEBS_IO_BASE_PATH value: "{{ .Values.localprovisioner.basePath }}" - name: OPENEBS_IO_HELPER_IMAGE value: "{{ .Values.image.repository }}{{ .Values.helper.image }}:{{ .Values.helper.imageTag }}" - name: OPENEBS_IO_INSTALLER_TYPE value: "charts-helm" # Process name used for matching is limited to the 15 characters # present in the pgrep output. # So fullname can't be used here with pgrep (>15 chars).A regular expression # that matches the entire command name has to specified. # Anchor `^` : matches any string that starts with `provisioner-loc` # `.*`: matches any string that has `provisioner-loc` followed by zero or more char livenessProbe: exec: command: - sh - -c - test `pgrep -c "^provisioner-loc.*"` = 1 initialDelaySeconds: {{ .Values.localprovisioner.healthCheck.initialDelaySeconds }} periodSeconds: {{ .Values.localprovisioner.healthCheck.periodSeconds }} {{- if .Values.localprovisioner.nodeSelector }} nodeSelector: {{ toYaml .Values.localprovisioner.nodeSelector | indent 8 }} {{- end }} {{- if .Values.localprovisioner.tolerations }} tolerations: {{ toYaml .Values.localprovisioner.tolerations | indent 8 }} {{- end }} {{- if .Values.localprovisioner.affinity }} affinity: {{ toYaml .Values.localprovisioner.affinity | indent 8 }} {{- end }} {{- end }} <|endoftext|> # istio_vm-iptables-inbound.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 29412 releaseNotes: - | **Improved** the `istioctl x workload` command to configure VMs to disable inbound `iptables` capture for admin ports, matching behavior of Kubernetes Pods. <|endoftext|> # argocd_source_nil_last_transition_time.yaml apiVersion: k8s.keycloak.org/v1alpha1 kind: Keycloak metadata: name: keycloak-23 namespace: keycloak status: conditions: - type: Ready status: "True" lastTransitionTime: "2025-05-06T12:00:00Z" # Non-nil lastTransitionTime - type: HasErrors status: "False" lastTransitionTime: null # Nil lastTransitionTime <|endoftext|> # helm_charts_validatingWebhookConfiguration.yaml {{- if and .Values.prometheusOperator.admissionWebhooks.enabled }} apiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingWebhookConfiguration metadata: name: {{ template "prometheus-operator.fullname" . }}-admission labels: app: {{ template "prometheus-operator.name" $ }}-admission {{- include "prometheus-operator.labels" $ | indent 4 }} webhooks: - name: prometheusrulemutate.monitoring.coreos.com {{- if .Values.prometheusOperator.admissionWebhooks.patch.enabled }} failurePolicy: Ignore {{- else }} failurePolicy: {{ .Values.prometheusOperator.admissionWebhooks.failurePolicy }} {{- end }} rules: - apiGroups: - monitoring.coreos.com apiVersions: - "*" resources: - prometheusrules operations: - CREATE - UPDATE clientConfig: service: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ template "prometheus-operator.operator.fullname" $ }} path: /admission-prometheusrules/validate {{- end }} <|endoftext|> # helm_charts_yarn-ui-svc.yaml # Service to access the yarn web ui apiVersion: v1 kind: Service metadata: name: {{ include "hadoop.fullname" . }}-yarn-ui labels: app: {{ include "hadoop.name" . }} chart: {{ include "hadoop.chart" . }} release: {{ .Release.Name }} component: yarn-ui spec: ports: - port: 8088 name: web selector: app: {{ include "hadoop.name" . }} component: yarn-rm <|endoftext|> # grafana_charts_poddisruptionbudget-memcached-frontend.yaml {{- if and .Values.memcachedFrontend.enabled (gt (int .Values.memcachedFrontend.replicas) 1) }} {{- if kindIs "invalid" .Values.memcachedFrontend.maxUnavailable }} {{- fail "`.Values.memcachedFrontend.maxUnavailable` must be set when `.Values.memcachedFrontend.replicas` is greater than 1." }} {{- else }} apiVersion: {{ include "loki.pdb.apiVersion" . }} kind: PodDisruptionBudget metadata: name: {{ include "loki.memcachedFrontendFullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "loki.memcachedFrontendLabels" . | nindent 4 }} spec: selector: matchLabels: {{- include "loki.memcachedFrontendSelectorLabels" . | nindent 6 }} {{- with .Values.memcachedFrontend.maxUnavailable }} maxUnavailable: {{ . }} {{- end }} {{- with .Values.memcachedFrontend.minAvailable }} minAvailable: {{ . }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_duplicate_mwc.yaml apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: app: sidecar-injector istio.io/tag: default name: w-istio-sidecar-injector-istio-system webhooks: - admissionReviewVersions: - v1beta1 - v1 clientConfig: service: name: istiod namespace: istio-system path: /inject port: 443 failurePolicy: Fail matchPolicy: Equivalent name: rev.namespace.sidecar-injector.istio.io namespaceSelector: matchExpressions: - key: istio.io/rev operator: In values: - default - key: istio-injection operator: DoesNotExist objectSelector: matchExpressions: - key: istio.io/rev operator: NotIn values: - canary reinvocationPolicy: Never rules: - apiGroups: - "" apiVersions: - v1 operations: - CREATE resources: - pods scope: '*' sideEffects: None timeoutSeconds: 10 --- # same webhook but with different name, will result in a duplicate apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: labels: app: sidecar-injector istio.io/tag: default name: w2-istio-sidecar-injector-istio-system webhooks: - admissionReviewVersions: - v1beta1 - v1 clientConfig: service: name: istiod namespace: istio-system path: /inject port: 443 failurePolicy: Fail matchPolicy: Equivalent name: rev.namespace.sidecar-injector.istio.io namespaceSelector: matchExpressions: - key: istio.io/rev operator: In values: - default - key: istio-injection operator: DoesNotExist objectSelector: matchExpressions: - key: istio.io/rev operator: NotIn values: - canary reinvocationPolicy: Never rules: - apiGroups: - "" apiVersions: - v1 operations: - CREATE resources: - pods scope: '*' sideEffects: None timeoutSeconds: 10 <|endoftext|> # istio_52899.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** `--force-apply` to override the idempotency logic if detection incorrectly assumes rules are already applied. <|endoftext|> # k8s_docs_two-container-pod.yaml apiVersion: v1 kind: Pod metadata: name: two-containers spec: restartPolicy: Never volumes: - name: shared-data emptyDir: {} containers: - name: nginx-container image: nginx volumeMounts: - name: shared-data mountPath: /usr/share/nginx/html - name: debian-container image: debian volumeMounts: - name: shared-data mountPath: /pod-data command: ["/bin/sh"] args: ["-c", "echo Hello from the debian container > /pod-data/index.html"] <|endoftext|> # helm_charts_http-service.yaml {{- $service := .Values.keycloak.service -}} apiVersion: v1 kind: Service metadata: name: {{ template "keycloak.fullname" . }}-http {{- with $service.annotations }} annotations: {{ toYaml . | indent 4 }} {{- end }} labels: app: {{ template "keycloak.name" . }} chart: {{ template "keycloak.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with $service.labels }} {{ toYaml . | indent 4 }} {{- end }} spec: type: {{ $service.type }} ports: - name: http port: {{ $service.port }} targetPort: http {{- if and (eq "NodePort" $service.type) $service.nodePort }} nodePort: {{ $service.nodePort }} {{- end }} protocol: TCP selector: app: {{ template "keycloak.name" . }} release: "{{ .Release.Name }}" <|endoftext|> # istio_bookinfo.yaml # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ################################################################################################## # This file defines the services, service accounts, and deployments for the Bookinfo sample. # # To apply all 4 Bookinfo services, their corresponding service accounts, and deployments: # # kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml # # Alternatively, you can deploy any resource separately: # # kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -l service=reviews # reviews Service # kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -l account=reviews # reviews ServiceAccount # kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -l app=reviews,version=v3 # reviews-v3 Deployment ################################################################################################## ################################################################################################## # Details service ################################################################################################## apiVersion: v1 kind: Service metadata: name: details labels: app: details service: details spec: ports: - port: 9080 name: http selector: app: details --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-details labels: account: details --- apiVersion: apps/v1 kind: Deployment metadata: name: details-v1 labels: app: details version: v1 spec: replicas: 1 selector: matchLabels: app: details version: v1 template: metadata: labels: app: details version: v1 spec: serviceAccountName: bookinfo-details containers: - name: details image: registry.istio.io/release/examples-bookinfo-details-v1:1.20.3 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 --- ################################################################################################## # Ratings service ################################################################################################## apiVersion: v1 kind: Service metadata: name: ratings labels: app: ratings service: ratings spec: ports: - port: 9080 name: http selector: app: ratings --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-ratings labels: account: ratings --- apiVersion: apps/v1 kind: Deployment metadata: name: ratings-v1 labels: app: ratings version: v1 spec: replicas: 1 selector: matchLabels: app: ratings version: v1 template: metadata: labels: app: ratings version: v1 spec: serviceAccountName: bookinfo-ratings containers: - name: ratings image: registry.istio.io/release/examples-bookinfo-ratings-v1:1.20.3 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 --- ################################################################################################## # Reviews service ################################################################################################## apiVersion: v1 kind: Service metadata: name: reviews labels: app: reviews service: reviews spec: ports: - port: 9080 name: http selector: app: reviews --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-reviews labels: account: reviews --- apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v1 labels: app: reviews version: v1 spec: replicas: 1 selector: matchLabels: app: reviews version: v1 template: metadata: labels: app: reviews version: v1 spec: serviceAccountName: bookinfo-reviews containers: - name: reviews image: registry.istio.io/release/examples-bookinfo-reviews-v1:1.20.3 imagePullPolicy: IfNotPresent env: - name: LOG_DIR value: "/tmp/logs" ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp - name: wlp-output mountPath: /opt/ibm/wlp/output volumes: - name: wlp-output emptyDir: {} - name: tmp emptyDir: {} --- apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v2 labels: app: reviews version: v2 spec: replicas: 1 selector: matchLabels: app: reviews version: v2 template: metadata: labels: app: reviews version: v2 spec: serviceAccountName: bookinfo-reviews containers: - name: reviews image: registry.istio.io/release/examples-bookinfo-reviews-v2:1.20.3 imagePullPolicy: IfNotPresent env: - name: LOG_DIR value: "/tmp/logs" ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp - name: wlp-output mountPath: /opt/ibm/wlp/output volumes: - name: wlp-output emptyDir: {} - name: tmp emptyDir: {} --- apiVersion: apps/v1 kind: Deployment metadata: name: reviews-v3 labels: app: reviews version: v3 spec: replicas: 1 selector: matchLabels: app: reviews version: v3 template: metadata: labels: app: reviews version: v3 spec: serviceAccountName: bookinfo-reviews containers: - name: reviews image: registry.istio.io/release/examples-bookinfo-reviews-v3:1.20.3 imagePullPolicy: IfNotPresent env: - name: LOG_DIR value: "/tmp/logs" ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp - name: wlp-output mountPath: /opt/ibm/wlp/output volumes: - name: wlp-output emptyDir: {} - name: tmp emptyDir: {} --- ################################################################################################## # Productpage services ################################################################################################## apiVersion: v1 kind: Service metadata: name: productpage labels: app: productpage service: productpage spec: ports: - port: 9080 name: http selector: app: productpage --- apiVersion: v1 kind: ServiceAccount metadata: name: bookinfo-productpage labels: account: productpage --- apiVersion: apps/v1 kind: Deployment metadata: name: productpage-v1 labels: app: productpage version: v1 spec: replicas: 1 selector: matchLabels: app: productpage version: v1 template: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/port: "9080" prometheus.io/path: "/metrics" labels: app: productpage version: v1 spec: serviceAccountName: bookinfo-productpage containers: - name: productpage image: registry.istio.io/release/examples-bookinfo-productpage-v1:1.20.3 imagePullPolicy: IfNotPresent ports: - containerPort: 9080 volumeMounts: - name: tmp mountPath: /tmp volumes: - name: tmp emptyDir: {} --- <|endoftext|> # cert_manager_deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "example-webhook.fullname" . }} labels: app: {{ include "example-webhook.name" . }} chart: {{ include "example-webhook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app: {{ include "example-webhook.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ include "example-webhook.name" . }} release: {{ .Release.Name }} spec: serviceAccountName: {{ include "example-webhook.fullname" . }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - --secure-port=8443 - --tls-cert-file=/tls/tls.crt - --tls-private-key-file=/tls/tls.key securityContext: runAsNonRoot: true env: - name: GROUP_NAME value: {{ .Values.groupName | quote }} ports: - name: https containerPort: 8443 protocol: TCP livenessProbe: httpGet: scheme: HTTPS path: /healthz port: https readinessProbe: httpGet: scheme: HTTPS path: /healthz port: https volumeMounts: - name: certs mountPath: /tls readOnly: true {{- with .Values.resources }} resources: {{- toYaml . | nindent 12 }} {{- end }} volumes: - name: certs secret: secretName: {{ include "example-webhook.servingCertificate" . }} {{- with .Values.nodeSelector }} nodeSelector: {{- range $key, $value := . }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} <|endoftext|> # helm_charts_node-exporter-serviceaccount.yaml {{- if and .Values.nodeExporter.enabled .Values.serviceAccounts.nodeExporter.create -}} apiVersion: v1 kind: ServiceAccount metadata: labels: {{- include "prometheus.nodeExporter.labels" . | nindent 4 }} name: {{ template "prometheus.serviceAccountName.nodeExporter" . }} {{ include "prometheus.namespace" . | indent 2 }} annotations: {{ toYaml .Values.serviceAccounts.nodeExporter.annotations | indent 4 }} {{- end -}} <|endoftext|> # istio_43453.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 43359 releaseNotes: - | **Added** support to control trace id length on Zipkin tracing provider. <|endoftext|> # istio_wasm-secret.yaml apiVersion: release-notes/v2 kind: feature area: extensibility issue: [] releaseNotes: - | **Added** support for WasmPlugin pulling image from private repo with `imagePullSecret`. <|endoftext|> # helm_charts_tracingservice.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: tracingservices.getambassador.io labels: app.kubernetes.io/name: ambassador annotations: "helm.sh/hook": crd-install spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: tracingservices singular: tracingservice kind: TracingService <|endoftext|> # istio_zipkin.yaml apiVersion: apps/v1 kind: Deployment metadata: name: zipkin namespace: istio-system labels: app: zipkin spec: selector: matchLabels: app: zipkin template: metadata: labels: app: zipkin sidecar.istio.io/inject: "false" spec: containers: - name: zipkin image: docker.io/openzipkin/zipkin-slim:3.4.0 env: - name: STORAGE_METHOD value: "mem" readinessProbe: httpGet: path: /health port: 9411 initialDelaySeconds: 5 periodSeconds: 5 --- apiVersion: v1 kind: Service metadata: name: tracing namespace: istio-system labels: app: zipkin spec: type: ClusterIP ports: - name: http-query port: 80 protocol: TCP targetPort: 9411 selector: app: zipkin --- apiVersion: v1 kind: Service metadata: labels: name: zipkin name: zipkin namespace: istio-system spec: ports: - port: 9411 targetPort: 9411 name: http-query selector: app: zipkin <|endoftext|> # flux_source_secret-ca-pem.yaml --- apiVersion: v1 kind: Secret metadata: name: notation-config namespace: my-namespace stringData: ca.pem: ca-data-pem trustpolicy.json: | { "version": "1.0", "trustPolicies": [ { "name": "fluxcd.io", "registryScopes": [ "*" ], "signatureVerification": { "level" : "strict" }, "trustStores": [ "ca:fluxcd.io" ], "trustedIdentities": [ "*" ] } ] } <|endoftext|> # kube_prometheus_prometheus-frontend-role.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: prometheus-frontend namespace: default rules: - apiGroups: [""] resources: - nodes - services - endpoints - pods verbs: ["get", "list", "watch"] - apiGroups: [""] resources: - configmaps verbs: ["get"] <|endoftext|> # istio_fix-47270.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue where the External Control Plane Analyzer may not work in some remote control plane setups. <|endoftext|> # helm_charts_data-serviceaccount.yaml {{- if .Values.serviceAccounts.data.create }} apiVersion: v1 kind: ServiceAccount metadata: labels: app: {{ template "elasticsearch.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} component: "{{ .Values.data.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "elasticsearch.data.fullname" . }} {{- end }} <|endoftext|> # k8s_docs_configmap-pod.yaml kind: ConfigMap apiVersion: v1 metadata: name: example-config data: example.property.1: hello example.property.2: world --- apiVersion: v1 kind: Pod metadata: name: configmap-pod spec: containers: - name: configmap-redis image: redis:3.0-nanoserver env: - name: EXAMPLE_PROPERTY_1 valueFrom: configMapKeyRef: name: example-config key: example.property.1 - name: EXAMPLE_PROPERTY_2 valueFrom: configMapKeyRef: name: example-config key: example.property.2 nodeSelector: kubernetes.io/os: windows <|endoftext|> # helm_charts_slave-svc.yaml {{- if .Values.replication.enabled }} apiVersion: v1 kind: Service metadata: name: {{ template "slave.fullname" . }} labels: app: "{{ template "mariadb.name" . }}" chart: "{{ template "mariadb.chart" . }}" component: "slave" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} {{- if or .Values.metrics.enabled .Values.slave.service.annotations }} annotations: {{- if .Values.metrics.enabled }} {{ toYaml .Values.metrics.annotations | indent 4 }} {{- end }} {{- if .Values.slave.service.annotations }} {{ toYaml .Values.slave.service.annotations | indent 4 }} {{- end }} {{- end }} spec: type: {{ .Values.service.type }} {{- if eq .Values.service.type "ClusterIP" }} {{- if .Values.service.clusterIp }} clusterIP: {{ .Values.service.clusterIp.slave }} {{- end }} {{- end }} ports: - name: mysql port: {{ .Values.service.port }} targetPort: mysql {{- if (eq .Values.service.type "NodePort") }} {{- if .Values.service.nodePort }} {{- if .Values.service.nodePort.slave }} nodePort: {{ .Values.service.nodePort.slave }} {{- end }} {{- end }} {{- end }} {{- if .Values.metrics.enabled }} - name: metrics port: 9104 targetPort: metrics {{- end }} selector: app: "{{ template "mariadb.name" . }}" component: "slave" release: "{{ .Release.Name }}" {{- end }} <|endoftext|> # istio_local-rate-limit-service.yaml # This example shows how to use Istio local rate limiting with descriptors to limit by path. # This uses the base book-info demo and adds rate limiting by path, specifically rate limiting the product page # to 10 requests per minute, and the overall fdqn will be able to accept 100 requests per minute. apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: filter-local-ratelimit-svc namespace: istio-system spec: workloadSelector: labels: app: productpage configPatches: - applyTo: HTTP_FILTER match: context: SIDECAR_INBOUND listener: filterChain: filter: name: "envoy.filters.network.http_connection_manager" patch: operation: INSERT_BEFORE value: name: envoy.filters.http.local_ratelimit typed_config: "@type": type.googleapis.com/udpa.type.v1.TypedStruct type_url: type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit value: stat_prefix: http_local_rate_limiter - applyTo: HTTP_ROUTE match: context: SIDECAR_INBOUND routeConfiguration: vhost: name: "inbound|http|8000" route: action: ANY patch: operation: MERGE value: route: rate_limits: - actions: - remote_address: {} - actions: - header_value_match: descriptor_value: "productpage" expect_match: true headers: - name: :path string_match: prefix: /productpage ignore_case: true typed_per_filter_config: envoy.filters.http.local_ratelimit: "@type": type.googleapis.com/envoy.extensions.filters.http.local_ratelimit.v3.LocalRateLimit stat_prefix: test_enabled token_bucket: max_tokens: 100 tokens_per_fill: 100 fill_interval: 60s enable_x_ratelimit_headers: DRAFT_VERSION_03 # This adds the ability to see headers for how many tokens are left in the bucket, how often the bucket refills, and what is the token bucket max. filter_enabled: runtime_key: test_enabled default_value: numerator: 100 denominator: HUNDRED filter_enforced: runtime_key: test_enabled default_value: numerator: 100 denominator: HUNDRED response_headers_to_add: - append: false header: key: x-local-rate-limit value: "true" descriptors: - entries: - key: header_match value: productpage token_bucket: max_tokens: 10 tokens_per_fill: 10 fill_interval: 60s <|endoftext|> # helm_charts_ui-deployment.yaml {{- if .Values.ui.enabled }} apiVersion: extensions/v1beta1 kind: Deployment metadata: name: {{ template "kubeless.fullname" . }}-ui labels: {{ include "labels.standard" . | indent 4 }} component: ui spec: replicas: {{ .Values.controller.deployment.replicaCount }} template: metadata: labels: component: ui app: {{ template "kubeless.name" . }} release: {{ .Release.Name | quote }} spec: {{- if .Values.rbac.create }} serviceAccountName: kubeless-ui {{- end }} containers: - name: ui image: "{{ .Values.ui.deployment.ui.image.repository }}:{{ .Values.ui.deployment.ui.image.tag }}" imagePullPolicy: {{ .Values.ui.deployment.ui.image.pullPolicy }} ports: - containerPort: 3000 name: http protocol: TCP readinessProbe: httpGet: path: / port: http initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: httpGet: path: / port: http initialDelaySeconds: 10 periodSeconds: 20 - name: proxy image: "{{ .Values.ui.deployment.proxy.image.repository }}:{{ .Values.ui.deployment.proxy.image.tag }}" imagePullPolicy: {{ .Values.ui.deployment.proxy.image.pullPolicy }} args: - proxy - "-p" - "8080" {{- end }} <|endoftext|> # k8s_examples_newrelic-config-template.yaml apiVersion: v1 kind: Secret metadata: name: newrelic-config type: Opaque data: config: {{config_data}} <|endoftext|> # istio_istiod-webhook-failure-policy.golden.yaml # Created if this is not a remote istiod, OR if it is and is also a config cluster apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: istio-validator-istio-system labels: app: istiod release: istiod istio: istiod istio.io/rev: "default" app.kubernetes.io/name: "istiod" app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "istiod" app.kubernetes.io/part-of: "istio" app.kubernetes.io/version: "1.0.0" helm.sh/chart: istiod-1.0.0 webhooks: # Webhook handling per-revision validation. Mostly here so we can determine whether webhooks # are rejecting invalid configs on a per-revision basis. - name: rev.validation.istio.io clientConfig: # Should change from base but cannot for API compat service: name: istiod namespace: istio-system path: "/validate" rules: - operations: - CREATE - UPDATE apiGroups: - security.istio.io - networking.istio.io - telemetry.istio.io - extensions.istio.io apiVersions: - "*" resources: - "*" failurePolicy: Fail sideEffects: None admissionReviewVersions: ["v1"] objectSelector: matchExpressions: - key: istio.io/rev operator: In values: - "default" <|endoftext|> # argocd_source_keda-unknown.yaml apiVersion: keda.sh/v1alpha1 kind: ScaledJob metadata: annotations: finalizers: - finalizer.keda.sh name: keda namespace: keda resourceVersion: '158276' uid: 9a6b7c4f-c35b-46ca-a801-ee5cb515ce0a spec: jobTargetRef: backoffLimit: 1 template: metadata: creationTimestamp: null spec: containers: - command: - sleep - '10' envFrom: - secretRef: name: scaledjob-conditions-test-secret image: docker.io/library/busybox imagePullPolicy: IfNotPresent name: sleeper resources: {} restartPolicy: Never maxReplicaCount: 5 pollingInterval: 5 rollout: {} scalingStrategy: {} triggers: - metadata: hostFromEnv: RabbitApiHost mode: QueueLength queueName: hello value: '1' type: rabbitmq - metadata: hostFromEnv: RabbitApiHost mode: QueueLength queueName: not-existing-queue value: '1' type: rabbitmq status: authenticationsTypes: '' conditions: - message: Some triggers defined in ScaledJob are not working correctly reason: PartialTriggerError status: Unknown type: Ready - message: Scaling is performed because triggers are active reason: ScalerActive status: 'True' type: Active - status: Unknown type: Fallback - status: 'False' type: Paused triggersTypes: rabbitmq <|endoftext|> # istio_30200.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 30200 releaseNotes: - | **Added** analysis interval to reduce the wasteful re-runs of analyzer <|endoftext|> # helm_charts_role-binding.yaml {{ if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/{{ required "A valid .Values.rbac.apiVersion entry required!" .Values.rbac.apiVersion }} kind: RoleBinding metadata: name: {{ template "drone.fullname" . }} labels: app: {{ template "drone.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ template "drone.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "drone.serviceAccountName" . }} namespace: {{ .Release.Namespace }} {{ end }} <|endoftext|> # argocd_source_argocd-dex-server-network-policy.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: labels: app.kubernetes.io/name: argocd-dex-server app.kubernetes.io/part-of: argocd app.kubernetes.io/component: dex-server name: argocd-dex-server-network-policy spec: podSelector: matchLabels: app.kubernetes.io/name: argocd-dex-server policyTypes: - Ingress ingress: - from: - podSelector: matchLabels: app.kubernetes.io/name: argocd-server ports: - protocol: TCP port: 5556 - protocol: TCP port: 5557 - from: - namespaceSelector: { } ports: - port: 5558 protocol: TCP <|endoftext|> # argocd_source_healthy_servingActiveService.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "1" clusterName: "" creationTimestamp: 2019-01-22T16:52:54Z generation: 1 labels: app.kubernetes.io/instance: guestbook-default ksonnet.io/component: guestbook-ui name: ks-guestbook-ui namespace: default resourceVersion: "153353" selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/ks-guestbook-ui uid: 29802403-1e66-11e9-a6a4-025000000001 spec: minReadySeconds: 30 replicas: 1 selector: matchLabels: app: ks-guestbook-ui strategy: blueGreen: activeService: ks-guestbook-ui-active previewService: ks-guestbook-ui-preview type: BlueGreenUpdate template: metadata: creationTimestamp: null labels: app: ks-guestbook-ui spec: containers: - image: quay.io/argoprojlabs/argocd-e2e-container:0.2 name: ks-guestbook-ui ports: - containerPort: 80 resources: {} status: availableReplicas: 1 blueGreen: activeSelector: dc689d967 previewSelector: "" conditions: - lastTransitionTime: 2019-01-24T09:51:02Z lastUpdateTime: 2019-01-24T09:51:02Z message: Rollout is serving traffic from the active service. reason: Available status: "True" type: Available currentPodHash: dc689d967 observedGeneration: 77646c9d4c readyReplicas: 1 replicas: 1 updatedReplicas: 1 <|endoftext|> # istio_analyze-list-type.yaml apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: alpha spec: selector: istio: ingressgateway servers: - port: number: 80 name: tcp protocol: TCP hosts: - "foo.bar" --- apiVersion: v1 kind: List items: - apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: beta-l spec: selector: istio: ingressgateway servers: - port: number: 80 name: tcp protocol: TCP hosts: - "foo.bar" - apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: alpha-l spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - "foo.bar" <|endoftext|> # istio_41912.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Fixed** `istioctl install` failed when specifying `--revision default`. - | **Fixed** `istioctl verify-install` inconsistent behavior between `--revision` is not specified and specified with `default`. <|endoftext|> # helm_charts_ingress-manager.yaml {{- if .Values.enterprise.enabled }} {{- if .Values.manager.ingress.enabled -}} {{- $serviceName := include "kong.fullname" . -}} {{- $servicePort := include "kong.ingress.servicePort" .Values.manager -}} {{- $path := .Values.manager.ingress.path -}} {{- $tls := .Values.manager.ingress.tls -}} {{- $hostname := .Values.manager.ingress.hostname -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ template "kong.fullname" . }}-manager labels: {{- include "kong.metaLabels" . | nindent 4 }} annotations: {{- range $key, $value := .Values.manager.ingress.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: - host: {{ $hostname }} http: paths: - path: {{ $path }} backend: serviceName: {{ $serviceName }}-manager servicePort: {{ $servicePort }} {{- if $tls }} tls: - hosts: - {{ $hostname }} secretName: {{ $tls }} {{- end -}} {{- end -}} {{- end -}} <|endoftext|> # istio_dual-stack-alpha.yaml apiVersion: release-notes/v2 kind: feature area: installation # issue is a list of GitHub issues resolved in this note. issue: - 47998 releaseNotes: - | **Promoted** Istio dual-stack support to Alpha <|endoftext|> # istio_hello-openshift.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello namespace: test-ns spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_cluster-specific-generate.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** a `--cluster-specific` flag to `istioctl manifest generate`. When this is set, the current cluster context will be used to determine dynamic default settings, mirroring `istioctl install`. <|endoftext|> # istio_remove-istio-io-rev-label.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 33447 releaseNotes: - | **Removed** the `istio.io/rev` label injected on pods and replaced it with the `istio.io/injectedBy` label. <|endoftext|> # argocd_source_Chart.yaml apiVersion: v2 name: helm-prometheus-operator type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) version: 0.1.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. appVersion: "1.0" <|endoftext|> # k8s_docs_redis-slave-service.yaml apiVersion: v1 kind: Service metadata: name: redis-slave labels: app: redis role: slave tier: backend spec: ports: - port: 6379 selector: app: redis role: slave tier: backend <|endoftext|> # helm_charts_secret-webhook.yaml {{- if not .Values.vcsSecretName }} apiVersion: v1 kind: Secret metadata: name: {{ template "atlantis.fullname" . }}-webhook labels: app: {{ template "atlantis.name" . }} chart: {{ template "atlantis.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: {{- if .Values.github }} github_token: {{ required "github.token is required if github configuration is specified." .Values.github.token | b64enc }} github_secret: {{ required "github.secret is required if github configuration is specified." .Values.github.secret | b64enc }} {{- end}} {{- if .Values.gitlab }} gitlab_token: {{ required "gitlab.token is required if gitlab configuration is specified." .Values.gitlab.token | b64enc }} gitlab_secret: {{ required "gitlab.secret is required if gitlab configuration is specified." .Values.gitlab.secret | b64enc }} {{- end}} {{- if .Values.bitbucket }} bitbucket_token: {{ required "bitbucket.token is required if bitbucket configuration is specified." .Values.bitbucket.token | b64enc }} {{- if .Values.bitbucket.baseURL }} bitbucket_secret: {{ required "bitbucket.secret is required if bitbucket.baseURL is specified." .Values.bitbucket.secret | b64enc }} {{- end}} {{- end }} {{- end }} <|endoftext|> # argocd_source_deployment-resume.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" creationTimestamp: "2021-09-21T22:35:20Z" generation: 3 name: nginx-deploy namespace: default spec: progressDeadlineSeconds: 600 replicas: 3 revisionHistoryLimit: 10 selector: matchLabels: app: nginx strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: app: nginx spec: containers: - image: nginx:latest imagePullPolicy: Always name: nginx resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: availableReplicas: 3 conditions: - lastTransitionTime: "2021-09-21T22:35:31Z" lastUpdateTime: "2021-09-21T22:35:31Z" message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: "True" type: Available - lastTransitionTime: "2021-09-21T22:38:10Z" lastUpdateTime: "2021-09-21T22:38:10Z" message: ReplicaSet "nginx-deploy-55649fd747" has successfully progressed. reason: NewReplicaSetAvailable status: "True" type: Progressing observedGeneration: 3 readyReplicas: 3 replicas: 3 updatedReplicas: 3 <|endoftext|> # k8s_docs_fluentd-daemonset-update.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: fluentd-elasticsearch namespace: kube-system labels: k8s-app: fluentd-logging spec: selector: matchLabels: name: fluentd-elasticsearch updateStrategy: type: RollingUpdate rollingUpdate: maxUnavailable: 1 template: metadata: labels: name: fluentd-elasticsearch spec: tolerations: # これらのTolerationはコントロールプレーンノード上でDaemonSetを実行できるようにするためのものです # コントロールプレーンノードでPodを実行すべきではない場合は、これらを削除してください - key: node-role.kubernetes.io/control-plane operator: Exists effect: NoSchedule - key: node-role.kubernetes.io/master operator: Exists effect: NoSchedule containers: - name: fluentd-elasticsearch image: quay.io/fluentd_elasticsearch/fluentd:v5.0.1 resources: limits: memory: 200Mi requests: cpu: 100m memory: 200Mi volumeMounts: - name: varlog mountPath: /var/log - name: varlibdockercontainers mountPath: /var/lib/docker/containers readOnly: true terminationGracePeriodSeconds: 30 volumes: - name: varlog hostPath: path: /var/log - name: varlibdockercontainers hostPath: path: /var/lib/docker/containers <|endoftext|> # helm_charts_data-pdb.yaml {{- if .Values.data.podDisruptionBudget.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: labels: app: {{ template "elasticsearch.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} component: "{{ .Values.data.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "elasticsearch.data.fullname" . }} spec: {{- if .Values.data.podDisruptionBudget.minAvailable }} minAvailable: {{ .Values.data.podDisruptionBudget.minAvailable }} {{- end }} {{- if .Values.data.podDisruptionBudget.maxUnavailable }} maxUnavailable: {{ .Values.data.podDisruptionBudget.maxUnavailable }} {{- end }} selector: matchLabels: app: {{ template "elasticsearch.name" . }} component: "{{ .Values.data.name }}" release: {{ .Release.Name }} {{- end }} <|endoftext|> # istio_41431.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [] # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Fixed** `istio-clean-iptables` to properly cleanup when InboundInterceptionMode is TPROXY. <|endoftext|> # istio_traffic-params.yaml apiVersion: apps/v1 kind: Deployment metadata: name: traffic spec: replicas: 7 selector: matchLabels: app: traffic template: metadata: labels: app: traffic spec: containers: - name: traffic image: "fake.docker.io/google-samples/traffic-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # istio_ambient-ingress-remotes.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue where ingress gateways in ambient multi-cluster did not route requests to exposed remote backends. Also, a new feature flag `AMBIENT_ENABLE_MULTI_NETWORK_INGRESS` has been added and it's `true` by default. If the user wants to keep the old behaviour, it can be set to `false`. <|endoftext|> # istio_47681.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue where sometimes the network of waypoint was not properly configured. <|endoftext|> # kube_prometheus_alertmanager-prometheusRule.yaml apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: labels: app.kubernetes.io/component: alert-router app.kubernetes.io/instance: main app.kubernetes.io/name: alertmanager app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.31.1 prometheus: k8s role: alert-rules name: alertmanager-main-rules namespace: monitoring spec: groups: - name: alertmanager.rules rules: - alert: AlertmanagerFailedReload annotations: description: Configuration has failed to load for {{ $labels.namespace }}/{{ $labels.pod}}. runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagerfailedreload summary: Reloading an Alertmanager configuration has failed. expr: | # Without max_over_time, failed scrapes could create false negatives, see # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. max_over_time(alertmanager_config_last_reload_successful{job="alertmanager-main",container="alertmanager",namespace="monitoring"}[5m]) == 0 for: 10m labels: severity: critical - alert: AlertmanagerMembersInconsistent annotations: description: Alertmanager {{ $labels.namespace }}/{{ $labels.pod}} has only found {{ $value }} members of the {{$labels.job}} cluster. runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagermembersinconsistent summary: A member of an Alertmanager cluster has not found all other cluster members. expr: | # Without max_over_time, failed scrapes could create false negatives, see # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. max_over_time(alertmanager_cluster_members{job="alertmanager-main",container="alertmanager",namespace="monitoring"}[5m]) < on (namespace,service) group_left count by (namespace,service) (max_over_time(alertmanager_cluster_members{job="alertmanager-main",container="alertmanager",namespace="monitoring"}[5m])) for: 15m labels: severity: critical - alert: AlertmanagerFailedToSendAlerts annotations: description: Alertmanager {{ $labels.namespace }}/{{ $labels.pod}} failed to send {{ $value | humanizePercentage }} of notifications to {{ $labels.integration }}. runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagerfailedtosendalerts summary: An Alertmanager instance failed to send notifications. expr: | ( rate(alertmanager_notifications_failed_total{job="alertmanager-main",container="alertmanager",namespace="monitoring"}[15m]) / ignoring (reason) group_left rate(alertmanager_notifications_total{job="alertmanager-main",container="alertmanager",namespace="monitoring"}[15m]) ) > 0.01 for: 5m labels: severity: warning - alert: AlertmanagerClusterFailedToSendAlerts annotations: description: The minimum notification failure rate to {{ $labels.integration }} sent from any instance in the {{$labels.job}} cluster is {{ $value | humanizePercentage }}. runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagerclusterfailedtosendalerts summary: All Alertmanager instances in a cluster failed to send notifications to a critical integration. expr: | min by (namespace,service, integration) ( rate(alertmanager_notifications_failed_total{job="alertmanager-main",container="alertmanager",namespace="monitoring", integration=~`.*`}[15m]) / ignoring (reason) group_left rate(alertmanager_notifications_total{job="alertmanager-main",container="alertmanager",namespace="monitoring", integration=~`.*`}[15m]) > 0 ) > 0.01 for: 5m labels: severity: critical - alert: AlertmanagerClusterFailedToSendAlerts annotations: description: The minimum notification failure rate to {{ $labels.integration }} sent from any instance in the {{$labels.job}} cluster is {{ $value | humanizePercentage }}. runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagerclusterfailedtosendalerts summary: All Alertmanager instances in a cluster failed to send notifications to a non-critical integration. expr: | min by (namespace,service, integration) ( rate(alertmanager_notifications_failed_total{job="alertmanager-main",container="alertmanager",namespace="monitoring", integration!~`.*`}[15m]) / ignoring (reason) group_left rate(alertmanager_notifications_total{job="alertmanager-main",container="alertmanager",namespace="monitoring", integration!~`.*`}[15m]) > 0 ) > 0.01 for: 5m labels: severity: warning - alert: AlertmanagerConfigInconsistent annotations: description: Alertmanager instances within the {{$labels.job}} cluster have different configurations. runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagerconfiginconsistent summary: Alertmanager instances within the same cluster have different configurations. expr: | count by (namespace,service) ( count_values by (namespace,service) ("config_hash", alertmanager_config_hash{job="alertmanager-main",container="alertmanager",namespace="monitoring"}) ) != 1 for: 20m labels: severity: critical - alert: AlertmanagerClusterDown annotations: description: '{{ $value | humanizePercentage }} of Alertmanager instances within the {{$labels.job}} cluster have been up for less than half of the last 5m.' runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagerclusterdown summary: Half or more of the Alertmanager instances within the same cluster are down. expr: | ( count by (namespace,service) ( avg_over_time(up{job="alertmanager-main",container="alertmanager",namespace="monitoring"}[5m]) < 0.5 ) / count by (namespace,service) ( up{job="alertmanager-main",container="alertmanager",namespace="monitoring"} ) ) >= 0.5 for: 5m labels: severity: critical - alert: AlertmanagerClusterCrashlooping annotations: description: '{{ $value | humanizePercentage }} of Alertmanager instances within the {{$labels.job}} cluster have restarted at least 5 times in the last 10m.' runbook_url: https://runbooks.prometheus-operator.dev/runbooks/alertmanager/alertmanagerclustercrashlooping summary: Half or more of the Alertmanager instances within the same cluster are crashlooping. expr: | ( count by (namespace,service) ( changes(process_start_time_seconds{job="alertmanager-main",container="alertmanager",namespace="monitoring"}[10m]) > 4 ) / count by (namespace,service) ( up{job="alertmanager-main",container="alertmanager",namespace="monitoring"} ) ) >= 0.5 for: 5m labels: severity: critical <|endoftext|> # argocd_source_notfound.yaml apiVersion: core.humio.com/v1alpha1 kind: HumioParser metadata: creationTimestamp: '2022-12-08T02:03:07Z' finalizers: - core.humio.com/finalizer generation: 1 labels: app.kubernetes.io/instance: humio-deploy name: example-1-parser namespace: humio resourceVersion: '10768079' uid: 5641590d-b8e9-42e8-a544-d0673bf0e1a2 spec: managedClusterName: example-humiocluster name: example-1 parserScript: > /(?\S+)\s+-\s+(?\S+)\s+\[(?<@timestamp>.*)\]\s+"((?\S+)\s+(?\S+)?\s+(?\S+)?|-)"\s+(?\d+)\s+(?\S+)\s+"(?[^"]*)"\s+"(?[^"]*)"\s*(?(\d|\.)+)?/ | parseTimestamp(format="dd/MMM/yyyy:HH:mm:ss Z", field=@timestamp) repositoryName: example-repo tagFields: - statuscode - client testData: - >- 4.4.4.4 - - [12/Dec/2015:18:25:11 +0100] "GET /administrator/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" - >- 4.4.4.4 - - [12/Dec/2015:18:25:11 +0100] "POST /administrator/index.php HTTP/1.1" 200 4494 "http://github.com/administrator/" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" - >- 4.4.4.4 - - [12/Dec/2015:18:31:08 +0100] "GET /administrator/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-" status: state: NotFound <|endoftext|> # istio_example-app.yaml apiVersion: apps/v1 kind: Deployment metadata: name: helloworld-v1 labels: app: helloworld version: v1 spec: replicas: 1 selector: matchLabels: app: helloworld version: v1 template: metadata: annotations: sidecar.istio.io/bootstrapOverride: "istio-custom-bootstrap-config" labels: app: helloworld version: v1 spec: containers: - name: helloworld image: registry.istio.io/release/examples-helloworld-v1 resources: requests: cpu: "100m" imagePullPolicy: IfNotPresent ports: - containerPort: 5000 <|endoftext|> # istio_mcs-service-discovery.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 29384 releaseNotes: - | **Added** experimental support for controlling service endpoint discoverability with Kubernetes Multi-Cluster Services (MCS). This feature is off by default, but can be enabled by setting the `ENABLE_MCS_SERVICE_DISCOVERY` flag in Istio. When enabled, Istio will make service endpoints only discoverable from within the same cluster by default. To make the service endpoints within a cluster discoverable throughout the mesh, a `ServiceExport` CR must be created within the same cluster as the service endpoints. this process can be automated by enabling the Istio flag `ENABLE_MCS_AUTOEXPORT`. With this enabled, Istio will automatically create `ServiceExport` in all clusters for each service. <|endoftext|> # istio_env-workload-rsa-keysize.yaml apiVersion: release-notes/v2 kind: feature area: security releaseNotes: - | **Added** an environment variable for configuring the RSA key size of workload certificates. <|endoftext|> # helm_source_master-statefulset.yaml apiVersion: apps/v1beta1 kind: StatefulSet metadata: name: {{ template "master.fullname" . }} labels: app: "{{ template "mariadb.name" . }}" chart: {{ template "mariadb.chart" . }} component: "master" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: serviceName: "{{ template "master.fullname" . }}" replicas: 1 updateStrategy: type: RollingUpdate template: metadata: labels: app: "{{ template "mariadb.name" . }}" component: "master" release: "{{ .Release.Name }}" chart: {{ template "mariadb.chart" . }} spec: securityContext: runAsUser: 1001 fsGroup: 1001 {{- if eq .Values.master.antiAffinity "hard" }} affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - topologyKey: "kubernetes.io/hostname" labelSelector: matchLabels: app: "{{ template "mariadb.name" . }}" release: "{{ .Release.Name }}" {{- else if eq .Values.master.antiAffinity "soft" }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 podAffinityTerm: topologyKey: kubernetes.io/hostname labelSelector: matchLabels: app: "{{ template "mariadb.name" . }}" release: "{{ .Release.Name }}" {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }} - name: {{ . }} {{- end}} {{- end }} containers: - name: "mariadb" image: {{ template "mariadb.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }} env: - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-root-password {{- if .Values.db.user }} - name: MARIADB_USER value: "{{ .Values.db.user }}" - name: MARIADB_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-password {{- end }} - name: MARIADB_DATABASE value: "{{ .Values.db.name }}" {{- if .Values.replication.enabled }} - name: MARIADB_REPLICATION_MODE value: "master" - name: MARIADB_REPLICATION_USER value: "{{ .Values.replication.user }}" - name: MARIADB_REPLICATION_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-replication-password {{- end }} ports: - name: mysql containerPort: 3306 {{- if .Values.master.livenessProbe.enabled }} livenessProbe: exec: command: ["sh", "-c", "exec mysqladmin status -uroot -p$MARIADB_ROOT_PASSWORD"] initialDelaySeconds: {{ .Values.master.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.master.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.master.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.master.livenessProbe.successThreshold }} failureThreshold: {{ .Values.master.livenessProbe.failureThreshold }} {{- end }} {{- if .Values.master.readinessProbe.enabled }} readinessProbe: exec: command: ["sh", "-c", "exec mysqladmin status -uroot -p$MARIADB_ROOT_PASSWORD"] initialDelaySeconds: {{ .Values.master.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.master.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.master.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.master.readinessProbe.successThreshold }} failureThreshold: {{ .Values.master.readinessProbe.failureThreshold }} {{- end }} resources: {{ toYaml .Values.master.resources | indent 10 }} volumeMounts: - name: data mountPath: /bitnami/mariadb - name: custom-init-scripts mountPath: /docker-entrypoint-initdb.d {{- if .Values.master.config }} - name: config mountPath: /opt/bitnami/mariadb/conf/my.cnf subPath: my.cnf {{- end }} {{- if .Values.metrics.enabled }} - name: metrics image: {{ template "metrics.image" . }} imagePullPolicy: {{ .Values.metrics.image.pullPolicy | quote }} env: - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-root-password command: [ 'sh', '-c', 'DATA_SOURCE_NAME="root:$MARIADB_ROOT_PASSWORD@(localhost:3306)/" /bin/mysqld_exporter' ] ports: - name: metrics containerPort: 9104 livenessProbe: httpGet: path: /metrics port: metrics initialDelaySeconds: 15 timeoutSeconds: 5 readinessProbe: httpGet: path: /metrics port: metrics initialDelaySeconds: 5 timeoutSeconds: 1 resources: {{ toYaml .Values.metrics.resources | indent 10 }} {{- end }} volumes: {{- if .Values.master.config }} - name: config configMap: name: {{ template "master.fullname" . }} {{- end }} - name: custom-init-scripts configMap: name: {{ template "master.fullname" . }}-init-scripts {{- if .Values.master.persistence.enabled }} volumeClaimTemplates: - metadata: name: data labels: app: "{{ template "mariadb.name" . }}" chart: {{ template "mariadb.chart" . }} component: "master" release: {{ .Release.Name | quote }} heritage: {{ .Release.Service | quote }} spec: accessModes: {{- range .Values.master.persistence.accessModes }} - {{ . | quote }} {{- end }} resources: requests: storage: {{ .Values.master.persistence.size | quote }} {{- if .Values.master.persistence.storageClass }} {{- if (eq "-" .Values.master.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: {{ .Values.master.persistence.storageClass | quote }} {{- end }} {{- end }} {{- else }} - name: "data" emptyDir: {} {{- end }} <|endoftext|> # istio_fix-42675.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: bug-fix # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: traffic-management # issue is a list of GitHub issues resolved in this note. # If issue is not in the current repo, specify its full URL instead. issue: - 42675 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - |- **Fixed** a bug that caused the Namespace's network label to have a higher priority than the Pod's network label. <|endoftext|> # kube_prometheus_prometheusOperator-serviceMonitor.yaml apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.90.1 name: prometheus-operator namespace: monitoring spec: endpoints: - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token honorLabels: true port: https scheme: https tlsConfig: insecureSkipVerify: true selector: matchLabels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.90.1 <|endoftext|> # helm_charts_custom-config-configmap.yaml apiVersion: v1 data: {{ .Values.settings.custom_monitor_definitions | toYaml | indent 2 }} kind: ConfigMap metadata: name: {{ include "node-problem-detector.customConfig" . }} labels: app.kubernetes.io/name: {{ include "node-problem-detector.name" . }} helm.sh/chart: {{ include "node-problem-detector.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} <|endoftext|> # istio_44002.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 44002 releaseNotes: - | **Fixed** `istioctl experimental revision describe` warning gateway is not enabled when gateway exists. - | **Fixed** `istioctl experimental revision describe` has incorrect number of egress gateways. <|endoftext|> # istio_44293.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** directory support for `istioctl validate`. Now, the `-f` flag accepts both file paths and directory paths. <|endoftext|> # istio_sidecar-pick-best-service-namespace.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [] releaseNotes: - | **Improved** sidecar proxy service namespace selection. When configuring sidecar proxies if a hostname exists in multiple namespaces, Istio now prefers Kubernetes services and falls back to the oldest non-Kubernetes service (e.g. `ServiceEntry`) by creation time. Previously, the first visible namespace alphabetically was chosen. upgradeNotes: - title: Sidecar proxy service namespace selection changed content: | When configuring sidecar proxies if a hostname exists in multiple namespaces, Istio now prefers Kubernetes services and falls back to the oldest non-Kubernetes service by creation time. Previously, the first visible namespace alphabetically was chosen. This may cause traffic to route to a different service instance if you have the same hostname across multiple namespaces with mixed service types (e.g. a Kubernetes service and a `ServiceEntry`). If this is not desired, set the `PILOT_SIDECAR_PICK_BEST_SERVICE_NAMESPACE` environment variable to `false` in Istiod, or use `compatibilityVersion` 1.28 or earlier to restore the previous behavior. <|endoftext|> # istio_40578.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 40577 releaseNotes: - | **Fixed** an issue when deleting a custom gateway using an Istio Operator custom resource, other gateways are restarted. <|endoftext|> # flux_source_source-git-tag.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: GitRepository metadata: name: podinfo namespace: flux-system spec: interval: 1m0s ref: tag: test url: https://github.com/stefanprodan/podinfo <|endoftext|> # k8s_examples_policies.yaml apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: privileged spec: fsGroup: rule: RunAsAny privileged: true runAsUser: rule: RunAsAny seLinux: rule: RunAsAny supplementalGroups: rule: RunAsAny volumes: - '*' allowedCapabilities: - '*' hostPID: true hostIPC: true hostNetwork: true hostPorts: - min: 1 max: 65536 --- apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: restricted spec: privileged: false fsGroup: rule: RunAsAny runAsUser: rule: MustRunAsNonRoot seLinux: rule: RunAsAny supplementalGroups: rule: RunAsAny volumes: - 'emptyDir' - 'secret' - 'downwardAPI' - 'configMap' - 'persistentVolumeClaim' - 'projected' hostPID: false hostIPC: false hostNetwork: false <|endoftext|> # k8s_docs_job.yaml apiVersion: batch/v1 kind: Job metadata: name: job-wq-1 spec: completions: 8 parallelism: 2 template: metadata: name: job-wq-1 spec: containers: - name: c image: gcr.io//job-wq-1 env: - name: BROKER_URL value: amqp://guest:guest@rabbitmq-service:5672 - name: QUEUE value: job1 restartPolicy: OnFailure <|endoftext|> # helm_charts_svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "gitlab-ee.fullname" . }} labels: app: {{ template "gitlab-ee.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" spec: type: {{ .Values.serviceType }} ports: - name: ssh port: {{ .Values.sshPort | int }} targetPort: ssh - name: http port: {{ .Values.httpPort | int }} targetPort: http - name: https port: {{ .Values.httpsPort | int }} targetPort: https selector: app: {{ template "gitlab-ee.fullname" . }} <|endoftext|> # helm_charts_consul-test-clusterrolebinding.yaml {{- if .Values.test.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: labels: app: {{ template "consul.name" . }} chart: {{ template "consul.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "consul.fullname" . }}-test subjects: - kind: ServiceAccount name: {{ template "consul.fullname" . }}-test namespace: {{ .Release.Namespace }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "consul.fullname" . }}-test {{- end }} <|endoftext|> # helm_charts_driver-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "cosbench.driver.fullname" . }} labels: app: {{ template "cosbench.name" . }} chart: {{ template "cosbench.chart" . }} component: driver heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: clusterIP: None ports: - name: driver port: {{ .Values.driver.service.port }} targetPort: driver protocol: TCP selector: app: {{ template "cosbench.name" . }} component: driver release: {{ .Release.Name }} <|endoftext|> # istio_virtualservice_overlappingmatches.yaml apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: non-method-get spec: hosts: - sample.baz.svc.cluster.local http: - name: "send product to sample.foo" match: - uri: prefix: "/api/v1/product" - uri: prefix: "/api/v1/products" method: exact: GET route: - destination: host: sample.foo.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: uri-with-prefix-exact spec: hosts: - sample.baz.svc.cluster.local http: - name: "send product to sample.foo" match: - uri: prefix: "/" - uri: exact: "/" method: exact: GET route: - destination: host: sample.foo.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: overlapping-in-single-match spec: hosts: - sample.baz.svc.cluster.local http: - name: "send product to sample.foo" match: - uri: prefix: "/api/v1/product" method: exact: GET - uri: prefix: "/api/v1/products" method: exact: GET route: - destination: host: sample.foo.svc.cluster.local --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: overlapping-in-two-matches spec: hosts: - sample.baz.svc.cluster.local http: - name: "send product to sample.foo" match: - uri: prefix: "/api/v1/product" method: exact: GET route: - destination: host: sample.foo.svc.cluster.local - name: "send products to sample.bar" match: - uri: prefix: "/api/v1/products" method: exact: GET route: - destination: host: sample.bar.svc.cluster.local subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: overlapping-mathes-with-different-methods spec: hosts: - sample.baz.svc.cluster.local http: - name: "send product to sample.foo" match: - uri: prefix: "/api/v1/prod" method: exact: GET route: - destination: host: sample.foo.svc.cluster.local - name: "send products to sample.bar" match: - uri: prefix: "/api/v1/product" method: exact: GET - uri: prefix: "/api/v1/products" method: exact: POST route: - destination: host: sample.bar.svc.cluster.local subset: v1 <|endoftext|> # helm_charts_configmap-repo-config.yaml {{- if .Values.repoConfig -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "atlantis.fullname" . }}-repo-config labels: app: {{ template "atlantis.name" . }} chart: {{ template "atlantis.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: repos.yaml: | {{ .Values.repoConfig | indent 4 }} {{- end -}} <|endoftext|> # istio_abort-with-grpc-status-code.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** support to inject faults by specifying gRPC status code <|endoftext|> # istio_45641.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** an issue where Ztunnel pods could be compared to Envoy configs in `istioctl proxy-status` and `istioctl x proxy-status`. They are now excluded from the comparison. <|endoftext|> # k8s_docs_quota-objects.yaml apiVersion: v1 kind: ResourceQuota metadata: name: object-quota-demo spec: hard: persistentvolumeclaims: "1" services.loadbalancers: "2" services.nodeports: "0" <|endoftext|> # helm_charts_xds.configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "envoy.fullname" . }}-xds labels: app: {{ template "envoy.name" . }} chart: {{ template "envoy.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: {{- range $filename, $content := .Values.xds }} {{ tpl $filename $ }}: |- {{ $valueWithDefault := default "" $content -}} {{ tpl $valueWithDefault $ | indent 4 }} {{- end -}} <|endoftext|> # helm_charts_secret-service-account.yaml {{- $all := . -}} {{ range $name, $secret := .Values.serviceAccountSecrets }} apiVersion: v1 kind: Secret metadata: name: {{ $name }} labels: app: {{ $name }} chart: {{ template "atlantis.chart" $all }} component: service-account-secret heritage: {{ $all.Release.Service }} release: {{ $all.Release.Name }} data: service-account.json: {{ $secret }} --- {{ end }} <|endoftext|> # flux_source_conformance.yaml name: conformance on: workflow_dispatch: push: branches: [ 'main', 'update-components-**', 'release/**', 'conform*' ] permissions: contents: read env: GO_VERSION: 1.26.x jobs: conform-kubernetes: runs-on: group: "ARM64" strategy: matrix: # Keep this list up-to-date with https://endoflife.date/kubernetes # Build images with https://github.com/fluxcd/flux-benchmark/actions/workflows/build-kind.yaml KUBERNETES_VERSION: [1.33.0, 1.34.1, 1.35.0] fail-fast: false steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: go-version: ${{ env.GO_VERSION }} cache-dependency-path: | **/go.sum **/go.mod - name: Prepare id: prep run: | ID=${GITHUB_SHA:0:7}-${{ matrix.KUBERNETES_VERSION }}-$(date +%s) echo "CLUSTER=arm64-${ID}" >> $GITHUB_OUTPUT - name: Build run: | make build - name: Setup Kubernetes uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0 with: version: v0.30.0 cluster_name: ${{ steps.prep.outputs.CLUSTER }} node_image: ghcr.io/fluxcd/kindest/node:v${{ matrix.KUBERNETES_VERSION }}-arm64 - name: Run e2e tests run: TEST_KUBECONFIG=$HOME/.kube/config make e2e - name: Run multi-tenancy tests run: | ./bin/flux install ./bin/flux create source git flux-system \ --interval=15m \ --url=https://github.com/fluxcd/flux2-multi-tenancy \ --branch=main \ --ignore-paths="./clusters/**/flux-system/" ./bin/flux create kustomization flux-system \ --interval=15m \ --source=flux-system \ --path=./clusters/staging kubectl -n flux-system wait kustomization/tenants --for=condition=ready --timeout=5m kubectl -n apps wait kustomization/dev-team --for=condition=ready --timeout=1m kubectl -n apps wait helmrelease/podinfo --for=condition=ready --timeout=1m - name: Debug failure if: failure() run: | kubectl -n flux-system get all kubectl -n flux-system describe po kubectl -n flux-system logs deploy/source-controller kubectl -n flux-system logs deploy/kustomize-controller conform-k3s: runs-on: ubuntu-latest strategy: matrix: # Keep this list up-to-date with https://endoflife.date/kubernetes # Available versions can be found with "replicated cluster versions" K3S_VERSION: [ 1.33.7, 1.34.3, 1.35.0 ] fail-fast: false steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: go-version: ${{ env.GO_VERSION }} cache-dependency-path: | **/go.sum **/go.mod - name: Prepare id: prep run: | ID=${GITHUB_SHA:0:7}-${{ matrix.K3S_VERSION }}-$(date +%s) PSEUDO_RAND_SUFFIX=$(echo "${ID}" | shasum | awk '{print $1}') echo "cluster=flux2-k3s-${PSEUDO_RAND_SUFFIX}" >> $GITHUB_OUTPUT KUBECONFIG_PATH="$(git rev-parse --show-toplevel)/bin/kubeconfig.yaml" echo "kubeconfig-path=${KUBECONFIG_PATH}" >> $GITHUB_OUTPUT - name: Setup Kustomize uses: fluxcd/pkg/actions/kustomize@9a8c0edd5da84dc51a585738c67e3a3950d7fbf0 # main - name: Build run: make build-dev - name: Create repository run: | gh repo create --private --add-readme fluxcd-testing/${{ steps.prep.outputs.cluster }} env: GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }} - name: Create cluster id: create-cluster uses: replicatedhq/replicated-actions/create-cluster@1abb33f5274580b14f49f2a12d819df7920e4d9b # v1.20.0 with: api-token: ${{ secrets.REPLICATED_API_TOKEN }} kubernetes-distribution: "k3s" kubernetes-version: ${{ matrix.K3S_VERSION }} ttl: 20m cluster-name: "${{ steps.prep.outputs.cluster }}" kubeconfig-path: ${{ steps.prep.outputs.kubeconfig-path }} export-kubeconfig: true - name: Run e2e tests run: TEST_KUBECONFIG=${{ steps.prep.outputs.kubeconfig-path }} make e2e - name: Run flux bootstrap run: | ./bin/flux bootstrap git --manifests ./manifests/test/ \ --url=https://github.com/fluxcd-testing/${{ steps.prep.outputs.cluster }} \ --branch=main \ --path=clusters/k3s \ --token-auth env: GIT_PASSWORD: ${{ secrets.GITPROVIDER_BOT_TOKEN }} - name: Run flux check run: | ./bin/flux check - name: Run flux reconcile run: | ./bin/flux reconcile ks flux-system --with-source ./bin/flux get all ./bin/flux events - name: Collect reconcile logs if: ${{ always() }} continue-on-error: true run: | kubectl -n flux-system get all kubectl -n flux-system describe pods kubectl -n flux-system logs deploy/source-controller kubectl -n flux-system logs deploy/kustomize-controller kubectl -n flux-system logs deploy/notification-controller - name: Delete flux run: | ./bin/flux uninstall -s --keep-namespace kubectl delete ns flux-system --wait - name: Delete cluster if: ${{ always() }} uses: replicatedhq/replicated-actions/remove-cluster@1abb33f5274580b14f49f2a12d819df7920e4d9b # v1.20.0 continue-on-error: true with: api-token: ${{ secrets.REPLICATED_API_TOKEN }} cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} - name: Delete repository if: ${{ always() }} continue-on-error: true run: | gh repo delete fluxcd-testing/${{ steps.prep.outputs.cluster }} --yes env: GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }} conform-openshift: runs-on: ubuntu-latest strategy: matrix: # Keep this list up-to-date with https://endoflife.date/red-hat-openshift OPENSHIFT_VERSION: [ 4.20.0-okd ] fail-fast: false steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: go-version: ${{ env.GO_VERSION }} cache-dependency-path: | **/go.sum **/go.mod - name: Prepare id: prep run: | ID=${GITHUB_SHA:0:7}-${{ matrix.OPENSHIFT_VERSION }}-$(date +%s) PSEUDO_RAND_SUFFIX=$(echo "${ID}" | shasum | awk '{print $1}') echo "cluster=flux2-openshift-${PSEUDO_RAND_SUFFIX}" >> $GITHUB_OUTPUT KUBECONFIG_PATH="$(git rev-parse --show-toplevel)/bin/kubeconfig.yaml" echo "kubeconfig-path=${KUBECONFIG_PATH}" >> $GITHUB_OUTPUT - name: Setup Kustomize uses: fluxcd/pkg/actions/kustomize@9a8c0edd5da84dc51a585738c67e3a3950d7fbf0 # main - name: Build run: make build-dev - name: Create repository run: | gh repo create --private --add-readme fluxcd-testing/${{ steps.prep.outputs.cluster }} env: GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }} - name: Create cluster id: create-cluster uses: replicatedhq/replicated-actions/create-cluster@1abb33f5274580b14f49f2a12d819df7920e4d9b # v1.20.0 with: api-token: ${{ secrets.REPLICATED_API_TOKEN }} kubernetes-distribution: "openshift" kubernetes-version: ${{ matrix.OPENSHIFT_VERSION }} ttl: 20m cluster-name: "${{ steps.prep.outputs.cluster }}" kubeconfig-path: ${{ steps.prep.outputs.kubeconfig-path }} export-kubeconfig: true - name: Run flux bootstrap run: | ./bin/flux bootstrap git --manifests ./manifests/openshift/ \ --url=https://github.com/fluxcd-testing/${{ steps.prep.outputs.cluster }} \ --branch=main \ --path=clusters/openshift \ --token-auth env: GIT_PASSWORD: ${{ secrets.GITPROVIDER_BOT_TOKEN }} - name: Run flux check run: | ./bin/flux check - name: Run flux reconcile run: | ./bin/flux reconcile ks flux-system --with-source ./bin/flux get all ./bin/flux events - name: Collect reconcile logs if: ${{ always() }} continue-on-error: true run: | kubectl -n flux-system get all kubectl -n flux-system describe pods kubectl -n flux-system logs deploy/source-controller kubectl -n flux-system logs deploy/kustomize-controller kubectl -n flux-system logs deploy/notification-controller - name: Delete flux run: | ./bin/flux uninstall -s --keep-namespace kubectl delete ns flux-system --wait - name: Delete cluster if: ${{ always() }} uses: replicatedhq/replicated-actions/remove-cluster@1abb33f5274580b14f49f2a12d819df7920e4d9b # v1.20.0 continue-on-error: true with: api-token: ${{ secrets.REPLICATED_API_TOKEN }} cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} - name: Delete repository if: ${{ always() }} continue-on-error: true run: | gh repo delete fluxcd-testing/${{ steps.prep.outputs.cluster }} --yes env: GITHUB_TOKEN: ${{ secrets.GITPROVIDER_BOT_TOKEN }} <|endoftext|> # istio_44777.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 41271 releaseNotes: - | **Added** support for traffic.sidecar.istio.io/excludeInterfaces annotation in proxy. <|endoftext|> # k8s_docs_mysql-pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: mysql-pv-volume labels: type: local spec: storageClassName: manual capacity: storage: 20Gi accessModes: - ReadWriteOnce hostPath: path: "/mnt/data" --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: mysql-pv-claim spec: storageClassName: manual accessModes: - ReadWriteOnce resources: requests: storage: 20Gi <|endoftext|> # argocd_source_apiservice-v1beta1-false.yaml apiVersion: apiregistration.k8s.io/v1beta1 kind: APIService metadata: name: v1beta1.admission.cert-manager.io labels: app: webhook app.kubernetes.io/instance: external-dns spec: group: admission.cert-manager.io groupPriorityMinimum: 1000 versionPriority: 15 service: name: cert-manager-webhook namespace: external-dns version: v1beta1 status: conditions: - lastTransitionTime: "2019-06-26T07:17:09Z" message: endpoints for service/cert-manager-webhook in "external-dns" have no addresses reason: MissingEndpoints status: "False" type: Available <|endoftext|> # istio_50747.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 50162 releaseNotes: - | **Fixed** Allow ipv6 config to be propagated to ambient CNI. Note that IPv6 support is still unstable. <|endoftext|> # flux_source_components-without-crds.yaml --- apiVersion: v1 kind: Namespace metadata: name: flux-system --- apiVersion: v1 kind: ServiceAccount metadata: name: kustomize-controller namespace: flux-system --- apiVersion: v1 kind: ServiceAccount metadata: name: notification-controller namespace: flux-system <|endoftext|> # istio_58353.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 58353 releaseNotes: - | **Fixed** use cases where upgrading from the iptables backend to the nftables backend in ambient created stale iptables rules on the network. The code now continues to use iptables on the node until it is rebooted. <|endoftext|> # argocd_examples_shipping-dep.yaml --- apiVersion: apps/v1 kind: Deployment metadata: name: shipping labels: name: shipping spec: replicas: 1 selector: matchLabels: name: shipping template: metadata: labels: name: shipping spec: containers: - name: shipping image: weaveworksdemos/shipping:0.4.8 env: - name: ZIPKIN value: zipkin.jaeger.svc.cluster.local - name: JAVA_OPTS value: -Xms64m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=64m -XX:+UseG1GC -Djava.security.egd=file:/dev/urandom resources: limits: cpu: 300m memory: 500Mi requests: cpu: 300m memory: 500Mi ports: - containerPort: 80 securityContext: runAsNonRoot: true runAsUser: 10001 capabilities: drop: - all add: - NET_BIND_SERVICE readOnlyRootFilesystem: true volumeMounts: - mountPath: /tmp name: tmp-volume livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 300 periodSeconds: 3 readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 180 periodSeconds: 3 volumes: - name: tmp-volume emptyDir: medium: Memory nodeSelector: kubernetes.io/os: linux <|endoftext|> # istio_demo-profile-no-gateways.yaml # IOP configuration used to install the demo profile without gateways. apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: profile: demo components: ingressGateways: - name: istio-ingressgateway enabled: false egressGateways: - name: istio-egressgateway enabled: false <|endoftext|> # istio_ns-filter.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** a bug causing `discoverySelectors` to accidentally filter out all `GatewayClasses`. <|endoftext|> # argocd_source_crd-v1-non-structual-degraded.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: examples.example.io spec: conversion: strategy: None group: example.io names: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example preserveUnknownFields: true scope: Namespaced versions: - additionalPrinterColumns: - description: >- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata jsonPath: .metadata.creationTimestamp name: Age type: date name: v1alpha1 served: true storage: true subresources: {} status: acceptedNames: kind: Example listKind: ExampleList plural: examples shortNames: - ex singular: example conditions: - lastTransitionTime: '2024-05-19T23:35:28Z' message: no conflicts found reason: NoConflicts status: 'True' type: NamesAccepted - lastTransitionTime: '2024-10-26T19:44:57Z' message: 'spec.preserveUnknownFields: Invalid value: true: must be false' reason: Violations status: 'True' type: NonStructuralSchema - lastTransitionTime: '2024-05-19T23:35:28Z' message: the initial names have been accepted reason: InitialNamesAccepted status: 'True' type: Established storedVersions: - v1alpha1 <|endoftext|> # istio_peer-authn-strict-port-mtls-strict-and-permissive-in.yaml apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: permissive-strict-mtls spec: selector: matchLabels: app: a mtls: mode: STRICT portLevelMtls: 9090: mode: STRICT 8080: mode: PERMISSIVE <|endoftext|> # k8s_docs_secret-pod.yaml apiVersion: v1 kind: Pod metadata: name: secret-test-pod spec: containers: - name: test-container image: nginx volumeMounts: # name must match the volume name below - name: secret-volume mountPath: /etc/secret-volume # The secret data is exposed to Containers in the Pod through a Volume. volumes: - name: secret-volume secret: secretName: test-secret <|endoftext|> # k8s_docs_pvc-limit-lower.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pvc-limit-lower spec: accessModes: - ReadWriteOnce resources: requests: storage: 500Mi <|endoftext|> # istio_wasm-gzip-decompression-limit.yaml apiVersion: release-notes/v2 kind: bug-fix area: extensibility issue: [] releaseNotes: - | **Fixed** missing size limit on gzip-decompressed WASM binaries fetched over HTTP, consistent with the limits already applied to other fetch paths. <|endoftext|> # istio_drop-legacy-autopassthrough.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the `PILOT_ENABLE_LEGACY_AUTO_PASSTHROUGH` feature flag. <|endoftext|> # istio_53845-condition-for-ingress-waypoint.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** new messages to the WaypointBound condition to represent a service binding to a waypoint proxy for ingress. <|endoftext|> # grafana_charts_ingress-query-frontend.yaml {{- if and .Values.queryFrontend.query.enabled .Values.queryFrontend.ingress.enabled -}} {{ $dict := dict "ctx" . "component" "query-frontend" }} {{- $ingressApiIsStable := eq (include "tempo.ingress.isStable" .) "true" -}} {{- $ingressSupportsIngressClassName := eq (include "tempo.ingress.supportsIngressClassName" .) "true" -}} {{- $ingressSupportsPathType := eq (include "tempo.ingress.supportsPathType" .) "true" -}} apiVersion: {{ include "tempo.ingress.apiVersion" . }} kind: Ingress metadata: name: {{ include "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.queryFrontend.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if and $ingressSupportsIngressClassName .Values.queryFrontend.ingress.ingressClassName }} ingressClassName: {{ .Values.queryFrontend.ingress.ingressClassName }} {{- end -}} {{- if .Values.queryFrontend.ingress.tls }} tls: {{- range .Values.queryFrontend.ingress.tls }} - hosts: {{- range .hosts }} - {{ . | quote }} {{- end }} {{- with .secretName }} secretName: {{ . }} {{- end }} {{- end }} {{- end }} rules: {{- range .Values.queryFrontend.ingress.hosts }} - host: {{ .host | quote }} http: paths: {{- range .paths }} - path: {{ .path }} {{- if $ingressSupportsPathType }} pathType: {{ .pathType }} {{- end }} backend: {{- if $ingressApiIsStable }} service: name: {{ include "tempo.resourceName" $dict }} port: number: {{ $.Values.queryFrontend.service.port }} {{- else }} serviceName: {{ include "tempo.resourceName" $dict }} servicePort: {{ $.Values.queryFrontend.service.port }} {{- end }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_inbound-patch.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking releaseNotes: - | **Fixed** a bug where Envoy filter with service match is not working for inbound clusters. <|endoftext|> # argocd_examples_carts-db-svc.yaml --- apiVersion: v1 kind: Service metadata: name: carts-db labels: name: carts-db spec: ports: # the port that this service should serve on - port: 27017 targetPort: 27017 selector: name: carts-db <|endoftext|> # istio_ambient-logs.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Improved** logs from Envoy when connection failures occur in ambient mode to show more error details. <|endoftext|> # istio_dr-san-validation.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 40801 releaseNotes: - | **Fixed** an issue with where a `DestinationRule` applying to multiple services could incorrectly apply an unexpected `subjectAltNames` field. - | **Fixed** a behavioral change in 1.15.0 causing the `ServiceEntry` `SubjectAltName` field to be ignored <|endoftext|> # argocd_source_healthy_renewed.yaml apiVersion: cert-manager.io/v1alpha2 kind: Certificate metadata: creationTimestamp: '2018-11-07T00:06:12Z' generation: 1 name: test-cert namespace: argocd resourceVersion: '64763033' selfLink: /apis/cert-manager.io/v1alpha2/namespaces/argocd/certificates/test-cert uid: e6cfba50-314d-11e9-be3f-42010a800011 spec: acme: config: - domains: - cd.apps.argoproj.io http01: ingress: http01 commonName: cd.apps.argoproj.io dnsNames: - cd.apps.argoproj.io issuerRef: kind: Issuer name: argo-cd-issuer secretName: test-secret status: acme: order: url: 'https://acme-v02.api.letsencrypt.org/acme/order/45250083/298963150' conditions: - lastTransitionTime: '2019-02-03T09:48:13Z' message: Certificate renewed successfully reason: CertRenewed status: 'True' type: Ready - lastTransitionTime: '2019-02-03T09:48:11Z' message: Order validated reason: OrderValidated status: 'False' type: ValidateFailed <|endoftext|> # istio_updateMinK8sto1.13.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Updated** minimum supported Kubernetes version to 1.23.x. <|endoftext|> # grafana_charts_webhook-clusterrole-binding.yaml {{- if .Values.webhooks.enabled -}} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "rollout-operator.fullname" . }}-webhook-clusterrolebinding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ include "rollout-operator.fullname" . }}-webhook-clusterrole subjects: - kind: ServiceAccount name: {{ include "rollout-operator.serviceAccountName" . }} namespace: {{ .Release.Namespace | quote }} {{- end -}} <|endoftext|> # k8s_examples_cockroachdb-statefulset.yaml apiVersion: v1 kind: Service metadata: # This service is meant to be used by clients of the database. It exposes a ClusterIP that will # automatically load balance connections to the different database pods. name: cockroachdb-public labels: app: cockroachdb spec: ports: # The main port, served by gRPC, serves Postgres-flavor SQL, internode # traffic and the cli. - port: 26257 targetPort: 26257 name: grpc # The secondary port serves the UI as well as health and debug endpoints. - port: 8080 targetPort: 8080 name: http selector: app: cockroachdb --- apiVersion: v1 kind: Service metadata: # This service only exists to create DNS entries for each pod in the stateful # set such that they can resolve each other's IP addresses. It does not # create a load-balanced ClusterIP and should not be used directly by clients # in most circumstances. name: cockroachdb labels: app: cockroachdb annotations: # This is needed to make the peer-finder work properly and to help avoid # edge cases where instance 0 comes up after losing its data and needs to # decide whether it should create a new cluster or try to join an existing # one. If it creates a new cluster when it should have joined an existing # one, we'd end up with two separate clusters listening at the same service # endpoint, which would be very bad. service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" # Enable automatic monitoring of all instances when Prometheus is running in the cluster. prometheus.io/scrape: "true" prometheus.io/path: "_status/vars" prometheus.io/port: "8080" spec: ports: - port: 26257 targetPort: 26257 name: grpc - port: 8080 targetPort: 8080 name: http clusterIP: None selector: app: cockroachdb --- apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: cockroachdb-budget labels: app: cockroachdb spec: selector: matchLabels: app: cockroachdb minAvailable: 67% --- apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: StatefulSet metadata: name: cockroachdb labels: app: cockroachdb spec: serviceName: "cockroachdb" replicas: 3 selector: matchLabels: app: cockroachdb template: metadata: labels: app: cockroachdb spec: # Init containers are run only once in the lifetime of a pod, before # it's started up for the first time. It has to exit successfully # before the pod's main containers are allowed to start. # This particular init container does a DNS lookup for other pods in # the set to help determine whether or not a cluster already exists. # If any other pods exist, it creates a file in the cockroach-data # directory to pass that information along to the primary container that # has to decide what command-line flags to use when starting CockroachDB. # This only matters when a pod's persistent volume is empty - if it has # data from a previous execution, that data will always be used. # # If your Kubernetes cluster uses a custom DNS domain, you will have # to add an additional arg to this pod: "-domain=" initContainers: - name: bootstrap image: cockroachdb/cockroach-k8s-init:0.2 imagePullPolicy: IfNotPresent args: - "-on-start=/on-start.sh" - "-service=cockroachdb" env: - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace volumeMounts: - name: datadir mountPath: "/cockroach/cockroach-data" affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchExpressions: - key: app operator: In values: - cockroachdb topologyKey: kubernetes.io/hostname containers: - name: cockroachdb image: cockroachdb/cockroach:v1.1.0 imagePullPolicy: IfNotPresent ports: - containerPort: 26257 name: grpc - containerPort: 8080 name: http volumeMounts: - name: datadir mountPath: /cockroach/cockroach-data command: - "/bin/bash" - "-ecx" - | # The use of qualified `hostname -f` is crucial: # Other nodes aren't able to look up the unqualified hostname. CRARGS=("start" "--logtostderr" "--insecure" "--host" "$(hostname -f)" "--http-host" "0.0.0.0") # We only want to initialize a new cluster (by omitting the join flag) # if we're sure that we're the first node (i.e. index 0) and that # there aren't any other nodes running as part of the cluster that # this is supposed to be a part of (which indicates that a cluster # already exists and we should make sure not to create a new one). # It's fine to run without --join on a restart if there aren't any # other nodes. if [ ! "$(hostname)" == "cockroachdb-0" ] || \ [ -e "/cockroach/cockroach-data/cluster_exists_marker" ] then # We don't join cockroachdb in order to avoid a node attempting # to join itself, which currently doesn't work # (https://github.com/cockroachdb/cockroach/issues/9625). CRARGS+=("--join" "cockroachdb-public") fi exec /cockroach/cockroach ${CRARGS[*]} # No pre-stop hook is required, a SIGTERM plus some time is all that's # needed for graceful shutdown of a node. terminationGracePeriodSeconds: 60 volumes: - name: datadir persistentVolumeClaim: claimName: datadir volumeClaimTemplates: - metadata: name: datadir spec: accessModes: - "ReadWriteOnce" resources: requests: storage: 1Gi <|endoftext|> # istio_39430.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 39430 releaseNotes: - | **Fixed** a bug where specifying warmupDuration without Lb policy is not configuring warmup duration. <|endoftext|> # istio_helm_values_enablement.golden.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: istio-egressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-egressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istio-egress-1.0.0 install.operator.istio.io/owning-resource: unknown istio: egressgateway istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: EgressGateways release: istio name: istio-egressgateway namespace: istio-system spec: selector: matchLabels: app: istio-egressgateway istio: egressgateway strategy: rollingUpdate: maxSurge: 100% maxUnavailable: 25% template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" sidecar.istio.io/inject: "false" labels: app: istio-egressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-egressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 chart: gateways helm.sh/chart: istio-egress-1.0.0 heritage: Tiller install.operator.istio.io/owning-resource: unknown istio: egressgateway istio.io/dataplane-mode: none istio.io/rev: default operator.istio.io/component: EgressGateways release: istio service.istio.io/canonical-name: istio-egressgateway service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: null requiredDuringSchedulingIgnoredDuringExecution: null containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc.cluster.local - --proxyLogLevel=warning - --proxyComponentLogLevel=misc:error - --log_output_level=default:info env: - name: PILOT_CERT_PROVIDER value: istiod - name: CA_ADDR value: istiod.istio-system.svc:15012 - name: NODE_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: spec.nodeName - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: HOST_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: ISTIO_META_WORKLOAD_NAME value: istio-egressgateway - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/istio-system/deployments/istio-egressgateway - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local - name: ISTIO_META_UNPRIVILEGED_POD value: "true" - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName image: registry.istio.io/testing/proxyv2:latest name: istio-proxy ports: - containerPort: 8080 protocol: TCP - containerPort: 8443 protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 2 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: 2000m memory: 1024Mi requests: cpu: 100m memory: 128Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /etc/istio/config name: config-volume - mountPath: /var/run/secrets/istio name: istiod-ca-cert - mountPath: /var/run/secrets/tokens name: istio-token readOnly: true - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/pod name: podinfo - mountPath: /etc/istio/egressgateway-certs name: egressgateway-certs readOnly: true - mountPath: /etc/istio/egressgateway-ca-certs name: egressgateway-ca-certs readOnly: true securityContext: runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 serviceAccountName: istio-egressgateway-service-account volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - configMap: name: istio-ca-root-cert name: istiod-ca-cert - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: podinfo - emptyDir: {} name: istio-envoy - emptyDir: {} name: istio-data - name: istio-token projected: sources: - serviceAccountToken: audience: istio-ca expirationSeconds: 43200 path: istio-token - configMap: name: istio optional: true name: config-volume - name: egressgateway-certs secret: optional: true secretName: istio-egressgateway-certs - name: egressgateway-ca-certs secret: optional: true secretName: istio-egressgateway-ca-certs --- apiVersion: v1 kind: Service metadata: annotations: null labels: app: istio-egressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-egressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istio-egress-1.0.0 install.operator.istio.io/owning-resource: unknown istio: egressgateway istio.io/rev: default operator.istio.io/component: EgressGateways release: istio name: istio-egressgateway namespace: istio-system spec: ports: - name: http2 port: 80 protocol: TCP targetPort: 8080 - name: https port: 443 protocol: TCP targetPort: 8443 selector: app: istio-egressgateway istio: egressgateway type: ClusterIP <|endoftext|> # istio_serviceentry-workloadentry.yaml # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: proxy-service-instance spec: hosts: - example.com ports: - number: 80 name: http protocol: HTTP - number: 7070 name: tcp protocol: TCP - number: 443 name: https protocol: HTTPS - number: 9090 name: auto protocol: "" resolution: STATIC location: MESH_INTERNAL endpoints: - address: 1.1.1.1 labels: security.istio.io/tlsMode: istio --- # Set up .Services number of services. Each will have 4 ports (one for each protocol) {{- range $i := until .Services }} apiVersion: networking.istio.io/v1 kind: ServiceEntry metadata: name: service-{{$i}} spec: hosts: - random-{{$i}}.host.example ports: - number: 80 name: http protocol: HTTP - number: 7070 name: tcp protocol: TCP - number: 443 name: https protocol: HTTPS - number: 9090 name: auto resolution: STATIC location: MESH_INTERNAL workloadSelector: labels: app: random-{{$i}} --- {{- end }} --- {{- range $j := until .Instances }} apiVersion: networking.istio.io/v1 kind: WorkloadEntry metadata: name: random-{{$j}} spec: serviceAccount: random address: 240.241.{{div $j 255 }}.{{mod $j 255 }} labels: app: random-{{mod $j $.Services}} --- {{- end }} <|endoftext|> # helm_charts_openvpn-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "openvpn.fullname" . }} labels: app: {{ template "openvpn.name" . }} chart: {{ template "openvpn.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} {{- if .Values.updateStrategy }} strategy: {{ toYaml .Values.updateStrategy | indent 4 }} {{- end }} selector: matchLabels: app: {{ template "openvpn.name" . }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "openvpn.name" . }} release: {{ .Release.Name }} annotations: checksum/config: {{ include (print .Template.BasePath "/config-openvpn.yaml") . | sha256sum }} {{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} {{- end }} spec: {{- if .Values.ipForwardInitContainer }} initContainers: - args: - -c - sysctl -w net.ipv4.ip_forward=1 command: - /bin/sh image: busybox:1.29 imagePullPolicy: IfNotPresent name: sysctl resources: requests: cpu: 1m memory: 1Mi securityContext: privileged: true {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: ["/etc/openvpn/setup/configure.sh"] ports: - containerPort: {{ .Values.service.internalPort }} {{- if .Values.service.hostPort }} hostPort: {{ .Values.service.hostPort }} {{- end }} name: openvpn securityContext: capabilities: add: - NET_ADMIN readinessProbe: initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.readinessProbe.periodSeconds }} successThreshold: {{ .Values.readinessProbe.successThreshold }} exec: command: - nc {{- if eq .Values.openvpn.OVPN_PROTO "udp" }} - -u {{- end }} - -z - 127.0.0.1 - "{{ .Values.service.internalPort }}" resources: requests: cpu: "{{ .Values.resources.requests.cpu }}" memory: "{{ .Values.resources.requests.memory }}" limits: cpu: "{{ .Values.resources.limits.cpu }}" memory: "{{ .Values.resources.limits.memory }}" volumeMounts: - mountPath: /etc/openvpn/setup name: openvpn readOnly: false - mountPath: /etc/openvpn/certs {{- if .Values.persistence.subPath }} subPath: {{ .Values.persistence.subPath }} {{- end }} name: certs readOnly: {{ if .Values.openvpn.keystoreSecret }}true{{ else }}false{{ end }} {{- if .Values.openvpn.ccd.enabled }} - mountPath: /etc/openvpn/ccd name: openvpn-ccd {{- end }} volumes: - name: openvpn configMap: name: {{ template "openvpn.fullname" . }} defaultMode: 0775 {{- if .Values.openvpn.ccd.enabled }} - name: openvpn-ccd configMap: name: {{ template "openvpn.fullname" . }}-ccd defaultMode: 0775 {{- end }} - name: certs {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "openvpn.fullname" . }}{{- end }} {{- else if .Values.openvpn.keystoreSecret }} secret: secretName: "{{ .Values.openvpn.keystoreSecret }}" defaultMode: 0600 items: - key: "server.key" path: "pki/private/server.key" - key: "ca.crt" path: "pki/ca.crt" - key: "server.crt" path: "pki/issued/server.crt" - key: "dh.pem" path: "pki/dh.pem" {{- if .Values.openvpn.useCrl }} - key: "crl.pem" path: "crl.pem" mode: 0644 {{- end }} {{- if .Values.openvpn.taKey }} - key: "ta.key" path: "pki/ta.key" {{- end }} {{- else }} emptyDir: {} {{- end -}} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- if .Values.imagePullSecretName }} imagePullSecrets: - name: {{ .Values.imagePullSecretName }} {{- end -}} <|endoftext|> # argocd_source_healthy_legacy_v0.9_observedGeneration.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: creationTimestamp: "2020-11-13T00:44:55Z" generation: 1 name: basic namespace: argocd-e2e resourceVersion: "182108" selfLink: /apis/argoproj.io/v1alpha1/namespaces/argocd-e2e/rollouts/basic uid: 34e4bbfc-222c-4968-bd60-2b30ae81110d spec: replicas: 1 selector: matchLabels: app: basic strategy: canary: steps: - setWeight: 50 - pause: {} template: metadata: creationTimestamp: null labels: app: basic spec: containers: - image: nginx:1.19-alpine name: basic resources: requests: cpu: 1m memory: 16Mi status: HPAReplicas: 1 availableReplicas: 1 blueGreen: {} canary: {} conditions: - lastTransitionTime: "2020-11-13T00:48:20Z" lastUpdateTime: "2020-11-13T00:48:22Z" message: ReplicaSet "basic-754cb84d5" has successfully progressed. reason: NewReplicaSetAvailable status: "True" type: Progressing - lastTransitionTime: "2020-11-13T00:48:22Z" lastUpdateTime: "2020-11-13T00:48:22Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available currentPodHash: 754cb84d5 currentStepHash: 757f5f97b currentStepIndex: 2 observedGeneration: "abc123" ## <---- uses legacy observedGeneration hash readyReplicas: 1 replicas: 1 selector: app=basic stableRS: 754cb84d5 updatedReplicas: 1 <|endoftext|> # grafana_charts_query-frontend-svc-headless.yaml apiVersion: v1 kind: Service metadata: name: {{ template "enterprise-metrics.fullname" . }}-query-frontend-headless labels: app: {{ template "enterprise-metrics.name" . }}-query-frontend chart: {{ template "enterprise-metrics.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- with .Values.query_frontend.service.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.query_frontend.service.annotations | nindent 4 }} spec: type: ClusterIP clusterIP: None publishNotReadyAddresses: true ports: - port: {{ .Values.config.server.http_listen_port }} protocol: TCP name: http-metrics targetPort: http-metrics - port: {{ .Values.config.server.grpc_listen_port }} protocol: TCP name: grpc targetPort: grpc selector: app: {{ template "enterprise-metrics.name" . }}-query-frontend release: {{ .Release.Name }} <|endoftext|> # k8s_docs_hostpath-volume-pod.yaml apiVersion: v1 kind: Pod metadata: name: hostpath-volume-pod spec: containers: - name: my-hostpath-volume-pod image: microsoft/windowsservercore:1709 volumeMounts: - name: foo mountPath: "C:\\etc\\foo" readOnly: true nodeSelector: kubernetes.io/os: windows volumes: - name: foo hostPath: path: "C:\\etc\\foo" <|endoftext|> # k8s_examples_newrelic-infra-daemonset.yaml apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: newrelic-infra-agent labels: tier: monitoring app: newrelic-infra-agent version: v1 spec: template: metadata: labels: name: newrelic spec: # Filter to specific nodes: # nodeSelector: # app: newrelic hostPID: true hostIPC: true hostNetwork: true containers: - resources: requests: cpu: 0.15 securityContext: privileged: true image: newrelic/infrastructure name: newrelic command: [ "bash", "-c", "source /etc/kube-nr-infra/config && /usr/bin/newrelic-infra" ] volumeMounts: - name: newrelic-config mountPath: /etc/kube-nr-infra readOnly: true - name: dev mountPath: /dev - name: run mountPath: /var/run/docker.sock - name: log mountPath: /var/log - name: host-root mountPath: /host readOnly: true volumes: - name: newrelic-config secret: secretName: newrelic-config - name: dev hostPath: path: /dev - name: run hostPath: path: /var/run/docker.sock - name: log hostPath: path: /var/log - name: host-root hostPath: path: / <|endoftext|> # istio_41644.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 41631 releaseNotes: - | **Fixed** an issue where `pilotExists` always return `false`. <|endoftext|> # istio_optional_mutual.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** a new TLS mode 'OPTIONAL_MUTUAL' in ServerTLSSettings of Gateway that will validate client certificate if presented but not mandate it. <|endoftext|> # k8s_docs_storageclass-ceph-rbd.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: fast provisioner: kubernetes.io/rbd # This provisioner is deprecated parameters: monitors: 198.19.254.105:6789 adminId: kube adminSecretName: ceph-secret adminSecretNamespace: kube-system pool: kube userId: kube userSecretName: ceph-secret-user userSecretNamespace: default fsType: ext4 imageFormat: "2" imageFeatures: "layering" <|endoftext|> # helm_charts_cluster-rolebinding.yaml {{- if .Values.rbac.create -}} apiVersion: {{ template "rbac.apiVersion" . }} kind: ClusterRoleBinding metadata: labels: app: {{ template "fluent-bit.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "fluent-bit.fullname" . }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "fluent-bit.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "fluent-bit.serviceAccountName" . }} namespace: {{ .Release.Namespace }} {{- end -}} <|endoftext|> # istio_dashboard-custom-port.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** local flags `--ui-port` for different `istioctl dashboard` commands to allow users to specify the component UI port to use for the dashboard. <|endoftext|> # helm_charts_etcd-cluster-crd.yaml # Synced with https://github.com/coreos/etcd-operator/blob/master/pkg/util/k8sutil/crd.go --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: etcdclusters.etcd.database.coreos.com labels: app: etcd-operator.name annotations: helm.sh/hook: crd-install helm.sh/hook-delete-policy: before-hook-creation spec: group: etcd.database.coreos.com scope: Namespaced version: v1beta2 names: kind: EtcdCluster listKind: EtcdClusterList singular: etcdcluster plural: etcdclusters shortNames: - etcd <|endoftext|> # helm_charts_agentIngress.yaml {{- if .Values.agentIngress.enabled -}} {{- $serviceName := include "webpagetest.fullname" . -}} {{- $servicePort := .Values.service.externalPort -}} {{- $rejectSvcName := .Values.agentIngress.rejectServiceName -}} {{- $rejectSvcPort := .Values.agentIngress.rejectServicePort -}} apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ template "webpagetest.fullname" . }}-agent labels: app: {{ template "webpagetest.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: {{- range $key, $value := .Values.agentIngress.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} spec: rules: {{- range $host := .Values.agentIngress.hosts }} - host: {{ $host }} http: paths: - path: / backend: serviceName: {{ $rejectSvcName }} servicePort: {{ $rejectSvcPort }} - path: /work backend: serviceName: {{ $serviceName }} servicePort: {{ $servicePort }} - path: /cron backend: serviceName: {{ $serviceName }} servicePort: {{ $servicePort }} - path: /jpeginfo backend: serviceName: {{ $serviceName }} servicePort: {{ $servicePort }} {{- end -}} {{- if .Values.agentIngress.tls }} tls: {{ toYaml .Values.agentIngress.tls | indent 4 }} {{- end -}} {{- end -}} <|endoftext|> # helm_charts_k8s-coredns.yaml {{- /* Added manually, can be changed in-place. */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.coreDns.enabled }} apiVersion: v1 kind: ConfigMap metadata: namespace: {{ template "prometheus-operator.namespace" . }} name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) "k8s-coredns" | trunc 63 | trimSuffix "-" }} annotations: {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} labels: {{- if $.Values.grafana.sidecar.dashboards.label }} {{ $.Values.grafana.sidecar.dashboards.label }}: "1" {{- end }} app: {{ template "prometheus-operator.name" $ }}-grafana {{ include "prometheus-operator.labels" $ | indent 4 }} data: k8s-coredns.json: |- { "__inputs": [ ], "__requires": [ ], "annotations": { "list": [ ] }, "editable": false, "gnetId": null, "graphTooltip": 0, "hideControls": false, "id": null, "links": [ ], "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 8, "x": 0, "y": 0 }, "id": 1, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "total", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (proto)", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}", "refId": "A", "step": 60 }, { "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m]))", "format": "time_series", "intervalFactor": 2, "legendFormat": "total", "refId": "B", "step": 60 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Requests (total)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 8, "x": 8, "y": 0 }, "id": 12, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "total", "yaxis": 2 }, { "alias": "other", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(coredns_dns_request_type_count_total{instance=~\"$instance\"}[5m])) by (type)", "intervalFactor": 2, "legendFormat": "{{`{{type}}`}}", "refId": "A", "step": 60 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Requests (by qtype)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 8, "x": 16, "y": 0 }, "id": 2, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "total", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m])) by (zone)", "intervalFactor": 2, "legendFormat": "{{`{{zone}}`}}", "refId": "A", "step": 60 }, { "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m]))", "intervalFactor": 2, "legendFormat": "total", "refId": "B", "step": 60 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Requests (by zone)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 7 }, "id": 10, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "total", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(coredns_dns_request_do_count_total{instance=~\"$instance\"}[5m]))", "intervalFactor": 2, "legendFormat": "DO", "refId": "A", "step": 40 }, { "expr": "sum(rate(coredns_dns_request_count_total{instance=~\"$instance\"}[5m]))", "intervalFactor": 2, "legendFormat": "total", "refId": "B", "step": 40 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Requests (DO bit)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "pps", "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 6, "x": 12, "y": 7 }, "id": 9, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "tcp:90%", "yaxis": 2 }, { "alias": "tcp:99%", "yaxis": 2 }, { "alias": "tcp:50%", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:99%", "refId": "A", "step": 60 }, { "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:90%", "refId": "B", "step": 60 }, { "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto))", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:50%", "refId": "C", "step": 60 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Requests (size, udp)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 6, "x": 18, "y": 7 }, "id": 14, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "tcp:90%", "yaxis": 1 }, { "alias": "tcp:99%", "yaxis": 1 }, { "alias": "tcp:50%", "yaxis": 1 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:99%", "refId": "A", "step": 60 }, { "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:90%", "refId": "B", "step": 60 }, { "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_request_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto))", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:50%", "refId": "C", "step": 60 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Requests (size, tcp)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 14 }, "id": 5, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(coredns_dns_response_rcode_count_total{instance=~\"$instance\"}[5m])) by (rcode)", "intervalFactor": 2, "legendFormat": "{{`{{rcode}}`}}", "refId": "A", "step": 40 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Responses (by rcode)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 14 }, "id": 3, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_request_duration_seconds_bucket{instance=~\"$instance\"}[5m])) by (le, job))", "format": "time_series", "intervalFactor": 2, "legendFormat": "99%", "refId": "A", "step": 40 }, { "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_request_duration_seconds_bucket{instance=~\"$instance\"}[5m])) by (le))", "format": "time_series", "intervalFactor": 2, "legendFormat": "90%", "refId": "B", "step": 40 }, { "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_request_duration_seconds_bucket{instance=~\"$instance\"}[5m])) by (le))", "format": "time_series", "intervalFactor": 2, "legendFormat": "50%", "refId": "C", "step": 40 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Responses (duration)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "ms", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 21 }, "id": 8, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "udp:50%", "yaxis": 1 }, { "alias": "tcp:50%", "yaxis": 2 }, { "alias": "tcp:90%", "yaxis": 2 }, { "alias": "tcp:99%", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:99%", "refId": "A", "step": 40 }, { "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:90%", "refId": "B", "step": 40 }, { "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"udp\"}[5m])) by (le,proto)) ", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:50%", "metric": "", "refId": "C", "step": 40 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Responses (size, udp)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 21 }, "id": 13, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "udp:50%", "yaxis": 1 }, { "alias": "tcp:50%", "yaxis": 1 }, { "alias": "tcp:90%", "yaxis": 1 }, { "alias": "tcp:99%", "yaxis": 1 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "histogram_quantile(0.99, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto)) ", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:99%", "refId": "A", "step": 40 }, { "expr": "histogram_quantile(0.90, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le,proto)) ", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:90%", "refId": "B", "step": 40 }, { "expr": "histogram_quantile(0.50, sum(rate(coredns_dns_response_size_bytes_bucket{instance=~\"$instance\",proto=\"tcp\"}[5m])) by (le, proto)) ", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{`{{proto}}`}}:50%", "metric": "", "refId": "C", "step": 40 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Responses (size, tcp)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 28 }, "id": 15, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(coredns_cache_size{instance=~\"$instance\"}) by (type)", "intervalFactor": 2, "legendFormat": "{{`{{type}}`}}", "refId": "A", "step": 40 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Cache (size)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": "$datasource", "editable": true, "error": false, "fill": 1, "grid": {}, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 28 }, "id": 16, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "connected", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "misses", "yaxis": 2 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "sum(rate(coredns_cache_hits_total{instance=~\"$instance\"}[5m])) by (type)", "intervalFactor": 2, "legendFormat": "hits:{{`{{type}}`}}", "refId": "A", "step": 40 }, { "expr": "sum(rate(coredns_cache_misses_total{instance=~\"$instance\"}[5m])) by (type)", "intervalFactor": 2, "legendFormat": "misses", "refId": "B", "step": 40 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Cache (hitrate)", "tooltip": { "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "pps", "logBase": 1, "max": null, "min": 0, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "schemaVersion": 16, "style": "dark", "tags": [], "templating": { "list": [ { "current": { "text": "default", "value": "default" }, "hide": 0, "label": null, "name": "datasource", "options": [ ], "query": "prometheus", "refresh": 1, "regex": "", "type": "datasource" }, { "allValue": ".*", "current": { "selected": true, "tags": [], "text": "172.16.1.8:9153", "value": "172.16.1.8:9153" }, "datasource": "$datasource", "hide": 0, "includeAll": true, "label": "Instance", "multi": false, "name": "instance", "options": [], "query": "up{job=\"coredns\"}", "refresh": 1, "regex": ".*instance=\"(.*?)\".*", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-3h", "to": "now" }, "timepicker": { "now": true, "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "utc", "title": "CoreDNS", "uid": "vkQ0UHxik", "version": 1 } {{- end }} <|endoftext|> # istio_eastwest.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: eastwestgateway namespace: istio-system labels: topology.istio.io/network: "network-1" spec: gatewayClassName: istio listeners: - name: istiod-grpc port: 15012 protocol: TLS tls: mode: Passthrough - name: istiod-webhook port: 15017 protocol: TLS tls: mode: Passthrough - name: cross-network hostname: "*.local" port: 15443 protocol: TLS tls: mode: Passthrough --- apiVersion: gateway.networking.k8s.io/v1 kind: TLSRoute metadata: name: eastwestgateway-grpc namespace: istio-system spec: parentRefs: - name: eastwestgateway kind: Gateway sectionName: istiod-grpc hostnames: - "*.example.com" rules: - backendRefs: - name: istiod port: 15012 --- apiVersion: gateway.networking.k8s.io/v1 kind: TLSRoute metadata: name: eastwestgateway-webhook namespace: istio-system spec: parentRefs: - name: eastwestgateway kind: Gateway sectionName: istiod-webhook hostnames: - "*.example.com" rules: - backendRefs: - name: istiod port: 15017 <|endoftext|> # helm_charts_distribution-serviceaccount.yaml {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: labels: app: {{ template "distribution.name" . }} chart: {{ template "distribution.chart" . }} component: {{ .Values.distribution.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "distribution.serviceAccountName" . }} {{- end }} <|endoftext|> # istio_correct-port-name-external-name-service-type.yaml apiVersion: v1 kind: Service metadata: name: nginx-svc4 namespace: nginx-ns4 spec: externalName: nginx.example.com ports: - name: https port: 443 protocol: TCP targetPort: 443 type: ExternalName <|endoftext|> # istio_42778.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 42749 releaseNotes: - | **Fixed** admission webhook fails with custom header value format. <|endoftext|> # cert_manager_serviceaccount.yaml {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount {{- with .Values.global.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 2 }} {{- end }} automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} metadata: name: {{ template "cert-manager.serviceAccountName" . }} namespace: {{ include "cert-manager.namespace" . }} {{- with .Values.serviceAccount.annotations }} annotations: {{- range $k, $v := . }} {{- $value := $v | quote }} {{- printf "%s: %s" (tpl $k $) (tpl $value $) | nindent 4 }} {{- end }} {{- end }} labels: app: {{ include "cert-manager.name" . }} app.kubernetes.io/name: {{ include "cert-manager.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "controller" {{- include "labels" . | nindent 4 }} {{- with .Values.serviceAccount.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- end }} <|endoftext|> # istio_41020.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - https://github.com/istio/istio/issues/40984 releaseNotes: - | **Fixed** an issue when auto.sidecar-injector.istio.io namespaceSelector caused problems with cluster maintenance. <|endoftext|> # helm_charts_httpproxies.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: httpproxies.projectcontour.io labels: app.kubernetes.io/name: contour annotations: "helm.sh/hook": crd-install "helm.sh/hook-delete-policy": "before-hook-creation" spec: group: projectcontour.io version: v1alpha1 scope: Namespaced names: plural: httpproxies kind: HTTPProxy additionalPrinterColumns: - name: FQDN type: string description: Fully qualified domain name JSONPath: .spec.virtualhost.fqdn - name: TLS Secret type: string description: Secret with TLS credentials JSONPath: .spec.virtualhost.tls.secretName - name: First route type: string description: First routes defined JSONPath: .spec.routes[0].match - name: Status type: string description: The current status of the IngressRoute JSONPath: .status.currentStatus - name: Status Description type: string description: Description of the current status JSONPath: .status.description validation: openAPIV3Schema: properties: spec: properties: virtualhost: properties: fqdn: type: string # This regex handles two cases: # 1. A reasonably well-formed FQDN, which is allowed # a hyphen in the top-level label (not usually # the case for TLDs.) This fixes https://github.com/projectcontour/contour/issues/1117 # This is the first option in the regex. # 2. A bareword containing a hyphen, no periods. This fixes # https://github.com/projectcontour/contour/issues/755 and is the # second option in the regex pattern: ^([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\.)+[\-a-z0-9]{2,}|[\-a-z0-9]+$ tls: properties: secretName: type: string pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?([\.\/][a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ minimumProtocolVersion: type: string enum: - "1.3" - "1.2" - "1.1" strategy: type: string enum: - RoundRobin - WeightedLeastRequest - Random - Cookie healthCheck: type: object required: - path properties: path: type: string pattern: ^\/.*$ intervalSeconds: type: integer timeoutSeconds: type: integer unhealthyThresholdCount: type: integer healthyThresholdCount: type: integer tcpproxy: type: object properties: services: type: array items: type: object required: - name - port properties: name: type: string pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$ # DNS-1035 label port: type: integer weight: type: integer strategy: type: string enum: - RoundRobin - WeightedLeastRequest - Random - Cookie healthCheck: type: object required: - path properties: path: type: string pattern: ^\/.*$ intervalSeconds: type: integer timeoutSeconds: type: integer unhealthyThresholdCount: type: integer healthyThresholdCount: type: integer delegate: type: object required: - name properties: name: type: string pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ # DNS-1123 subdomain namespace: type: string pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ # DNS-1123 label includes: type: array items: properties: name: type: string pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ # DNS-1123 subdomain namespace: type: string pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ # DNS-1123 label conditions: type: array items: prefix: type: string pattern: ^\/.*$ headersMatch: items: routes: type: array items: required: - match properties: match: type: string pattern: ^\/.*$ delegate: type: object required: - name properties: name: type: string pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$ # DNS-1123 subdomain namespace: type: string pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ # DNS-1123 label services: type: array items: type: object required: - name - port properties: name: type: string pattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$ # DNS-1035 label port: type: integer weight: type: integer strategy: type: string enum: - RoundRobin - WeightedLeastRequest - Random - Cookie healthCheck: type: object required: - path properties: path: type: string pattern: ^\/.*$ intervalSeconds: type: integer timeoutSeconds: type: integer unhealthyThresholdCount: type: integer healthyThresholdCount: type: integer <|endoftext|> # istio_42365.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** `istioctl proxy-config ecds` to support retrieving typed extension configuration from Envoy for a specified pod. <|endoftext|> # istio_41858.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation releaseNotes: - | **Removed** warning if istio-cni is not the default CNI plugin when CNI is used as a standalone plugin. <|endoftext|> # argocd_source_progressing_provisioning.yaml apiVersion: cluster.x-k8s.io/v1alpha3 kind: Cluster metadata: labels: app.kubernetes.io/managed-by: Helm app.kubernetes.io/version: 0.3.11 argocd.argoproj.io/instance: test cluster.x-k8s.io/cluster-name: test name: test namespace: test spec: clusterNetwork: pods: cidrBlocks: - 10.20.10.0/19 services: cidrBlocks: - 10.10.10.0/19 controlPlaneRef: apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 kind: KubeadmControlPlane infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 kind: VSphereCluster status: conditions: - lastTransitionTime: '2020-12-29T09:16:28Z' status: 'True' type: Ready - lastTransitionTime: '2020-12-29T09:16:28Z' status: 'True' type: ControlPlaneReady - lastTransitionTime: '2020-11-24T09:15:24Z' status: 'True' type: InfrastructureReady controlPlaneInitialized: true controlPlaneReady: true infrastructureReady: true observedGeneration: 4 phase: Provisioning <|endoftext|> # helm_charts_redis-ha-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "redis-ha.fullname" . }} namespace: {{ .Release.Namespace }} labels: {{ include "labels.standard" . | indent 4 }} {{- if and ( .Values.exporter.enabled ) ( .Values.exporter.serviceMonitor.enabled ) }} servicemonitor: enabled {{- end }} annotations: {{- if .Values.serviceAnnotations }} {{ toYaml .Values.serviceAnnotations | indent 4 }} {{- end }} spec: type: ClusterIP clusterIP: None ports: - name: server port: {{ .Values.redis.port }} protocol: TCP targetPort: redis - name: sentinel port: {{ .Values.sentinel.port }} protocol: TCP targetPort: sentinel {{- if .Values.exporter.enabled }} - name: exporter-port port: {{ .Values.exporter.port }} protocol: TCP targetPort: exporter-port {{- end }} selector: release: {{ .Release.Name }} app: {{ template "redis-ha.name" . }} <|endoftext|> # argocd_source_install-namespaced.yaml apiVersion: v1 kind: ServiceAccount metadata: name: gitops-agent --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: gitops-agent rules: - apiGroups: - '*' resources: - '*' verbs: - '*' --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: gitops-agent roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: gitops-agent subjects: - kind: ServiceAccount name: gitops-agent --- apiVersion: apps/v1 kind: Deployment metadata: name: gitops-agent spec: selector: matchLabels: app.kubernetes.io/name: gitops-agent strategy: type: Recreate template: metadata: labels: app.kubernetes.io/name: gitops-agent spec: containers: - command: - gitops - /tmp/git/repo - --path - guestbook - --namespaced image: argoproj/gitops-agent:latest name: gitops-agent volumeMounts: - mountPath: /tmp/git name: git - args: - --webhook-url - http://localhost:9001/api/v1/sync - --dest - repo env: - name: GIT_SYNC_REPO value: https://github.com/argoproj/argocd-example-apps image: registry.k8s.io/git-sync:v3.1.6 name: git-sync volumeMounts: - mountPath: /tmp/git name: git serviceAccountName: gitops-agent volumes: - emptyDir: {} name: git <|endoftext|> # argocd_source_non-namespaced-gloo-accepted.yaml apiVersion: gloo.solo.io/v1 kind: UpstreamGroup status: reportedBy: gateway state: 1 subresourceStatuses: '*v1.Proxy.gateway-proxy_gloo-system': reportedBy: gloo state: 1 '*v1.Proxy.internal-proxy_gloo-system': reportedBy: gloo state: 1 <|endoftext|> # k8s_examples_vsphere-volume-sc-with-datastore.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: fast provisioner: kubernetes.io/vsphere-volume parameters: diskformat: zeroedthick datastore: vsanDatastore <|endoftext|> # k8s_docs_hello.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: selector: matchLabels: app: hello tier: backend track: stable replicas: 7 template: metadata: labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "gcr.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # k8s_docs_ingress.yaml apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: test-ingress spec: backend: serviceName: testsvc servicePort: 80 <|endoftext|> # argocd_source_secrets.yaml {{- if and .Values.usePassword (not .Values.existingSecret) -}} apiVersion: v1 kind: Secret metadata: name: {{ template "redis.fullname" . }} labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque data: {{- if .Values.passwordContent }} redis-password: {{ .Values.passwordContent | quote }} {{- else if .Values.password }} redis-password: {{ .Values.password | b64enc | quote }} {{- else }} redis-password: {{ randAlphaNum 10 | b64enc | quote }} {{- end }} {{- end -}} <|endoftext|> # tf_k8s_provider_kube-config.yaml # Copyright IBM Corp. 2017, 2026 # SPDX-License-Identifier: MPL-2.0 apiVersion: v1 kind: Config preferences: {} clusters: - cluster: certificate-authority-data: ZHVtbXk= server: https://127.0.0.1 name: default contexts: - context: cluster: default user: azure name: azure - context: cluster: default user: gcp name: gcp - context: cluster: default user: oidc name: oidc users: - name: azure user: auth-provider: config: access-token: dummy cmd-args: config config-helper --format=json cmd-path: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gcloud expiry: 2017-06-19T14:02:42Z expiry-key: '{.credential.token_expiry}' token-key: '{.credential.access_token}' name: azure - name: gcp user: auth-provider: config: access-token: dummy cmd-args: config config-helper --format=json cmd-path: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gcloud expiry: 2017-06-19T14:02:42Z expiry-key: '{.credential.token_expiry}' token-key: '{.credential.access_token}' name: gcp - name: oidc user: auth-provider: config: access-token: dummy cmd-args: config config-helper --format=json cmd-path: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gcloud expiry: 2017-06-19T14:02:42Z expiry-key: '{.credential.token_expiry}' token-key: '{.credential.access_token}' name: oidc <|endoftext|> # helm_charts_auth-service.yaml {{- if .Values.auth.enabled -}} {{- $name := include "buzzfeed-sso.name" . -}} apiVersion: v1 kind: Service metadata: name: {{ template "buzzfeed-sso.fullname" . }}-auth labels: app: {{ $name }} chart: {{ template "buzzfeed-sso.chart" . }} component: {{ $name }}-auth release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: {{ .Values.auth.service.type }} ports: - name: http port: {{ .Values.auth.service.port }} targetPort: 4180 protocol: TCP selector: app: {{ $name }} component: {{ $name }}-auth release: {{ .Release.Name }} {{- end }} <|endoftext|> # helm_charts_healthchecks.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "rabbitmq.fullname" . }}-healthchecks labels: app: {{ template "rabbitmq.name" . }} chart: {{ template "rabbitmq.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" data: rabbitmq-health-check: |- #!/bin/sh START_FLAG=/opt/bitnami/rabbitmq/var/lib/rabbitmq/.start if [ -f ${START_FLAG} ]; then rabbitmqctl node_health_check RESULT=$? if [ $RESULT -ne 0 ]; then rabbitmqctl status exit $? fi rm -f ${START_FLAG} exit ${RESULT} fi rabbitmq-api-check $1 $2 rabbitmq-api-check: |- #!/bin/sh set -e URL=$1 EXPECTED=$2 ACTUAL=$(curl --silent --show-error --fail "${URL}") echo "${ACTUAL}" test "${EXPECTED}" = "${ACTUAL}" <|endoftext|> # k8s_examples_frontend-deployment.yaml apiVersion: apps/v1 # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1 kind: Deployment metadata: name: frontend spec: selector: matchLabels: app: guestbook tier: frontend replicas: 3 template: metadata: labels: app: guestbook tier: frontend spec: containers: - name: php-redis image: gcr.io/google-samples/gb-frontend:v5 resources: requests: cpu: 100m memory: 100Mi limits: cpu: 200m memory: 100Mi env: - name: GET_HOSTS_FROM value: dns # If your cluster config does not include a dns service, then to # instead access environment variables to find service host # info, comment out the 'value: dns' line above, and uncomment the # line below: # value: env ports: - containerPort: 80 readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: httpGet: path: / port: 80 initialDelaySeconds: 15 periodSeconds: 20 <|endoftext|> # helm_charts_role-secrets.yaml {{ if and .Values.serviceAccount.create (not .Values.server.kubernetes.enabled) .Values.runner.enabled -}} apiVersion: rbac.authorization.k8s.io/{{ required "A valid .Values.rbac.apiVersion entry required!" .Values.rbac.apiVersion }} kind: Role metadata: name: {{ template "drone.fullname" . }}-secrets namespace: {{ .Release.Namespace }} labels: app: {{ template "drone.name" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" rules: - apiGroups: - "" resources: - secrets verbs: - create - delete - get - list - watch {{ end }} <|endoftext|> # k8s_docs_pod1.yaml apiVersion: v1 kind: Pod metadata: name: no-annotation labels: name: multischeduler-example spec: containers: - name: pod-with-no-annotation-container image: registry.k8s.io/pause:3.8 <|endoftext|> # argocd_source_git-generator-files-fasttemplate.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: generators: - git: repoURL: https://github.com/argoproj/argo-cd.git revision: HEAD files: - path: "applicationset/examples/git-generator-files-discovery/cluster-config/**/config.json" template: metadata: name: '{{cluster.name}}-guestbook' spec: project: default source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: "applicationset/examples/git-generator-files-discovery/apps/guestbook" destination: server: https://kubernetes.default.svc #server: '{{cluster.address}}' namespace: guestbook <|endoftext|> # istio_57490.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support for `istioctl ztunnel-config all` and `istioctl pc all` to print headers <|endoftext|> # k8s_docs_dapi-envars-container.yaml apiVersion: v1 kind: Pod metadata: name: dapi-envars-resourcefieldref spec: containers: - name: test-container image: registry.k8s.io/busybox:1.24 command: [ "sh", "-c"] args: - while true; do echo -en '\n'; printenv MY_CPU_REQUEST MY_CPU_LIMIT; printenv MY_MEM_REQUEST MY_MEM_LIMIT; sleep 10; done; resources: requests: memory: "32Mi" cpu: "125m" limits: memory: "64Mi" cpu: "250m" env: - name: MY_CPU_REQUEST valueFrom: resourceFieldRef: containerName: test-container resource: requests.cpu - name: MY_CPU_LIMIT valueFrom: resourceFieldRef: containerName: test-container resource: limits.cpu - name: MY_MEM_REQUEST valueFrom: resourceFieldRef: containerName: test-container resource: requests.memory - name: MY_MEM_LIMIT valueFrom: resourceFieldRef: containerName: test-container resource: limits.memory restartPolicy: Never <|endoftext|> # argocd_source_svc-loadbalancer-unassigned.yaml apiVersion: v1 kind: Service metadata: creationTimestamp: 2018-11-06T01:07:35Z name: argo-artifacts namespace: argo resourceVersion: "346792" selfLink: /api/v1/namespaces/argo/services/argo-artifacts uid: 586f5e57-e160-11e8-b3c1-9ae2f452bd03 spec: clusterIP: 10.105.70.181 externalTrafficPolicy: Cluster ports: - name: service nodePort: 32667 port: 9000 protocol: TCP targetPort: 9000 selector: app: minio release: argo-artifacts sessionAffinity: None type: LoadBalancer status: loadBalancer: {} <|endoftext|> # istio_55281.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Improved** iptables binary detection to verify a degree of baseline kernel support exists, and prefer `nft` in a `tie` situation where both legacy and nft are available, but neither has any rules. <|endoftext|> # helm_charts_kubernetes-system-apiserver.yaml {{- /* Generated from 'kubernetes-system-apiserver' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml Do not change in-place! In order to change this file first read following link: https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack */ -}} {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} {{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.defaultRules.create .Values.defaultRules.rules.kubernetesSystem }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ printf "%s-%s" (include "prometheus-operator.fullname" .) "kubernetes-system-apiserver" | trunc 63 | trimSuffix "-" }} namespace: {{ template "prometheus-operator.namespace" . }} labels: app: {{ template "prometheus-operator.name" . }} {{ include "prometheus-operator.labels" . | indent 4 }} {{- if .Values.defaultRules.labels }} {{ toYaml .Values.defaultRules.labels | indent 4 }} {{- end }} {{- if .Values.defaultRules.annotations }} annotations: {{ toYaml .Values.defaultRules.annotations | indent 4 }} {{- end }} spec: groups: - name: kubernetes-system-apiserver rules: - alert: KubeClientCertificateExpiration annotations: message: A client certificate used to authenticate to the apiserver is expiring in less than 7.0 days. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubeclientcertificateexpiration expr: apiserver_client_certificate_expiration_seconds_count{job="apiserver"} > 0 and on(job) histogram_quantile(0.01, sum by (job, le) (rate(apiserver_client_certificate_expiration_seconds_bucket{job="apiserver"}[5m]))) < 604800 labels: severity: warning - alert: KubeClientCertificateExpiration annotations: message: A client certificate used to authenticate to the apiserver is expiring in less than 24.0 hours. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubeclientcertificateexpiration expr: apiserver_client_certificate_expiration_seconds_count{job="apiserver"} > 0 and on(job) histogram_quantile(0.01, sum by (job, le) (rate(apiserver_client_certificate_expiration_seconds_bucket{job="apiserver"}[5m]))) < 86400 labels: severity: critical - alert: AggregatedAPIErrors annotations: message: An aggregated API {{`{{`}} $labels.name {{`}}`}}/{{`{{`}} $labels.namespace {{`}}`}} has reported errors. The number of errors have increased for it in the past five minutes. High values indicate that the availability of the service changes too often. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-aggregatedapierrors expr: sum by(name, namespace)(increase(aggregator_unavailable_apiservice_count[5m])) > 2 labels: severity: warning - alert: AggregatedAPIDown annotations: message: An aggregated API {{`{{`}} $labels.name {{`}}`}}/{{`{{`}} $labels.namespace {{`}}`}} has been only {{`{{`}} $value | humanize {{`}}`}}% available over the last 5m. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-aggregatedapidown expr: (1 - max by(name, namespace)(avg_over_time(aggregator_unavailable_apiservice[5m]))) * 100 < 90 for: 5m labels: severity: warning {{- if .Values.kubeApiServer.enabled }} - alert: KubeAPIDown annotations: message: KubeAPI has disappeared from Prometheus target discovery. runbook_url: {{ .Values.defaultRules.runbookUrl }}alert-name-kubeapidown expr: absent(up{job="apiserver"} == 1) for: 15m labels: severity: critical {{- end }} {{- end }} <|endoftext|> # k8s_docs_policy-engine-service.yaml kind: Service apiVersion: v1 metadata: name: opa namespace: federation-system spec: selector: app: opa ports: - name: http protocol: TCP port: 8181 targetPort: 8181 <|endoftext|> # argocd_source_argocd-notifications-controller-metrics-service.yaml apiVersion: v1 kind: Service metadata: labels: app.kubernetes.io/component: notifications-controller app.kubernetes.io/name: argocd-notifications-controller-metrics app.kubernetes.io/part-of: argocd name: argocd-notifications-controller-metrics spec: ports: - name: metrics protocol: TCP port: 9001 targetPort: 9001 selector: app.kubernetes.io/name: argocd-notifications-controller <|endoftext|> # helm_charts_pachd_rolebinding.yaml --- {{- if .Values.rbac.create }} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: {{ template "fullname" . }} roleRef: apiGroup: '' kind: ClusterRole name: {{ template "fullname" . }} subjects: - kind: ServiceAccount name: {{ template "fullname" . }} namespace: {{ .Release.Namespace }} {{- end }} <|endoftext|> # helm_charts_redis-connection-secret.yaml apiVersion: v1 kind: Secret metadata: name: {{ template "distribution.fullname" . }}-redis-connection labels: app: {{ template "distribution.name" . }} chart: {{ template "distribution.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: redis_connectionString: {{ template "redis.url" . }} <|endoftext|> # grafana_charts_clusterrole.yaml {{- if .Values.rbac.create }} kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: {{ include "promtail.fullname" . }} labels: {{- include "promtail.labels" . | nindent 4 }} rules: - apiGroups: - "" resources: - nodes - nodes/proxy - services - endpoints - pods verbs: - get - watch - list {{- end }} <|endoftext|> # helm_charts_halyard-init-script.yaml apiVersion: v1 kind: ConfigMap metadata: name: {{ template "spinnaker.fullname" . }}-halyard-init-script labels: {{ include "spinnaker.standard-labels" . | indent 4 }} data: init.sh: | #!/bin/bash # Override Halyard daemon's listen address cp /opt/halyard/config/* /tmp/config printf 'server.address: 0.0.0.0\n' > /tmp/config/halyard-local.yml # Use Redis deployed via the dependent Helm chart rm -rf /tmp/spinnaker/.hal/default/service-settings mkdir -p /tmp/spinnaker/.hal/default/service-settings cp /tmp/service-settings/* /tmp/spinnaker/.hal/default/service-settings/ rm -rf /tmp/spinnaker/.hal/default/profiles mkdir -p /tmp/spinnaker/.hal/default/profiles cp /tmp/additionalProfileConfigMaps/* /tmp/spinnaker/.hal/default/profiles/ rm -rf /tmp/spinnaker/.hal/.boms {{- if .Values.halyard.bom }} mkdir -p /tmp/spinnaker/.hal/.boms/bom cp /tmp/halyard-bom/* /tmp/spinnaker/.hal/.boms/bom {{- end }} {{- if .Values.halyard.serviceConfigs }} for filename in /tmp/service-configs/*; do basename=$(basename -- "$filename") fname="${basename#*_}" servicename="${basename%%_*}" mkdir -p "/tmp/spinnaker/.hal/.boms/$servicename" cp "$filename" "/tmp/spinnaker/.hal/.boms/$servicename/$fname" done {{- end }} {{- if hasKey .Values.halyard "additionalInitScript" }} # additionalInitScript {{ tpl .Values.halyard.additionalInitScript $ | indent 4 }} {{- end }} <|endoftext|> # argocd_source_actions_test.yaml tests: # Scenario 1: autosync enabled (enabled=nil, i.e. default) with prune+selfHeal -> disable (set enabled=false, preserve prune/selfHeal) - given: apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: test-app spec: syncPolicy: automated: prune: true selfHeal: true when: action: toggle-auto-sync expect: spec: syncPolicy: automated: prune: true selfHeal: true enabled: false # Scenario 2: autosync disabled (enabled=false) with prune+selfHeal -> enable (set enabled=true, preserve prune/selfHeal) - given: apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: test-app spec: syncPolicy: automated: prune: true selfHeal: true enabled: false when: action: toggle-auto-sync expect: spec: syncPolicy: automated: prune: true selfHeal: true enabled: true # Scenario 3: autosync explicitly enabled (enabled=true) -> disable - given: apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: test-app spec: syncPolicy: automated: enabled: true when: action: toggle-auto-sync expect: spec: syncPolicy: automated: enabled: false # Scenario 4: no automated block (autosync off) -> enable (create automated with enabled=true) - given: apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: test-app spec: {} when: action: toggle-auto-sync expect: spec: syncPolicy: automated: enabled: true <|endoftext|> # helm_charts_config-map_startup-scripts.yaml kind: ConfigMap apiVersion: v1 metadata: name: {{ template "percona-xtradb-cluster.fullname" . }}-startup-scripts labels: app: {{ template "percona-xtradb-cluster.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" data: entrypoint.sh: | {{ .Files.Get "files/entrypoint.sh" | indent 4 }} functions.sh: | {{ .Files.Get "files/functions.sh" | indent 4 }} <|endoftext|> # flux_source_podinfo-with-ignore-result.yaml apiVersion: v1 data: var: test kind: ConfigMap metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: configmap_ignore namespace: default --- apiVersion: v1 data: token: KipTT1BTKio= kind: Secret metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: secret_ignore namespace: default type: Opaque --- <|endoftext|> # helm_source_test-runner.yaml apiVersion: v1 kind: Pod metadata: name: "{{ template "mariadb.fullname" . }}-test-{{ randAlphaNum 5 | lower }}" annotations: "helm.sh/hook": test-success spec: initContainers: - name: "test-framework" image: "dduportal/bats:0.4.0" command: - "bash" - "-c" - | set -ex # copy bats to tools dir cp -R /usr/local/libexec/ /tools/bats/ volumeMounts: - mountPath: /tools name: tools containers: - name: mariadb-test image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy | quote }} command: ["/tools/bats/bats", "-t", "/tests/run.sh"] env: - name: MARIADB_ROOT_PASSWORD valueFrom: secretKeyRef: name: {{ template "mariadb.fullname" . }} key: mariadb-root-password volumeMounts: - mountPath: /tests name: tests readOnly: true - mountPath: /tools name: tools volumes: - name: tests configMap: name: {{ template "mariadb.fullname" . }}-tests - name: tools emptyDir: {} restartPolicy: Never <|endoftext|> # helm_charts_cluster-agent-pdb.yaml {{- if .Values.clusterAgent.createPodDisruptionBudget -}} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ template "datadog.fullname" . }}-cluster-agent labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} spec: minAvailable: 1 selector: matchLabels: app: {{ template "datadog.fullname" . }}-cluster-agent {{- end -}} <|endoftext|> # istio_refactor-keycertbundle.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: [] releaseNotes: - | **Fixed** Corrected documentation for `rootCertExpiryTimestamp` and `citadel_server_cert_chain_expiry_timestamp`. upgradeNotes: - title: Change in cert expiry metrics content: | `rootCertExpiryTimestamp` and `certChainExpiryTimestamp` no longer record a negative number for expired certificate/certificate chains. This was never the actual behavior, but the docs are now updated to reflect the actual behavior. Users who relied on this behavior should check the signs of `rootCertExpirySeconds` and `certChainExpirySeconds` instead. <|endoftext|> # argocd_source_degraded_replicas_unknown.yaml apiVersion: rabbitmq.com/v1beta1 kind: RabbitmqCluster metadata: labels: app: example-rabbitmq name: example-rabbitmq namespace: example spec: image: docker.io/bitnami/rabbitmq:3.10.7-debian-11-r8 persistence: storage: 32Gi storageClassName: default rabbitmq: replicas: 3 resources: limits: cpu: 250m memory: 1792Mi requests: cpu: 250m memory: 1792Mi service: type: ClusterIP status: conditions: - lastTransitionTime: "2023-08-30T07:44:34Z" reason: MissingStatefulSet message: Could not find StatefulSet status: "Unknown" type: AllReplicasReady - lastTransitionTime: "2023-08-30T07:37:06Z" reason: NoEndpointsAvailable message: The service has no endpoints available status: "False" type: ClusterAvailable - lastTransitionTime: "2023-08-30T07:33:06Z" reason: NoWarnings status: "True" type: NoWarnings - lastTransitionTime: "2023-08-30T07:44:39Z" message: Finish reconciling reason: Success status: "True" type: ReconcileSuccess <|endoftext|> # istio_31573.yaml apiVersion: release-notes/v2 kind: bug-fix area: EnvoyFilter issue: - 31573 releaseNotes: - | **Fixed** a bug where the EnvoyFilter HTTP_FILTER didn't support INSERT_FIRST <|endoftext|> # k8s_examples_example-pod.yaml apiVersion: v1 kind: ReplicationController metadata: name: server spec: replicas: 1 selector: role: server template: metadata: labels: role: server spec: containers: - name: server image: nginx volumeMounts: - mountPath: /var/lib/www/html name: quobytepvc volumes: - name: quobytepvc persistentVolumeClaim: claimName: claim1 <|endoftext|> # helm_charts_client-pdb.yaml {{- if .Values.client.podDisruptionBudget.enabled }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: labels: app: {{ template "elasticsearch.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} component: "{{ .Values.client.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "elasticsearch.client.fullname" . }} spec: {{- if .Values.client.podDisruptionBudget.minAvailable }} minAvailable: {{ .Values.client.podDisruptionBudget.minAvailable }} {{- end }} {{- if .Values.client.podDisruptionBudget.maxUnavailable }} maxUnavailable: {{ .Values.client.podDisruptionBudget.maxUnavailable }} {{- end }} selector: matchLabels: app: {{ template "elasticsearch.name" . }} component: "{{ .Values.client.name }}" release: {{ .Release.Name }} {{- end }} <|endoftext|> # cert_manager_cainjector-psp.yaml {{- if .Values.cainjector.enabled }} {{- if .Values.global.podSecurityPolicy.enabled }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ template "cainjector.fullname" . }} labels: app: {{ include "cainjector.name" . }} app.kubernetes.io/name: {{ include "cainjector.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "cainjector" {{- include "labels" . | nindent 4 }} annotations: seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default' seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default' {{- if .Values.global.podSecurityPolicy.useAppArmor }} apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default' apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default' {{- end }} spec: privileged: false allowPrivilegeEscalation: false allowedCapabilities: [] # default set of capabilities are implicitly allowed volumes: - 'configMap' - 'emptyDir' - 'projected' - 'secret' - 'downwardAPI' hostNetwork: false hostIPC: false hostPID: false runAsUser: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 seLinux: rule: 'RunAsAny' supplementalGroups: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 fsGroup: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 {{- end }} {{- end }} <|endoftext|> # istio_auto-san-validation-support.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** the ability to perform automatic SAN validation based on the downstream HTTP host/authority header when `ENABLE_AUTO_SNI` and `VERIFY_CERTIFICATE_AT_CLIENT` feature flags are enabled. docs: - https://docs.google.com/document/d/1pTUl-Ng3nXAWJb7UGJtalftznpxQEfID/ - https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/protocol.proto#config-core-v3-upstreamhttpprotocoloptions <|endoftext|> # istio_50791.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 50790 releaseNotes: - | **Added** Add --for flag to istioctl x waypoint generate command so that the user can preview the yaml before they apply it. <|endoftext|> # k8s_examples_pod-uses-shared-hdd.yaml kind: Pod apiVersion: v1 metadata: name: pod-uses-shared-hdd-5g labels: name: storage spec: containers: - image: nginx name: az-c-01 command: - /bin/sh - -c - while true; do echo $(date) >> /mnt/blobdisk/outfile; sleep 1; done volumeMounts: - name: blobdisk01 mountPath: /mnt/blobdisk volumes: - name: blobdisk01 persistentVolumeClaim: claimName: pv-dd-shared-hdd-5g <|endoftext|> # istio_job.yaml apiVersion: batch/v1 kind: Job metadata: name: pi spec: template: metadata: name: pi spec: containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] restartPolicy: Never <|endoftext|> # k8s_docs_redis-leader-deployment.yaml # SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook apiVersion: apps/v1 kind: Deployment metadata: name: redis-leader labels: app: redis role: leader tier: backend spec: replicas: 1 selector: matchLabels: app: redis template: metadata: labels: app: redis role: leader tier: backend spec: containers: - name: leader image: "registry.k8s.io/redis@sha256:cb111d1bd870a6a471385a4a69ad17469d326e9dd91e0e455350cacf36e1b3ee" resources: requests: cpu: 100m memory: 100Mi ports: - containerPort: 6379 <|endoftext|> # flux_source_allow-webhooks.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-webhooks spec: policyTypes: - Ingress ingress: - from: - namespaceSelector: {} podSelector: matchLabels: app: notification-controller <|endoftext|> # k8s_examples_minio-standalone-service.yaml apiVersion: v1 kind: Service metadata: name: minio-service spec: type: LoadBalancer ports: - port: 9000 targetPort: 9000 protocol: TCP selector: app: minio <|endoftext|> # flux_source_helm-repo.yaml --- apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: name: flux-system namespace: {{ .fluxns }} spec: interval: 5m0s provider: generic timeout: 1m0s url: https://stefanprodan.github.io/podinfo <|endoftext|> # kube_prometheus_prometheus-serviceAccount.yaml apiVersion: v1 automountServiceAccountToken: true kind: ServiceAccount metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: monitoring <|endoftext|> # k8s_docs_deployment-sidecar.yaml apiVersion: apps/v1 kind: Deployment metadata: name: myapp labels: app: myapp spec: replicas: 1 selector: matchLabels: app: myapp template: metadata: labels: app: myapp spec: containers: - name: myapp image: alpine:latest command: ['sh', '-c', 'while true; do echo "logging" >> /opt/logs.txt; sleep 1; done'] volumeMounts: - name: data mountPath: /opt initContainers: - name: logshipper image: alpine:latest restartPolicy: Always command: ['sh', '-c', 'tail -F /opt/logs.txt'] volumeMounts: - name: data mountPath: /opt volumes: - name: data emptyDir: {} <|endoftext|> # helm_charts_secret-gitconfig.yaml {{- if .Values.gitconfig}} apiVersion: v1 kind: Secret metadata: name: {{ template "atlantis.fullname" . }}-gitconfig labels: app: {{ template "atlantis.name" . }} chart: {{ template "atlantis.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} data: gitconfig: {{ .Values.gitconfig | b64enc }} {{- end }} <|endoftext|> # istio_38676.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 38676 releaseNotes: - | **Fixed** change to add priority of -1 to envoyFilters deployed by default by istio to remove warnings from istioctl envoyFilter analyzer on first install <|endoftext|> # flux_source_no-ns.yaml apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: name: podinfo spec: path: "./clusters/test-build" <|endoftext|> # k8s_docs_zookeeper.yaml apiVersion: v1 kind: Service metadata: name: zk-hs labels: app: zk spec: ports: - port: 2888 name: server - port: 3888 name: leader-election clusterIP: None selector: app: zk --- apiVersion: v1 kind: Service metadata: name: zk-cs labels: app: zk spec: ports: - port: 2181 name: client selector: app: zk --- apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb spec: selector: matchLabels: app: zk maxUnavailable: 1 --- apiVersion: apps/v1 kind: StatefulSet metadata: name: zk spec: selector: matchLabels: app: zk serviceName: zk-hs replicas: 3 updateStrategy: type: RollingUpdate podManagementPolicy: OrderedReady template: metadata: labels: app: zk spec: affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: "app" operator: In values: - zk topologyKey: "kubernetes.io/hostname" containers: - name: kubernetes-zookeeper imagePullPolicy: Always image: "k8s.gcr.io/kubernetes-zookeeper:1.0-3.4.10" resources: requests: memory: "1Gi" cpu: "0.5" ports: - containerPort: 2181 name: client - containerPort: 2888 name: server - containerPort: 3888 name: leader-election command: - sh - -c - "start-zookeeper \ --servers=3 \ --data_dir=/var/lib/zookeeper/data \ --data_log_dir=/var/lib/zookeeper/data/log \ --conf_dir=/opt/zookeeper/conf \ --client_port=2181 \ --election_port=3888 \ --server_port=2888 \ --tick_time=2000 \ --init_limit=10 \ --sync_limit=5 \ --heap=512M \ --max_client_cnxns=60 \ --snap_retain_count=3 \ --purge_interval=12 \ --max_session_timeout=40000 \ --min_session_timeout=4000 \ --log_level=INFO" readinessProbe: exec: command: - sh - -c - "zookeeper-ready 2181" initialDelaySeconds: 10 timeoutSeconds: 5 livenessProbe: exec: command: - sh - -c - "zookeeper-ready 2181" initialDelaySeconds: 10 timeoutSeconds: 5 volumeMounts: - name: datadir mountPath: /var/lib/zookeeper securityContext: runAsUser: 1000 fsGroup: 1000 volumeClaimTemplates: - metadata: name: datadir spec: accessModes: [ "ReadWriteOnce" ] resources: requests: storage: 10Gi <|endoftext|> # grafana_charts_daemonset.yaml {{- if .Values.daemonset.enabled }} apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ include "promtail.fullname" . }} namespace: {{ include "promtail.namespaceName" . }} labels: {{- include "promtail.labels" . | nindent 4 }} {{- with .Values.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if .Values.revisionHistoryLimit }} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} {{- end }} selector: matchLabels: {{- include "promtail.selectorLabels" . | nindent 6 }} updateStrategy: {{- toYaml .Values.updateStrategy | nindent 4 }} template: {{- include "promtail.podTemplate" . | nindent 4 }} {{- end }} <|endoftext|> # helm_charts_couchbase-cluster-role.yaml {{- if and .Values.rbac.create .Values.rbac.clusterRoleAccess -}} --- apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }} kind: ClusterRole metadata: name: {{ template "couchbase-operator.fullname" . }} labels: app.kubernetes.io/name: {{ include "couchbase-operator.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} helm.sh/chart: {{ include "couchbase-operator.chart" . }} rules: - apiGroups: - couchbase.com resources: - couchbaseclusters verbs: - get - list - watch - update - apiGroups: - apiextensions.k8s.io resources: - customresourcedefinitions verbs: - get - create - apiGroups: - "" resources: - pods - services - endpoints - persistentvolumeclaims verbs: - get - list - watch - create - update - delete - apiGroups: - "" resources: - pods/exec verbs: - create - apiGroups: - "" resources: - events verbs: - create - patch - apiGroups: - "" resources: - secrets verbs: - get - apiGroups: - policy resources: - poddisruptionbudgets verbs: - get - create - delete {{- end }} <|endoftext|> # argocd_source_redis-role.yaml {{- if and .Values.rbac.create .Values.rbac.role.rules -}} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ template "redis.fullname" . }} labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" rules: {{ toYaml .Values.rbac.role.rules }} {{- end -}} <|endoftext|> # helm_charts_ethstats.service.yaml kind: Service apiVersion: v1 metadata: name: {{ template "ethereum.fullname" . }}-ethstats labels: app: {{ template "ethereum.name" . }} chart: {{ template "ethereum.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: ethstats spec: selector: app: {{ template "ethereum.name" . }} release: {{ .Release.Name }} component: ethstats type: {{ .Values.ethstats.service.type }} ports: - port: 80 targetPort: http <|endoftext|> # helm_charts_spark-cronjob.yaml {{- if .Values.spark.enabled -}} apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ include "jaeger.fullname" . }}-spark labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} helm.sh/chart: {{ include "jaeger.chart" . }} app.kubernetes.io/component: spark app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} {{- if .Values.spark.annotations }} annotations: {{ toYaml .Values.spark.annotations | indent 4 }} {{- end }} spec: schedule: {{ .Values.spark.schedule | quote }} successfulJobsHistoryLimit: {{ .Values.spark.successfulJobsHistoryLimit }} failedJobsHistoryLimit: {{ .Values.spark.failedJobsHistoryLimit }} jobTemplate: spec: template: metadata: labels: app.kubernetes.io/name: {{ include "jaeger.name" . }} app.kubernetes.io/component: spark app.kubernetes.io/instance: {{ .Release.Name }} {{- if .Values.spark.podLabels }} {{ toYaml .Values.spark.podLabels | indent 12 }} {{- end }} spec: nodeSelector: {{ toYaml .Values.spark.nodeSelector | indent 12 }} {{- if .Values.spark.tolerations }} tolerations: {{ toYaml .Values.spark.tolerations | indent 12 }} {{- end }} serviceAccountName: {{ template "jaeger.spark.serviceAccountName" . }} containers: - name: {{ include "jaeger.fullname" . }}-spark image: {{ .Values.spark.image }}:{{ .Values.spark.tag }} imagePullPolicy: {{ .Values.spark.pullPolicy }} env: - name: STORAGE value: {{ .Values.storage.type }} {{- if eq .Values.storage.type "cassandra" }} - name: CASSANDRA_CONTACT_POINTS value: {{ template "cassandra.contact_points" . }} - name: CASSANDRA_KEYSPACE value: {{ printf "%s_%s" "jaeger_v1" .Values.cassandra.config.dc_name | quote }} {{- end }} {{- if eq .Values.storage.type "elasticsearch" }} - name: ES_NODES value: {{ template "elasticsearch.client.url" . }} - name: ES_NODES_WAN_ONLY value: {{ .Values.storage.elasticsearch.nodesWanOnly | quote }} {{- if .Values.storage.elasticsearch.usePassword }} - name: ES_PASSWORD valueFrom: secretKeyRef: name: {{ if .Values.storage.elasticsearch.existingSecret }}{{ .Values.storage.elasticsearch.existingSecret }}{{- else }}{{ include "jaeger.fullname" . }}-elasticsearch{{- end }} key: password {{- end }} - name: ES_USERNAME value: {{ .Values.storage.elasticsearch.user }} {{- end }} resources: {{ toYaml .Values.spark.resources | indent 14 }} restartPolicy: OnFailure {{- end -}} <|endoftext|> # istio_httproute-status-for-svc-svcentry.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** status information to HTTPRoute resources to indicate the status of parentRefs for service and service entry resources, as well as a new condition to indicate the status of waypoint configuration when in ambient mode. <|endoftext|> # helm_charts_hpa-rbac.yaml {{- if and .Values.clusterAgent.enabled .Values.clusterAgent.rbac.create .Values.clusterAgent.metricsProvider.enabled -}} apiVersion: {{ template "rbac.apiVersion" . }} kind: ClusterRole metadata: labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-agent-external-metrics-reader rules: - apiGroups: - "external.metrics.k8s.io" resources: - "*" verbs: - list - get - watch --- apiVersion: {{ template "rbac.apiVersion" . }} kind: ClusterRoleBinding metadata: labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: {{ template "datadog.fullname" . }}-cluster-agent-external-metrics-reader roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {{ template "datadog.fullname" . }}-cluster-agent-external-metrics-reader subjects: - kind: ServiceAccount name: horizontal-pod-autoscaler namespace: kube-system --- apiVersion: {{ template "rbac.apiVersion" . }} kind: RoleBinding metadata: labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} name: "{{ template "datadog.fullname" . }}-cluster-agent" roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: extension-apiserver-authentication-reader subjects: - kind: ServiceAccount name: {{ template "datadog.fullname" . }}-cluster-agent namespace: {{ .Release.Namespace }} {{- end -}} <|endoftext|> # helm_charts_job-grpc-certs.yaml {{- if and .Values.grpc .Values.certs.grpc.create }} {{ $fullname := include "dex.fullname" . }} {{ $tlsServerBuiltName := printf "%s-server-tls" $fullname }} {{ $tlsServerSecretName := default $tlsServerBuiltName .Values.certs.grpc.secret.serverTlsName }} {{ $tlsClientBuiltName := printf "%s-client-tls" $fullname }} {{ $tlsClientSecretName := default $tlsClientBuiltName .Values.certs.grpc.secret.clientTlsName }} {{ $caBuiltName := printf "%s-ca" $fullname }} {{ $caName := default $caBuiltName .Values.certs.grpc.secret.caName }} {{ $openSslConfigName := printf "%s-openssl-config" $fullname }} {{ $local := dict "i" 0 }} apiVersion: batch/v1 kind: Job metadata: annotations: "helm.sh/hook": post-install "helm.sh/hook-weight": "2" "helm.sh/hook-delete-policy": hook-succeeded name: {{ $fullname }}-grpc-certs labels: {{ include "dex.labels" . | indent 4 }} app.kubernetes.io/component: "job-grpc-certs" spec: activeDeadlineSeconds: {{ .Values.certs.grpc.activeDeadlineSeconds }} template: metadata: labels: app.kubernetes.io/name: {{ include "dex.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "job-grpc-certs" {{- if .Values.certs.grpc.pod.annotations }} annotations: {{ toYaml .Values.certs.grpc.pod.annotations | trim | indent 8 }} {{- end }} spec: {{- if .Values.certs.securityContext.enabled }} securityContext: runAsUser: {{ .Values.certs.securityContext.runAsUser }} fsGroup: {{ .Values.certs.securityContext.fsGroup }} {{- end }} serviceAccountName: {{ template "dex.serviceAccountName" . }} nodeSelector: {{ toYaml .Values.certs.grpc.pod.nodeSelector | indent 8 }} {{- with .Values.certs.grpc.pod.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.certs.grpc.pod.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} restartPolicy: OnFailure containers: - name: main image: "{{ .Values.certs.image }}:{{ .Values.certs.imageTag }}" imagePullPolicy: {{ .Values.certs.imagePullPolicy }} env: - name: HOME value: /tmp workingDir: /tmp command: - /bin/bash - -exc - | export CONFIG=/etc/dex/tls/grpc/openssl.conf; cat << EOF > san.cnf {{- $_ := set $local "i" 1 }} {{- range .Values.certs.grpc.altNames }} DNS.{{ $local.i }}:{{ . }} {{- $_ := set $local "i" ( add1 $local.i ) }} {{- end }} {{- $_ := set $local "i" 1 }} {{- range .Values.certs.grpc.altIPs }} IP.{{ $local.i }}:{{ . }} {{- $_ := set $local "i" ( add1 $local.i ) }} {{- end }} EOF export SAN=$(cat san.cnf | paste -sd "," -) # Creating basic files/directories mkdir -p {certs,crl,newcerts} touch index.txt touch index.txt.attr echo 1000 > serial # CA private key (unencrypted) openssl genrsa -out ca.key 4096; # Certificate Authority (self-signed certificate) openssl req -config $CONFIG -new -x509 -days 3650 -sha256 -key ca.key -extensions v3_ca -out ca.crt -subj "/CN=grpc-ca"; # Server private key (unencrypted) openssl genrsa -out server.key 2048; # Server certificate signing request (CSR) openssl req -config $CONFIG -new -sha256 -key server.key -out server.csr -subj "/CN=grpc-server"; # Certificate Authority signs CSR to grant a certificate openssl ca -batch -config $CONFIG -extensions server_cert -days 365 -notext -md sha256 -in server.csr -out server.crt -cert ca.crt -keyfile ca.key; # Client private key (unencrypted) openssl genrsa -out client.key 2048; # Signed client certificate signing request (CSR) openssl req -config $CONFIG -new -sha256 -key client.key -out client.csr -subj "/CN=grpc-client"; # Certificate Authority signs CSR to grant a certificate openssl ca -batch -config $CONFIG -extensions usr_cert -days 365 -notext -md sha256 -in client.csr -out client.crt -cert ca.crt -keyfile ca.key; # Remove CSR's rm *.csr; # Cleanup the existing configmap and secrets kubectl delete configmap {{ $caName }} --namespace {{ .Release.Namespace }} || true kubectl delete secret {{ $caName }} {{ $tlsServerSecretName }} {{ $tlsClientSecretName }} --namespace {{ .Release.Namespace }} || true kubectl create configmap {{ $caName }} --namespace {{ .Release.Namespace }} --from-file=ca.crt; # Store all certficates in secrets kubectl create secret tls {{ $caName }} --namespace {{ .Release.Namespace }} --cert=ca.crt --key=ca.key; kubectl create secret tls {{ $tlsServerSecretName }} --namespace {{ .Release.Namespace }} --cert=server.crt --key=server.key; kubectl create secret tls {{ $tlsClientSecretName }} --namespace {{ .Release.Namespace }} --cert=client.crt --key=client.key; volumeMounts: - name: openssl-config mountPath: /etc/dex/tls/grpc volumes: - name: openssl-config configMap: name: {{ $openSslConfigName }} {{- end }} <|endoftext|> # argocd_source_appsdeployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: nginx-deployment spec: template: metadata: labels: name: nginx spec: containers: - name: nginx image: nginx <|endoftext|> # istio_virtual-service-all-v1.yaml apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: productpage spec: hosts: - productpage http: - route: - destination: host: productpage subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: reviews spec: hosts: - reviews http: - route: - destination: host: reviews subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: ratings spec: hosts: - ratings http: - route: - destination: host: ratings subset: v1 --- apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: details spec: hosts: - details http: - route: - destination: host: details subset: v1 --- <|endoftext|> # istio_disable-leader-elect.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - https://github.com/istio/istio/issues/40427 docs: - '[reference] https://istio.io/latest/docs/reference/commands/pilot-discovery/' releaseNotes: - | **Added** an `ENABLE_LEADER_ELECTION=false` feature flag for pilot-discovery to disable leader election when using a single replica of istiod. <|endoftext|> # istio_telemetry-selector.yaml apiVersion: v1 kind: Pod metadata: labels: app: productpage name: productpage namespace: default --- apiVersion: v1 kind: Pod metadata: labels: app: productpage name: productpage-other namespace: other --- apiVersion: v1 kind: Pod metadata: labels: app: reviews name: reviews namespace: default --- apiVersion: v1 kind: Pod metadata: labels: app: ratings-app myapp: ratings-myapp name: ratings namespace: default --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: maps-correctly-no-conflicts namespace: default spec: selector: matchLabels: app: productpage # Maps to an existing workload without conflicts in the same ns, no error metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: maps-to-nonexistent namespace: default spec: selector: matchLabels: app: bogus # This doesn't exist, and should generate an error metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: maps-to-different-ns namespace: other spec: selector: matchLabels: app: reviews # This doesn't exist in the current namespace, and should generate an error metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: dupe-1 namespace: default spec: selector: matchLabels: app: reviews # Multiple telemetries have the same selector, should generate errors for both metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: dupe-2 namespace: default spec: selector: matchLabels: app: reviews # Multiple telemetries have the same selector, should generate errors for both metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: overlap-1 namespace: default spec: selector: matchLabels: app: ratings-app # Multiple telemetries select overlapping workloads, should generate errors for both metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false --- apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: overlap-2 namespace: default spec: selector: matchLabels: myapp: ratings-myapp # Multiple telemetries select overlapping workloads, should generate errors for both metrics: - providers: - name: prometheus overrides: - match: metric: ALL_METRICS disabled: false <|endoftext|> # istio_57890.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - https://github.com/istio/istio/issues/57890 releaseNotes: - | **Fixed** missing gateway reconciliation for meshconfig changes <|endoftext|> # helm_charts_insight-executor-deployment.yaml apiVersion: apps/v1beta2 kind: Deployment metadata: name: {{ template "insight-executor.fullname" . }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.insightExecutor.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.insightExecutor.replicaCount }} selector: matchLabels: app: {{ template "mission-control.name" . }} component: {{ .Values.insightExecutor.name }} release: {{ .Release.Name }} template: metadata: labels: app: {{ template "mission-control.name" . }} component: {{ .Values.insightExecutor.name }} release: {{ .Release.Name }} spec: serviceAccountName: {{ template "mission-control.serviceAccountName" . }} {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} containers: - name: {{ .Values.insightExecutor.name }} image: {{ .Values.insightExecutor.image }}:{{ default .Chart.AppVersion .Values.insightExecutor.version }} imagePullPolicy: {{ .Values.imagePullPolicy }} env: - name: CORE_URL value: 'http://{{ template "insight-server.fullname" . }}:{{ .Values.insightServer.internalHttpPort }}' - name: JFI_HOME value: '/var/cloudbox' - name: JFI_HOME_EXECUTOR value: '/var/cloudbox/executor' ports: - containerPort: {{ .Values.insightExecutor.internalPort }} protocol: TCP volumeMounts: - name: insight-executor-data mountPath: {{ .Values.insightExecutor.persistence.mountPath | quote }} livenessProbe: httpGet: path: /executorservice/api port: 8080 initialDelaySeconds: 180 periodSeconds: 10 readinessProbe: httpGet: path: /executorservice/api port: 8080 initialDelaySeconds: 180 periodSeconds: 10 resources: {{ toYaml .Values.insightExecutor.resources | indent 10 }} {{- with .Values.insightExecutor.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.insightExecutor.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.insightExecutor.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: insight-executor-data {{- if .Values.insightExecutor.persistence.enabled }} persistentVolumeClaim: claimName: {{ if .Values.insightExecutor.persistence.existingClaim }}{{ .Values.insightExecutor.persistence.existingClaim }}{{ else }}{{ template "insight-executor.fullname" . }}{{ end }} {{- else }} emptyDir: {} {{- end }} <|endoftext|> # grafana_charts_statefulset-ruler.yaml {{- if and (eq .Values.ruler.kind "StatefulSet") .Values.ruler.enabled }} apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "loki.rulerFullname" . }} labels: {{- include "loki.rulerLabels" . | nindent 4 }} app.kubernetes.io/part-of: memberlist {{- with .Values.loki.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: replicas: {{ .Values.ruler.replicas }} revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} serviceName: {{ include "loki.rulerFullname" . }} selector: matchLabels: {{- include "loki.rulerSelectorLabels" . | nindent 6 }} template: metadata: annotations: {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "loki.rulerSelectorLabels" . | nindent 8 }} app.kubernetes.io/part-of: memberlist {{- with .Values.loki.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- include "loki.rulerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.ruler.terminationGracePeriodSeconds }} {{- with .Values.ruler.initContainers }} initContainers: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: ruler image: {{ include "loki.rulerImage" . }} imagePullPolicy: {{ .Values.loki.image.pullPolicy }} args: - -config.file=/etc/loki/config/config.yaml - -target=ruler {{- with .Values.ruler.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} ports: - name: http containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP - name: http-memberlist containerPort: 7946 protocol: TCP {{- with .Values.ruler.extraEnv }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.ruler.extraEnvFrom }} envFrom: {{- toYaml . | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.loki.containerSecurityContext | nindent 12 }} readinessProbe: {{- toYaml .Values.loki.readinessProbe | nindent 12 }} livenessProbe: {{- toYaml .Values.loki.livenessProbe | nindent 12 }} volumeMounts: - name: config mountPath: /etc/loki/config - name: runtime-config mountPath: /var/{{ include "loki.name" . }}-runtime - name: data mountPath: /var/loki - name: tmp mountPath: /tmp/loki {{- range $dir, $_ := .Values.ruler.directories }} - name: {{ include "loki.rulerRulesDirName" $dir }} mountPath: /etc/loki/rules/{{ $dir }} {{- end }} {{- with .Values.ruler.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} resources: {{- toYaml .Values.ruler.resources | nindent 12 }} {{- with .Values.ruler.extraContainers }} {{- toYaml . | nindent 8}} {{- end }} {{- with .Values.ruler.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.ruler.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.dnsConfig }} dnsConfig: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- if .Values.loki.existingSecretForConfig }} secret: secretName: {{ .Values.loki.existingSecretForConfig }} {{- else if .Values.loki.configAsSecret }} secret: secretName: {{ include "loki.fullname" . }}-config {{- else }} configMap: name: {{ include "loki.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "loki.fullname" . }}-runtime {{- range $dir, $_ := .Values.ruler.directories }} - name: {{ include "loki.rulerRulesDirName" $dir }} configMap: name: {{ include "loki.rulerFullname" $ }}-{{ include "loki.rulerRulesDirName" $dir }} {{- end }} - name: tmp emptyDir: {} {{- with .Values.ruler.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- if not .Values.ruler.persistence.enabled }} - name: data emptyDir: {} {{- else }} volumeClaimTemplates: - metadata: name: data {{- with .Values.ruler.persistence.annotations }} annotations: {{- . | toYaml | nindent 10 }} {{- end }} spec: accessModes: - ReadWriteOnce {{- with .Values.ruler.persistence.storageClass }} storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }} {{- end }} resources: requests: storage: {{ .Values.ruler.persistence.size | quote }} {{- end }} {{- end }} <|endoftext|> # istio_istioctl_completion-ns.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: istioctl # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** support for auto-completion of the namespace for istioctl. <|endoftext|> # argocd_source_guestbook.yaml apiVersion: apps/v1 kind: Deployment metadata: name: guestbook-ui spec: selector: matchLabels: app: guestbook-ui template: metadata: labels: app: guestbook-ui spec: containers: - image: quay.io/argoprojlabs/argocd-e2e-container:0.1 name: guestbook-ui ports: - containerPort: 81 <|endoftext|> # k8s_docs_private-reg-pod.yaml apiVersion: v1 kind: Pod metadata: name: private-reg spec: containers: - name: private-reg-container image: imagePullSecrets: - name: regcred <|endoftext|> # helm_charts_operator-deployment.yaml {{- if .Values.deployments.etcdOperator }} --- apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "etcd-operator.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" app: {{ template "etcd-operator.name" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: selector: matchLabels: app: {{ template "etcd-operator.fullname" . }} release: {{ .Release.Name }} replicas: {{ .Values.etcdOperator.replicaCount }} template: metadata: name: {{ template "etcd-operator.fullname" . }} labels: app: {{ template "etcd-operator.fullname" . }} release: {{ .Release.Name }} annotations: {{ toYaml .Values.etcdOperator.podAnnotations | nindent 8}} spec: {{- if .Values.etcdOperator.priorityClassName }} priorityClassName: {{ .Values.etcdOperator.priorityClassName }} {{- end }} serviceAccountName: {{ template "etcd-operator.serviceAccountName" . }} containers: - name: {{ template "etcd-operator.fullname" . }} image: "{{ .Values.etcdOperator.image.repository }}:{{ .Values.etcdOperator.image.tag }}" imagePullPolicy: {{ .Values.etcdOperator.image.pullPolicy }} command: - etcd-operator {{- range $key, $value := .Values.etcdOperator.commandArgs }} - "--{{ $key }}={{ $value }}" {{- end }} env: - name: MY_POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: MY_POD_NAME valueFrom: fieldRef: fieldPath: metadata.name resources: limits: cpu: {{ .Values.etcdOperator.resources.cpu }} memory: {{ .Values.etcdOperator.resources.memory }} requests: cpu: {{ .Values.etcdOperator.resources.cpu }} memory: {{ .Values.etcdOperator.resources.memory }} {{- if .Values.etcdOperator.livenessProbe.enabled }} livenessProbe: httpGet: path: /readyz port: 8080 initialDelaySeconds: {{ .Values.etcdOperator.livenessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.etcdOperator.livenessProbe.periodSeconds }} timeoutSeconds: {{ .Values.etcdOperator.livenessProbe.timeoutSeconds }} successThreshold: {{ .Values.etcdOperator.livenessProbe.successThreshold }} failureThreshold: {{ .Values.etcdOperator.livenessProbe.failureThreshold }} {{- end}} {{- if .Values.etcdOperator.readinessProbe.enabled }} readinessProbe: httpGet: path: /readyz port: 8080 initialDelaySeconds: {{ .Values.etcdOperator.readinessProbe.initialDelaySeconds }} periodSeconds: {{ .Values.etcdOperator.readinessProbe.periodSeconds }} timeoutSeconds: {{ .Values.etcdOperator.readinessProbe.timeoutSeconds }} successThreshold: {{ .Values.etcdOperator.readinessProbe.successThreshold }} failureThreshold: {{ .Values.etcdOperator.readinessProbe.failureThreshold }} {{- end }} {{- if .Values.etcdOperator.nodeSelector }} nodeSelector: {{ toYaml .Values.etcdOperator.nodeSelector | nindent 8 }} {{- end }} {{- if .Values.etcdOperator.securityContext }} securityContext: {{ toYaml .Values.etcdOperator.securityContext | nindent 8 }} {{- end }} {{- if .Values.etcdOperator.tolerations }} tolerations: {{ toYaml .Values.etcdOperator.tolerations | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # istio_clusterIP-gateway-chart.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** service.clusterIP configuration to Gateway chart to support overriding the `spec.clusterIP` of the Service resource. This could be useful in cases where the user wants to set a specific ClusterIP for the Gateway Service instead of relying on automatic assignment. <|endoftext|> # argocd_source_smd-deploy-config.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: missing applications.argoproj.io/app-name: nginx something-else: bla name: nginx-deployment namespace: default spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx applications.argoproj.io/app-name: nginx spec: containers: - image: 'nginx:1.23.1' imagePullPolicy: Never livenessProbe: exec: command: - cat - non-existent-file initialDelaySeconds: 5 periodSeconds: 180 name: nginx ports: - containerPort: 80 <|endoftext|> # istio_curl-sample.yaml apiVersion: release-notes/v2 kind: feature area: documentation issue: - https://github.com/istio/istio.io/issues/15725 releaseNotes: - | **Improved** legibility of Istio's documentation by renaming the `sleep` sample to `curl`. <|endoftext|> # helm_charts_enterprise_feeds_configmap_env.yaml {{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseFeeds.enabled -}} {{- $component := "enterprise-feeds" -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ template "anchore-engine.enterprise-feeds.fullname" . }}-env labels: app: {{ template "anchore-engine.fullname" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: {{ $component }} {{- with .Values.anchoreGlobal.labels }} {{ toYaml . | nindent 4 }} {{- end }} data: ANCHORE_DB_NAME: {{ index .Values "anchore-feeds-db" "postgresDatabase" | quote }} ANCHORE_DB_USER: {{ index .Values "anchore-feeds-db" "postgresUser" | quote }} {{- if and (index .Values "anchore-feeds-db" "externalEndpoint") (not (index .Values "anchore-feeds-db" "enabled")) }} ANCHORE_DB_HOST: {{ index .Values "anchore-feeds-db" "externalEndpoint" | quote }} {{- else if and (index .Values "cloudsql" "enabled") (not (index .Values "anchore-feeds-db" "enabled")) }} ANCHORE_DB_HOST: "localhost:5432" {{- else }} ANCHORE_DB_HOST: "{{ template "postgres.anchore-feeds-db.fullname" . }}:5432" {{- end }} {{- end }} <|endoftext|> # k8s_examples_storageclass-dedicated-hdd.yaml kind: StorageClass apiVersion: storage.k8s.io/v1beta1 metadata: name: dedicatedhdd provisioner: kubernetes.io/azure-disk parameters: skuname: Standard_LRS <|endoftext|> # istio_component_hub_tag.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator spec: hub: istio-spec.hub tag: istio-spec.tag values: global: variant: global.variant components: pilot: enabled: true hub: component.pilot.hub tag: 2 cni: enabled: true hub: component.cni.hub tag: v3.3.3 ztunnel: enabled: true hub: component.ztunnel.hub tag: 4 <|endoftext|> # istio_38678.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 38678 releaseNotes: - | **Fixed** some ServiceEntry hostnames can cause non-deterministic Envoy routes. <|endoftext|> # istio_52558.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 52558 releaseNotes: - | **Updated** `securityContext.privileged` to false for istio-cni in favor of feature-specific permissions. istio-cni remains a [privileged container as per the Kubernetes Pod Security Standards] (https://kubernetes.io/docs/concepts/security/pod-security-standards/#privileged), since even without this flag it has privileged capabilities, namely CAP_SYS_ADMIN. <|endoftext|> # istio_56522.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 56522 releaseNotes: - | **Added** Support for external SDS providers in Gateway TLS configuration Istio now provides improved integration with external Secret Discovery Service (SDS) providers for TLS certificate management at Gateway. <|endoftext|> # argocd_source_argocd-secret.yaml apiVersion: v1 kind: Secret metadata: name: argocd-secret namespace: argocd labels: app.kubernetes.io/name: argocd-secret app.kubernetes.io/part-of: argocd type: Opaque data: # TLS certificate and private key for API server (required). # Autogenerated with a self-signed certificate when keys are missing or invalid. tls.crt: tls.key: # bcrypt hash of the admin password and its last modified time (required). # Autogenerated to be the name of the argocd-server pod when missing. admin.password: admin.passwordMtime: # random server signature key for session validation (required). # Autogenerated when missing. server.secretkey: # Shared secrets for authenticating GitHub, GitLab, BitBucket webhook events (optional). # See https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/webhook.md for additional details. # github webhook secret webhook.github.secret: shhhh! it's a github secret # gitlab webhook secret webhook.gitlab.secret: shhhh! it's a gitlab secret # bitbucket webhook secret webhook.bitbucket.uuid: your-bitbucket-uuid # bitbucket server webhook secret webhook.bitbucketserver.secret: shhhh! it's a bitbucket server secret # gogs server webhook secret webhook.gogs.secret: shhhh! it's a gogs server secret # azure devops webhook username webhook.azuredevops.username: shhhh! it's an azure devops secret # azure devops webhook password webhook.azuredevops.password: shhhh! it's an azure devops secret # an additional user password and its last modified time (see user definition in argocd-cm.yaml) accounts.alice.password: accounts.alice.passwordMtime: # list of generated account tokens/api keys accounts.alice.tokens: | [{"id":"123","iat":1583789194,"exp":1583789194}] <|endoftext|> # grafana_charts_service-metrics-generator.yaml {{- if .Values.metricsGenerator.enabled }} {{- $dict := dict "ctx" . "component" "metrics-generator" "memberlist" true }} apiVersion: v1 kind: Service metadata: name: {{ template "tempo.resourceName" $dict }} namespace: {{ .Release.Namespace }} labels: {{- include "tempo.labels" $dict | nindent 4 }} {{- with .Values.metricsGenerator.service.annotations }} annotations: {{- tpl (toYaml . | nindent 4) $ }} {{- end }} spec: ipFamilies: {{ .Values.tempo.service.ipFamilies }} ipFamilyPolicy: {{ .Values.tempo.service.ipFamilyPolicy }} ports: {{- range .Values.metricsGenerator.ports }} {{- if .service }} - name: {{ .name | quote }} port: {{ .port }} protocol: TCP targetPort: {{ .port }} {{- if and (hasPrefix .name "grpc") ($.Values.metricsGenerator.appProtocol.grpc) }} appProtocol: {{ $.Values.metricsGenerator.appProtocol.grpc }} {{- end }} {{- end }} {{- end }} selector: {{- include "tempo.selectorLabels" $dict | nindent 4 }} {{- end }} <|endoftext|> # k8s_docs_two-files-counter-pod-streaming-sidecar.yaml apiVersion: v1 kind: Pod metadata: name: counter spec: containers: - name: count image: busybox:1.28 args: - /bin/sh - -c - > i=0; while true; do echo "$i: $(date)" >> /var/log/1.log; echo "$(date) INFO $i" >> /var/log/2.log; i=$((i+1)); sleep 1; done volumeMounts: - name: varlog mountPath: /var/log - name: count-log-1 image: busybox:1.28 args: [/bin/sh, -c, 'tail -n+1 -F /var/log/1.log'] volumeMounts: - name: varlog mountPath: /var/log - name: count-log-2 image: busybox:1.28 args: [/bin/sh, -c, 'tail -n+1 -F /var/log/2.log'] volumeMounts: - name: varlog mountPath: /var/log volumes: - name: varlog emptyDir: {} <|endoftext|> # istio_47961.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 47960 releaseNotes: - | **Fixed** an issue where uninstalling Istio didn't prune all the resources created by custom files. <|endoftext|> # istio_35771.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - https://github.com/istio/istio/issues/35770 releaseNotes: - | **Added** log options to `istioctl install` to prevent unexpected messages. <|endoftext|> # argocd_source_appproject-crd.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: app.kubernetes.io/name: appprojects.argoproj.io app.kubernetes.io/part-of: argocd name: appprojects.argoproj.io spec: group: argoproj.io names: kind: AppProject listKind: AppProjectList plural: appprojects shortNames: - appproj - appprojs singular: appproject scope: Namespaced versions: - name: v1alpha1 schema: openAPIV3Schema: description: |- AppProject provides a logical grouping of applications, providing controls for: * where the apps may deploy to (cluster whitelist) * what may be deployed (repository whitelist, resource whitelist/blacklist) * who can access these applications (roles, OIDC group claims bindings) * and what they can do (RBAC policies) * automation access to these roles (JWT tokens) properties: apiVersion: description: |- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources type: string kind: description: |- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds type: string metadata: type: object spec: description: AppProjectSpec is the specification of an AppProject properties: clusterResourceBlacklist: description: ClusterResourceBlacklist contains list of blacklisted cluster level resources items: description: ClusterResourceRestrictionItem is a cluster resource that is restricted by the project's whitelist or blacklist properties: group: type: string kind: type: string name: description: |- Name is the name of the restricted resource. Glob patterns using Go's filepath.Match syntax are supported. Unlike the group and kind fields, if no name is specified, all resources of the specified group/kind are matched. type: string required: - group - kind type: object type: array clusterResourceWhitelist: description: ClusterResourceWhitelist contains list of whitelisted cluster level resources items: description: ClusterResourceRestrictionItem is a cluster resource that is restricted by the project's whitelist or blacklist properties: group: type: string kind: type: string name: description: |- Name is the name of the restricted resource. Glob patterns using Go's filepath.Match syntax are supported. Unlike the group and kind fields, if no name is specified, all resources of the specified group/kind are matched. type: string required: - group - kind type: object type: array description: description: Description contains optional project description maxLength: 255 type: string destinationServiceAccounts: description: DestinationServiceAccounts holds information about the service accounts to be impersonated for the application sync operation for each destination. items: description: ApplicationDestinationServiceAccount holds information about the service account to be impersonated for the application sync operation. properties: defaultServiceAccount: description: DefaultServiceAccount to be used for impersonation during the sync operation type: string namespace: description: Namespace specifies the target namespace for the application's resources. type: string server: description: Server specifies the URL of the target cluster's Kubernetes control plane API. type: string required: - defaultServiceAccount - server type: object type: array destinations: description: Destinations contains list of destinations available for deployment items: description: ApplicationDestination holds information about the application's destination properties: name: description: Name is an alternate way of specifying the target cluster by its symbolic name. This must be set if Server is not set. type: string namespace: description: |- Namespace specifies the target namespace for the application's resources. The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace type: string server: description: Server specifies the URL of the target cluster's Kubernetes control plane API. This must be set if Name is not set. type: string type: object type: array namespaceResourceBlacklist: description: NamespaceResourceBlacklist contains list of blacklisted namespace level resources items: description: |- GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types properties: group: type: string kind: type: string required: - group - kind type: object type: array namespaceResourceWhitelist: description: NamespaceResourceWhitelist contains list of whitelisted namespace level resources items: description: |- GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types properties: group: type: string kind: type: string required: - group - kind type: object type: array orphanedResources: description: OrphanedResources specifies if controller should monitor orphaned resources of apps in this project properties: ignore: description: Ignore contains a list of resources that are to be excluded from orphaned resources monitoring items: description: OrphanedResourceKey is a reference to a resource to be ignored from properties: group: type: string kind: type: string name: type: string type: object type: array warn: description: Warn indicates if warning condition should be created for apps which have orphaned resources type: boolean type: object permitOnlyProjectScopedClusters: description: PermitOnlyProjectScopedClusters determines whether destinations can only reference clusters which are project-scoped type: boolean roles: description: Roles are user defined RBAC roles associated with this project items: description: ProjectRole represents a role that has access to a project properties: description: description: Description is a description of the role type: string groups: description: Groups are a list of OIDC group claims bound to this role items: type: string type: array jwtTokens: description: JWTTokens are a list of generated JWT tokens bound to this role items: description: JWTToken holds the issuedAt and expiresAt values of a token properties: exp: format: int64 type: integer iat: format: int64 type: integer id: type: string required: - iat type: object type: array name: description: Name is a name for this role type: string policies: description: Policies Stores a list of casbin formatted strings that define access policies for the role in the project items: type: string type: array required: - name type: object type: array signatureKeys: description: SignatureKeys contains a list of PGP key IDs that commits in Git must be signed with in order to be allowed for sync items: description: SignatureKey is the specification of a key required to verify commit signatures with properties: keyID: description: The ID of the key in hexadecimal notation type: string required: - keyID type: object type: array sourceNamespaces: description: SourceNamespaces defines the namespaces application resources are allowed to be created in items: type: string type: array sourceRepos: description: SourceRepos contains list of repository URLs which can be used for deployment items: type: string type: array syncWindows: description: SyncWindows controls when syncs can be run for apps in this project items: description: SyncWindow contains the kind, time, duration and attributes that are used to assign the syncWindows to apps properties: andOperator: description: UseAndOperator use AND operator for matching applications, namespaces and clusters instead of the default OR operator type: boolean applications: description: Applications contains a list of applications that the window will apply to items: type: string type: array clusters: description: Clusters contains a list of clusters that the window will apply to items: type: string type: array description: description: Description of the sync that will be applied to the schedule, can be used to add any information such as a ticket number for example type: string duration: description: Duration is the amount of time the sync window will be open type: string kind: description: Kind defines if the window allows or blocks syncs type: string manualSync: description: ManualSync enables manual syncs when they would otherwise be blocked type: boolean namespaces: description: Namespaces contains a list of namespaces that the window will apply to items: type: string type: array schedule: description: Schedule is the time the window will begin, specified in cron format type: string timeZone: description: TimeZone of the sync that will be applied to the schedule type: string type: object type: array type: object status: description: AppProjectStatus contains status information for AppProject CRs properties: jwtTokensByRole: additionalProperties: description: JWTTokens represents a list of JWT tokens properties: items: items: description: JWTToken holds the issuedAt and expiresAt values of a token properties: exp: format: int64 type: integer iat: format: int64 type: integer id: type: string required: - iat type: object type: array type: object description: JWTTokensByRole contains a list of JWT tokens issued for a given role type: object type: object required: - metadata - spec type: object served: true storage: true <|endoftext|> # istio_virtual-service-details-v2.yaml apiVersion: networking.istio.io/v1 kind: VirtualService metadata: name: details spec: hosts: - details http: - route: - destination: host: details subset: v2 <|endoftext|> # helm_charts_bootnode.service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "ethereum.fullname" . }}-bootnode labels: app: {{ template "ethereum.name" . }} chart: {{ template "ethereum.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: bootnode spec: selector: app: {{ template "ethereum.name" . }} release: {{ .Release.Name }} component: bootnode clusterIP: None ports: - name: discovery port: 30301 protocol: UDP - name: http port: 80 <|endoftext|> # istio_reader-clusterrolebinding.yaml # Created if cluster resources are not omitted. Used for multicluster remote secret workflows. {{- if and (or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "cluster")) (dig "global" "enableReaderRBAC" true .Values) }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: istio-reader-clusterrole{{- if not (eq .Values.revision "")}}-{{ .Values.revision }}{{- end }}-{{ .Release.Namespace }} labels: app: istio-reader release: {{ .Release.Name }} app.kubernetes.io/name: "istio-reader" {{- include "istio.labels" . | nindent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: istio-reader-clusterrole{{- if not (eq .Values.revision "")}}-{{ .Values.revision }}{{- end }}-{{ .Release.Namespace }} subjects: - kind: ServiceAccount name: istio-reader-service-account namespace: {{ .Values.global.istioNamespace }} {{- end }} <|endoftext|> # helm_charts_job-createSecret.yaml {{- if and .Values.controller.admissionWebhooks.enabled .Values.controller.admissionWebhooks.patch.enabled }} apiVersion: batch/v1 kind: Job metadata: name: {{ template "nginx-ingress.fullname" . }}-admission-create annotations: "helm.sh/hook": pre-install,pre-upgrade "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} spec: {{- if .Capabilities.APIVersions.Has "batch/v1alpha1" }} # Alpha feature since k8s 1.12 ttlSecondsAfterFinished: 0 {{- end }} template: metadata: name: {{ template "nginx-ingress.fullname" . }}-admission-create {{- with .Values.controller.admissionWebhooks.patch.podAnnotations }} annotations: {{ toYaml . | indent 8 }} {{- end }} labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} spec: {{- if .Values.controller.admissionWebhooks.patch.priorityClassName }} priorityClassName: {{ .Values.controller.admissionWebhooks.patch.priorityClassName }} {{- end }} containers: - name: create {{- with .Values.controller.admissionWebhooks.patch.image }} image: "{{.repository}}{{- if (.digest) -}} @{{.digest}} {{- else -}} :{{ .tag }} {{- end -}}" {{- end }} imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }} args: - create - --host={{ template "nginx-ingress.controller.fullname" . }}-admission,{{ template "nginx-ingress.controller.fullname" . }}-admission.{{ .Release.Namespace }}.svc - --namespace={{ .Release.Namespace }} - --secret-name={{ template "nginx-ingress.fullname". }}-admission {{- with .Values.controller.admissionWebhooks.patch.resources }} resources: {{ toYaml . | indent 12 }} {{- end }} restartPolicy: OnFailure serviceAccountName: {{ template "nginx-ingress.fullname" . }}-admission {{- with .Values.controller.admissionWebhooks.patch.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} securityContext: runAsNonRoot: true runAsUser: 2000 {{- end }} <|endoftext|> # argocd_source_v0.9_aborted_bg_rollout.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: "2" creationTimestamp: "2020-11-13T08:37:51Z" generation: 3 name: bluegreen namespace: argocd-e2e resourceVersion: "202207" selfLink: /apis/argoproj.io/v1alpha1/namespaces/argocd-e2e/rollouts/bluegreen uid: 39d30e1e-5e0e-460a-a217-fa21215f1d1f spec: replicas: 3 selector: matchLabels: app: bluegreen strategy: blueGreen: activeService: bluegreen autoPromotionEnabled: false scaleDownDelaySeconds: 10 template: metadata: creationTimestamp: null labels: app: bluegreen spec: containers: - image: nginx:1.18-alpine name: bluegreen resources: requests: cpu: 1m memory: 16Mi status: HPAReplicas: 3 abort: true abortedAt: "2020-11-13T08:38:19Z" availableReplicas: 3 blueGreen: activeSelector: 54bd6f9c67 canary: {} conditions: - lastTransitionTime: "2020-11-13T08:37:53Z" lastUpdateTime: "2020-11-13T08:37:53Z" message: Rollout has minimum availability reason: AvailableReason status: "True" type: Available - lastTransitionTime: "2020-11-13T08:38:19Z" lastUpdateTime: "2020-11-13T08:38:19Z" message: Rollout is aborted reason: RolloutAborted status: "False" type: Progressing currentPodHash: 5b6f6b55c4 observedGeneration: "abc123" readyReplicas: 3 replicas: 6 selector: app=bluegreen,rollouts-pod-template-hash=54bd6f9c67 stableRS: 54bd6f9c67 updatedReplicas: 3 <|endoftext|> # istio_prom-rewrite.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 21366 releaseNotes: - | **Enabled** Prometheus [metrics merging](/docs/ops/integrations/prometheus/#option-1-metrics-merging) by default. <|endoftext|> # istio_33734.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: [] releaseNotes: - | '**Improved** TCP probes now working as expected: When using TCP probes with older versions of istio the check was always successful, even if the application didn't open the port.' upgradeNotes: - title: TCP probes now working as expected content: | When using TCP probes with older versions of istio the check was always successful, even if the application didn't open the port. This may cause problems when upgrading: If you had a missconfiguration in a TCP probe (e.g wrong port) you maybe haven't noticed. After the upgrade a missconfigured TCP probe will fail and therefore might cause downtimes. docs: - '[details] https://istio.io/latest/docs/ops/configuration/mesh/app-health-check/' # Not yet updated <|endoftext|> # argocd_source_smd-deploy2-config.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: missing applications.argoproj.io/app-name: nginx something-else: bla name: nginx-deployment namespace: default spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx applications.argoproj.io/app-name: nginx spec: containers: - image: 'nginx:1.23.1' imagePullPolicy: Never livenessProbe: exec: command: - cat - non-existent-file initialDelaySeconds: 5 periodSeconds: 180 name: nginx ports: - containerPort: 8081 protocol: UDP - containerPort: 80 protocol: TCP <|endoftext|> # argocd_source_progressing_negativeLookup.yaml apiVersion: proclaim.dogmatiq.io/v1 kind: DNSSDServiceInstance metadata: creationTimestamp: "2023-03-20T01:47:37Z" finalizers: - proclaim.dogmatiq.io/unadvertise generation: 2 name: test-instance namespace: proclaim resourceVersion: "308914" uid: 991a66a3-9b7e-4515-9a41-f7513e9b7b33 spec: instance: attributes: - baz: qux flag: "" foo: bar - more: attrs domain: example.org name: test-instance serviceType: _proclaim._tcp targets: - host: test.example.org port: 8080 priority: 0 weight: 0 ttl: 1m0s status: conditions: - lastTransitionTime: "2023-03-20T01:47:40Z" message: DNS-SD lookup could not find this instance observedGeneration: 2 reason: NegativeLookupResult status: "False" type: Discoverable <|endoftext|> # argocd_source_degraded_alert.yaml apiVersion: coralogix.com/v1beta1 kind: Alert metadata: name: bitbucketcontainernotrunning-test spec: alertType: metricThreshold: metricFilter: promql: >- sum({namespace="bitbucket",pod=~"bitbucket-k8s-.*",condition="false"}) by (pod) missingValues: replaceWithZero: true rules: - condition: conditionType: moreThan forOverPct: 100 ofTheLast: specificValue: 5m threshold: 0 override: priority: p1 description: >- Bitbucket one of the container is not running entityLabels: app: bitbucket name: Bitbucketcontainernotrunning-test notificationGroup: groupByKeys: - pod webhooks: - integration: integrationRef: backendRef: name: opsgenie-example notifyOn: triggeredAndResolved retriggeringPeriod: minutes: 60 - integration: integrationRef: backendRef: name: critical-alerts-webhook notifyOn: triggeredAndResolved retriggeringPeriod: minutes: 60 priority: p1 status: conditions: - lastTransitionTime: '2025-07-17T07:39:54Z' message: >- error on extracting alert properties: failed to expand notification group: failed to expand webhooks settings: failed to expand webhook setting: failed to expand integration: failed to convert name to integration ID: webhook critical-alerts-webhook not found observedGeneration: 1 reason: RemoteCreationFailed status: 'False' type: RemoteSynced <|endoftext|> # istio_drop-legacy-lb-flag.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** the `ENABLE_LEGACY_LB_ALGORITHM_DEFAULT` feature flag. <|endoftext|> # istio_50267.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 50248 releaseNotes: - | **Added** Allow user to enroll their waypoint in the waypoint's namespace through istioctl via --enroll-namespace flag on the waypoint cmd. <|endoftext|> # helm_charts_persistentvolumeclaim.yaml {{ if .Values.nfs.mountOptions -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvc-{{ template "nfs-client-provisioner.fullname" . }} spec: accessModes: - {{ .Values.storageClass.accessModes }} volumeMode: Filesystem storageClassName: "" selector: matchLabels: nfs-client-provisioner: {{ template "nfs-client-provisioner.fullname" . }} resources: requests: storage: 10Mi {{ end -}} <|endoftext|> # istio_54680.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry issue: - 54672 releaseNotes: - | **Fixed** an issue that access log order instability causing connection draining. <|endoftext|> # istio_envoy-filter-removal.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Removed** `forward_downstream_sni`, `tcp_cluster_rewrite`, and `sni_verifier` custom Istio network filters from Envoy build. This functionality can be achieved using the Wasm extensibility. <|endoftext|> # kube_prometheus_prometheus-networkPolicy.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: labels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 3.10.0 name: prometheus-k8s namespace: monitoring spec: egress: - {} ingress: - from: - podSelector: matchLabels: app.kubernetes.io/name: prometheus ports: - port: 9090 protocol: TCP - port: 8080 protocol: TCP - from: - podSelector: matchLabels: app.kubernetes.io/name: prometheus-adapter ports: - port: 9090 protocol: TCP - from: - podSelector: matchLabels: app.kubernetes.io/name: grafana ports: - port: 9090 protocol: TCP podSelector: matchLabels: app.kubernetes.io/component: prometheus app.kubernetes.io/instance: k8s app.kubernetes.io/name: prometheus app.kubernetes.io/part-of: kube-prometheus policyTypes: - Egress - Ingress <|endoftext|> # istio_gateway-with-default-container.yaml apiVersion: apps/v1 kind: Deployment metadata: name: istio-ingressgateway spec: selector: matchLabels: istio: ingressgateway template: metadata: labels: istio: ingressgateway annotations: kubectl.kubernetes.io/default-container: istio-proxy kubectl.kubernetes.io/default-logs-container: istio-proxy inject.istio.io/templates: gateway spec: # Ensure we can have istio-proxy as the only container. This isn't particularly useful as a sidecar # but will be used when we have a dedicated template to run a pod as a Gateway containers: - command: - gunicorn - -b - 0.0.0.0:8080 - httpbin:app - -k - gevent env: - name: WORKON_HOME value: /tmp image: kennethreitz/httpbin imagePullPolicy: IfNotPresent name: httpbin ports: - containerPort: 8080 protocol: TCP resources: limits: cpu: 50m memory: 80Mi requests: cpu: 20m memory: 80Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File - name: istio-proxy image: auto imagePullPolicy: IfNotPresent <|endoftext|> # argocd_source_failedAnalysisRunWithStatusMessage.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: name: canary-demo-analysis-template-6c6bb7cf6f-9k5rj namespace: default spec: analysisSpec: metrics: - failureCondition: len(result) > 0 interval: 10 name: memory-usage provider: prometheus: address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' query: > sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) successCondition: len(result) > 0 status: message: "Status Message: Assessed as Failed" metricResults: - count: 1 failed: 1 measurements: - finishedAt: '2019-10-28T18:23:23Z' startedAt: '2019-10-28T18:23:23Z' phase: Failed value: '[0.9768211920529802]' name: memory-usage phase: Failed phase: Failed <|endoftext|> # istio_release-channels-remote-cluster.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - https://github.com/istio/enhancements/issues/173 releaseNotes: - | **Added** a new, optional experimental admission policy that only allows stable features/fields to be used in Istio APIs when using a remote Istiod cluster. <|endoftext|> # helm_charts_backup-cronjob.yaml {{- if .Values.backup.enabled }} apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ include "influxdb.fullname" . }}-backup labels: {{- include "influxdb.labels" . | nindent 4 }} app.kubernetes.io/component: backup annotations: {{- toYaml .Values.backup.annotations | nindent 4 }} spec: schedule: {{.Values.backup.schedule | quote }} concurrencyPolicy: Forbid jobTemplate: spec: template: metadata: labels: {{- include "influxdb.selectorLabels" . | nindent 12 }} spec: restartPolicy: OnFailure volumes: - name: backups emptyDir: {} {{- if .Values.backup.gcs }} {{- if .Values.backup.gcs.serviceAccountSecret }} - name: google-cloud-key secret: secretName: {{ .Values.backup.gcs.serviceAccountSecret | quote }} {{- end }} {{- end }} serviceAccountName: {{ include "influxdb.serviceAccountName" . }} initContainers: - name: influxdb-backup image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" volumeMounts: - name: backups mountPath: /backups command: - /bin/sh args: - '-c' - | influxd backup -host {{ include "influxdb.fullname" . }}.{{ .Release.Namespace }}.svc:{{ .Values.config.rpc.bind_address | default 8088 }} -portable /backups/backup_$(date +%Y%m%d_%H%M%S) containers: {{- if .Values.backup.gcs }} - name: gsutil-cp image: google/cloud-sdk:alpine command: - /bin/sh args: - '-c' - | if [ -n "$KEY_FILE" ]; then gcloud auth activate-service-account --key-file $KEY_FILE fi gsutil -m cp -r "$SRC_URL" "$DST_URL" volumeMounts: - name: backups mountPath: /backups {{- if .Values.backup.gcs.serviceAccountSecretKey}} - name: google-cloud-key mountPath: /var/secrets/google/ {{- end }} env: - name: SRC_URL value: /backups - name: DST_URL value: {{ .Values.backup.gcs.destination}} {{- if .Values.backup.gcs.serviceAccountSecretKey}} - name: KEY_FILE value: /var/secrets/google/{{ .Values.backup.gcs.serviceAccountSecretKey }} {{- end }} {{- end }} {{- if .Values.backup.azure }} - name: azure-cli image: microsoft/azure-cli command: - /bin/sh args: - '-c' - | az storage container create --name "$DST_CONTAINER" az storage blob upload-batch --destination "$DST_CONTAINER" --destination-path "$DST_PATH" --source "$SRC_URL" volumeMounts: - name: backups mountPath: /backups env: - name: SRC_URL value: /backups - name: DST_CONTAINER value: {{ .Values.backup.azure.destination_container }} - name: DST_PATH value: {{ .Values.backup.azure.destination_path }} - name: AZURE_STORAGE_CONNECTION_STRING valueFrom: secretKeyRef: name: {{ .Values.backup.azure.storageAccountSecret }} key: connection-string {{- end }} {{- end }} <|endoftext|> # istio_concurrent-map-write.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** Fix to an concurrent map write error that leads to a crash in istiod <|endoftext|> # istio_28742.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - https://github.com/istio/istio/issues/28742 releaseNotes: - | **Added** Configuring Envoy to fetch the Jwks by it self. This should be enabled if the JwksUri is a mesh cluster URL for mTLS and other benefits like retries, jws caching etc. This is disabled by default and can be enabled by setting "PILOT_JWT_ENABLE_REMOTE_JWKS" to true. This is an experimental feature for advanced users only. <|endoftext|> # argocd_source_cluster_restart.yaml apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: annotations: kubectl.kubernetes.io/restartedAt: "0001-01-01T00:00:00Z" creationTimestamp: "2025-04-25T20:44:24Z" generation: 1 name: cluster-example namespace: default resourceVersion: "20230" uid: 987fe1ba-bba7-4021-9d25-f06ca9a8c0d2 spec: imageName: ghcr.io/cloudnative-pg/postgresql:13 instances: 3 status: currentPrimary: cluster-example-1 currentPrimaryTimestamp: "2025-04-25T20:44:38.190232Z" instancesStatus: healthy: - cluster-example-1 - cluster-example-2 - cluster-example-3 phase: Cluster in healthy state targetPrimary: cluster-example-1 targetPrimaryTimestamp: "2025-04-25T20:44:26.214164Z" <|endoftext|> # helm_charts_elasticsearch-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "elasticsearch.fullname" . }} labels: app: {{ template "elasticsearch.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} {{- if .Values.service.annotations }} annotations: {{ toYaml .Values.service.annotations | indent 4 }} {{- end }} spec: type: {{ .Values.service.type }} ports: - name: http port: {{ .Values.internalHttpPort }} targetPort: {{ .Values.externalHttpPort }} - name: transport port: {{ .Values.internalTransportPort }} targetPort: {{ .Values.externalTransportPort }} selector: app: {{ template "elasticsearch.name" . }} release: {{ .Release.Name }} <|endoftext|> # k8s_examples_es-client-rc.yaml apiVersion: v1 kind: ReplicationController metadata: name: es-client labels: component: elasticsearch role: client spec: replicas: 1 template: metadata: labels: component: elasticsearch role: client spec: serviceAccount: elasticsearch containers: - name: es-client securityContext: capabilities: add: - IPC_LOCK image: quay.io/pires/docker-elasticsearch-kubernetes:1.7.1-4 env: - name: KUBERNETES_CA_CERTIFICATE_FILE value: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt - name: NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: "CLUSTER_NAME" value: "myesdb" - name: NODE_MASTER value: "false" - name: NODE_DATA value: "false" - name: HTTP_ENABLE value: "true" ports: - containerPort: 9200 name: http protocol: TCP - containerPort: 9300 name: transport protocol: TCP volumeMounts: - mountPath: /data name: storage volumes: - name: storage emptyDir: {} <|endoftext|> # istio_telemetry-valid.yaml apiVersion: telemetry.istio.io/v1alpha1 kind: Telemetry metadata: name: full spec: metrics: - providers: - name: prometheus reportingInterval: 5s overrides: - tagOverrides: request_method: value: "request.method" request_host: value: "request.host" match: customMetric: "foo" disabled: false - match: metric: GRPC_REQUEST_MESSAGES disabled: true accessLogging: - disabled: false filter: expression: 'true' match: mode: CLIENT providers: - name: stdout tracing: - providers: - name: otlp match: mode: CLIENT_AND_SERVER randomSamplingPercentage: 54.54 useRequestIdForTraceSampling: true disableSpanReporting: false customTags: env: environment: name: "NAME" defaultValue: "default" header: header: name: "x-name" defaultValue: "default name" literal: literal: value: "default literal" --- apiVersion: telemetry.istio.io/v1alpha1 kind: Telemetry metadata: name: tag-upsert spec: metrics: - overrides: - tagOverrides: foo: operation: UPSERT value: add --- apiVersion: telemetry.istio.io/v1alpha1 kind: Telemetry metadata: name: tag-remove spec: metrics: - overrides: - tagOverrides: foo: operation: REMOVE <|endoftext|> # k8s_docs_networkpolicy.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: test-network-policy namespace: default spec: podSelector: matchLabels: role: db policyTypes: - Ingress - Egress ingress: - from: - ipBlock: cidr: 172.17.0.0/16 except: - 172.17.1.0/24 - namespaceSelector: matchLabels: project: myproject - podSelector: matchLabels: role: frontend ports: - protocol: TCP port: 6379 egress: - to: - ipBlock: cidr: 10.0.0.0/24 ports: - protocol: TCP port: 5978 <|endoftext|> # istio_add_updateInterval_to_env_var.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management releaseNotes: - | **Added** an environment variable `PILOT_STATUS_UPDATE_INTERVAL` that is the interval to update the XDS distribution status and its default value is `500ms`. <|endoftext|> # helm_charts_insight-scheduler-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "insight-scheduler.fullname" . }} labels: role: {{ .Values.insightScheduler.service.name }} labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.insightScheduler.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: type: {{ .Values.insightScheduler.service.type }} ports: - name: http port: {{ .Values.insightScheduler.internalPort }} targetPort: {{ .Values.insightScheduler.externalPort }} protocol: TCP selector: app: {{ template "mission-control.name" . }} component: {{ .Values.insightScheduler.name }} release: {{ .Release.Name }} <|endoftext|> # istio_envoyfilter-invalid.yaml _err: 'spec.configPatches[0].match: Invalid value: "object": only support waypointMatch when context is WAYPOINT' apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: waypoint-wrong-context spec: configPatches: - applyTo: HTTP_FILTER match: context: SIDECAR_INBOUND waypoint: filter: name: "envoy.filters.network.http_connection_manager" subFilter: name: "envoy.filters.http.router" --- _err: 'spec.configPatches[0].match: Invalid value: "object": only support waypointMatch when context is WAYPOINT' apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: waypoint-wrong-match spec: configPatches: - applyTo: HTTP_FILTER match: context: WAYPOINT listener: filterChain: filter: name: "envoy.filters.network.http_connection_manager" subFilter: name: "envoy.filters.http.router" --- _err: 'spec.configPatches[0].match.waypoint.portNumber: Invalid value: "integer": port must be between 1-65535' apiVersion: networking.istio.io/v1alpha3 kind: EnvoyFilter metadata: name: waypoint-wrong-port spec: configPatches: - applyTo: HTTP_FILTER match: context: WAYPOINT waypoint: portNumber: 65536 --- <|endoftext|> # helm_charts_keeper-headless-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "stolon.fullname" . }}-keeper-headless labels: app: {{ template "stolon.name" . }} chart: {{ template "stolon.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: {{- with .Values.keeper.service.annotations }} {{ toYaml . | indent 4 }} {{- end }} spec: clusterIP: None ports: {{- range $key, $value := .Values.keeper.service.ports }} - name: {{ $key }} {{ toYaml $value | indent 6 }} {{- end }} selector: app: {{ template "stolon.name" . }} release: {{ .Release.Name }} component: stolon-keeper <|endoftext|> # k8s_docs_network-policy-allow-all-ingress.yaml --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-all-ingress spec: podSelector: {} ingress: - {} policyTypes: - Ingress <|endoftext|> # helm_charts_webserver-prometheus-rule.yaml {{- if .Values.prometheusRule.enabled }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ include "airflow.fullname" . }} labels: app: {{ include "airflow.labels.app" . }} component: web chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- if .Values.prometheusRule.additionalLabels }} {{- toYaml .Values.prometheusRule.additionalLabels | nindent 4 }} {{- end }} spec: groups: {{- toYaml .Values.prometheusRule.groups | nindent 4 }} {{- end }} <|endoftext|> # istio_46161.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** `istioctl experimental describe` provides wrong Gateway information when using injected gateway. <|endoftext|> # helm_charts_post-install-prometheus-metrics-job.yaml {{- if .Values.metrics.serviceMonitor.enabled }} {{- $fullName := include "minio.fullname" . -}} apiVersion: batch/v1 kind: Job metadata: name: {{ $fullName }}-update-prometheus-secret labels: app: {{ template "minio.name" . }}-update-prometheus-secret chart: {{ template "minio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-weight": "-5" "helm.sh/hook-delete-policy": hook-succeeded {{ toYaml .Values.updatePrometheusJob.annotations | indent 4 }} spec: template: metadata: labels: app: {{ template "minio.name" . }}-update-prometheus-secret release: {{ .Release.Name }} {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} spec: {{- if .Values.serviceAccount.create }} serviceAccountName: {{ $fullName }}-update-prometheus-secret {{- end }} restartPolicy: OnFailure {{- include "minio.imagePullSecrets" . | indent 6 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} volumes: - name: workdir emptyDir: {} initContainers: - name: minio-mc image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}" imagePullPolicy: {{ .Values.mcImage.pullPolicy }} command: - /bin/sh - "-c" - mc admin prometheus generate target --json --no-color -q > /workdir/mc.json env: # mc admin prometheus generate don't really connect to remote server, TLS cert isn't required - name: MC_HOST_target value: http{{ if .Values.tls.enabled }}s{{ end }}://{{ .Values.accessKey }}:{{ .Values.secretKey }}@{{ $fullName }}:{{ .Values.service.port }} volumeMounts: - name: workdir mountPath: /workdir resources: {{ toYaml .Values.resources | indent 12 }} # extract bearerToken from mc admin output - name: jq image: "{{ .Values.helmKubectlJqImage.repository }}:{{ .Values.helmKubectlJqImage.tag }}" imagePullPolicy: {{ .Values.helmKubectlJqImage.pullPolicy }} command: - /bin/sh - "-c" - jq -e -c -j -r .bearerToken < /workdir/mc.json > /workdir/token volumeMounts: - name: workdir mountPath: /workdir resources: {{ toYaml .Values.resources | indent 12 }} - name: kubectl-create image: "{{ .Values.helmKubectlJqImage.repository }}:{{ .Values.helmKubectlJqImage.tag }}" imagePullPolicy: {{ .Values.helmKubectlJqImage.pullPolicy }} command: - /bin/sh - "-c" # The following script does: # - get the servicemonitor that need this secret and copy some metadata and create the ownerreference for the secret file # - create the secret # - merge both json - > kubectl -n {{ .Release.Namespace }} get servicemonitor {{ $fullName }} -o json | jq -c '{metadata: {name: "{{ $fullName }}-prometheus", namespace: .metadata.namespace, labels: {app: .metadata.labels.app, release: .metadata.labels.release}, ownerReferences: [{apiVersion: .apiVersion, kind: .kind, blockOwnerDeletion: true, controller: true, uid: .metadata.uid, name: .metadata.name}]}}' > /workdir/metadata.json && kubectl create secret generic {{ $fullName }}-prometheus --from-file=token=/workdir/token --dry-run -o json > /workdir/secret.json && cat /workdir/secret.json /workdir/metadata.json | jq -s add > /workdir/object.json volumeMounts: - name: workdir mountPath: /workdir resources: {{ toYaml .Values.resources | indent 12 }} containers: - name: kubectl-apply image: "{{ .Values.helmKubectlJqImage.repository }}:{{ .Values.helmKubectlJqImage.tag }}" imagePullPolicy: {{ .Values.helmKubectlJqImage.pullPolicy }} command: - kubectl - apply - "-f" - /workdir/object.json volumeMounts: - name: workdir mountPath: /workdir resources: {{ toYaml .Values.resources | indent 12 }} {{- end }} <|endoftext|> # istio_tls-configuration-api.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - https://github.com/istio/api/issues/2285 releaseNotes: - | **Added** support for TLS configuration API for workloads. <|endoftext|> # helm_charts_secret-files.yaml {{- if .Values.secretFiles }} apiVersion: v1 kind: Secret metadata: name: {{ template "traefik.fullname" . }}-secrets labels: app: {{ template "traefik.name" . }} chart: {{ template "traefik.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" type: Opaque data: {{- range $filename, $fileContents := .Values.secretFiles }} {{ $filename }}: {{ $fileContents | b64enc | quote }} {{- end }} {{- end }} <|endoftext|> # k8s_examples_pod-sc-pvc.yaml kind: Pod apiVersion: v1 metadata: name: pod-sio-small spec: containers: - name: pod-sio-small-container image: registry.k8s.io/test-webserver volumeMounts: - mountPath: /test name: test-data volumes: - name: test-data persistentVolumeClaim: claimName: pvc-sio-small <|endoftext|> # helm_charts_alertmanager-clusterrolebinding.yaml {{- if and .Values.alertmanager.enabled .Values.rbac.create .Values.alertmanager.useClusterRole -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: labels: {{- include "prometheus.alertmanager.labels" . | nindent 4 }} name: {{ template "prometheus.alertmanager.fullname" . }} subjects: - kind: ServiceAccount name: {{ template "prometheus.serviceAccountName.alertmanager" . }} {{ include "prometheus.namespace" . | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole {{- if (not .Values.alertmanager.useExistingRole) }} name: {{ template "prometheus.alertmanager.fullname" . }} {{- else }} name: {{ .Values.alertmanager.useExistingRole }} {{- end }} {{- end }} <|endoftext|> # istio_50781.yaml apiVersion: release-notes/v2 # This YAML file describes the format for specifying a release notes entry for Istio. # This should be filled in for all user facing changes. # kind describes the type of change that this represents. # Valid Values are: # - bug-fix -- Used to specify that this change represents a bug fix. # - security-fix -- Used to specify that this change represents a vulnerability fix. # - feature -- Used to specify a new feature that has been added. # - test -- Used to describe additional testing added. This file is optional for # tests, but included for completeness. kind: feature # area describes the area that this change affects. # Valid values are: # - traffic-management # - security # - telemetry # - installation # - istioctl # - documentation area: installation issue: - 50781 # releaseNotes is a markdown listing of any user facing changes. This will appear in the # release notes. releaseNotes: - | **Added** outlier log path configuration in mesh proxy config which allows users to configure the path to the outlier detection log file. <|endoftext|> # istio_40220.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl releaseNotes: - | **Fixed** IST0103 warning from `istioctl analyze` for non-injected pods on the host network. <|endoftext|> # k8s_docs_extended-resource-pod.yaml apiVersion: v1 kind: Pod metadata: name: extended-resource-demo spec: containers: - name: extended-resource-demo-ctr image: nginx resources: requests: example.com/dongle: 3 limits: example.com/dongle: 3 <|endoftext|> # argocd_source_initial_helmchart.yaml apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmChart metadata: name: podinfo namespace: default spec: interval: 5m0s chart: podinfo reconcileStrategy: ChartVersion sourceRef: kind: HelmRepository name: podinfo version: '5.*' <|endoftext|> # argocd_source_keda-fallback.yaml apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata: annotations: finalizers: - finalizer.keda.sh labels: argocd.argoproj.io/instance: keda-default name: keda-with-fallback namespace: keda resourceVersion: '160591443' uid: 83ee438a-f383-43f3-9346-b901d9773f5c spec: maxReplicaCount: 10 minReplicaCount: 1 fallback: failureThreshold: 3 replicas: 5 scaleTargetRef: name: keda-service triggers: - type: prometheus metadata: serverAddress: http://prometheus-server.monitoring.svc.cluster.local metricName: http_requests_total threshold: '100' query: sum(rate(http_requests_total{app="keda-service"}[2m])) status: conditions: - message: ScaledObject is defined correctly and is ready for scaling reason: ScaledObjectReady status: 'True' type: Ready - message: Scaling is performed because triggers are active reason: ScalerActive status: 'True' type: Active - message: At least one trigger is falling back on this scaled object reason: FallbackExists status: 'True' type: Fallback - status: 'False' type: Paused externalMetricNames: - s0-prometheus health: "prometheus": numberOfFailures: 4 status: Failing hpaName: keda-with-fallback-hpa lastActiveTime: '2023-12-19T10:35:22Z' originalReplicaCount: 1 scaleTargetGVKR: group: apps kind: Deployment resource: deployments version: v1 scaleTargetKind: apps/v1.Deployment <|endoftext|> # argocd_source_errorAnalysisRunWithStatusMessage.yaml apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun metadata: name: canary-demo-analysis-template-6c6bb7cf6f-btpgc namespace: default spec: analysisSpec: metrics: - failureCondition: result < 92 interval: 10 name: memory-usage provider: prometheus: address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' query: > sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) successCondition: result > 95 status: message: "Status Message: Assessed as Error" metricResults: - consecutiveError: 5 error: 5 measurements: - finishedAt: '2019-10-28T18:13:01Z' startedAt: '2019-10-28T18:13:01Z' phase: Error value: '[0.9832775919732442]' - finishedAt: '2019-10-28T18:13:11Z' startedAt: '2019-10-28T18:13:11Z' phase: Error value: '[0.9832775919732442]' - finishedAt: '2019-10-28T18:13:21Z' startedAt: '2019-10-28T18:13:21Z' phase: Error value: '[0.9722530521642618]' - finishedAt: '2019-10-28T18:13:31Z' startedAt: '2019-10-28T18:13:31Z' phase: Error value: '[0.9722530521642618]' - finishedAt: '2019-10-28T18:13:41Z' startedAt: '2019-10-28T18:13:41Z' phase: Error value: '[0.9722530521642618]' name: memory-usage phase: Error phase: Error <|endoftext|> # istio_pilot_disable_tracing.golden.yaml apiVersion: v1 data: mesh: |- defaultConfig: discoveryAddress: istiod.istio-system.svc:15012 defaultProviders: metrics: - prometheus enablePrometheusMerge: true rootNamespace: istio-system trustDomain: cluster.local meshNetworks: 'networks: {}' kind: ConfigMap metadata: labels: app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio.io/rev: default operator.istio.io/component: Pilot release: istio name: istio namespace: istio-system <|endoftext|> # istio_envoyfilter-patch-context.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issues: - 36284 releaseNotes: - | **Fixed** an issue where `EnvoyFilter` with ANY patch context will skip adding new clusters and listeners at gateway. <|endoftext|> # argocd_source_initial_helmrelease.yaml apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: podinfo namespace: default spec: interval: 10m timeout: 5m chart: spec: chart: podinfo version: '6.5.*' sourceRef: kind: HelmRepository name: podinfo interval: 5m releaseName: podinfo install: remediation: retries: 3 upgrade: remediation: retries: 3 test: enable: true driftDetection: mode: enabled ignore: - paths: ["/spec/replicas"] target: kind: Deployment values: replicaCount: 2 <|endoftext|> # helm_charts_deployment-worker.yaml {{- if gt (int .Values.server.workers) 0 }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "presto.worker" . }} labels: app: {{ template "presto.name" . }} chart: {{ template "presto.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} component: worker spec: replicas: {{ .Values.server.workers }} selector: matchLabels: app: {{ template "presto.name" . }} release: {{ .Release.Name }} component: worker template: metadata: labels: app: {{ template "presto.name" . }} release: {{ .Release.Name }} component: worker spec: volumes: - name: config-volume configMap: name: {{ template "presto.worker" . }} containers: - name: {{ .Chart.Name }}-worker image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - mountPath: {{ .Values.server.config.path }} name: config-volume livenessProbe: exec: command: - /bin/bash - {{ .Values.server.config.path }}/health_check.sh initialDelaySeconds: 10 periodSeconds: 25 readinessProbe: exec: command: - /bin/bash - {{ .Values.server.config.path }}/health_check.sh initialDelaySeconds: 5 periodSeconds: 10 resources: {{ toYaml .Values.resources | indent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{- end }} <|endoftext|> # helm_charts_nginx-service.yaml apiVersion: v1 kind: Service metadata: name: {{ template "nginx-lego.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: type: {{ .Values.nginx.service.type | quote }} ports: - port: 80 name: http - port: 443 name: https selector: app: {{ template "nginx-lego.fullname" . }} <|endoftext|> # istio_artifact-naming.yaml apiVersion: release-notes/v2 kind: feature area: installation issue: - 45677 releaseNotes: - | **Added** amd64 named artifacts for MacOS and Windows. The amd64 flavor of the artifacts didgit push not contain the architecture in the name as we do for the other operating systems. This makes the artifact naming consistent. **Deprecated** the MacOS and Windows artifacts without an architecture specified in the name (ex: istio-1.18.0-osx.tar.gz). They will be removed in several releases. They have been replaced by artifacts containing the architecture in the name (ex: istio-1.18.0-osx-amd64.tar.gz). <|endoftext|> # helm_charts_ambassador-pro-redis.yaml {{ if and .Values.pro.enabled }} --- apiVersion: v1 kind: Service metadata: name: {{ include "ambassador.fullname" . }}-pro-redis labels: app.kubernetes.io/name: {{ include "ambassador.fullname" . }}-pro-redis app.kubernetes.io/part-of: {{ .Release.Name }} helm.sh/chart: {{ include "ambassador.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.extraLabels }} {{- toYaml .Values.extraLabels | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.pro.rateLimit.redis.annotations.service | nindent 4}} spec: type: ClusterIP ports: - port: 6379 targetPort: 6379 selector: app.kubernetes.io/name: {{ include "ambassador.fullname" . }}-pro-redis app.kubernetes.io/instance: {{ .Release.Name }} --- apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "ambassador.fullname" . }}-pro-redis labels: app.kubernetes.io/name: {{ include "ambassador.fullname" . }}-pro-redis app.kubernetes.io/part-of: {{ .Release.Name }} helm.sh/chart: {{ include "ambassador.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- if .Values.extraLabels }} {{- toYaml .Values.extraLabels | nindent 4 }} {{- end }} annotations: {{- toYaml .Values.pro.rateLimit.redis.annotations.deployment | nindent 4}} spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: {{ include "ambassador.fullname" . }}-pro-redis app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: labels: app.kubernetes.io/name: {{ include "ambassador.fullname" . }}-pro-redis app.kubernetes.io/instance: {{ .Release.Name }} {{- if .Values.extraLabels }} {{- toYaml .Values.extraLabels | nindent 8 }} {{- end }} spec: containers: - name: redis image: redis:5.0.1 resources: {{- toYaml .Values.pro.rateLimit.redis.resources | nindent 10 }} restartPolicy: Always {{ end }} <|endoftext|> # argocd_source_job-failed.yaml apiVersion: batch/v1 kind: Job metadata: creationTimestamp: 2018-12-02T08:09:25Z labels: controller-uid: 95052288-f609-11e8-aa53-42010a80021b job-name: fail name: fail namespace: argoci-workflows resourceVersion: "46534173" selfLink: /apis/batch/v1/namespaces/argoci-workflows/jobs/fail uid: 95052288-f609-11e8-aa53-42010a80021b spec: backoffLimit: 0 completions: 1 parallelism: 1 selector: matchLabels: controller-uid: 95052288-f609-11e8-aa53-42010a80021b template: metadata: creationTimestamp: null labels: controller-uid: 95052288-f609-11e8-aa53-42010a80021b job-name: fail spec: containers: - command: - sh - -c - exit 1 image: alpine:latest imagePullPolicy: Always name: fail resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Never schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: conditions: - lastProbeTime: 2018-12-02T08:09:27Z lastTransitionTime: 2018-12-02T08:09:27Z message: Job has reached the specified backoff limit reason: BackoffLimitExceeded status: "True" type: Failed failed: 1 startTime: 2018-12-02T08:09:25Z <|endoftext|> # k8s_docs_conflict-pod.yaml apiVersion: v1 kind: Pod metadata: name: website labels: app: website role: frontend spec: containers: - name: website image: nginx volumeMounts: - mountPath: /cache name: cache-volume ports: - containerPort: 80 volumes: - name: cache-volume emptyDir: {} <|endoftext|> # grafana_charts_poddisruptionbudget-metrics-generator.yaml {{- if .Values.metricsGenerator.enabled }} {{- if and (gt (int .Values.metricsGenerator.replicas) 1) .Values.metricsGenerator.podDisruptionBudget.enabled }} {{ $dict := dict "ctx" . "component" "metrics-generator" "memberlist" true }} apiVersion: {{ include "tempo.pdb.apiVersion" . }} kind: PodDisruptionBudget metadata: name: {{ include "tempo.resourceName" $dict }} labels: {{- include "tempo.labels" $dict | nindent 4 }} namespace: {{ .Release.Namespace }} spec: selector: matchLabels: {{- include "tempo.selectorLabels" $dict | nindent 6 }} maxUnavailable: {{ .Values.metricsGenerator.maxUnavailable }} {{- end }} {{- end }} <|endoftext|> # k8s_examples_nginx-lvm.yaml apiVersion: v1 kind: Pod metadata: name: nginx namespace: default spec: containers: - name: nginx image: nginx volumeMounts: - name: test mountPath: /data ports: - containerPort: 80 volumes: - name: test flexVolume: driver: "kubernetes.io/lvm" fsType: "ext4" options: volumeID: "vol1" size: "1000m" volumegroup: "kube_vg" <|endoftext|> # helm_charts_firefox-deployment.yaml {{- if and (eq true .Values.firefox.enabled) (eq false .Values.firefox.runAsDaemonSet) -}} apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "selenium.firefox.fullname" . }} labels: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: replicas: {{ .Values.firefox.replicas }} selector: matchLabels: app: {{ template "selenium.firefox.fullname" . }} release: "{{ .Release.Name }}" template: metadata: labels: app: {{ template "selenium.firefox.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- with .Values.firefox.podLabels }} {{ toYaml .| indent 2 }} {{- end }} {{- if .Values.firefox.podAnnotations }} annotations: {{ toYaml .Values.firefox.podAnnotations | indent 8 }} {{- end}} spec: {{- if .Values.firefox.securityContext }} securityContext: {{ toYaml .Values.firefox.securityContext | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.firefox.image }}:{{ .Values.firefox.tag }}" imagePullPolicy: {{ .Values.firefox.pullPolicy }} ports: {{- if .Values.hub.jmxPort }} - containerPort: {{ .Values.hub.jmxPort }} name: jmx protocol: TCP {{- end }} {{- if .Values.firefox.enableLivenessProbe }} livenessProbe: httpGet: path: /wd/hub/status port: {{ default "5555" .Values.firefox.nodePort }} initialDelaySeconds: 30 periodSeconds: 30 failureThreshold: 1 {{- end }} {{- if .Values.firefox.waitForRunningSessions }} lifecycle: preStop: exec: command: - /bin/bash - -c - "while [ $(wget -q -O - http://localhost:{{ default "5555" .Values.firefox.nodePort }}/wd/hub/sessions | grep -c capabilities) -gt 0 ]; do sleep 1; done" {{- end }} env: - name: HUB_PORT_4444_TCP_ADDR value: {{ template "selenium.hub.fullname" . }} - name: HUB_PORT_4444_TCP_PORT value: {{ .Values.hub.servicePort | quote }} - name: JAVA_TOOL_OPTIONS value: {{ default "" .Values.firefox.javaOpts | quote }} - name: SE_OPTS value: {{ default "" .Values.firefox.seOpts | quote }} {{- if .Values.firefox.firefoxVersion }} - name: FIREFOX_VERSION value: {{ .Values.firefox.firefoxVersion | quote }} {{- end }} {{- if .Values.firefox.nodeMaxInstances }} - name: NODE_MAX_INSTANCES value: {{ .Values.firefox.nodeMaxInstances | quote }} {{- end }} {{- if .Values.firefox.nodeMaxSession }} - name: NODE_MAX_SESSION value: {{ .Values.firefox.nodeMaxSession | quote }} {{- end }} {{- if .Values.firefox.nodeRegisterCycle }} - name: NODE_REGISTER_CYCLE value: {{ .Values.firefox.nodeRegisterCycle | quote }} {{- end }} {{- if .Values.firefox.nodePort }} - name: NODE_PORT value: {{ .Values.firefox.nodePort | quote }} {{- end }} {{- if .Values.firefox.screenWidth }} - name: SCREEN_WIDTH value: {{ .Values.firefox.screenWidth | quote }} {{- end }} {{- if .Values.firefox.screenHeight }} - name: SCREEN_HEIGHT value: {{ .Values.firefox.screenHeight | quote }} {{- end }} {{- if .Values.firefox.screenDepth }} - name: SCREEN_DEPTH value: {{ .Values.firefox.screenDepth | quote }} {{- end }} {{- if .Values.firefox.display }} - name: DISPLAY value: {{ .Values.firefox.display | quote }} {{- end }} {{- if .Values.firefox.timeZone }} - name: TZ value: {{ .Values.firefox.timeZone | quote }} {{- end }} {{- if .Values.firefox.extraEnvs }} {{ toYaml .Values.firefox.extraEnvs | indent 12 }} {{- end }} volumeMounts: {{ if .Values.firefox.volumeMounts -}} {{ toYaml .Values.firefox.volumeMounts | trim | indent 12 }} {{- end }} resources: {{ toYaml .Values.firefox.resources | indent 12 }} {{- if or .Values.global.imagePullSecrets .Values.firefox.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.firefox.imagePullSecrets | default .Values.global.imagePullSecrets | quote }} {{- end }} volumes: {{ if .Values.firefox.volumes -}} {{ toYaml .Values.firefox.volumes | trim | indent 8 }} {{- end }} hostAliases: {{ toYaml .Values.global.hostAliases | indent 8 }} nodeSelector: {{- if .Values.firefox.nodeSelector }} {{ toYaml .Values.firefox.nodeSelector | trim | indent 8 }} {{- else if .Values.global.nodeSelector }} {{ toYaml .Values.global.nodeSelector | trim | indent 8 }} {{- end }} affinity: {{- if .Values.firefox.affinity }} {{ toYaml .Values.firefox.affinity | trim | indent 8 }} {{- else if .Values.global.affinity }} {{ toYaml .Values.global.affinity | trim | indent 8 }} {{- end }} tolerations: {{- if .Values.firefox.tolerations }} {{ toYaml .Values.firefox.tolerations | trim | indent 8 }} {{- else if .Values.global.tolerations }} {{ toYaml .Values.global.tolerations | trim | indent 8 }} {{- end }} {{- end -}} <|endoftext|> # helm_charts_podvolumerestores.yaml apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: podvolumerestores.velero.io labels: app.kubernetes.io/name: "velero" annotations: "helm.sh/hook": crd-install "helm.sh/hook-delete-policy": "before-hook-creation" spec: group: velero.io version: v1 scope: Namespaced names: plural: podvolumerestores kind: PodVolumeRestore <|endoftext|> # k8s_docs_exec-liveness.yaml apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-exec spec: containers: - name: liveness image: registry.k8s.io/busybox args: - /bin/sh - -c - touch /tmp/healthy; sleep 30; rm -f /tmp/healthy; sleep 600 livenessProbe: exec: command: - cat - /tmp/healthy initialDelaySeconds: 5 periodSeconds: 5 <|endoftext|> # k8s_docs_new-immutable-configmap.yaml apiVersion: v1 data: company_name: "Fiktivesunternehmen GmbH" # new fictional company name kind: ConfigMap immutable: true metadata: name: company-name-20240312 <|endoftext|> # k8s_docs_curlpod.yaml apiVersion: apps/v1 kind: Deployment metadata: name: curl-deployment spec: selector: matchLabels: app: curlpod replicas: 1 template: metadata: labels: app: curlpod spec: volumes: - name: secret-volume secret: secretName: nginxsecret containers: - name: curlpod command: - sh - -c - while true; do sleep 1; done image: radial/busyboxplus:curl volumeMounts: - mountPath: /etc/nginx/ssl name: secret-volume <|endoftext|> # helm_charts_lego-deployment.yaml {{- if .Values.lego.enabled }} apiVersion: extensions/v1beta1 kind: Deployment metadata: name: {{ template "nginx-lego.fullname" . }}-lego spec: replicas: {{ .Values.lego.replicaCount }} template: metadata: labels: app: kube-lego spec: containers: - name: {{ .Chart.Name }}-lego image: "{{ .Values.lego.image.repository }}:{{ .Values.lego.image.tag }}" imagePullPolicy: {{ .Values.lego.image.pullPolicy }} ports: - containerPort: 8080 env: - name: LEGO_EMAIL valueFrom: configMapKeyRef: name: {{ template "nginx-lego.fullname" . }}-lego key: lego.email - name: LEGO_URL valueFrom: configMapKeyRef: name: {{ template "nginx-lego.fullname" . }}-lego key: lego.url - name: LEGO_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: LEGO_POD_IP valueFrom: fieldRef: fieldPath: status.podIP resources: {{ toYaml .Values.nginx.resources | indent 10 }} {{- end }} <|endoftext|> # k8s_examples_storageclass-shared-hdd.yaml kind: StorageClass apiVersion: storage.k8s.io/v1beta1 metadata: name: sharedhdd provisioner: kubernetes.io/azure-disk parameters: skuname: Standard_LRS kind: Shared <|endoftext|> # istio_53906.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 1360 releaseNotes: - | **Added** Support for reconciling in-pod iptables rules of existing ambient pods from the previous version on `istio-cni` upgrade. Feature can be toggled with `--set cni.ambient.reconcileIptablesOnStartup=true` and will be enabled by default in future releases. upgradeNotes: - title: Ambient pod upgrade reconcilation. content: | When a new `istio-cni` Daemonset pod starts up, it will inspect pods that were previously enrolled in the ambient mesh, and upgrade their in-pod iptables rules to the current state if there is a diff or delta. This is off by default as of 1.25.0, but will eventually be enabled by default. Feature can be enabled by `helm install cni --set ambient.reconcileIptablesOnStartup=true` (helm) or `istioctl install --set values.cni.ambient.reconcileIptablesOnStartup=true` (istioctl) <|endoftext|> # flux_source_e2e.yaml name: e2e on: workflow_dispatch: push: branches: [ 'main', 'release/**' ] pull_request: branches: [ 'main', 'release/**' ] paths-ignore: [ 'docs/**', 'rfcs/**' ] permissions: contents: read jobs: e2e-amd64-kubernetes: runs-on: group: "Default Larger Runners" labels: ubuntu-latest-16-cores services: registry: image: registry:2 ports: - 5000:5000 steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: go-version: 1.26.x cache-dependency-path: | **/go.sum **/go.mod - name: Setup Kubernetes uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0 with: version: v0.30.0 cluster_name: kind wait: 5s config: .github/kind/config.yaml # disable KIND-net # The versions below should target the oldest supported Kubernetes version # Keep this up-to-date with https://endoflife.date/kubernetes node_image: ghcr.io/fluxcd/kindest/node:v1.33.0-amd64 kubectl_version: v1.33.0 - name: Setup Calico for network policy run: | kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.3/manifests/calico.yaml - name: Setup Kustomize uses: fluxcd/pkg/actions/kustomize@9a8c0edd5da84dc51a585738c67e3a3950d7fbf0 # main - name: Run tests run: make test - name: Run e2e tests run: TEST_KUBECONFIG=$HOME/.kube/config make e2e - name: Check if working tree is dirty run: | if [[ $(git diff --stat) != '' ]]; then git diff echo 'run make test and commit changes' exit 1 fi - name: Build run: make build-dev - name: flux check --pre run: | ./bin/flux check --pre - name: flux install --manifests run: | ./bin/flux install --manifests ./manifests/test/ - name: flux create secret run: | ./bin/flux create secret git git-ssh-test \ --url ssh://git@github.com/stefanprodan/podinfo ./bin/flux create secret git git-https-test \ --url https://github.com/stefanprodan/podinfo \ --username=test --password=test ./bin/flux create secret helm helm-test \ --username=test --password=test - name: flux create source git run: | ./bin/flux create source git podinfo \ --url https://github.com/stefanprodan/podinfo \ --tag-semver=">=6.3.5" - name: flux create source git export apply run: | ./bin/flux create source git podinfo-export \ --url https://github.com/stefanprodan/podinfo \ --tag-semver=">=6.3.5" \ --export | kubectl apply -f - ./bin/flux delete source git podinfo-export --silent - name: flux get sources git run: | ./bin/flux get sources git - name: flux get sources git --all-namespaces run: | ./bin/flux get sources git --all-namespaces - name: flux create kustomization run: | ./bin/flux create kustomization podinfo \ --source=podinfo \ --path="./deploy/overlays/dev" \ --prune=true \ --interval=5m \ --health-check="Deployment/frontend.dev" \ --health-check="Deployment/backend.dev" \ --health-check-timeout=3m - name: flux trace run: | ./bin/flux trace frontend \ --kind=deployment \ --api-version=apps/v1 \ --namespace=dev - name: flux reconcile kustomization --with-source run: | ./bin/flux reconcile kustomization podinfo --with-source - name: flux get kustomizations run: | ./bin/flux get kustomizations - name: flux get kustomizations --all-namespaces run: | ./bin/flux get kustomizations --all-namespaces - name: flux suspend kustomization run: | ./bin/flux suspend kustomization podinfo - name: flux resume kustomization run: | ./bin/flux resume kustomization podinfo - name: flux export run: | ./bin/flux export source git --all ./bin/flux export kustomization --all - name: flux delete kustomization run: | ./bin/flux delete kustomization podinfo --silent - name: flux create source helm run: | ./bin/flux create source helm podinfo \ --url https://stefanprodan.github.io/podinfo - name: flux create helmrelease --source=HelmRepository/podinfo run: | ./bin/flux create hr podinfo-helm \ --target-namespace=default \ --source=HelmRepository/podinfo.flux-system \ --chart=podinfo \ --chart-version=">6.0.0 <7.0.0" - name: flux create helmrelease --source=GitRepository/podinfo run: | ./bin/flux create hr podinfo-git \ --target-namespace=default \ --source=GitRepository/podinfo \ --chart=./charts/podinfo - name: flux reconcile helmrelease --with-source run: | ./bin/flux reconcile helmrelease podinfo-git --with-source - name: flux get helmreleases run: | ./bin/flux get helmreleases - name: flux get helmreleases --all-namespaces run: | ./bin/flux get helmreleases --all-namespaces - name: flux export helmrelease run: | ./bin/flux export hr --all - name: flux delete helmrelease podinfo-helm run: | ./bin/flux delete hr podinfo-helm --silent - name: flux delete helmrelease podinfo-git run: | ./bin/flux delete hr podinfo-git --silent - name: flux delete source helm run: | ./bin/flux delete source helm podinfo --silent - name: flux delete source git run: | ./bin/flux delete source git podinfo --silent - name: flux oci artifacts run: | ./bin/flux push artifact oci://localhost:5000/fluxcd/flux:${{ github.sha }} \ --path="./manifests" \ --source="${{ github.repositoryUrl }}" \ --revision="${{ github.ref }}@sha1:${{ github.sha }}" ./bin/flux tag artifact oci://localhost:5000/fluxcd/flux:${{ github.sha }} \ --tag latest ./bin/flux list artifacts oci://localhost:5000/fluxcd/flux - name: flux oci repositories run: | ./bin/flux create source oci podinfo-oci \ --url oci://ghcr.io/stefanprodan/manifests/podinfo \ --tag-semver 6.3.x \ --interval 10m ./bin/flux create kustomization podinfo-oci \ --source=OCIRepository/podinfo-oci \ --path="./" \ --prune=true \ --interval=5m \ --target-namespace=default \ --wait=true \ --health-check-timeout=3m ./bin/flux reconcile source oci podinfo-oci ./bin/flux suspend source oci podinfo-oci ./bin/flux get sources oci ./bin/flux resume source oci podinfo-oci ./bin/flux export source oci podinfo-oci ./bin/flux delete ks podinfo-oci --silent ./bin/flux delete source oci podinfo-oci --silent - name: flux create tenant run: | ./bin/flux create tenant dev-team --with-namespace=apps ./bin/flux -n apps create source helm podinfo \ --url https://stefanprodan.github.io/podinfo ./bin/flux -n apps create hr podinfo-helm \ --source=HelmRepository/podinfo \ --chart=podinfo \ --chart-version="6.3.x" \ --service-account=dev-team - name: flux2-kustomize-helm-example run: | ./bin/flux create source git flux-system \ --url=https://github.com/fluxcd/flux2-kustomize-helm-example \ --branch=main \ --ignore-paths="./clusters/**/flux-system/" \ --recurse-submodules ./bin/flux create kustomization flux-system \ --source=flux-system \ --path=./clusters/staging kubectl -n flux-system wait kustomization/infra-controllers --for=condition=ready --timeout=5m kubectl -n flux-system wait kustomization/apps --for=condition=ready --timeout=5m kubectl -n podinfo wait helmrelease/podinfo --for=condition=ready --timeout=5m - name: flux tree run: | ./bin/flux tree kustomization flux-system | grep Service/podinfo - name: flux events run: | ./bin/flux -n flux-system events --for Kustomization/apps | grep 'HelmRelease/podinfo' ./bin/flux -n podinfo events --for HelmRelease/podinfo | grep 'podinfo.v1' - name: flux stats run: | ./bin/flux stats -A - name: flux check run: | ./bin/flux check - name: flux migrate run: | ./bin/flux migrate - name: flux version run: | ./bin/flux version - name: flux uninstall run: | ./bin/flux uninstall --silent - name: Debug failure if: failure() run: | kubectl version --client kubectl -n flux-system get all kubectl -n flux-system describe pods kubectl -n flux-system get kustomizations -oyaml kubectl -n flux-system logs deploy/source-controller kubectl -n flux-system logs deploy/kustomize-controller <|endoftext|> # grafana_charts_service-ruler.yaml {{- if .Values.ruler.enabled }} apiVersion: v1 kind: Service metadata: name: {{ include "loki.rulerFullname" . }} labels: {{- include "loki.rulerSelectorLabels" . | nindent 4 }} {{- with .Values.ruler.serviceLabels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.loki.serviceAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: ClusterIP clusterIP: None ports: - name: http port: 3100 targetPort: http protocol: TCP - name: grpc port: 9095 targetPort: grpc protocol: TCP {{- with .Values.ruler.appProtocol.grpc }} appProtocol: {{ . }} {{- end }} selector: {{- include "loki.rulerSelectorLabels" . | nindent 4 }} {{- end }} <|endoftext|> # istio_59171.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 59171 releaseNotes: - | **Fixed** a nil pointer dereference in ServiceEntry validation for DYNAMIC_DNS resolution that could crash istiod. <|endoftext|> # flux_source_dockerconfigjson-sops-secret.yaml apiVersion: v1 data: .dockerconfigjson: eyJtYXNrIjoiKipTT1BTKioifQ== kind: Secret metadata: labels: kustomize.toolkit.fluxcd.io/name: podinfo kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} name: docker-secret namespace: default type: kubernetes.io/dockerconfigjson <|endoftext|> # istio_29427.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 29427 - 28516 upgradeNotes: - title: Connectivity issues among your proxies when updating from 1.7.x to 1.7.5 or newer. content: | When upgrading your Istio data plane from 1.7.x (where x < 5) to 1.7.5 or newer, you may observe connectivity issues between your gateway and your sidecars or among your sidecars with 503 errors in the log. This happens when 1.7.5+ proxies send HTTP 1xx or 204 response codes with headers that 1.7.x proxies reject. To fix this, upgrade all your proxies (gateways and sidecars) to 1.7.5+ as soon as possible. <|endoftext|> # k8s_docs_name-virtual-host-ingress-no-third-host.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: name-virtual-host-ingress-no-third-host spec: rules: - host: first.bar.com http: paths: - pathType: Prefix path: "/" backend: service: name: service1 port: number: 80 - host: second.bar.com http: paths: - pathType: Prefix path: "/" backend: service: name: service2 port: number: 80 - http: paths: - pathType: Prefix path: "/" backend: service: name: service3 port: number: 80 <|endoftext|> # k8s_examples_glusterfs-pod.yaml apiVersion: v1 kind: Pod metadata: name: glusterfs spec: containers: - name: glusterfs image: nginx volumeMounts: - mountPath: "/mnt/glusterfs" name: glusterfsvol volumes: - name: glusterfsvol glusterfs: endpoints: glusterfs-cluster path: kube_vol readOnly: true <|endoftext|> # istio_autoscaling_ingress_v2.golden.yaml apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: labels: app: istio-ingressgateway app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istio-ingressgateway app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istio-ingress-1.0.0 install.operator.istio.io/owning-resource: unknown istio: ingressgateway istio.io/rev: default operator.istio.io/component: IngressGateways release: istio name: istio-ingressgateway namespace: istio-system spec: maxReplicas: 5 metrics: - resource: name: cpu target: averageUtilization: 80 type: Utilization - resource: name: memory target: averageUtilization: 80 type: Utilization minReplicas: 1 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: istio-ingressgateway --- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: labels: app: istiod app.kubernetes.io/instance: istio app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: istiod app.kubernetes.io/part-of: istio app.kubernetes.io/version: 1.0.0 helm.sh/chart: istiod-1.0.0 install.operator.istio.io/owning-resource: unknown istio.io/rev: default operator.istio.io/component: Pilot release: istio name: istiod namespace: istio-system spec: maxReplicas: 5 metrics: - resource: name: cpu target: averageUtilization: 90 type: Utilization type: Resource - resource: name: memory target: averageUtilization: 90 type: Utilization type: Resource minReplicas: 1 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: istiod <|endoftext|> # istio_57340.yaml apiVersion: release-notes/v2 kind: bug-fix area: istioctl issue: - 57339 releaseNotes: - | **Fixed** the behavior change of `istioctl proxy-status` when no proxy is present will breaks foreign tooling calling. <|endoftext|> # helm_charts_alertmanager-serviceaccount.yaml {{- if and .Values.alertmanager.enabled .Values.serviceAccounts.alertmanager.create -}} apiVersion: v1 kind: ServiceAccount metadata: labels: {{- include "prometheus.alertmanager.labels" . | nindent 4 }} name: {{ template "prometheus.serviceAccountName.alertmanager" . }} {{ include "prometheus.namespace" . | indent 2 }} annotations: {{ toYaml .Values.serviceAccounts.alertmanager.annotations | indent 4 }} {{- end -}} <|endoftext|> # k8s_docs_privileged-psp.yaml apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: privileged annotations: seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*' spec: privileged: true allowPrivilegeEscalation: true allowedCapabilities: - '*' volumes: - '*' hostNetwork: true hostPorts: - min: 0 max: 65535 hostIPC: true hostPID: true runAsUser: rule: 'RunAsAny' seLinux: rule: 'RunAsAny' supplementalGroups: rule: 'RunAsAny' fsGroup: rule: 'RunAsAny' <|endoftext|> # istio_ztunnel-config-workload-filter.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Added** support for filtering `istioctl ztunnel-config workload` and `istioctl ztunnel-config connections` output by workload pod name. <|endoftext|> # argocd_source_argocd-applicationset-controller-sa.yaml --- apiVersion: v1 kind: ServiceAccount metadata: labels: app.kubernetes.io/name: argocd-applicationset-controller app.kubernetes.io/part-of: argocd app.kubernetes.io/component: applicationset-controller name: argocd-applicationset-controller <|endoftext|> # istio_proxy-config-crd.yaml apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: annotations: gateway.istio.io/controller-version: "5" --- apiVersion: v1 kind: ServiceAccount metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" --- apiVersion: apps/v1 kind: Deployment metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: "" spec: selector: matchLabels: gateway.networking.k8s.io/gateway-name: default template: metadata: annotations: istio.io/rev: default prometheus.io/path: /stats/prometheus prometheus.io/port: "15020" prometheus.io/scrape: "true" labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none service.istio.io/canonical-name: default-istio service.istio.io/canonical-revision: latest sidecar.istio.io/inject: "false" spec: containers: - args: - proxy - router - --domain - $(POD_NAMESPACE).svc. - --proxyLogLevel - - --proxyComponentLogLevel - - --log_output_level - env: - name: PILOT_CERT_PROVIDER value: - name: CA_ADDR value: istiod-..svc:15012 - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: INSTANCE_IP valueFrom: fieldRef: fieldPath: status.podIP - name: SERVICE_ACCOUNT valueFrom: fieldRef: fieldPath: spec.serviceAccountName - name: HOST_IP valueFrom: fieldRef: fieldPath: status.hostIP - name: ISTIO_CPU_LIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: PROXY_CONFIG value: | {"image":{"imageType":"distroless"}} - name: ISTIO_META_POD_PORTS value: '[]' - name: ISTIO_META_APP_CONTAINERS value: "" - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: ISTIO_META_CLUSTER_ID value: Kubernetes - name: ISTIO_META_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ISTIO_META_INTERCEPTION_MODE value: REDIRECT - name: ISTIO_META_WORKLOAD_NAME value: default-istio - name: ISTIO_META_OWNER value: kubernetes://apis/apps/v1/namespaces/default/deployments/default-istio - name: ISTIO_META_MESH_ID value: cluster.local - name: TRUST_DOMAIN value: cluster.local image: test/proxyv2:test-distroless name: istio-proxy ports: - containerPort: 15020 name: metrics protocol: TCP - containerPort: 15021 name: status-port protocol: TCP - containerPort: 15090 name: http-envoy-prom protocol: TCP readinessProbe: failureThreshold: 4 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 0 periodSeconds: 15 successThreshold: 1 timeoutSeconds: 1 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false readOnlyRootFilesystem: true runAsGroup: 1337 runAsNonRoot: true runAsUser: 1337 startupProbe: failureThreshold: 30 httpGet: path: /healthz/ready port: 15021 scheme: HTTP initialDelaySeconds: 1 periodSeconds: 1 successThreshold: 1 timeoutSeconds: 1 volumeMounts: - mountPath: /var/run/secrets/workload-spiffe-uds name: workload-socket - mountPath: /var/run/secrets/credential-uds name: credential-socket - mountPath: /var/run/secrets/workload-spiffe-credentials name: workload-certs - mountPath: /var/lib/istio/data name: istio-data - mountPath: /etc/istio/proxy name: istio-envoy - mountPath: /var/run/secrets/tokens name: istio-token - mountPath: /etc/istio/pod name: istio-podinfo securityContext: sysctls: - name: net.ipv4.ip_unprivileged_port_start value: "0" serviceAccountName: default-istio volumes: - emptyDir: {} name: workload-socket - emptyDir: {} name: credential-socket - emptyDir: {} name: workload-certs - emptyDir: medium: Memory name: istio-envoy - emptyDir: {} name: istio-data - downwardAPI: items: - fieldRef: fieldPath: metadata.labels path: labels - fieldRef: fieldPath: metadata.annotations path: annotations name: istio-podinfo - name: istio-token projected: sources: - serviceAccountToken: audience: expirationSeconds: 43200 path: istio-token --- apiVersion: v1 kind: Service metadata: annotations: {} labels: gateway.istio.io/managed: istio.io-gateway-controller gateway.networking.k8s.io/gateway-class-name: istio gateway.networking.k8s.io/gateway-name: default istio.io/dataplane-mode: none name: default-istio namespace: default ownerReferences: - apiVersion: gateway.networking.k8s.io/v1 kind: Gateway name: default uid: null spec: ipFamilyPolicy: PreferDualStack ports: - appProtocol: tcp name: status-port port: 15021 protocol: TCP selector: gateway.networking.k8s.io/gateway-name: default type: LoadBalancer --- <|endoftext|> # istio_58366.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 58366 releaseNotes: - | **Added** an option, `gateway.istio.io/tls-cipher-suites`, to specify the custom cipher suites on a Gateway. The value is a comma separated list of cipher suites. <|endoftext|> # helm_charts_server-read-clusterrole.yaml {{- if .Values.server.enabled -}} {{- if .Values.rbac.create -}} apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: labels: app: {{ template "kiam.name" . }} chart: {{ template "kiam.chart" . }} component: "{{ .Values.server.name }}" heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "kiam.fullname" . }}-read rules: - apiGroups: - "" resources: - namespaces - pods verbs: - watch - get - list {{- end -}} {{- end -}} <|endoftext|> # k8s_docs_qos-pod-2.yaml apiVersion: v1 kind: Pod metadata: name: qos-demo-2 namespace: qos-example spec: containers: - name: qos-demo-2-ctr image: nginx resources: limits: memory: "200Mi" requests: memory: "100Mi" <|endoftext|> # istio_37903.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue where removing a HTTP filter is not working properly. <|endoftext|> # istio_54962-istioctl-timeout.yaml apiVersion: release-notes/v2 kind: feature area: istioctl issue: - 54962 releaseNotes: - | **Added** `--kubeclient-timeout` flag to `istioctl` root flags. May be unset, or set to a valid `time.Duration` string. When specified, this will override the default 15s timeout for all `istioctl` commands that use the Kubernetes client. This is useful for environments with slow Kubernetes API servers, such as those with high latency or low bandwidth. Note that this flag is just used for the Kubernetes client, and does not affect other timeouts in `istioctl`, such as installation timeouts. <|endoftext|> # kube_prometheus_blackboxExporter-serviceAccount.yaml apiVersion: v1 automountServiceAccountToken: false kind: ServiceAccount metadata: labels: app.kubernetes.io/component: exporter app.kubernetes.io/name: blackbox-exporter app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.28.0 name: blackbox-exporter namespace: monitoring <|endoftext|> # istio_56549.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 43966 docs: - '[usage] https://istio.io/latest/docs/tasks/traffic-management/ingress/secure-ingress/#key-formats' - '[reference] https://istio.io/latest/docs/reference/config/networking/gateway/#ServerTLSSettings-ca_cert_credential_name' releaseNotes: - | **Added** `caCertCredentialName` field in `ServerTLSSettings` to reference a Secret/ConfigMap that holds CA certificates for mTLS <|endoftext|> # argocd_source_applicationset.yaml # This is an example of a typical ApplicationSet which uses the cluster generator. # An ApplicationSet is comprised with two stanzas: # - spec.generator - producer of a list of values supplied as arguments to an app template # - spec.template - an application template, which has been parameterized apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - clusters: {} template: metadata: name: '{{.name}}-guestbook' spec: source: repoURL: https://github.com/infra-team/cluster-deployments.git targetRevision: HEAD chart: guestbook destination: server: '{{.server}}' namespace: guestbook <|endoftext|> # istio_55859.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 55623 releaseNotes: - | **Fixed** an issue that ReferenceGrants don't work when mTLS is enabled for a Gateway Listener. <|endoftext|> # istio_40809.yaml apiVersion: release-notes/v2 kind: bug-fix area: telemetry releaseNotes: - | **Fixed** an issue when telemetry accesslogs is nil, will not fallback to use meshconfig. <|endoftext|> # istio_pod-con-sec-uid.yaml apiVersion: v1 kind: Pod metadata: name: con-sec-uid labels: app: helloworld version: v1 spec: containers: - name: helloworld image: registry.istio.io/release/examples-helloworld-v1 securityContext: runAsUser: 1337 resources: requests: cpu: "100m" imagePullPolicy: IfNotPresent #Always ports: - containerPort: 5000 <|endoftext|> # istio_ztunnel-dns-config.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Added** `dnsPolicy` and `dnsConfig` fields to ztunnel Helm chart for custom DNS configuration in environments with non-standard DNS requirements. <|endoftext|> # istio_57219-rc2.yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 57219 releaseNotes: - | **Removed** support for InferencePool v1.0.0-rc.1. **Added** support for InferencePool v1.0.0-rc.2. upgradeNotes: - title: InferencePool content: | The InferencePool API v1.0.0-rc.1 has been replaced with v1.0.0-rc.2. In this version, `inferencePool.spec.endpointPickerRef.portNumber` field has been replaced with `inferencePool.spec.endpointPickerRef.port.number`. The `inferencePool.spec.endpointPickerRef.port` field is a non-pointer and required when `inferencePool.spec.endpointPickerRef.kind` is unset or "Service". The port number 9002 is no longer inferred. Update your configurations to use the new API version. <|endoftext|> # istio_telemetry-invalid-provider.yaml apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: mesh-default namespace: istio-system spec: accessLogging: - providers: - name: envoy - filter: expression: "response.code >= 400" <|endoftext|> # istio_35357.yaml apiVersion: release-notes/v2 kind: feature area: security issue: - 33472 releaseNotes: - | **Added** `insecureSkipVerify` implementation from DestinationRule. Setting `insecureSkipVerify` to `true` will disable CA certificate and Subject Alternative Names verification for the host. <|endoftext|> # grafana_charts_deployment-ruler.yaml {{- if and (eq .Values.ruler.kind "Deployment") .Values.ruler.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "loki.rulerFullname" . }} labels: {{- include "loki.rulerLabels" . | nindent 4 }} app.kubernetes.io/part-of: memberlist {{- with .Values.loki.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: replicas: {{ .Values.ruler.replicas }} strategy: rollingUpdate: maxSurge: 0 maxUnavailable: 1 revisionHistoryLimit: {{ .Values.loki.revisionHistoryLimit }} selector: matchLabels: {{- include "loki.rulerSelectorLabels" . | nindent 6 }} template: metadata: annotations: {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "loki.rulerSelectorLabels" . | nindent 8 }} app.kubernetes.io/part-of: memberlist {{- with .Values.loki.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ include "loki.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.hostAliases }} hostAliases: {{- toYaml . | nindent 8 }} {{- end }} {{- include "loki.rulerPriorityClassName" . | nindent 6 }} securityContext: {{- toYaml .Values.loki.podSecurityContext | nindent 8 }} terminationGracePeriodSeconds: {{ .Values.ruler.terminationGracePeriodSeconds }} {{- with .Values.ruler.initContainers }} initContainers: {{- toYaml . | nindent 8 }} {{- end }} containers: - name: ruler image: {{ include "loki.rulerImage" . }} imagePullPolicy: {{ .Values.loki.image.pullPolicy }} {{- if or .Values.loki.command .Values.ruler.command }} command: - {{ coalesce .Values.ruler.command .Values.loki.command | quote }} {{- end }} args: - -config.file=/etc/loki/config/config.yaml - -target=ruler {{- with .Values.ruler.extraArgs }} {{- toYaml . | nindent 12 }} {{- end }} ports: - name: http containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP - name: http-memberlist containerPort: 7946 protocol: TCP {{- with .Values.ruler.extraEnv }} env: {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.ruler.extraEnvFrom }} envFrom: {{- toYaml . | nindent 12 }} {{- end }} securityContext: {{- toYaml .Values.loki.containerSecurityContext | nindent 12 }} readinessProbe: {{- toYaml .Values.loki.readinessProbe | nindent 12 }} livenessProbe: {{- toYaml .Values.loki.livenessProbe | nindent 12 }} volumeMounts: - name: config mountPath: /etc/loki/config - name: runtime-config mountPath: /var/{{ include "loki.name" . }}-runtime - name: data mountPath: /var/loki - name: tmp mountPath: /tmp/loki {{- range $dir, $_ := .Values.ruler.directories }} - name: {{ include "loki.rulerRulesDirName" $dir }} mountPath: /etc/loki/rules/{{ $dir }} {{- end }} {{- with .Values.ruler.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} resources: {{- toYaml .Values.ruler.resources | nindent 12 }} {{- if .Values.ruler.extraContainers }} {{- toYaml .Values.ruler.extraContainers | nindent 8}} {{- end }} {{- with .Values.ruler.affinity }} affinity: {{- tpl . $ | nindent 8 }} {{- end }} {{- with .Values.ruler.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ruler.dnsConfig }} dnsConfig: {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: config {{- if .Values.loki.existingSecretForConfig }} secret: secretName: {{ .Values.loki.existingSecretForConfig }} {{- else if .Values.loki.configAsSecret }} secret: secretName: {{ include "loki.fullname" . }}-config {{- else }} configMap: name: {{ include "loki.fullname" . }} {{- end }} - name: runtime-config configMap: name: {{ template "loki.fullname" . }}-runtime {{- range $dir, $_ := .Values.ruler.directories }} - name: {{ include "loki.rulerRulesDirName" $dir }} configMap: name: {{ include "loki.rulerFullname" $ }}-{{ include "loki.rulerRulesDirName" $dir }} {{- end }} - name: tmp emptyDir: {} - name: data {{- if .Values.ruler.persistence.enabled }} persistentVolumeClaim: claimName: data-{{ include "loki.rulerFullname" . }} {{- else }} emptyDir: {} {{- end }} {{- with .Values.ruler.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- end }} <|endoftext|> # helm_charts_spark-master-deployment.yaml apiVersion: v1 kind: Service metadata: name: {{ template "master-fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" spec: ports: - port: {{ .Values.Master.ServicePort }} targetPort: {{ .Values.Master.ContainerPort }} selector: component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" --- apiVersion: v1 kind: Service metadata: name: {{ template "webui-fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" spec: ports: - port: {{ .Values.WebUi.ServicePort }} targetPort: {{ .Values.WebUi.ContainerPort }} selector: component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" type: {{ .Values.Master.ServiceType }} --- apiVersion: {{ template "deployment.apiVersion" . }} kind: Deployment metadata: name: {{ template "master-fullname" . }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" spec: replicas: {{ default 1 .Values.Master.Replicas }} strategy: type: RollingUpdate selector: matchLabels: component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" template: metadata: labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" spec: containers: - name: {{ template "master-fullname" . }} image: "{{ .Values.Master.Image }}:{{ .Values.Master.ImageTag }}" command: ["/bin/sh","-c"] args: ["echo $(hostname -i) {{ template "master-fullname" . }} >> /etc/hosts; {{ .Values.Spark.Path }}/bin/spark-class org.apache.spark.deploy.master.Master"] ports: - containerPort: {{ .Values.Master.ContainerPort }} - containerPort: {{ .Values.WebUi.ContainerPort }} resources: requests: cpu: "{{ .Values.Master.Cpu }}" memory: "{{ .Values.Master.Memory }}" env: - name: SPARK_DAEMON_MEMORY value: {{ default "1g" .Values.Master.DaemonMemory | quote }} - name: SPARK_MASTER_HOST value: {{ template "master-fullname" . }} - name: SPARK_MASTER_PORT value: {{ .Values.Master.ServicePort | quote }} - name: SPARK_MASTER_WEBUI_PORT value: {{ .Values.WebUi.ContainerPort | quote }} <|endoftext|> # istio_46051.yaml apiVersion: release-notes/v2 kind: feature area: istioctl releaseNotes: - | **Removed** the following experimental `istioctl` commands: `create-remote-secret` and `remote-clusters`. They have been moved to the top level `istioctl` command. <|endoftext|> # istio_27726.yaml apiVersion: release-notes/v2 kind: bug-fix area: networking issue: - 27726 releaseNotes: - | **Fixed** pilot agent app probe connection leak. <|endoftext|> # helm_charts_flower-deployment.yaml {{- if and (.Values.flower.enabled) (eq .Values.airflow.executor "CeleryExecutor") }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "airflow.fullname" . }}-flower {{- if .Values.flower.annotations }} annotations: {{- toYaml .Values.flower.annotations | nindent 4 }} {{- end }} labels: app: {{ include "airflow.labels.app" . }} component: flower chart: {{ include "airflow.labels.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- if .Values.flower.labels }} {{- toYaml .Values.flower.labels | nindent 4 }} {{- end }} spec: replicas: {{ .Values.flower.replicas }} minReadySeconds: {{ .Values.flower.minReadySeconds }} strategy: # this is safe - multiple flower pods can run concurrently type: RollingUpdate rollingUpdate: maxSurge: 25% maxUnavailable: 0 selector: matchLabels: app: {{ include "airflow.labels.app" . }} component: flower release: {{ .Release.Name }} template: metadata: annotations: checksum/config-env: {{ include (print $.Template.BasePath "/config/configmap-env.yaml") . | sha256sum }} {{- if .Values.flower.podAnnotations }} {{- toYaml .Values.flower.podAnnotations | nindent 8 }} {{- end }} {{- if .Values.flower.safeToEvict }} cluster-autoscaler.kubernetes.io/safe-to-evict: "true" {{- end }} labels: app: {{ include "airflow.labels.app" . }} component: flower release: {{ .Release.Name }} {{- if .Values.flower.podLabels }} {{- toYaml .Values.flower.podLabels | nindent 8 }} {{- end }} spec: {{- if .Values.airflow.image.pullSecret }} imagePullSecrets: - name: {{ .Values.airflow.image.pullSecret }} {{- end }} restartPolicy: Always {{- if .Values.flower.nodeSelector }} nodeSelector: {{- toYaml .Values.flower.nodeSelector | nindent 8 }} {{- end }} {{- if .Values.flower.affinity }} affinity: {{- toYaml .Values.flower.affinity | nindent 8 }} {{- end }} {{- if .Values.flower.tolerations }} tolerations: {{- toYaml .Values.flower.tolerations | nindent 8 }} {{- end }} serviceAccountName: {{ include "airflow.serviceAccountName" . }} {{- if .Values.flower.securityContext }} securityContext: {{- toYaml .Values.flower.securityContext | nindent 8 }} {{- end }} containers: - name: {{ .Chart.Name }}-flower image: {{ .Values.airflow.image.repository }}:{{ .Values.airflow.image.tag }} imagePullPolicy: {{ .Values.airflow.image.pullPolicy }} envFrom: - configMapRef: name: "{{ include "airflow.fullname" . }}-env" env: {{- include "airflow.mapenvsecrets" . | indent 12 }} ports: - name: flower containerPort: 5555 protocol: TCP {{- if .Values.flower.extraConfigmapMounts }} volumeMounts: {{- range .Values.flower.extraConfigmapMounts }} - name: {{ .name }} mountPath: {{ .mountPath }} readOnly: {{ .readOnly }} {{- if .subPath }} subPath: {{ .subPath }} {{- end }} {{- end }} {{- end }} command: - "/usr/bin/dumb-init" - "--" args: - "bash" - "-c" - > true \ {{- if gt .Values.flower.initialStartupDelay 0.0 }} && echo "*** waiting {{ .Values.flower.initialStartupDelay }}s..." \ && sleep {{ .Values.flower.initialStartupDelay }} \ {{- end }} && mkdir -p /home/airflow/.local/bin \ && export PATH="/home/airflow/.local/bin:$PATH" \ && echo "*** running flower..." \ {{- if .Values.flower.oauthDomains }} && exec airflow flower --auth={{ .Values.flower.oauthDomains | quote }} {{- else }} && exec airflow flower {{- end }} livenessProbe: {{- if and (.Values.flower.basicAuthSecret) (not .Values.airflow.config.AIRFLOW__CELERY__FLOWER_BASIC_AUTH) }} exec: command: - /bin/sh - -c - "curl -H 'Authorization: Basic $(echo -n $AIRFLOW__CELERY__FLOWER_BASIC_AUTH | base64)' 'http://localhost:5555 {{- if .Values.ingress.flower.livenessPath -}} {{ .Values.ingress.flower.livenessPath }} {{- else -}} {{ .Values.ingress.flower.path }}/ {{- end -}} '" {{- else }} httpGet: {{- if .Values.ingress.flower.livenessPath }} path: "{{ .Values.ingress.flower.livenessPath }}" {{- else }} path: "{{ .Values.ingress.flower.path }}/" {{- end }} port: flower {{- if .Values.airflow.config.AIRFLOW__CELERY__FLOWER_BASIC_AUTH }} httpHeaders: - name: Authorization value: Basic {{ .Values.airflow.config.AIRFLOW__CELERY__FLOWER_BASIC_AUTH | b64enc }} {{- end }} {{- end }} initialDelaySeconds: 60 periodSeconds: 30 timeoutSeconds: 1 successThreshold: 1 failureThreshold: 3 resources: {{- toYaml .Values.flower.resources | nindent 12 }} {{- if .Values.flower.extraConfigmapMounts }} volumes: {{- range .Values.flower.extraConfigmapMounts }} - name: {{ .name }} configMap: name: {{ .configMap }} {{- end }} {{- end }} {{- end }} <|endoftext|> # istio_invalid-k8s-values.yaml apiVersion: install.istio.io/v1alpha1 kind: IstioOperator metadata: name: istio-operator spec: values: global: defaultTolerations: - thats: not-a-real-field <|endoftext|> # helm_charts_ambassador-pro-ratelimit.yaml {{ if and .Values.pro.enabled .Values.crds.enabled }} --- apiVersion: getambassador.io/v1 kind: RateLimitService metadata: name: {{ include "ambassador.fullname" . }}-pro-ratelimit spec: {{- if hasKey .Values.env "AMBASSADOR_ID" }} ambassador_id: {{ .Values.env.AMBASSADOR_ID | quote }} {{- end }} service: 127.0.0.1:{{ .Values.pro.ports.ratelimit }} {{ end }} <|endoftext|> # helm_charts_elasticsearch-deployment.yaml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: {{ template "elasticsearch.fullname" . }} labels: app: {{ template "elasticsearch.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: replicas: {{ .Values.replicaCount }} template: metadata: labels: app: {{ template "elasticsearch.name" . }} release: {{ .Release.Name }} spec: {{- if .Values.imagePullSecrets }} imagePullSecrets: - name: {{ .Values.imagePullSecrets }} {{- end }} initContainers: - name: init-data image: "{{ .Values.initContainerImage }}" securityContext: privileged: true command: - '/bin/sh' - '-c' - > chmod -R 777 {{ .Values.persistence.mountPath }}; sysctl -w vm.max_map_count={{ .Values.env.maxMapCount }} volumeMounts: - name: elasticsearch-data mountPath: {{ .Values.persistence.mountPath | quote }} containers: - name: {{ template "elasticsearch.fullname" . }} image: {{ .Values.image.repository }}:{{ .Values.image.version }} imagePullPolicy: {{ .Values.imagePullPolicy }} env: - name: 'cluster.name' value: {{ .Values.env.clusterName }} - name: 'network.host' value: {{ .Values.env.networkHost }} - name: 'transport.host' value: {{ .Values.env.transportHost }} - name: 'xpack.security.enabled' value: {{ .Values.env.xpackSecurityEnabled | quote }} - name: ES_JAVA_OPTS value: "-Xms{{ .Values.resources.requests.memory | trunc 1 }}g -Xmx{{ .Values.resources.requests.memory | trunc 1 }}g" - name: ELASTIC_SEARCH_URL value: {{ .Values.env.esUrl }} - name: ELASTIC_SEARCH_USERNAME value: {{ .Values.env.esUsername }} - name: ELASTIC_SEARCH_PASSWORD valueFrom: secretKeyRef: name: {{ template "elasticsearch.fullname" . }} key: esPassword lifecycle: postStart: exec: command: - '/bin/sh' - '-c' - > sleep 5; mkdir -p /var/log/elasticsearch; bash /scripts/setup.sh > /var/log/elasticsearch/setup-$(date +%Y%m%d%H%M%S).log 2>&1 ports: - containerPort: {{ .Values.internalHttpPort }} protocol: TCP - containerPort: {{ .Values.internalTransportPort }} protocol: TCP volumeMounts: - name: setup-script mountPath: "/scripts" - name: elasticsearch-data mountPath: {{ .Values.persistence.mountPath | quote }} resources: requests: memory: "{{ .Values.resources.requests.memory }}" cpu: "{{ .Values.resources.requests.cpu }}" limits: memory: "{{ .Values.resources.limits.memory }}" cpu: "{{ .Values.resources.limits.cpu }}" livenessProbe: httpGet: path: /_cluster/health?local=true port: 9200 initialDelaySeconds: 90 periodSeconds: 10 readinessProbe: httpGet: path: /_cluster/health?local=true port: 9200 initialDelaySeconds: 60 volumes: - name: setup-script configMap: name: {{ template "elasticsearch.fullname" . }}-setup-script - name: elasticsearch-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{ else }}{{ template "elasticsearch.fullname" . }}{{ end }} {{- else }} emptyDir: {} {{- end }} <|endoftext|> # argocd_source_create-update.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: guestbook spec: goTemplate: true generators: - list: elements: - cluster: engineering-dev url: https://kubernetes.default.svc foo: bar # Update foo value with foo: bar # Application engineering-prod-guestbook labels will change to foo: bar # Delete this element # Application engineering-prod-guestbook will be kept - cluster: engineering-prod url: https://kubernetes.default.svc foo: baz template: metadata: name: '{{.cluster}}-guestbook' labels: foo: '{{.foo}}' spec: project: default source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: applicationset/examples/list-generator/guestbook/{{.cluster}} destination: server: '{{.url}}' namespace: guestbook syncPolicy: applicationsSync: create-update <|endoftext|> # istio_add-default-revision-webhook.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** non-revisioned installs to target the label `istio.io/rev=default` for injection in addition to the existing default injection labels `istio-injection=enabled` and `sidecar.istio.io/inject=true`. <|endoftext|> # helm_charts_poddisruptionbudget.yaml apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ template "envoy.fullname" . }} labels: app: {{ template "envoy.name" . }} chart: {{ template "envoy.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: selector: matchLabels: app: {{ template "envoy.name" . }} release: {{ .Release.Name }} {{ .Values.podDisruptionBudget | indent 2 }} <|endoftext|> # istio_reroute-virtual-interfaces.yaml apiVersion: apps/v1 kind: Deployment metadata: name: hello spec: replicas: 7 selector: matchLabels: app: hello tier: backend track: stable template: metadata: annotations: istio.io/reroute-virtual-interfaces: "net0ps2" traffic.sidecar.istio.io/kubevirtInterfaces: "net1" labels: app: hello tier: backend track: stable spec: containers: - name: hello image: "fake.docker.io/google-samples/hello-go-gke:1.0" ports: - name: http containerPort: 80 <|endoftext|> # helm_charts_consul-statefulset.yaml apiVersion: {{ template "statefulset.apiVersion" . }} kind: StatefulSet metadata: name: "{{ template "consul.fullname" . }}" labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" {{- if .Values.additionalLabels }} {{ toYaml .Values.additionalLabels | indent 4 }} {{- end }} spec: serviceName: "{{ template "consul.fullname" . }}" replicas: {{ default 3 .Values.Replicas }} updateStrategy: type: RollingUpdate selector: matchLabels: release: {{ .Release.Name | quote }} component: "{{ .Release.Name }}-{{ .Values.Component }}" template: metadata: name: "{{ template "consul.fullname" . }}" {{- if .Values.podAnnotations }} annotations: {{ toYaml .Values.podAnnotations | indent 8 }} {{- end }} labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} chart: {{ template "consul.chart" . }} component: "{{ .Release.Name }}-{{ .Values.Component }}" {{- if .Values.additionalLabels }} {{ toYaml .Values.additionalLabels | indent 8 }} {{- end }} spec: securityContext: fsGroup: 1000 {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} {{- if .Values.affinity }} affinity: {{ tpl .Values.affinity . | indent 8 }} {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- end }} containers: - name: "{{ template "consul.fullname" . }}" image: "{{ .Values.Image }}:{{ .Values.ImageTag }}" imagePullPolicy: "{{ .Values.ImagePullPolicy }}" ports: - name: http containerPort: {{ .Values.HttpPort }} - name: rpc containerPort: {{ .Values.RpcPort }} - name: serflan-tcp protocol: "TCP" containerPort: {{ .Values.SerflanPort }} - name: serflan-udp protocol: "UDP" containerPort: {{ .Values.SerflanUdpPort }} - name: serfwan-tcp protocol: "TCP" containerPort: {{ .Values.SerfwanPort }} - name: serfwan-udp protocol: "UDP" containerPort: {{ .Values.SerfwanUdpPort }} - name: server containerPort: {{.Values.ServerPort}} - name: consuldns-tcp containerPort: {{.Values.ConsulDnsPort}} - name: consuldns-udp protocol: "UDP" containerPort: {{.Values.ConsulDnsPort}} resources: {{ toYaml .Values.Resources | indent 10 }} env: - name: INITIAL_CLUSTER_SIZE value: {{ default 3 .Values.Replicas | quote }} - name: STATEFULSET_NAME value: "{{ template "consul.fullname" . }}" - name: POD_IP valueFrom: fieldRef: fieldPath: status.podIP - name: STATEFULSET_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: DNSPORT value: "{{ .Values.ConsulDnsPort }}" volumeMounts: - name: datadir mountPath: /var/lib/consul - name: gossip-key mountPath: /etc/consul/secrets readOnly: true {{ range .Values.ConsulConfig }} - name: userconfig-{{ .name }} readOnly: true mountPath: /etc/consul/userconfig/{{ .name }} {{ end }} {{- if .Values.lifecycle }} lifecycle: {{ tpl (toYaml .Values.lifecycle) . | indent 10 }} {{- end }} livenessProbe: exec: command: - consul - members - -http-addr=http://127.0.0.1:{{ .Values.HttpPort }} initialDelaySeconds: 300 timeoutSeconds: 5 command: - "/bin/sh" - "-ec" - | set -o pipefail if [ -z "$POD_IP" ]; then POD_IP=$(hostname -i) fi FQDN_SUFFIX="${STATEFULSET_NAME}.${STATEFULSET_NAMESPACE}.svc{{- if .Values.ClusterDomain }}.{{ .Values.ClusterDomain }}{{- end -}}" NODE_NAME="$(hostname -s).${FQDN_SUFFIX}" {{- if .Values.Gossip.Encrypt }} if [ -e /etc/consul/secrets/gossip-key ]; then echo "{\"encrypt\": \"$(base64 /etc/consul/secrets/gossip-key)\"}" > /etc/consul/encrypt.json GOSSIP_KEY="-config-file /etc/consul/encrypt.json" fi {{- end }} JOIN_PEERS="" {{- if .Values.joinPeers }} {{- range .Values.joinPeers }} JOIN_PEERS="${JOIN_PEERS}${JOIN_PEERS:+ }{{ . }}" {{- end }} {{- else }} JOIN_PEERS="" for i in $( seq 0 $((${INITIAL_CLUSTER_SIZE} - 1)) ); do JOIN_PEERS="${JOIN_PEERS}${JOIN_PEERS:+ }${STATEFULSET_NAME}-${i}.${FQDN_SUFFIX}" done {{- end }} JOIN_PEERS=$( printf "%s\n" $JOIN_PEERS | sort | uniq ) # Require multiple loops in the case of unstable DNS resolution SUCCESS_LOOPS=5 while [ "$SUCCESS_LOOPS" -gt 0 ]; do ALL_READY=true JOIN_LAN="" for THIS_PEER in $JOIN_PEERS; do # Make sure we can resolve hostname and ping IP if PEER_IP="$(ping -c 1 $THIS_PEER | awk -F'[()]' '/PING/{print $2}')" && [ "$PEER_IP" != "" ]; then if [ "${PEER_IP}" != "${POD_IP}" ]; then JOIN_LAN="${JOIN_LAN}${JOIN_LAN:+ } -retry-join=$THIS_PEER" fi else ALL_READY=false break fi done if $ALL_READY; then SUCCESS_LOOPS=$(( SUCCESS_LOOPS - 1 )) echo "LAN peers appear ready, $SUCCESS_LOOPS verifications left" else echo "Waiting for LAN peer $THIS_PEER..." fi sleep 1s done WAN_PEERS="" {{- range .Values.joinWan }} WAN_PEERS="${WAN_PEERS}${WAN_PEERS:+ }{{ . }}" {{- end }} JOIN_WAN="" SUCCESS_LOOPS=5 while [ "$WAN_PEERS" != "" ] && [ "$SUCCESS_LOOPS" -gt 0 ]; do ALL_READY=true JOIN_WAN="" for THIS_PEER in $WAN_PEERS; do # We don't care if we can ping the peer, but we do care that we can get its IP if PEER_IP="$( ( ping -c 1 $THIS_PEER || true ) | awk -F'[()]' '/PING/{print $2}')" && [ "$PEER_IP" != "" ]; then if [ "${PEER_IP}" != "${POD_IP}" ]; then JOIN_WAN="${JOIN_WAN}${JOIN_WAN:+ } -retry-join-wan=$THIS_PEER" fi else ALL_READY=false break fi done if $ALL_READY; then SUCCESS_LOOPS=$(( SUCCESS_LOOPS - 1 )) echo "WAN peers appear ready, $SUCCESS_LOOPS verifications left" else echo "Waiting for WAN peer $THIS_PEER..." fi sleep 1s done exec /bin/consul agent \ {{- range .Values.ConsulConfig }} -config-dir /etc/consul/userconfig/{{ .name }} \ {{- end}} {{- if .Values.ui.enabled }} -ui \ {{- end }} {{- if .Values.DisableHostNodeId }} -disable-host-node-id \ {{- end }} {{- if .Values.DatacenterName }} -datacenter {{ .Values.DatacenterName }} \ {{- end }} {{- if .Values.Domain }} -domain={{ .Values.Domain }} \ {{- end }} -data-dir=/var/lib/consul \ -server \ -bootstrap-expect=$( echo "$JOIN_PEERS" | wc -w ) \ -disable-keyring-file \ {{- if .Values.forceIpv6 }} -bind=:: \ {{- else }} -bind=0.0.0.0 \ {{- end }} -advertise=${POD_IP} \ ${JOIN_LAN} \ ${JOIN_WAN} \ {{- if .Values.Gossip.Encrypt }} ${GOSSIP_KEY} \ {{- end }} {{- if .Values.forceIpv6 }} -client=:: \ {{- else }} -client=0.0.0.0 \ {{- end }} -dns-port=${DNSPORT} \ -http-port={{ .Values.HttpPort }} volumes: - name: gossip-key secret: secretName: {{ template "consul.fullname" . }}-gossip-key {{ range .Values.ConsulConfig }} - name: userconfig-{{ .name }} {{ .type }}: {{- if (eq .type "configMap") }} name: {{ .name }} {{- else if (eq .type "secret") }} secretName: {{ .name }} {{- end}} {{ end }} volumeClaimTemplates: - metadata: name: datadir spec: accessModes: - "ReadWriteOnce" resources: requests: # upstream recommended max is 700M storage: "{{ .Values.Storage }}" {{- if .Values.StorageClass }} {{- if (eq "-" .Values.StorageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.StorageClass }}" {{- end }} {{- end }} <|endoftext|> # istio_alpn-gateway-auto.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: - 37196 releaseNotes: - | **Fixed** an issue causing traffic from a gateway to a service with an [undeclared protocol](/docs/ops/configuration/traffic-management/protocol-selection/#automatic-protocol-selection) being treated as TCP traffic rather than HTTP. <|endoftext|> # k8s_docs_redis-leader-service.yaml # SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook apiVersion: v1 kind: Service metadata: name: redis-leader labels: app: redis role: leader tier: backend spec: ports: - port: 6379 targetPort: 6379 selector: app: redis role: leader tier: backend <|endoftext|> # helm_charts_init-config.yaml {{- if .Values.initScripts.enabled -}} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "influxdb.fullname" . }}-init labels: {{- include "influxdb.labels" . | nindent 4 }} data: {{ toYaml .Values.initScripts.scripts | indent 2 }} {{- end -}} <|endoftext|> # istio_kiali-update-v1.72.yaml apiVersion: release-notes/v2 kind: feature area: installation releaseNotes: - | **Updated** Kiali addon to version v1.72.0. <|endoftext|> # istio_propagate-injection-config-errors.yaml apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - https://github.com/istio/istio/issues/53357 releaseNotes: - | **Fixed** Injection config errors were being silenced (i.e. logged and not returned) when the sidecar injector was unable to process the sidecar config. This change will now propagate the error to the user instead of continuing to process a faulty config. <|endoftext|> # k8s_examples_rc.yaml apiVersion: v1 kind: ReplicationController metadata: labels: db: rethinkdb name: rethinkdb-rc spec: replicas: 1 selector: db: rethinkdb role: replicas template: metadata: labels: db: rethinkdb role: replicas spec: containers: - image: registry.k8s.io/rethinkdb:1.16.0_1 name: rethinkdb env: - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace ports: - containerPort: 8080 name: admin-port - containerPort: 28015 name: driver-port - containerPort: 29015 name: cluster-port volumeMounts: - mountPath: /data/rethinkdb_data name: rethinkdb-storage volumes: - name: rethinkdb-storage emptyDir: {} <|endoftext|> # istio_route-reviews-90-10.yaml apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: reviews spec: parentRefs: - group: "" kind: Service name: reviews port: 9080 rules: - backendRefs: - name: reviews-v1 port: 9080 weight: 90 - name: reviews-v2 port: 9080 weight: 10 <|endoftext|> # argocd_source_deployment-scaled.yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" creationTimestamp: "2019-09-12T01:33:53Z" generation: 1 name: nginx-deploy namespace: default resourceVersion: "6897444" selfLink: /apis/apps/v1/namespaces/default/deployments/nginx-deploy uid: 61689d6d-d4fd-11e9-9e69-42010aa8005f spec: progressDeadlineSeconds: 600 replicas: 6 revisionHistoryLimit: 10 selector: matchLabels: app: nginx strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: nginx spec: containers: - image: nginx:latest imagePullPolicy: Always name: nginx resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 status: availableReplicas: 2 conditions: - lastTransitionTime: "2019-09-12T01:33:53Z" lastUpdateTime: "2019-09-12T01:33:53Z" message: Deployment does not have minimum availability. reason: MinimumReplicasUnavailable status: "False" type: Available - lastTransitionTime: "2019-09-12T01:33:53Z" lastUpdateTime: "2019-09-12T01:34:05Z" message: ReplicaSet "nginx-deploy-9cb4784bd" is progressing. reason: ReplicaSetUpdated status: "True" type: Progressing observedGeneration: 1 readyReplicas: 2 replicas: 3 unavailableReplicas: 1 updatedReplicas: 3 <|endoftext|> # istio_rds-cache-alias.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - | **Fixed** an issue causing changes to ExternalName services to sometimes be skipped due to a cache eviction bug. <|endoftext|> # helm_charts_xray-indexer-svc.yaml apiVersion: v1 kind: Service metadata: name: {{ template "xray-indexer.fullname" . }} labels: app: {{ template "xray.name" . }} chart: {{ template "xray.chart" . }} component: {{ .Values.indexer.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} spec: type: {{ .Values.indexer.service.type }} ports: - port: {{ .Values.indexer.internalPort }} protocol: TCP name: http targetPort: {{ .Values.indexer.externalPort }} selector: app: {{ template "xray.name" . }} component: {{ .Values.indexer.name }} release: {{ .Release.Name }} <|endoftext|> # helm_charts_mission-control-serviceaccount.yaml {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: labels: app: {{ template "mission-control.name" . }} chart: {{ template "mission-control.chart" . }} component: {{ .Values.missionControl.name }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} name: {{ template "mission-control.serviceAccountName" . }} {{- end }} <|endoftext|> # istio_workloadgroup-invalid.yaml _err: 'spec: Required value' apiVersion: networking.istio.io/v1 kind: WorkloadGroup metadata: name: no-spec --- _err: port must be between 1-65535 apiVersion: networking.istio.io/v1alpha3 kind: WorkloadGroup metadata: name: tcp-probe-invalid spec: probe: tcpSocket: port: 65536 template: serviceAccount: sa network: net --- _err: 'spec.probe.httpGet.httpHeaders[0].name in body should match' apiVersion: networking.istio.io/v1alpha3 kind: WorkloadGroup metadata: name: http-probe-invalid spec: probe: httpGet: httpHeaders: - name: "**" port: 80 template: {} <|endoftext|> # helm_charts_redis-haproxy-serviceaccount.yaml {{- if and .Values.haproxy.serviceAccount.create .Values.haproxy.enabled }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "redis-ha.serviceAccountName" . }}-haproxy namespace: {{ .Release.Namespace }} labels: heritage: {{ .Release.Service }} release: {{ .Release.Name }} chart: {{ .Chart.Name }}-{{ .Chart.Version }} app: {{ template "redis-ha.fullname" . }} {{- end }} <|endoftext|> # helm_charts_job-config.yaml {{- if .Values.topics -}} {{- $scriptHash := include (print $.Template.BasePath "/configmap-config.yaml") . | sha256sum | trunc 8 -}} apiVersion: batch/v1 kind: Job metadata: name: "{{ template "kafka.fullname" . }}-config-{{ $scriptHash }}" labels: {{- include "kafka.config.labels" . | nindent 4 }} spec: backoffLimit: {{ .Values.configJob.backoffLimit }} template: metadata: labels: {{- include "kafka.config.matchLabels" . | nindent 8 }} spec: restartPolicy: OnFailure volumes: - name: config-volume configMap: name: {{ template "kafka.fullname" . }}-config defaultMode: 0744 containers: - name: {{ template "kafka.fullname" . }}-config image: "{{ .Values.image }}:{{ .Values.imageTag }}" command: ["/usr/local/script/runtimeConfig.sh"] volumeMounts: - name: config-volume mountPath: "/usr/local/script" {{- end -}} <|endoftext|> # argocd_source_v0.9_promote-full_rollout.yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout metadata: annotations: rollout.argoproj.io/revision: '4' creationTimestamp: '2020-11-06T09:09:54Z' generation: 76 labels: app.kubernetes.io/instance: rollouts-demo name: rollout-canary namespace: default resourceVersion: '4977' selfLink: /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/rollout-canary uid: a5047899-8288-43c2-95d7-a8e0a8b45ed6 spec: replicas: 2 restartAt: '2020-11-06T10:03:31Z' revisionHistoryLimit: 2 selector: matchLabels: app: rollout-canary strategy: canary: steps: - setWeight: 1 - pause: {} template: metadata: annotations: restart: asdfaaa labels: app: rollout-canary spec: containers: - image: 'nginx:1.19-alpine' imagePullPolicy: Always lifecycle: postStart: exec: command: - sleep - '30' preStop: exec: command: - sleep - '30' name: rollouts-demo ports: - containerPort: 8080 resources: {} status: HPAReplicas: 2 abort: null abortedAt: '2020-11-06T10:08:32Z' availableReplicas: 2 blueGreen: {} canary: stableRS: 69d59f5445 conditions: - lastTransitionTime: '2020-11-06T10:06:38Z' lastUpdateTime: '2020-11-06T10:06:38Z' message: Rollout has minimum availability reason: AvailableReason status: 'True' type: Available - lastTransitionTime: '2020-11-06T10:08:32Z' lastUpdateTime: '2020-11-06T10:08:32Z' message: Rollout is aborted reason: RolloutAborted status: 'False' type: Progressing currentPodHash: 7797495b94 currentStepHash: 566d47875b currentStepIndex: 2 observedGeneration: 74dbb4676d readyReplicas: 2 replicas: 2 restartedAt: '2020-11-06T10:03:31Z' selector: app=rollout-canary stableRS: 69d59f5445 <|endoftext|> # istio_58427.yaml apiVersion: release-notes/v2 kind: bug-fix area: traffic-management issue: [58427] releaseNotes: - | **Fixed** an issue causing ambient multi-network connections to fail when using a custom trust domain. <|endoftext|> # istio_configmap-values.yaml {{- if or (eq .Values.global.resourceScope "all") (eq .Values.global.resourceScope "namespace") }} apiVersion: v1 kind: ConfigMap metadata: name: values{{- if not (eq .Values.revision "") }}-{{ .Values.revision }}{{- end }} namespace: {{ .Release.Namespace }} annotations: kubernetes.io/description: This ConfigMap contains the Helm values used during chart rendering. This ConfigMap is rendered for debugging purposes and external tooling; modifying these values has no effect. labels: istio.io/rev: {{ .Values.revision | default "default" | quote }} install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }} operator.istio.io/component: "Pilot" release: {{ .Release.Name }} app.kubernetes.io/name: "istiod" {{- include "istio.labels" . | nindent 4 }} data: original-values: |- {{ .Values._original | toPrettyJson | indent 4 }} {{- $_ := unset $.Values "_original" }} merged-values: |- {{ .Values | toPrettyJson | indent 4 }} {{- end }} <|endoftext|> # flux_source_components-with-crds.yaml --- apiVersion: v1 kind: Namespace metadata: name: flux-system --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: creationTimestamp: null name: alerts.notification.toolkit.fluxcd.io spec: group: notification.toolkit.fluxcd.io names: kind: Alert listKind: AlertList plural: alerts singular: alert scope: Namespaced versions: - name: v1beta1 served: true storage: true subresources: status: {} status: acceptedNames: kind: "" plural: "" conditions: [] storedVersions: [] --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: creationTimestamp: null name: buckets.source.toolkit.fluxcd.io spec: group: source.toolkit.fluxcd.io names: kind: Bucket listKind: BucketList plural: buckets singular: bucket scope: Namespaced versions: - name: v1beta1 served: true storage: true subresources: status: {} status: acceptedNames: kind: "" plural: "" conditions: [] storedVersions: [] --- apiVersion: v1 kind: ServiceAccount metadata: name: kustomize-controller namespace: flux-system --- apiVersion: v1 kind: ServiceAccount metadata: name: notification-controller namespace: flux-system <|endoftext|> # argocd_source_matrix-and-union-in-matrix-fasttemplate.yaml # The matrix generator can contain other combination-type generators (matrix and union). But nested matrix and union # generators cannot contain further-nested matrix or union generators. # # The generators are evaluated from most-nested to least-nested. In this case: # 1. The union generator joins two lists to make 3 parameter sets. # 2. The inner matrix generator takes the cartesian product of the two lists to make 4 parameters sets. # 3. The outer matrix generator takes the cartesian product of the 3 union and the 4 inner matrix parameter sets to # make 3*4=12 final parameter sets. # 4. The 12 final parameter sets are evaluated against the top-level template to generate 12 Applications. apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: matrix-and-union-in-matrix spec: generators: - matrix: generators: - union: mergeKeys: - cluster generators: - list: elements: - cluster: engineering-dev url: https://kubernetes.default.svc values: project: default - cluster: engineering-prod url: https://kubernetes.default.svc values: project: default - list: elements: - cluster: engineering-dev url: https://kubernetes.default.svc values: project: default - cluster: engineering-test url: https://kubernetes.default.svc values: project: default - matrix: generators: - list: elements: - values: suffix: '1' - values: suffix: '2' - list: elements: - values: prefix: 'first' - values: prefix: 'second' template: metadata: name: '{{values.prefix}}-{{cluster}}-{{values.suffix}}' spec: project: '{{values.project}}' source: repoURL: https://github.com/argoproj/argo-cd.git targetRevision: HEAD path: '{{path}}' destination: server: '{{url}}' namespace: '{{path.basename}}' <|endoftext|> # helm_charts_core-configmap.yaml # This ConfigMap gets passed to all core cluster members to configure them. # Take note that some networking settings like internal hostname still get configured # when the pod starts, but most non-networking specific configs can be tailored here. apiVersion: v1 kind: ConfigMap metadata: name: {{ template "neo4j.coreConfig.fullname" . }} data: NEO4J_ACCEPT_LICENSE_AGREEMENT: "{{ .Values.acceptLicenseAgreement }}" NEO4J_dbms_mode: CORE NUMBER_OF_CORES: "{{ .Values.core.numberOfServers }}" AUTH_ENABLED: "{{ .Values.authEnabled }}" NEO4J_dbms_default__database: "{{ .Values.defaultDatabase }}" NEO4J_causal__clustering_discovery__type: LIST NEO4J_dbms_connector_bolt_listen__address: 0.0.0.0:7687 NEO4J_dbms_connector_http_listen__address: 0.0.0.0:7474 NEO4J_dbms_connector_https_listen__address: 0.0.0.0:7473 NEO4J_causal__clustering_initial__discovery__members: "{{ template "neo4j.fullname" . }}-core-0.{{ template "neo4j.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:5000,{{ template "neo4j.fullname" . }}-core-1.{{ template "neo4j.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:5000,{{ template "neo4j.fullname" . }}-core-2.{{ template "neo4j.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:5000" NEO4J_causal__clustering_minimum__core__cluster__size__at__formation: "3" NEO4J_causal__clustering_minimum__core__cluster__size__at__runtime: "2" NEO4J_dbms_jvm_additional: "-XX:+ExitOnOutOfMemoryError" {{- if .Values.useAPOC }} NEO4JLABS_PLUGINS: "[\"apoc\"]" NEO4J_apoc_import_file_use__neo4j__config: "true" NEO4J_dbms_security_procedures_unrestricted: "apoc.*" {{- end }} <|endoftext|> # argocd_source_redis-serviceaccount.yaml {{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "redis.serviceAccountName" . }} labels: app: {{ template "redis.name" . }} chart: {{ template "redis.chart" . }} release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" {{- end -}} <|endoftext|> # helm_charts_cluster-agent-deployment.yaml {{- if .Values.clusterAgent.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "datadog.fullname" . }}-cluster-agent labels: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" app.kubernetes.io/name: "{{ template "datadog.fullname" . }}" app.kubernetes.io/instance: {{ .Release.Name | quote }} app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} spec: replicas: {{ .Values.clusterAgent.replicas }} strategy: {{- if .Values.clusterAgent.strategy }} {{ toYaml .Values.clusterAgent.strategy | indent 4 }} {{- else }} type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 {{- end }} selector: matchLabels: app: {{ template "datadog.fullname" . }}-cluster-agent {{- if .Values.clusterAgent.podLabels }} {{ toYaml .Values.clusterAgent.podLabels | indent 6 }} {{- end }} template: metadata: labels: app: {{ template "datadog.fullname" . }}-cluster-agent {{- if .Values.clusterAgent.podLabels }} {{ toYaml .Values.clusterAgent.podLabels | indent 8 }} {{- end }} name: {{ template "datadog.fullname" . }}-cluster-agent annotations: {{- if .Values.clusterAgent.datadog_cluster_yaml }} checksum/clusteragent-config: {{ tpl (toYaml .Values.clusterAgent.datadog_cluster_yaml) . | sha256sum }} {{- end }} {{- if .Values.clusterAgent.confd }} checksum/confd-config: {{ tpl (toYaml .Values.clusterAgent.confd) . | sha256sum }} {{- end }} ad.datadoghq.com/cluster-agent.check_names: '["prometheus"]' ad.datadoghq.com/cluster-agent.init_configs: '[{}]' ad.datadoghq.com/cluster-agent.instances: | [{ "prometheus_url": "http://%%host%%:5000/metrics", "namespace": "datadog.cluster_agent", "metrics": [ "go_goroutines", "go_memstats_*", "process_*", "api_requests", "datadog_requests", "external_metrics", "rate_limit_queries_*", "cluster_checks_*" ] }] {{- if .Values.clusterAgent.podAnnotations }} {{ toYaml .Values.clusterAgent.podAnnotations | indent 8 }} {{- end }} spec: {{- if .Values.clusterAgent.priorityClassName }} priorityClassName: "{{ .Values.clusterAgent.priorityClassName }}" {{- end }} {{- if .Values.clusterAgent.image.pullSecrets }} imagePullSecrets: {{ toYaml .Values.clusterAgent.image.pullSecrets | indent 8 }} {{- end }} serviceAccountName: {{ if .Values.clusterAgent.rbac.create }}{{ template "datadog.fullname" . }}-cluster-agent{{ else }}"{{ .Values.clusterAgent.rbac.serviceAccountName }}"{{ end }} {{- if .Values.clusterAgent.useHostNetwork }} hostNetwork: {{ .Values.clusterAgent.useHostNetwork }} dnsPolicy: ClusterFirstWithHostNet {{- end }} {{- if .Values.clusterAgent.dnsConfig }} dnsConfig: {{ toYaml .Values.clusterAgent.dnsConfig | indent 8 }} {{- end }} containers: - name: cluster-agent image: "{{ .Values.clusterAgent.image.repository }}:{{ .Values.clusterAgent.image.tag }}" {{- with .Values.clusterAgent.command }} command: {{ range . }} - {{ . | quote }} {{- end }} {{- end }} imagePullPolicy: {{ .Values.clusterAgent.image.pullPolicy }} resources: {{ toYaml .Values.clusterAgent.resources | indent 10 }} ports: - containerPort: 5005 name: agentport protocol: TCP {{- if .Values.clusterAgent.metricsProvider.enabled }} - containerPort: {{ template "clusterAgent.metricsProvider.port" . }} name: metricsapi protocol: TCP {{- end }} env: - name: DD_HEALTH_PORT value: {{ .Values.clusterAgent.healthPort | quote }} - name: DD_API_KEY valueFrom: secretKeyRef: name: {{ template "datadog.apiSecretName" . }} key: api-key optional: true {{- if .Values.clusterAgent.metricsProvider.enabled }} - name: DD_APP_KEY valueFrom: secretKeyRef: name: {{ template "datadog.appKeySecretName" . }} key: app-key - name: DD_EXTERNAL_METRICS_PROVIDER_ENABLED value: {{ .Values.clusterAgent.metricsProvider.enabled | quote }} - name: DD_EXTERNAL_METRICS_PROVIDER_PORT value: {{ include "clusterAgent.metricsProvider.port" . | quote }} - name: DD_EXTERNAL_METRICS_PROVIDER_WPA_CONTROLLER value: {{ .Values.clusterAgent.metricsProvider.wpaController | quote }} - name: DD_EXTERNAL_METRICS_PROVIDER_USE_DATADOGMETRIC_CRD value: {{ .Values.clusterAgent.metricsProvider.useDatadogMetrics | quote }} {{- end }} {{- if .Values.clusterAgent.admissionController.enabled }} - name: DD_ADMISSION_CONTROLLER_ENABLED value: {{ .Values.clusterAgent.admissionController.enabled | quote }} - name: DD_ADMISSION_CONTROLLER_MUTATE_UNLABELLED value: {{ .Values.clusterAgent.admissionController.mutateUnlabelled | quote }} - name: DD_ADMISSION_CONTROLLER_SERVICE_NAME value: {{ template "datadog.fullname" . }}-cluster-agent-admission-controller {{- end }} {{- if .Values.datadog.clusterChecks.enabled }} - name: DD_CLUSTER_CHECKS_ENABLED value: {{ .Values.datadog.clusterChecks.enabled | quote }} - name: DD_EXTRA_CONFIG_PROVIDERS value: "kube_endpoints kube_services" - name: DD_EXTRA_LISTENERS value: "kube_endpoints kube_services" {{- end }} {{- if .Values.datadog.clusterName }} {{- if not (regexMatch "^([a-z]([a-z0-9\\-]{0,38}[a-z0-9])?\\.)*([a-z]([a-z0-9\\-]{0,38}[a-z0-9])?)$" .Values.datadog.clusterName) }} {{- fail "Your `clusterName` isn’t valid. It must be dot-separated tokens where a token start with a lowercase letter followed by up to 39 lowercase letters, numbers, or hyphens and cannot end with a hyphen."}} {{- end}} - name: DD_CLUSTER_NAME value: {{ .Values.datadog.clusterName | quote }} {{- end }} {{- if .Values.datadog.site }} - name: DD_SITE value: {{ .Values.datadog.site | quote }} {{- end }} {{- if .Values.datadog.dd_url }} - name: DD_DD_URL value: {{ .Values.datadog.dd_url | quote }} {{- end }} {{- if .Values.datadog.logLevel }} - name: DD_LOG_LEVEL value: {{ .Values.datadog.logLevel | quote }} {{- end }} - name: DD_LEADER_ELECTION value: {{ default "true" .Values.datadog.leaderElection | quote}} {{- if .Values.datadog.leaderLeaseDuration }} - name: DD_LEADER_LEASE_DURATION value: {{ .Values.datadog.leaderLeaseDuration | quote }} {{- else if .Values.datadog.clusterChecks.enabled }} - name: DD_LEADER_LEASE_DURATION value: "15" {{- end }} {{- if .Values.datadog.collectEvents }} - name: DD_COLLECT_KUBERNETES_EVENTS value: {{ .Values.datadog.collectEvents | quote}} {{- end }} - name: DD_CLUSTER_AGENT_KUBERNETES_SERVICE_NAME value: {{ template "datadog.fullname" . }}-cluster-agent - name: DD_CLUSTER_AGENT_AUTH_TOKEN valueFrom: secretKeyRef: name: {{ template "clusterAgent.tokenSecretName" . }} key: token - name: DD_KUBE_RESOURCES_NAMESPACE value: {{ .Release.Namespace }} {{- if .Values.datadog.orchestratorExplorer.enabled }} - name: DD_ORCHESTRATOR_EXPLORER_ENABLED value: "true" {{- end }} {{- if .Values.clusterAgent.env }} {{ toYaml .Values.clusterAgent.env | indent 10 }} {{- end }} livenessProbe: {{ toYaml .Values.clusterAgent.livenessProbe | indent 10 }} readinessProbe: {{ toYaml .Values.clusterAgent.readinessProbe | indent 10 }} volumeMounts: {{- if .Values.clusterAgent.volumeMounts }} {{ toYaml .Values.clusterAgent.volumeMounts | indent 10 }} {{- end }} {{- if .Values.clusterAgent.confd }} - name: confd mountPath: /conf.d readOnly: true {{- end }} {{- if .Values.clusterAgent.datadog_cluster_yaml }} - name: cluster-agent-yaml mountPath: /etc/datadog-agent/datadog-cluster.yaml subPath: datadog-cluster.yaml readOnly: true {{- end}} volumes: {{- if .Values.clusterAgent.confd }} - name: confd configMap: name: {{ template "datadog.fullname" . }}-cluster-agent-confd {{- end }} {{- if .Values.clusterAgent.datadog_cluster_yaml }} - name: cluster-agent-yaml configMap: name: {{ template "datadog.fullname" . }}-cluster-agent-config {{- end}} {{- if .Values.clusterAgent.volumes }} {{ toYaml .Values.clusterAgent.volumes | indent 8 }} {{- end }} {{- if .Values.clusterAgent.tolerations }} tolerations: {{ toYaml .Values.clusterAgent.tolerations | indent 8 }} {{- end }} {{- if .Values.clusterAgent.affinity }} affinity: {{ toYaml .Values.clusterAgent.affinity | indent 8 }} {{- end }} nodeSelector: {{ template "label.os" . }}: {{ .Values.targetSystem }} {{- if .Values.clusterAgent.nodeSelector }} {{ toYaml .Values.clusterAgent.nodeSelector | indent 8 }} {{- end }} {{ end }} <|endoftext|> # istio_50124.yaml apiVersion: release-notes/v2 kind: feature area: telemetry issue: - 50124 releaseNotes: - | **Fixed** Grafana dashboard linking in the Istio Mesh Dashboard. Workload and Service links now use dashboard UIDs instead of deprecated path-based linking, which stopped working in newer Grafana versions. upgradeNotes: - title: Regenerate Grafana dashboards after upgrade content: | If you use Istio's bundled Grafana dashboards, you'll need to regenerate them after upgrading to get the fixed dashboard linking. Dashboard UIDs are now explicitly defined to enable stable links between dashboards. <|endoftext|> # cert_manager_webhook-psp.yaml {{- if .Values.global.podSecurityPolicy.enabled }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ template "webhook.fullname" . }} labels: app: {{ include "webhook.name" . }} app.kubernetes.io/name: {{ include "webhook.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} annotations: seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default' seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default' {{- if .Values.global.podSecurityPolicy.useAppArmor }} apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default' apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default' {{- end }} spec: privileged: false allowPrivilegeEscalation: false allowedCapabilities: [] # default set of capabilities are implicitly allowed volumes: - 'configMap' - 'emptyDir' - 'projected' - 'secret' - 'downwardAPI' hostNetwork: {{ .Values.webhook.hostNetwork }} {{- if .Values.webhook.hostNetwork }} hostPorts: - max: {{ .Values.webhook.securePort }} min: {{ .Values.webhook.securePort }} {{- end }} hostIPC: false hostPID: false runAsUser: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 seLinux: rule: 'RunAsAny' supplementalGroups: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 fsGroup: rule: 'MustRunAs' ranges: - min: 1000 max: 1000 {{- end }} <|endoftext|> # kube_prometheus_prometheusOperator-clusterRoleBinding.yaml apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: app.kubernetes.io/component: controller app.kubernetes.io/name: prometheus-operator app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 0.90.1 name: prometheus-operator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: prometheus-operator subjects: - kind: ServiceAccount name: prometheus-operator namespace: monitoring <|endoftext|> # helm_charts_tcp-configmap.yaml {{- if .Values.tcp }} apiVersion: v1 kind: ConfigMap metadata: labels: app: {{ template "nginx-ingress.name" . }} chart: {{ template "nginx-ingress.chart" . }} component: "{{ .Values.controller.name }}" heritage: {{ .Release.Service }} release: {{ template "nginx-ingress.releaseLabel" . }} name: {{ template "nginx-ingress.fullname" . }}-tcp data: {{ tpl (toYaml .Values.tcp) . | indent 2 }} {{- end }} <|endoftext|> # k8s_docs_fluentd-gcp-configmap.yaml kind: ConfigMap apiVersion: v1 data: containers.input.conf: |- # This configuration file for Fluentd is used # to watch changes to Docker log files that live in the # directory /var/lib/docker/containers/ and are symbolically # linked to from the /var/log/containers directory using names that capture the # pod name and container name. These logs are then submitted to # Google Cloud Logging which assumes the installation of the cloud-logging plug-in. # # Example # ======= # A line in the Docker log file might look like this JSON: # # {"log":"2014/09/25 21:15:03 Got request with path wombat\\n", # "stream":"stderr", # "time":"2014-09-25T21:15:03.499185026Z"} # # The record reformer is used to write the tag to focus on the pod name # and the Kubernetes container name. For example a Docker container's logs # might be in the directory: # /var/lib/docker/containers/997599971ee6366d4a5920d25b79286ad45ff37a74494f262e3bc98d909d0a7b # and in the file: # 997599971ee6366d4a5920d25b79286ad45ff37a74494f262e3bc98d909d0a7b-json.log # where 997599971ee6... is the Docker ID of the running container. # The Kubernetes kubelet makes a symbolic link to this file on the host machine # in the /var/log/containers directory which includes the pod name and the Kubernetes # container name: # synthetic-logger-0.25lps-pod_default-synth-lgr-997599971ee6366d4a5920d25b79286ad45ff37a74494f262e3bc98d909d0a7b.log # -> # /var/lib/docker/containers/997599971ee6366d4a5920d25b79286ad45ff37a74494f262e3bc98d909d0a7b/997599971ee6366d4a5920d25b79286ad45ff37a74494f262e3bc98d909d0a7b-json.log # The /var/log directory on the host is mapped to the /var/log directory in the container # running this instance of Fluentd and we end up collecting the file: # /var/log/containers/synthetic-logger-0.25lps-pod_default-synth-lgr-997599971ee6366d4a5920d25b79286ad45ff37a74494f262e3bc98d909d0a7b.log # This results in the tag: # var.log.containers.synthetic-logger-0.25lps-pod_default-synth-lgr-997599971ee6366d4a5920d25b79286ad45ff37a74494f262e3bc98d909d0a7b.log # The record reformer is used is discard the var.log.containers prefix and # the Docker container ID suffix and "kubernetes." is pre-pended giving the tag: # kubernetes.synthetic-logger-0.25lps-pod_default-synth-lgr # Tag is then parsed by google_cloud plugin and translated to the metadata, # visible in the log viewer # Example: # {"log":"[info:2016-02-16T16:04:05.930-08:00] Some log text here\n","stream":"stdout","time":"2016-02-17T00:04:05.931087621Z"} type tail format json time_key time path /var/log/containers/*.log pos_file /var/log/gcp-containers.log.pos time_format %Y-%m-%dT%H:%M:%S.%N%Z tag reform.* read_from_head true type parser format /^(?\w)(? type record_reformer enable_ruby true tag raw.kubernetes.${tag_suffix[4].split('-')[0..-2].join('-')} # Detect exceptions in the log output and forward them as one log entry. @type copy @type prometheus type counter name logging_line_count desc Total number of lines generated by application containers tag ${tag} @type detect_exceptions remove_tag_prefix raw message log stream stream multiline_flush_interval 5 max_bytes 500000 max_lines 1000 system.input.conf: |- # Example: # Dec 21 23:17:22 gke-foo-1-1-4b5cbd14-node-4eoj startupscript: Finished running startup script /var/run/google.startup.script type tail format syslog path /var/log/startupscript.log pos_file /var/log/gcp-startupscript.log.pos tag startupscript # Examples: # time="2016-02-04T06:51:03.053580605Z" level=info msg="GET /containers/json" # time="2016-02-04T07:53:57.505612354Z" level=error msg="HTTP Error" err="No such image: -f" statusCode=404 type tail format /^time="(?