This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-web-deployment-autoscaling | |
| labels: | |
| app: my-k8s-application | |
| env: prod | |
| owner: StepanVerhovensky | |
| spec: | |
| replicas: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- 1 | |
| SELECT d.name AS department_name, | |
| e.name AS employee_name | |
| FROM public.table_department AS d | |
| JOIN public.table_employee AS e ON e.department_id = d.id | |
| JOIN ( | |
| SELECT department_id, MAX(id) AS max_id | |
| FROM public.table_employee | |
| GROUP BY department_id | |
| ) employee_max |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: my-web | |
| spec: | |
| containers: | |
| - name: container-apache | |
| image: httpd:latest | |
| ports: | |
| - containerPort: 8889 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import uuid | |
| from collections.abc import AsyncGenerator, Generator | |
| from typing import cast | |
| import alembic.command | |
| import pytest | |
| from alembic.config import Config as AlembicConfig | |
| from sqlalchemy import URL, Connection, text | |
| from sqlalchemy.ext.asyncio import AsyncEngine, AsyncSession, async_sessionmaker, create_async_engine | |
| from testcontainers.postgres import PostgresContainer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| wg-gen-web: | |
| image: vx3r/wg-gen-web:latest | |
| container_name: wg-gen-web | |
| restart: unless-stopped | |
| ports: | |
| - "8080:8080" | |
| environment: | |
| - WG_CONF_DIR=/data | |
| - WG_INTERFACE_NAME=wg0.conf |