github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/e2e/testdata/fn-render/resource-has-pkgname-prefix/wordpress-deployment.yaml (about) 1 # Copyright 2019 Google LLC 2 # 3 # You may obtain a copy of the License at 4 # 5 # http://www.apache.org/licenses/LICENSE-2.0 6 # 7 # Unless required by applicable law or agreed to in writing, software 8 # distributed under the License is distributed on an "AS IS" BASIS, 9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 # See the License for the specific language governing permissions and 11 # limitations under the License. 12 apiVersion: v1 13 kind: Service 14 metadata: 15 name: wordpress 16 labels: 17 app: wordpress 18 annotations: 19 projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project} 20 teamname: 'YOURTEAM' # kpt-set: ${teamname} 21 spec: 22 type: LoadBalancer 23 selector: 24 app: wordpress 25 tier: frontend 26 ports: 27 - port: 80 28 --- 29 apiVersion: v1 30 kind: PersistentVolumeClaim 31 metadata: 32 name: wp-pv-claim 33 labels: 34 app: wordpress 35 annotations: 36 projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project} 37 teamname: 'YOURTEAM' # kpt-set: ${teamname} 38 spec: 39 resources: 40 requests: 41 storage: 20Gi 42 accessModes: 43 - ReadWriteOnce 44 --- 45 apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 46 kind: Deployment 47 metadata: 48 name: wordpress 49 labels: 50 app: wordpress 51 annotations: 52 projectId: 'PROJECT_ID' # kpt-set: ${gcloud.core.project} 53 teamname: 'YOURTEAM' # kpt-set: ${teamname} 54 spec: 55 selector: 56 matchLabels: 57 app: wordpress 58 tier: frontend 59 template: 60 metadata: 61 labels: 62 app: wordpress 63 tier: frontend 64 spec: 65 containers: 66 - name: wordpress 67 image: wordpress:4.8-apache # kpt-set: ${wp-image}:${wp-tag} 68 ports: 69 - name: wordpress 70 containerPort: 80 71 env: 72 - name: WORDPRESS_DB_HOST 73 value: wordpress-mysql 74 - name: WORDPRESS_DB_PASSWORD 75 valueFrom: 76 secretKeyRef: 77 name: mysql-pass 78 key: password 79 volumeMounts: 80 - name: wordpress-persistent-storage 81 mountPath: /var/www/html 82 volumes: 83 - name: wordpress-persistent-storage 84 persistentVolumeClaim: 85 claimName: wp-pv-claim 86 strategy: 87 type: Recreate