Skip to content

Instantly share code, notes, and snippets.

View alebsys's full-sized avatar

Aleksandr Lebedev alebsys

View GitHub Profile

flow

Дано: кластер собранный по kubernetes-hard-way [^1].
Надо: присоединить ноду kubernetes с помощью bootstrap token.

  1. Включаем в kube-apiserver аутентификацию по токенам
--enable-bootstrap-token-auth
@azalio
azalio / kube-valid.md
Last active October 21, 2024 13:42
Как проверить валидность Kubernetes-манифеста до его применения.

Сегодня мне задали интересный вопрос: как обнаружить ситуацию, когда YAML-файл синтаксически корректен, но его содержимое некорректно для Kubernetes, и сделать это до попытки его применения в кластере?

Рассмотрим следующий пример манифеста:

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
@enervey
enervey / QtProfiling.md
Created February 27, 2018 13:51
Profiling in Qt Creator to analyze application performance
  1. Open the project in Qt Creator and switch to the Debug tab in the left navigation.
  2. The QML Profiler should be visible in the bottom pane - if not, click Analyze -> QML Profiler in the file bar.
  3. Rebuild the application, then click the green "Start QML Profile Analysis" button at the top of the QML Profiler to begin the profile.
  4. Once running, make actions within the application to test different parts of it.
  5. When finished testing, close the application to stop the profiler and review the results within the profiler.
  6. You can analyze the results using 3 different methods: Timeline, Flame Graph and Statistics (use the tabs below the profiler)
    1. Timeline: Events are categorized in a column on the left by categories such as "Compiling", "Animations", etc. Click on an specific event to jump to the related source code. Use the overow scrubber below the timeline area to jump to any part of the analysis.
  7. Flame Graph: Events are displayed as a more generalized summary than the Timeline, mak