Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Content/argocd/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Example of application.yaml that creates application
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: <application name>
namespace: argocd
spec:
project: default
source:
repoURL: <github url> # Git repo containing the manifests or Helm chart
path: < directory inside the Git repository where the Helm chart is located>
targetRevision: main
syncPolicy:
automated:
prune: true # Automatically delete resources that are no longer defined in Git
selfHeal: true # Automatically fix resources that drift from the Git definition
destination:
server: "https://kubernetes.default.svc" # Target Kubernetes cluster
namespace: default # Namespace where the application will be deployed
19 changes: 19 additions & 0 deletions Content/argocd/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#Example for a Kubernetes Secret to provide Argo read permissions to your private repository
apiVersion: v1
kind: Secret
metadata:
name: private-repo-secret
namespace: argocd
annotations:
managed-by: argocd.argoproj.io # Indicates ArgoCD will manage this secret
labels:
argocd.argoproj.io/secret-type: repository # Tells ArgoCD this secret is for a Git repository
type: Opaque # Standard secret type
stringData:
type: git
url: git@github.com:<git username>/<repo name>.git # The SSH URL of the private Git repository
project: default
sshPrivateKey: |
-----BEGIN OPENSSH PRIVATE KEY-----
<paste your private key>
-----END OPENSSH PRIVATE KEY-----
36 changes: 35 additions & 1 deletion Content/docker/02-basic-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,39 @@ docker logs <container_name_or_id>

---

## 8. Docker Command Cheat Sheet
## 8. docker inspect

- `docker inspect`: show the container's metadata, including the IP address, port mappings, environment variables, and more.

### Example:
```bash
docker inspect <container_name_or_id>
```

#### Common Options:
- `-f`: Format output using a custom template.
- `-s`: Display total file sizes if the type is container.
- `--type`: Only inspect objects of the given type.


---

## 9. docker network create

- `docker network create`: Create new network.

### Example:
```bash
docker network create [OPTIONS] <network name>
```

This creates a new network.



---

## 10. Docker Command Cheat Sheet

| Command | Description |
|-----------------------------|--------------------------------------------------------------|
Expand All @@ -160,6 +192,8 @@ docker logs <container_name_or_id>
| `docker rmi <image>` | Remove a Docker image |
| `docker exec -it <container>`| Run a command inside a running container (interactive mode) |
| `docker logs <container>` | View logs for a container |
| `docker inspect <container>` | View container's metadata container |
| `docker network create <name for network>` | Create new network |

> 💡 **Tip**: Keep this cheat sheet handy when working with Docker to speed up your workflow!

Expand Down
7 changes: 7 additions & 0 deletions Content/vim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ brew install vim
- `$` - End of line
- `gg` - Start of file
- `G` - End of file
- `e` - Moves cursor forwards per word end

**Tip:** You can add a number before a navigation command to move the cursor by that number of steps.
For example, `5j` moves down 5 lines, and `3k` moves up 3 lines.


### Editing
- `i` - Insert before cursor
Expand All @@ -85,6 +90,8 @@ brew install vim
- `yy` - Copy line
- `p` - Paste after cursor
- `P` - Paste before cursor
- `u` - Undo
- `d` - Delete visual selection

### Saving and Quitting
- `:w` - Save
Expand Down
2 changes: 2 additions & 0 deletions myapp/my-node-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.env
7 changes: 7 additions & 0 deletions myapp/my-node-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:18-alpine
WORKDIR /app
COPY package.json yarn.lock* ./
RUN yarn install
COPY . .
EXPOSE 3000
CMD ["yarn", "start"]
15 changes: 15 additions & 0 deletions myapp/my-node-app/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const express = require('express');
const app = express();
const port = process.env.PORT || 3000;

app.get('/health', (req, res) => {
res.send('OK');
});

app.get('/', (req, res) => {
res.send('Hello from Node.js app!');
});

app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
});
14 changes: 14 additions & 0 deletions myapp/my-node-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "my-node-app",
"version": "1.0.0",
"description": "Node.js app for monitoring demo",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"author": "DevOps Team",
"license": "MIT",
"dependencies": {
"express": "^5.1.0"
}
}
Loading
Loading