Skip to content

Commit

Permalink
chore: moved example out of default ns, will help audit later (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
linde committed Aug 14, 2021
1 parent bb36cbf commit a861a2d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/acm-terraform-blog-part1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Subsequent articles will discuss other aspects of ACM to manage your GCP infrast
kubectl proxy --port 8888 &

# curl or use the browser
curl http://127.0.0.1:8888/api/v1/namespaces/default/services/wordpress/proxy/wp-admin/install.php
curl http://127.0.0.1:8888/api/v1/namespaces/wp/services/wordpress/proxy/wp-admin/install.php

```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Namespace
metadata:
name: wp
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: wp
name: wp-config
data:
### We're using a ConfigMap for simplicity, but in real life one should
Expand All @@ -24,6 +29,7 @@ data:
apiVersion: v1
kind: Service
metadata:
namespace: wp
name: wordpress-mysql
labels:
app: wordpress
Expand All @@ -38,6 +44,7 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: wp
name: mysql-pvc
labels:
app: wordpress
Expand All @@ -51,6 +58,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: wp
name: wordpress-mysql
labels:
app: wordpress
Expand Down Expand Up @@ -90,6 +98,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
namespace: wp
name: wordpress
labels:
app: wordpress
Expand All @@ -103,6 +112,7 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: wp
name: wp-pvc
labels:
app: wordpress
Expand All @@ -116,6 +126,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: wp
name: wordpress
labels:
app: wordpress
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Google LLC
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,10 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Namespace
metadata:
name: wp
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: wp
name: wp-config
data:
### We're using a ConfigMap for simplicity, but in real life one should
Expand All @@ -24,6 +29,7 @@ data:
apiVersion: v1
kind: Service
metadata:
namespace: wp
name: wordpress-mysql
labels:
app: wordpress
Expand All @@ -38,6 +44,7 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: wp
name: mysql-pvc
labels:
app: wordpress
Expand All @@ -51,6 +58,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: wp
name: wordpress-mysql
labels:
app: wordpress
Expand Down Expand Up @@ -90,6 +98,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
namespace: wp
name: wordpress
labels:
app: wordpress
Expand All @@ -103,6 +112,7 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: wp
name: wp-pvc
labels:
app: wordpress
Expand All @@ -116,6 +126,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: wp
name: wordpress
labels:
app: wordpress
Expand Down

0 comments on commit a861a2d

Please sign in to comment.