We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb1315 commit a993876Copy full SHA for a993876
.github/workflows/kubectl.yml
@@ -28,5 +28,8 @@ jobs:
28
kubectl config set-context "remote-context" --cluster "minikube" --user "remote-dev"
29
kubectl config use-context "remote-context"
30
31
- - name: Run kubectl command against remote API
+ - name: Check kubectl has authenticated/authorized access to the remote API
32
run: kubectl get namespaces
33
+
34
+ - name: kubectl apply with a file
35
+ run: kubectl apply -f "${HOME}/${GITHUB_REPOSITORY}/manifests/nginx-test.yml"
manifests/nginx-test.yml
@@ -0,0 +1,14 @@
1
+# Create an nginx pod
2
3
+apiVersion: v1
4
+kind: Pod
5
+metadata:
6
+ name: nginx-pod
7
+ labels:
8
+ app: nginx
9
+spec:
10
+ containers:
11
+ - name: nginx-container
12
+ image: nginx:latest
13
+ ports:
14
+ - containerPort: 80
0 commit comments