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 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 Json.Pointer; | |
using System.Text.Json; | |
using System.Text.Json.Nodes; | |
var json = | |
""" | |
{ | |
"objects": { | |
"and": { | |
"myProp": "1234" |
This file contains 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
// Get reference to the existing secret | |
let existingSecret = aws.secretsmanager.getSecret({name: "existingSecretName"}); | |
// Create a new secret version | |
let secretVersion = new aws.secretsmanager.SecretVersion("secretVersion", { | |
secretId: existingSecret.then(secret => secret.id), | |
secretString: "newSecretValue", | |
}); |
This file contains 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
type: object | |
properties: | |
orderId: | |
description: The ID of the order. | |
type: string | |
format: uuid | |
name: | |
description: Name of order. | |
type: string | |
orderDetails: |
This file contains 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
theme = "onedark" | |
[editor] | |
line-number = "relative" | |
mouse = false | |
bufferline = "multiple" | |
cursorline = true | |
true-color = true |
This file contains 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 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 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 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 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: |
NewerOlder