User Tools

Site Tools


kubectl_run

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kubectl_run [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadmkubectl_run [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-===== kubectl run ===== 
-<file bash> 
-$ kubectl run zabbix-agent --image=zabbix-agent --port=10050 --privileged=true --labels="app=zabbix-aget" --image-pull-policy=IfNotPresent --restart=Always --env="ZBX_SERVER_HOST=zabbix-server" --dry-run=client -o yaml > zabbix-agent.yaml 
-</file> 
  
-<file yaml zabbix-agent.yaml> 
-apiVersion: v1 
-kind: Pod 
-metadata: 
-  creationTimestamp: null 
-  labels: 
-    app: zabbix-aget 
-  name: zabbix-agent 
-spec: 
-  containers: 
-  - env: 
-    - name: ZBX_SERVER_HOST 
-      value: zabbix-server 
-    image: zabbix-agent 
-    imagePullPolicy: IfNotPresent 
-    name: zabbix-agent 
-    ports: 
-    - containerPort: 10050 
-    resources: {} 
-    securityContext: 
-      privileged: true 
-  dnsPolicy: ClusterFirst 
-  restartPolicy: Always 
-status: {} 
-</file> 
kubectl_run.1753560544.txt.gz · Last modified: by wikiadm