Node | Pod | Service | |
---|---|---|---|
Definition | A worker machine in a Kubernetes cluster, typically a virtual or physical machine. | The smallest deployable unit in Kubernetes, representing a single instance of a running process in a cluster. | An abstraction that defines a logical set of Pods and a policy by which to access them. |
Responsibilities | Runs containers and provides the necessary runtime environment for them. | Groups one or more containers into a single unit of deployment and provides shared storage and network resources for them. | Provides a stable network identity for a set of Pods and enables load balancing, service discovery, and other networking features. |
Scalability | Can be added or removed from a cluster to adjust the overall capacity or resource usage. | Can be replicated or scaled horizontally to handle more traffic or workload. | Can span multiple Pods and be load balanced across them, allowing for high availability and fault tolerance. |
Communication |
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
publish: | |
bindings: | |
http: | |
type: response |
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: Service | |
metadata: | |
name: my-service | |
spec: | |
selector: | |
app: my-app | |
ports: | |
- name: http | |
port: 80 |
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
name: Release | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
jobs: | |
prereleaseCheck: | |
runs-on: ubuntu-latest | |
name: Check release |
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
module.exports = { | |
branches: "main", | |
plugins: [ | |
"@semantic-release/commit-analyzer", | |
"@semantic-release/release-notes-generator", | |
[ | |
"@semantic-release/changelog", | |
{ | |
"changelogFile": "CHANGELOG.md" | |
} |
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
name: Lint PR title | |
permissions: | |
pull-requests: write | |
on: | |
pull_request_target: | |
types: [opened, reopened, synchronize, edited, ready_for_review] | |
jobs: |
Commit Message Prefix | Release Type | Change Type |
---|---|---|
fix: |
Patch | Bug fixes |
feat: |
Minor | New features or enhancements |
BREAKING CHANGE: |
Major | Major breaking changes |
chore: |
None | Maintenance or housekeeping |
docs: |
None | Documentation updates |
style: |
None | Cosmetic changes |
refactor: |
None | Code refactoring |
perf: |
None | Performance improvements |
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
using LEGO.AsyncAPI; | |
using LEGO.AsyncAPI.Models; | |
// Build the document | |
var document = new AsyncApiDocument() | |
{ | |
Info = new AsyncApiInfo | |
{ | |
Title = "Example", | |
Version = "0.1.0" |
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
using LEGO.AsyncAPI.Readers; | |
// Read the file into a stream | |
using var filestream = new FileStream("user.yml", FileMode.Open); | |
// Create a new AsyncAPI Stream reader and deserialize the file | |
var document = new AsyncApiStreamReader().Read(filestream, out var diagnostic); | |
foreach (var channel in document.Channels) | |
{ | |
// Write out any channel keys |
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
asyncapi: 2.5.0 | |
info: | |
title: Example | |
version: 0.1.0 | |
channels: | |
user/signedup: | |
subscribe: | |
message: | |
description: An event describing that a user just signed up. | |
payload: |